| indexdialog.cxx (b63233d8) | indexdialog.cxx (aac4b212) |
|---|---|
| 1/************************************************************** | 1/************************************************************** |
| 2 * | 2 * |
| 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at | 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at |
| 10 * | 10 * |
| 11 * http://www.apache.org/licenses/LICENSE-2.0 | 11 * http://www.apache.org/licenses/LICENSE-2.0 |
| 12 * | 12 * |
| 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. | 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. |
| 19 * | 19 * |
| 20 *************************************************************/ 21 22 23 24// MARKER(update_precomp.py): autogen include statement, do not remove 25#include "precompiled_dbui.hxx" 26 27#ifndef _DBAUI_INDEXDIALOG_HXX_ --- 9 unchanged lines hidden (view full) --- 37#include "indexdialog.hrc" 38#endif 39#ifndef _DBAUI_INDEXFIELDSCONTROL_HXX_ 40#include "indexfieldscontrol.hxx" 41#endif 42#ifndef _DBAUI_INDEXCOLLECTION_HXX_ 43#include "indexcollection.hxx" 44#endif | 20 *************************************************************/ 21 22 23 24// MARKER(update_precomp.py): autogen include statement, do not remove 25#include "precompiled_dbui.hxx" 26 27#ifndef _DBAUI_INDEXDIALOG_HXX_ --- 9 unchanged lines hidden (view full) --- 37#include "indexdialog.hrc" 38#endif 39#ifndef _DBAUI_INDEXFIELDSCONTROL_HXX_ 40#include "indexfieldscontrol.hxx" 41#endif 42#ifndef _DBAUI_INDEXCOLLECTION_HXX_ 43#include "indexcollection.hxx" 44#endif |
| 45#ifndef _SV_MSGBOX_HXX | 45#ifndef _SV_MSGBOX_HXX |
| 46#include <vcl/msgbox.hxx> 47#endif 48#ifndef _COM_SUN_STAR_SDB_SQLCONTEXT_HPP_ 49#include <com/sun/star/sdb/SQLContext.hpp> 50#endif 51#ifndef DBAUI_TOOLS_HXX 52#include "UITools.hxx" 53#endif --- 36 unchanged lines hidden (view full) --- 90 91 //------------------------------------------------------------------ 92 sal_Bool operator ==(const IndexFields& _rLHS, const IndexFields& _rRHS) 93 { 94 if (_rLHS.size() != _rRHS.size()) 95 return sal_False; 96 97 ConstIndexFieldsIterator aLeft = _rLHS.begin(); | 46#include <vcl/msgbox.hxx> 47#endif 48#ifndef _COM_SUN_STAR_SDB_SQLCONTEXT_HPP_ 49#include <com/sun/star/sdb/SQLContext.hpp> 50#endif 51#ifndef DBAUI_TOOLS_HXX 52#include "UITools.hxx" 53#endif --- 36 unchanged lines hidden (view full) --- 90 91 //------------------------------------------------------------------ 92 sal_Bool operator ==(const IndexFields& _rLHS, const IndexFields& _rRHS) 93 { 94 if (_rLHS.size() != _rRHS.size()) 95 return sal_False; 96 97 ConstIndexFieldsIterator aLeft = _rLHS.begin(); |
| 98 ConstIndexFieldsIterator aLeftEnd = _rLHS.end(); | 98 ConstIndexFieldsIterator aLeftEnd = _rLHS.end(); |
| 99 ConstIndexFieldsIterator aRight = _rRHS.begin(); 100 for (; aLeft != aLeftEnd; ++aLeft, ++aRight) 101 { 102 if (*aLeft != *aRight) 103 return sal_False; 104 } 105 106 return sal_True; --- 23 unchanged lines hidden (view full) --- 130 if ( isSQL92CheckEnabled(m_xConnection) ) 131 { 132 Reference<XDatabaseMetaData> xMeta = m_xConnection->getMetaData(); 133 if ( xMeta.is() ) 134 { 135 ::rtl::OUString sNewName(_rNewText); 136 ::rtl::OUString sAlias = ::dbtools::convertName2SQLName(sNewName,xMeta->getExtraNameCharacters()); 137 if ( ( xMeta->supportsMixedCaseQuotedIdentifiers() ) | 99 ConstIndexFieldsIterator aRight = _rRHS.begin(); 100 for (; aLeft != aLeftEnd; ++aLeft, ++aRight) 101 { 102 if (*aLeft != *aRight) 103 return sal_False; 104 } 105 106 return sal_True; --- 23 unchanged lines hidden (view full) --- 130 if ( isSQL92CheckEnabled(m_xConnection) ) 131 { 132 Reference<XDatabaseMetaData> xMeta = m_xConnection->getMetaData(); 133 if ( xMeta.is() ) 134 { 135 ::rtl::OUString sNewName(_rNewText); 136 ::rtl::OUString sAlias = ::dbtools::convertName2SQLName(sNewName,xMeta->getExtraNameCharacters()); 137 if ( ( xMeta->supportsMixedCaseQuotedIdentifiers() ) |
| 138 ? 139 sAlias != sNewName 140 : | 138 ? 139 sAlias != sNewName 140 : |
| 141 !sNewName.equalsIgnoreAsciiCase(sAlias)) 142 return sal_False; 143 } 144 } 145 146 if (!SvTreeListBox::EditedEntry(_pEntry, _rNewText)) 147 return sal_False; 148 --- 45 unchanged lines hidden (view full) --- 194 return bReturn; 195 } 196 197 //================================================================== 198 //= DbaIndexDialog 199 //================================================================== 200DBG_NAME(DbaIndexDialog) 201//------------------------------------------------------------------ | 141 !sNewName.equalsIgnoreAsciiCase(sAlias)) 142 return sal_False; 143 } 144 } 145 146 if (!SvTreeListBox::EditedEntry(_pEntry, _rNewText)) 147 return sal_False; 148 --- 45 unchanged lines hidden (view full) --- 194 return bReturn; 195 } 196 197 //================================================================== 198 //= DbaIndexDialog 199 //================================================================== 200DBG_NAME(DbaIndexDialog) 201//------------------------------------------------------------------ |
| 202 DbaIndexDialog::DbaIndexDialog( Window* _pParent, const Sequence< ::rtl::OUString >& _rFieldNames, 203 const Reference< XNameAccess >& _rxIndexes, | 202 DbaIndexDialog::DbaIndexDialog( Window* _pParent, const Sequence< ::rtl::OUString >& _rFieldNames, 203 const Reference< XNameAccess >& _rxIndexes, |
| 204 const Reference< XConnection >& _rxConnection, 205 const Reference< XMultiServiceFactory >& _rxORB,sal_Int32 _nMaxColumnsInIndex) 206 :ModalDialog( _pParent, ModuleRes(DLG_INDEXDESIGN)) 207 ,m_xConnection(_rxConnection) 208 ,m_aGeometrySettings(E_DIALOG, ::rtl::OUString::createFromAscii("dbaccess.tabledesign.indexdialog")) 209 ,m_aActions (this, ModuleRes(TLB_ACTIONS)) 210 ,m_aIndexes (this, ModuleRes(CTR_INDEXLIST)) 211 ,m_aIndexDetails (this, ModuleRes(FL_INDEXDETAILS)) --- 4 unchanged lines hidden (view full) --- 216 ,m_pFields(new IndexFieldsControl (this, ModuleRes(CTR_FIELDS),_nMaxColumnsInIndex,::dbtools::getBooleanDataSourceSetting( m_xConnection, "AddIndexAppendix" ))) 217 ,m_aClose (this, ModuleRes(PB_CLOSE)) 218 ,m_aHelp (this, ModuleRes(HB_HELP)) 219 ,m_pIndexes(NULL) 220 ,m_pPreviousSelection(NULL) 221 ,m_bEditAgain(sal_False) 222 ,m_xORB(_rxORB) 223 { | 204 const Reference< XConnection >& _rxConnection, 205 const Reference< XMultiServiceFactory >& _rxORB,sal_Int32 _nMaxColumnsInIndex) 206 :ModalDialog( _pParent, ModuleRes(DLG_INDEXDESIGN)) 207 ,m_xConnection(_rxConnection) 208 ,m_aGeometrySettings(E_DIALOG, ::rtl::OUString::createFromAscii("dbaccess.tabledesign.indexdialog")) 209 ,m_aActions (this, ModuleRes(TLB_ACTIONS)) 210 ,m_aIndexes (this, ModuleRes(CTR_INDEXLIST)) 211 ,m_aIndexDetails (this, ModuleRes(FL_INDEXDETAILS)) --- 4 unchanged lines hidden (view full) --- 216 ,m_pFields(new IndexFieldsControl (this, ModuleRes(CTR_FIELDS),_nMaxColumnsInIndex,::dbtools::getBooleanDataSourceSetting( m_xConnection, "AddIndexAppendix" ))) 217 ,m_aClose (this, ModuleRes(PB_CLOSE)) 218 ,m_aHelp (this, ModuleRes(HB_HELP)) 219 ,m_pIndexes(NULL) 220 ,m_pPreviousSelection(NULL) 221 ,m_bEditAgain(sal_False) 222 ,m_xORB(_rxORB) 223 { |
| 224 DBG_CTOR(DbaIndexDialog,NULL); | 224 DBG_CTOR(DbaIndexDialog,NULL); |
| 225 226 FreeResource(); 227 228 m_aActions.SetSelectHdl(LINK(this, DbaIndexDialog, OnIndexAction)); 229 230 m_aIndexes.SetSelectHdl(LINK(this, DbaIndexDialog, OnIndexSelected)); 231 m_aIndexes.SetEndEditHdl(LINK(this, DbaIndexDialog, OnEntryEdited)); 232 m_aIndexes.SetSelectionMode(SINGLE_SELECTION); --- 75 unchanged lines hidden (view full) --- 308 309 //------------------------------------------------------------------ 310 void DbaIndexDialog::updateToolbox() 311 { 312 m_aActions.EnableItem(ID_INDEX_NEW, !m_aIndexes.IsEditingActive()); 313 314 SvLBoxEntry* pSelected = m_aIndexes.FirstSelected(); 315 sal_Bool bSelectedAnything = NULL != pSelected; | 225 226 FreeResource(); 227 228 m_aActions.SetSelectHdl(LINK(this, DbaIndexDialog, OnIndexAction)); 229 230 m_aIndexes.SetSelectHdl(LINK(this, DbaIndexDialog, OnIndexSelected)); 231 m_aIndexes.SetEndEditHdl(LINK(this, DbaIndexDialog, OnEntryEdited)); 232 m_aIndexes.SetSelectionMode(SINGLE_SELECTION); --- 75 unchanged lines hidden (view full) --- 308 309 //------------------------------------------------------------------ 310 void DbaIndexDialog::updateToolbox() 311 { 312 m_aActions.EnableItem(ID_INDEX_NEW, !m_aIndexes.IsEditingActive()); 313 314 SvLBoxEntry* pSelected = m_aIndexes.FirstSelected(); 315 sal_Bool bSelectedAnything = NULL != pSelected; |
| 316 | |
| 317 | 316 |
| 317 |
|
| 318 if (pSelected) 319 { 320 // is the current entry modified? 321 Indexes::const_iterator aSelectedPos = m_pIndexes->begin() + reinterpret_cast<sal_IntPtr>(pSelected->GetUserData()); 322 m_aActions.EnableItem(ID_INDEX_SAVE, aSelectedPos->isModified() || aSelectedPos->isNew()); 323 m_aActions.EnableItem(ID_INDEX_RESET, aSelectedPos->isModified() || aSelectedPos->isNew()); | 318 if (pSelected) 319 { 320 // is the current entry modified? 321 Indexes::const_iterator aSelectedPos = m_pIndexes->begin() + reinterpret_cast<sal_IntPtr>(pSelected->GetUserData()); 322 m_aActions.EnableItem(ID_INDEX_SAVE, aSelectedPos->isModified() || aSelectedPos->isNew()); 323 m_aActions.EnableItem(ID_INDEX_RESET, aSelectedPos->isModified() || aSelectedPos->isNew()); |
| 324 bSelectedAnything = bSelectedAnything && !aSelectedPos->bPrimaryKey; | 324 bSelectedAnything = bSelectedAnything && !aSelectedPos->bPrimaryKey; |
| 325 } 326 else 327 { 328 m_aActions.EnableItem(ID_INDEX_SAVE, sal_False); 329 m_aActions.EnableItem(ID_INDEX_RESET, sal_False); 330 } | 325 } 326 else 327 { 328 m_aActions.EnableItem(ID_INDEX_SAVE, sal_False); 329 m_aActions.EnableItem(ID_INDEX_RESET, sal_False); 330 } |
| 331 m_aActions.EnableItem(ID_INDEX_DROP, bSelectedAnything); | 331 m_aActions.EnableItem(ID_INDEX_DROP, bSelectedAnything); |
| 332 m_aActions.EnableItem(ID_INDEX_RENAME, bSelectedAnything); 333 } 334 335 //------------------------------------------------------------------ 336 void DbaIndexDialog::fillIndexList() 337 { 338 sal_Bool bHiContrast = GetSettings().GetStyleSettings().GetHighContrastMode(); 339 Image aPKeyIcon(ModuleRes( bHiContrast ? IMG_PKEYICON_SCH : IMG_PKEYICON)); --- 20 unchanged lines hidden (view full) --- 360 { 361 setToolBox(NULL); 362 delete m_pIndexes; 363 delete m_pFields; 364 365 // save our geometry settings 366// Point aPos = GetPosPixel(); 367// m_aGeometrySettings.SetPosition(aPos.X(), aPos.Y()); | 332 m_aActions.EnableItem(ID_INDEX_RENAME, bSelectedAnything); 333 } 334 335 //------------------------------------------------------------------ 336 void DbaIndexDialog::fillIndexList() 337 { 338 sal_Bool bHiContrast = GetSettings().GetStyleSettings().GetHighContrastMode(); 339 Image aPKeyIcon(ModuleRes( bHiContrast ? IMG_PKEYICON_SCH : IMG_PKEYICON)); --- 20 unchanged lines hidden (view full) --- 360 { 361 setToolBox(NULL); 362 delete m_pIndexes; 363 delete m_pFields; 364 365 // save our geometry settings 366// Point aPos = GetPosPixel(); 367// m_aGeometrySettings.SetPosition(aPos.X(), aPos.Y()); |
| 368 369 DBG_DTOR(DbaIndexDialog,NULL); 370 } | |
| 371 | 368 |
| 369 DBG_DTOR(DbaIndexDialog,NULL); 370 } 371 |
|
| 372 //------------------------------------------------------------------ 373 sal_Bool DbaIndexDialog::implCommit(SvLBoxEntry* _pEntry) 374 { 375 DBG_ASSERT(_pEntry, "DbaIndexDialog::implCommit: invalid entry!"); 376 377 Indexes::iterator aCommitPos = m_pIndexes->begin() + reinterpret_cast<sal_IntPtr>(_pEntry->GetUserData()); 378 379 // if it's not a new index, remove it --- 186 unchanged lines hidden (view full) --- 566 567 Indexes::iterator aResetPos = m_pIndexes->begin() + reinterpret_cast<sal_IntPtr>(pSelected->GetUserData()); 568 569 if (aResetPos->isNew()) 570 { 571 OnDropIndex(sal_False); 572 return; 573 } | 372 //------------------------------------------------------------------ 373 sal_Bool DbaIndexDialog::implCommit(SvLBoxEntry* _pEntry) 374 { 375 DBG_ASSERT(_pEntry, "DbaIndexDialog::implCommit: invalid entry!"); 376 377 Indexes::iterator aCommitPos = m_pIndexes->begin() + reinterpret_cast<sal_IntPtr>(_pEntry->GetUserData()); 378 379 // if it's not a new index, remove it --- 186 unchanged lines hidden (view full) --- 566 567 Indexes::iterator aResetPos = m_pIndexes->begin() + reinterpret_cast<sal_IntPtr>(pSelected->GetUserData()); 568 569 if (aResetPos->isNew()) 570 { 571 OnDropIndex(sal_False); 572 return; 573 } |
| 574 | 574 |
| 575 SQLExceptionInfo aExceptionInfo; 576 try 577 { 578 m_pIndexes->resetIndex(aResetPos); 579 } 580 catch(SQLContext& e) { aExceptionInfo = SQLExceptionInfo(e); } 581 catch(SQLWarning& e) { aExceptionInfo = SQLExceptionInfo(e); } 582 catch(SQLException& e) { aExceptionInfo = SQLExceptionInfo(e); } --- 50 unchanged lines hidden (view full) --- 633 const SvLBoxEntry* pSelected = m_aIndexes.FirstSelected(); 634 DBG_ASSERT(pSelected == m_pPreviousSelection, "DbaIndexDialog::OnCloseDialog: inconsistence!"); 635 636 sal_Int32 nResponse = RET_NO; 637 if (pSelected) 638 { 639 // the descriptor 640 Indexes::const_iterator aSelected = m_pIndexes->begin() + reinterpret_cast<sal_IntPtr>(pSelected->GetUserData()); | 575 SQLExceptionInfo aExceptionInfo; 576 try 577 { 578 m_pIndexes->resetIndex(aResetPos); 579 } 580 catch(SQLContext& e) { aExceptionInfo = SQLExceptionInfo(e); } 581 catch(SQLWarning& e) { aExceptionInfo = SQLExceptionInfo(e); } 582 catch(SQLException& e) { aExceptionInfo = SQLExceptionInfo(e); } --- 50 unchanged lines hidden (view full) --- 633 const SvLBoxEntry* pSelected = m_aIndexes.FirstSelected(); 634 DBG_ASSERT(pSelected == m_pPreviousSelection, "DbaIndexDialog::OnCloseDialog: inconsistence!"); 635 636 sal_Int32 nResponse = RET_NO; 637 if (pSelected) 638 { 639 // the descriptor 640 Indexes::const_iterator aSelected = m_pIndexes->begin() + reinterpret_cast<sal_IntPtr>(pSelected->GetUserData()); |
| 641 | 641 |
| 642 if (aSelected->isModified() || aSelected->isNew()) 643 { 644 QueryBox aQuestion(this, ModuleRes(QUERY_SAVE_CURRENT_INDEX)); 645 nResponse = aQuestion.Execute(); 646 } 647 } 648 649 switch (nResponse) --- 20 unchanged lines hidden (view full) --- 670 m_aIndexes.EditEntry(_pEntry); 671 return 0L; 672 } 673 674 //------------------------------------------------------------------ 675 IMPL_LINK( DbaIndexDialog, OnEntryEdited, SvLBoxEntry*, _pEntry ) 676 { 677 Indexes::iterator aPosition = m_pIndexes->begin() + reinterpret_cast<sal_IntPtr>(_pEntry->GetUserData()); | 642 if (aSelected->isModified() || aSelected->isNew()) 643 { 644 QueryBox aQuestion(this, ModuleRes(QUERY_SAVE_CURRENT_INDEX)); 645 nResponse = aQuestion.Execute(); 646 } 647 } 648 649 switch (nResponse) --- 20 unchanged lines hidden (view full) --- 670 m_aIndexes.EditEntry(_pEntry); 671 return 0L; 672 } 673 674 //------------------------------------------------------------------ 675 IMPL_LINK( DbaIndexDialog, OnEntryEdited, SvLBoxEntry*, _pEntry ) 676 { 677 Indexes::iterator aPosition = m_pIndexes->begin() + reinterpret_cast<sal_IntPtr>(_pEntry->GetUserData()); |
| 678 | 678 |
| 679 DBG_ASSERT(aPosition >= m_pIndexes->begin() && aPosition < m_pIndexes->end(), 680 "DbaIndexDialog::OnEntryEdited: invalid entry!"); 681 682 String sNewName = m_aIndexes.GetEntryText(_pEntry); 683 684 Indexes::const_iterator aSameName = m_pIndexes->find(sNewName); 685 if ((aSameName != aPosition) && (m_pIndexes->end() != aSameName)) 686 { --- 220 unchanged lines hidden (view full) --- 907 checkImageList(); 908 } 909 } 910 //------------------------------------------------------------------ 911 ImageList DbaIndexDialog::getImageList(sal_Int16 _eBitmapSet,sal_Bool _bHiContast) const 912 { 913 sal_Int16 nN = IMG_INDEX_DLG_SC; 914 sal_Int16 nH = IMG_INDEX_DLG_SCH; | 679 DBG_ASSERT(aPosition >= m_pIndexes->begin() && aPosition < m_pIndexes->end(), 680 "DbaIndexDialog::OnEntryEdited: invalid entry!"); 681 682 String sNewName = m_aIndexes.GetEntryText(_pEntry); 683 684 Indexes::const_iterator aSameName = m_pIndexes->find(sNewName); 685 if ((aSameName != aPosition) && (m_pIndexes->end() != aSameName)) 686 { --- 220 unchanged lines hidden (view full) --- 907 checkImageList(); 908 } 909 } 910 //------------------------------------------------------------------ 911 ImageList DbaIndexDialog::getImageList(sal_Int16 _eBitmapSet,sal_Bool _bHiContast) const 912 { 913 sal_Int16 nN = IMG_INDEX_DLG_SC; 914 sal_Int16 nH = IMG_INDEX_DLG_SCH; |
| 915 if ( _eBitmapSet == SFX_SYMBOLS_SIZE_LARGE ) | 915 if ( _eBitmapSet == SFX_SYMBOLS_SIZE_LARGE ) |
| 916 { 917 nN = IMG_INDEX_DLG_LC; 918 nH = IMG_INDEX_DLG_LCH; 919 } // if ( _eBitmapSet == SFX_SYMBOLS_LARGE ) 920 return ImageList(ModuleRes( _bHiContast ? nH : nN )); 921 } 922 //------------------------------------------------------------------ 923 void DbaIndexDialog::resizeControls(const Size& _rDiff) 924 { 925 // we use large images so we must change them 926 Size aTbNewSize = m_aActions.GetSizePixel(); 927 if ( _rDiff.Width() || _rDiff.Height() ) 928 { 929 Size aDlgSize = GetSizePixel(); 930 // adjust size of dlg 931 SetSizePixel(Size(aDlgSize.Width() + _rDiff.Width(), | 916 { 917 nN = IMG_INDEX_DLG_LC; 918 nH = IMG_INDEX_DLG_LCH; 919 } // if ( _eBitmapSet == SFX_SYMBOLS_LARGE ) 920 return ImageList(ModuleRes( _bHiContast ? nH : nN )); 921 } 922 //------------------------------------------------------------------ 923 void DbaIndexDialog::resizeControls(const Size& _rDiff) 924 { 925 // we use large images so we must change them 926 Size aTbNewSize = m_aActions.GetSizePixel(); 927 if ( _rDiff.Width() || _rDiff.Height() ) 928 { 929 Size aDlgSize = GetSizePixel(); 930 // adjust size of dlg 931 SetSizePixel(Size(aDlgSize.Width() + _rDiff.Width(), |
| 932 aDlgSize.Height() + _rDiff.Height()) | 932 aDlgSize.Height() + _rDiff.Height()) |
| 933 ); 934 Size aIndexSize = m_aIndexes.GetSizePixel(); 935 m_aIndexes.SetPosSizePixel(m_aIndexes.GetPosPixel() + Point(0,_rDiff.Height()), 936 Size(aIndexSize.Width() + _rDiff.Width(), | 933 ); 934 Size aIndexSize = m_aIndexes.GetSizePixel(); 935 m_aIndexes.SetPosSizePixel(m_aIndexes.GetPosPixel() + Point(0,_rDiff.Height()), 936 Size(aIndexSize.Width() + _rDiff.Width(), |
| 937 aIndexSize.Height())); | 937 aIndexSize.Height())); |
| 938 | 938 |
| 939 //now move the rest to the left side | 939 // now move the rest to the left side |
| 940 Point aMove(_rDiff.Width(),_rDiff.Height()); 941 m_aIndexDetails.SetPosPixel(m_aIndexDetails.GetPosPixel() + aMove); 942 m_aDescriptionLabel.SetPosPixel(m_aDescriptionLabel.GetPosPixel() + aMove); 943 m_aDescription.SetPosPixel(m_aDescription.GetPosPixel() + aMove); 944 m_aUnique.SetPosPixel(m_aUnique.GetPosPixel() + aMove); 945 m_aFieldsLabel.SetPosPixel(m_aFieldsLabel.GetPosPixel() + aMove); 946 OSL_ENSURE(m_pFields,"NO valid fields!"); 947 m_pFields->SetPosPixel(m_pFields->GetPosPixel() + aMove); 948 m_aClose.SetPosPixel(m_aClose.GetPosPixel() + aMove); 949 m_aHelp.SetPosPixel(m_aHelp.GetPosPixel() + aMove); 950 951 Invalidate(); 952 } 953 } 954 955//...................................................................... 956} // namespace dbaui | 940 Point aMove(_rDiff.Width(),_rDiff.Height()); 941 m_aIndexDetails.SetPosPixel(m_aIndexDetails.GetPosPixel() + aMove); 942 m_aDescriptionLabel.SetPosPixel(m_aDescriptionLabel.GetPosPixel() + aMove); 943 m_aDescription.SetPosPixel(m_aDescription.GetPosPixel() + aMove); 944 m_aUnique.SetPosPixel(m_aUnique.GetPosPixel() + aMove); 945 m_aFieldsLabel.SetPosPixel(m_aFieldsLabel.GetPosPixel() + aMove); 946 OSL_ENSURE(m_pFields,"NO valid fields!"); 947 m_pFields->SetPosPixel(m_pFields->GetPosPixel() + aMove); 948 m_aClose.SetPosPixel(m_aClose.GetPosPixel() + aMove); 949 m_aHelp.SetPosPixel(m_aHelp.GetPosPixel() + aMove); 950 951 Invalidate(); 952 } 953 } 954 955//...................................................................... 956} // namespace dbaui |
| 957//...................................................................... | |
| 958 | 957 |
| 958/* vim: set noet sw=4 ts=4: */ |
|