diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-04-02 15:30:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-04-02 21:54:03 +0200 |
commit | fa8822c48e2a79589bebbd015b36d1da8b338cc2 (patch) | |
tree | 0e3c8c305f08a2dee687e540b4795e7de90ad20f /sw/inc/colwd.hxx | |
parent | 5d5a7293bf6a49b1828bdd9fdff989f0a9cd2e53 (diff) |
weld SwTableWidthDlg
Change-Id: I272a783c9b7a8f725314e416fbd81217105ee5a6
Reviewed-on: https://gerrit.libreoffice.org/52266
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 'sw/inc/colwd.hxx')
-rw-r--r-- | sw/inc/colwd.hxx | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/sw/inc/colwd.hxx b/sw/inc/colwd.hxx index c6d13e159130..894ed19b2f5a 100644 --- a/sw/inc/colwd.hxx +++ b/sw/inc/colwd.hxx @@ -19,24 +19,22 @@ #ifndef INCLUDED_SW_INC_COLWD_HXX #define INCLUDED_SW_INC_COLWD_HXX -#include <svx/stddlg.hxx> -#include <vcl/field.hxx> +#include <vcl/weld.hxx> class SwTableFUNC; -class SwTableWidthDlg final : public SvxStandardDialog +class SwTableWidthDlg final : public weld::GenericDialogController { - VclPtr<NumericField> m_pColNF; - VclPtr<MetricField> m_pWidthMF; - SwTableFUNC &rFnc; + SwTableFUNC &m_rFnc; - virtual void Apply() override; - DECL_LINK(LoseFocusHdl, Edit&, void); + std::unique_ptr<weld::SpinButton> m_xColNF; + std::unique_ptr<weld::MetricSpinButton> m_xWidthMF; + + DECL_LINK(LoseFocusHdl, weld::SpinButton&, void); public: - SwTableWidthDlg(vcl::Window *pParent, SwTableFUNC &rFnc ); - virtual ~SwTableWidthDlg() override; - virtual void dispose() override; + SwTableWidthDlg(weld::Window *pParent, SwTableFUNC &rFnc); + short execute(); }; #endif |