summaryrefslogtreecommitdiff
path: root/sfx2/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-12-06 13:35:26 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-12-06 14:18:10 +0000
commitd6407c8804841dbb94d6a4398e4300e9f188049f (patch)
tree54a3539183017e798accdcc87c1f8b2fec76d5f2 /sfx2/inc
parentc2c7e4d8d99483f74a7aa357de89240eb83c99d3 (diff)
convert search dialog to .ui
Change-Id: I737da11ed6978edf824f00dfb3dfc29c2c5416ed
Diffstat (limited to 'sfx2/inc')
-rw-r--r--sfx2/inc/srchdlg.hxx33
1 files changed, 15 insertions, 18 deletions
diff --git a/sfx2/inc/srchdlg.hxx b/sfx2/inc/srchdlg.hxx
index 66ec03d99560..1e6bd3bb2f02 100644
--- a/sfx2/inc/srchdlg.hxx
+++ b/sfx2/inc/srchdlg.hxx
@@ -36,14 +36,12 @@ namespace sfx2 {
class SearchDialog : public ModelessDialog
{
private:
- FixedText m_aSearchLabel;
- ComboBox m_aSearchEdit;
- CheckBox m_aWholeWordsBox;
- CheckBox m_aMatchCaseBox;
- CheckBox m_aWrapAroundBox;
- CheckBox m_aBackwardsBox;
- PushButton m_aFindBtn;
- CancelButton m_aCancelBtn;
+ ComboBox* m_pSearchEdit;
+ CheckBox* m_pWholeWordsBox;
+ CheckBox* m_pMatchCaseBox;
+ CheckBox* m_pWrapAroundBox;
+ CheckBox* m_pBackwardsBox;
+ PushButton* m_pFindBtn;
Link m_aFindHdl;
Link m_aCloseHdl;
@@ -58,25 +56,24 @@ private:
void SaveConfig();
DECL_LINK(FindHdl, void *);
- DECL_LINK(ToggleHdl, void *);
public:
SearchDialog( Window* pWindow, const OUString& rConfigName );
~SearchDialog();
- inline void SetFindHdl( const Link& rLink ) { m_aFindHdl = rLink; }
- inline void SetCloseHdl( const Link& rLink ) { m_aCloseHdl = rLink; }
+ void SetFindHdl( const Link& rLink ) { m_aFindHdl = rLink; }
+ void SetCloseHdl( const Link& rLink ) { m_aCloseHdl = rLink; }
- inline OUString GetSearchText() const { return m_aSearchEdit.GetText(); }
- inline void SetSearchText( const OUString& _rText ) { m_aSearchEdit.SetText( _rText ); }
- inline bool IsOnlyWholeWords() const { return ( m_aWholeWordsBox.IsChecked() != sal_False ); }
- inline bool IsMarchCase() const { return ( m_aMatchCaseBox.IsChecked() != sal_False ); }
- inline bool IsWrapAround() const { return ( m_aWrapAroundBox.IsChecked() != sal_False ); }
- inline bool IsSearchBackwards() const { return ( m_aBackwardsBox.IsChecked() != sal_False ); }
+ OUString GetSearchText() const { return m_pSearchEdit->GetText(); }
+ void SetSearchText( const OUString& _rText ) { m_pSearchEdit->SetText( _rText ); }
+ bool IsOnlyWholeWords() const { return ( m_pWholeWordsBox->IsChecked() ); }
+ bool IsMarchCase() const { return ( m_pMatchCaseBox->IsChecked() ); }
+ bool IsWrapAround() const { return ( m_pWrapAroundBox->IsChecked() ); }
+ bool IsSearchBackwards() const { return ( m_pBackwardsBox->IsChecked() ); }
void SetFocusOnEdit();
- virtual sal_Bool Close();
+ virtual sal_Bool Close();
virtual void Move();
virtual void StateChanged( StateChangedType nStateChange );
};