diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-04-26 12:40:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-04-28 22:02:53 +0200 |
commit | 4dbce627d3643babaf90a93c70b365ff08abfca6 (patch) | |
tree | daf5b62ad5a5c8d99ec721b22b22733800d2a3a4 /sw/source/uibase/inc/envlop.hxx | |
parent | 5fa446204e1e686412d84562750d9802bf1b9468 (diff) |
weld SwEnvDlg
Change-Id: Ib92f790030ca6fbf64273cf45c710b2f698f45a4
Reviewed-on: https://gerrit.libreoffice.org/53569
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/source/uibase/inc/envlop.hxx')
-rw-r--r-- | sw/source/uibase/inc/envlop.hxx | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/sw/source/uibase/inc/envlop.hxx b/sw/source/uibase/inc/envlop.hxx index 989e50cfd4da..4d1b640b2bd1 100644 --- a/sw/source/uibase/inc/envlop.hxx +++ b/sw/source/uibase/inc/envlop.hxx @@ -53,7 +53,7 @@ class SwEnvPreview { private: std::unique_ptr<weld::DrawingArea> m_xDrawingArea; - VclPtr<SwEnvDlg> m_pDialog; + SwEnvDlg* m_pDialog; Size m_aSize; DECL_LINK(DoPaint, weld::DrawingArea::draw_args, void); @@ -65,7 +65,7 @@ public: void queue_draw() { m_xDrawingArea->queue_draw(); } }; -class SwEnvDlg : public SfxTabDialog +class SwEnvDlg : public SfxTabDialogController { friend class SwEnvPage; friend class SwEnvFormatPage; @@ -77,22 +77,20 @@ friend class SwEnvPreview; VclPtr<Printer> pPrinter; SfxItemSet *pAddresseeSet; SfxItemSet *pSenderSet; - sal_uInt16 m_nEnvPrintId; - sal_uInt16 m_nEnvAddressId; - sal_uInt16 m_nEnvFormatId; - virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) override; + std::unique_ptr<weld::Button> m_xModify; + + virtual void PageCreated(const OString& rId, SfxTabPage &rPage) override; virtual short Ok() override; public: - SwEnvDlg(vcl::Window* pParent, const SfxItemSet& rSet, SwWrtShell* pWrtSh, Printer* pPrt, bool bInsert); + SwEnvDlg(weld::Window* pParent, const SfxItemSet& rSet, SwWrtShell* pWrtSh, Printer* pPrt, bool bInsert); virtual ~SwEnvDlg() override; - virtual void dispose() override; }; class SwEnvPage : public SfxTabPage { - VclPtr<SwEnvDlg> m_pDialog; + SwEnvDlg* m_pDialog; SwWrtShell* m_pSh; OUString m_sActDBName; @@ -128,11 +126,6 @@ public: void FillItem(SwEnvItem& rItem); virtual bool FillItemSet(SfxItemSet* rSet) override; virtual void Reset(const SfxItemSet* rSet) override; - virtual void dispose() override - { - m_pDialog.clear(); - SfxTabPage::dispose(); - } }; #endif |