diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-05-21 12:14:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-05-21 21:39:50 +0200 |
commit | 2632adfbc2a664ab99de7e24d6fcd6841a10b6f1 (patch) | |
tree | 1e703ffbb0e4a77d3b372f74303edd0824d6f4e0 /include/sfx2 | |
parent | c3a4937604fc296f3f6bf4dee48f224f255b9ffc (diff) |
weld SfxCheckinDialog
Change-Id: Iaa7954baf734229683acb81819daa332b02a7733
Reviewed-on: https://gerrit.libreoffice.org/54624
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 'include/sfx2')
-rw-r--r-- | include/sfx2/checkin.hxx | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/include/sfx2/checkin.hxx b/include/sfx2/checkin.hxx index 77a8085b3f11..054c82cd7a7d 100644 --- a/include/sfx2/checkin.hxx +++ b/include/sfx2/checkin.hxx @@ -9,27 +9,23 @@ #ifndef INCLUDED_SFX2_CHECKIN_HXX #define INCLUDED_SFX2_CHECKIN_HXX -#include <vcl/button.hxx> -#include <vcl/dialog.hxx> -#include <vcl/edit.hxx> +#include <vcl/weld.hxx> -class SfxCheckinDialog : public ModalDialog +class SfxCheckinDialog : public weld::GenericDialogController { - private: - VclPtr<Edit> m_pCommentED; - VclPtr<CheckBox> m_pMajorCB; +private: + std::unique_ptr<weld::TextView> m_xCommentED; + std::unique_ptr<weld::CheckButton> m_xMajorCB; + std::unique_ptr<weld::Button> m_xOKBtn; - VclPtr<OKButton> m_pOKBtn; + DECL_LINK(OKHdl, weld::Button&, void); - DECL_LINK(OKHdl, Button*, void); +public: + SfxCheckinDialog(weld::Window* pParent); + virtual ~SfxCheckinDialog() override; - public: - SfxCheckinDialog( vcl::Window* pParent ); - virtual ~SfxCheckinDialog() override; - virtual void dispose() override; - - OUString GetComment( ); - bool IsMajor( ); + OUString GetComment(); + bool IsMajor(); }; #endif |