summaryrefslogtreecommitdiff
path: root/cui/source/inc/srchxtra.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-04-09 13:03:02 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-04-09 21:48:09 +0200
commit40ca52ee802ea3992caa82f811eab124381bc121 (patch)
tree0c20f242b1900069b8af516013d57f99924b5fa4 /cui/source/inc/srchxtra.hxx
parent54e13125860b124535c48e93b8001cd1aab25d8f (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/inc/srchxtra.hxx')
-rw-r--r--cui/source/inc/srchxtra.hxx31
1 files changed, 15 insertions, 16 deletions
diff --git a/cui/source/inc/srchxtra.hxx b/cui/source/inc/srchxtra.hxx
index 1c0656f6574b..0e8442d39c71 100644
--- a/cui/source/inc/srchxtra.hxx
+++ b/cui/source/inc/srchxtra.hxx
@@ -20,6 +20,7 @@
#define INCLUDED_CUI_SOURCE_INC_SRCHXTRA_HXX
#include <vcl/field.hxx>
+#include <vcl/weld.hxx>
#include <svtools/ctrltool.hxx>
#include <sfx2/tabdlg.hxx>
@@ -65,30 +66,28 @@ private:
// class SvxSearchSimilarityDialog ---------------------------------------
-class SvxSearchSimilarityDialog : public ModalDialog
+class SvxSearchSimilarityDialog : public weld::GenericDialogController
{
private:
- VclPtr<NumericField> m_pOtherFld;
- VclPtr<NumericField> m_pLongerFld;
- VclPtr<NumericField> m_pShorterFld;
- VclPtr<CheckBox> m_pRelaxBox;
+ std::unique_ptr<weld::SpinButton> m_xOtherFld;
+ std::unique_ptr<weld::SpinButton> m_xLongerFld;
+ std::unique_ptr<weld::SpinButton> m_xShorterFld;
+ std::unique_ptr<weld::CheckButton> m_xRelaxBox;
public:
- SvxSearchSimilarityDialog( vcl::Window* pParent,
- bool bRelax,
- sal_uInt16 nOther,
- sal_uInt16 nShorter,
- sal_uInt16 nLonger );
+ SvxSearchSimilarityDialog(weld::Window* pParent,
+ bool bRelax,
+ sal_uInt16 nOther,
+ sal_uInt16 nShorter,
+ sal_uInt16 nLonger);
virtual ~SvxSearchSimilarityDialog() override;
- virtual void dispose() override;
- sal_uInt16 GetOther() { return static_cast<sal_uInt16>(m_pOtherFld->GetValue()); }
- sal_uInt16 GetShorter() { return static_cast<sal_uInt16>(m_pShorterFld->GetValue()); }
- sal_uInt16 GetLonger() { return static_cast<sal_uInt16>(m_pLongerFld->GetValue()); }
- bool IsRelaxed() { return m_pRelaxBox->IsChecked(); }
+ sal_uInt16 GetOther() { return static_cast<sal_uInt16>(m_xOtherFld->get_value()); }
+ sal_uInt16 GetShorter() { return static_cast<sal_uInt16>(m_xShorterFld->get_value()); }
+ sal_uInt16 GetLonger() { return static_cast<sal_uInt16>(m_xLongerFld->get_value()); }
+ bool IsRelaxed() { return m_xRelaxBox->get_active(); }
};
-
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */