summaryrefslogtreecommitdiff
path: root/sfx2/source/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-04-03 15:41:17 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-04-03 21:01:43 +0200
commit4329d9d8cf83f3642c068a1493c979a894328e26 (patch)
tree2149e82f6749afd2dff727f9c10ab4194d2b48b7 /sfx2/source/inc
parent5672627a4d4adc613aecb3ccef721655d9dcd0b2 (diff)
weld SfxViewVersionDialog_Impl
Change-Id: I5486df92b4e1d0ad5be18a35e72a7a6dbcc3b715 Reviewed-on: https://gerrit.libreoffice.org/52334 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 'sfx2/source/inc')
-rw-r--r--sfx2/source/inc/versdlg.hxx23
1 files changed, 12 insertions, 11 deletions
diff --git a/sfx2/source/inc/versdlg.hxx b/sfx2/source/inc/versdlg.hxx
index 3fe32e8e065b..4d81c139a1e9 100644
--- a/sfx2/source/inc/versdlg.hxx
+++ b/sfx2/source/inc/versdlg.hxx
@@ -26,6 +26,7 @@
#include <svtools/svtabbx.hxx>
#include <vcl/button.hxx>
#include <vcl/fixed.hxx>
+#include <vcl/weld.hxx>
class SfxViewFrame;
struct SfxVersionInfo;
@@ -70,22 +71,22 @@ public:
bool IsSaveVersionOnClose() const { return m_bIsSaveVersionOnClose; }
};
-class SfxViewVersionDialog_Impl : public SfxModalDialog
+class SfxViewVersionDialog_Impl : public weld::GenericDialogController
{
- VclPtr<FixedText> m_pDateTimeText;
- VclPtr<FixedText> m_pSavedByText;
- VclPtr<VclMultiLineEdit> m_pEdit;
- VclPtr<OKButton> m_pOKButton;
- VclPtr<CancelButton> m_pCancelButton;
- VclPtr<CloseButton> m_pCloseButton;
+private:
SfxVersionInfo& m_rInfo;
- DECL_LINK(ButtonHdl, Button*, void);
+ std::unique_ptr<weld::Label> m_xDateTimeText;
+ std::unique_ptr<weld::Label> m_xSavedByText;
+ std::unique_ptr<weld::TextView> m_xEdit;
+ std::unique_ptr<weld::Button> m_xOKButton;
+ std::unique_ptr<weld::Button> m_xCancelButton;
+ std::unique_ptr<weld::Button> m_xCloseButton;
+
+ DECL_LINK(ButtonHdl, weld::Button&, void);
public:
- SfxViewVersionDialog_Impl(vcl::Window *pParent, SfxVersionInfo& rInfo, bool bEdit);
- virtual ~SfxViewVersionDialog_Impl() override;
- virtual void dispose() override;
+ SfxViewVersionDialog_Impl(weld::Window *pParent, SfxVersionInfo& rInfo, bool bEdit);
};
class SfxCmisVersionsDialog : public SfxModalDialog