diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-04-09 13:03:02 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-04-09 21:48:09 +0200 |
commit | 40ca52ee802ea3992caa82f811eab124381bc121 (patch) | |
tree | 0c20f242b1900069b8af516013d57f99924b5fa4 /cui/source/dialogs/srchxtra.cxx | |
parent | 54e13125860b124535c48e93b8001cd1aab25d8f (diff) |
weld SvxSearchSimilarityDialog
Change-Id: Ifff02a6e9a9b8ce78b1e7d15f5f9a73ec2574872
Reviewed-on: https://gerrit.libreoffice.org/52631
Tested-by: Jenkins <ci@libreoffice.org>
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.cxx | 39 |
1 files changed, 11 insertions, 28 deletions
diff --git a/cui/source/dialogs/srchxtra.cxx b/cui/source/dialogs/srchxtra.cxx index 3e07eefc2847..beee5afea428 100644 --- a/cui/source/dialogs/srchxtra.cxx +++ b/cui/source/dialogs/srchxtra.cxx @@ -235,39 +235,22 @@ IMPL_LINK_NOARG(SvxSearchAttributeDialog, OKHdl, Button*, void) // class SvxSearchSimilarityDialog --------------------------------------- -SvxSearchSimilarityDialog::SvxSearchSimilarityDialog -( - vcl::Window* pParent, - bool bRelax, - sal_uInt16 nOther, - sal_uInt16 nShorter, - sal_uInt16 nLonger -) : - ModalDialog( pParent, "SimilaritySearchDialog", "cui/ui/similaritysearchdialog.ui" ) +SvxSearchSimilarityDialog::SvxSearchSimilarityDialog(weld::Window* pParent, bool bRelax, + sal_uInt16 nOther, sal_uInt16 nShorter, sal_uInt16 nLonger) + : GenericDialogController(pParent, "cui/ui/similaritysearchdialog.ui", "SimilaritySearchDialog") + , m_xOtherFld(m_xBuilder->weld_spin_button("otherfld")) + , m_xLongerFld(m_xBuilder->weld_spin_button("longerfld")) + , m_xShorterFld(m_xBuilder->weld_spin_button("shorterfld")) + , m_xRelaxBox(m_xBuilder->weld_check_button("relaxbox")) { - 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 ); + m_xOtherFld->set_value(nOther); + m_xShorterFld->set_value(nShorter); + m_xLongerFld->set_value(nLonger); + m_xRelaxBox->set_active(bRelax); } SvxSearchSimilarityDialog::~SvxSearchSimilarityDialog() { - disposeOnce(); -} - -void SvxSearchSimilarityDialog::dispose() -{ - m_pOtherFld.clear(); - m_pLongerFld.clear(); - m_pShorterFld.clear(); - m_pRelaxBox.clear(); - ModalDialog::dispose(); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |