diff options
author | Caolán McNamara <cmc@openoffice.org> | 2010-03-11 11:16:48 +0000 |
---|---|---|
committer | Caolán McNamara <cmc@openoffice.org> | 2010-03-11 11:16:48 +0000 |
commit | d9cc9a33542bee1e661f4b8edbc1a56175a01120 (patch) | |
tree | eb94ee17cd27c152242e3eac713ce8953eea6c2a | |
parent | 8d8c715352d37c28e0e4987a29dbdb3e3db50ac8 (diff) |
sdfindall: #i46270# remove find all button in draw/impress
-rw-r--r-- | svx/source/dialog/srchdlg.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx index 5f3aa24394a3..01dc2c0591cc 100644 --- a/svx/source/dialog/srchdlg.cxx +++ b/svx/source/dialog/srchdlg.cxx @@ -831,6 +831,18 @@ void SvxSearchDialog::CalculateDelta_Impl() pMoreBtn->AddWindow( &aNoFormatBtn ); } + if (bDrawApp || bImpressApp) + { + // "Find All" button is hidden--align "Find" vertically to the + // search listbox + Point aNewPt(aSearchBtn.GetPosPixel()); + const Size aBtnSz(aSearchBtn.GetSizePixel()); + const Size aLBSz(aSearchLB.GetSizePixel()); + const int nOff((aLBSz.Height() - aBtnSz.Height()) / 2); + aNewPt.Y() = aSearchLB.GetPosPixel().Y() + nOff; + aSearchBtn.SetPosPixel(aNewPt); + } + if ( bDrawApp ) { // Draw App: "Regular expressions" and "Search for Styles" check boxes are hidden @@ -1016,6 +1028,8 @@ void SvxSearchDialog::Init_Impl( int bSearchPattern ) if ( pSearchItem->GetAppFlag() == SVX_SEARCHAPP_DRAW ) { + aSearchAllBtn.Hide(); + aRegExpBtn.Hide(); aLayoutBtn.Hide(); |