summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/srchxtra.cxx
diff options
context:
space:
mode:
authorFaisal M. Al-Otaibi <fmalotaibi@kacst.edu.sa>2013-08-19 13:26:52 +0300
committerCaolán McNamara <caolanm@redhat.com>2013-08-19 11:37:28 +0000
commit68e793d36dbdcae8d9eb77ef0b37c9daba49075d (patch)
tree880ca4f1a28e77e6b467725d084a112ec3c7b4d7 /cui/source/dialogs/srchxtra.cxx
parent082cff5eec3edf1a96fefb27f760326a495557b8 (diff)
Convert similarity search dialog to .ui
Conflicts: cui/UIConfig_cui.mk Change-Id: Ia628babd27ca29769a6a287f70367d8208c5cc59 Reviewed-on: https://gerrit.libreoffice.org/5510 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/source/dialogs/srchxtra.cxx')
-rw-r--r--cui/source/dialogs/srchxtra.cxx31
1 files changed, 10 insertions, 21 deletions
diff --git a/cui/source/dialogs/srchxtra.cxx b/cui/source/dialogs/srchxtra.cxx
index 4a6f443e81dd..bbe94bc85f6d 100644
--- a/cui/source/dialogs/srchxtra.cxx
+++ b/cui/source/dialogs/srchxtra.cxx
@@ -248,28 +248,17 @@ SvxSearchSimilarityDialog::SvxSearchSimilarityDialog
sal_uInt16 nShorter,
sal_uInt16 nLonger
) :
- ModalDialog( pParent, CUI_RES( RID_SVXDLG_SEARCHSIMILARITY ) ),
-
- aFixedLine ( this, CUI_RES( FL_SIMILARITY ) ),
- aOtherTxt ( this, CUI_RES( FT_OTHER ) ),
- aOtherFld ( this, CUI_RES( NF_OTHER ) ),
- aLongerTxt ( this, CUI_RES( FT_LONGER ) ),
- aLongerFld ( this, CUI_RES( NF_LONGER ) ),
- aShorterTxt ( this, CUI_RES( FT_SHORTER ) ),
- aShorterFld ( this, CUI_RES( NF_SHORTER ) ),
- aRelaxBox ( this, CUI_RES( CB_RELAX ) ),
-
- aOKBtn ( this, CUI_RES( BTN_ATTR_OK ) ),
- aEscBtn ( this, CUI_RES( BTN_ATTR_CANCEL ) ),
- aHelpBtn ( this, CUI_RES( BTN_ATTR_HELP ) )
-
+ ModalDialog( pParent, "SimilaritySearchDialog", "cui/ui/similaritysearchdialog.ui" )
{
- FreeResource();
-
- aOtherFld.SetValue( nOther );
- aShorterFld.SetValue( nShorter );
- aLongerFld.SetValue( nLonger );
- aRelaxBox.Check( bRelax );
+ get( m_pOtherFld, "otherfld");
+ get( m_pLongerFld, "longerfld");
+ get( m_pShorterFld, "shorterfld");
+ get( m_pRelaxBox, "relaxbox");
+
+ m_pOtherFld->SetValue( nOther );
+ m_pShorterFld->SetValue( nShorter );
+ m_pLongerFld->SetValue( nLonger );
+ m_pRelaxBox->Check( bRelax );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */