summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-05-31 16:57:12 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-06-02 15:29:33 +0200
commitc26134c4027dfac6be030c467da40a495a162360 (patch)
treeed401289a7418dd462e8d082d5779257d4b8d81a /sw
parent2d815d9cd5ea7bbae103e4e8b211b5d1858fff00 (diff)
merge SvxStandardDialog and SwMailMergeDlg
Change-Id: If4ee4e09f5549ef347c7e97b1c2e68b3971b8b19 Reviewed-on: https://gerrit.libreoffice.org/73284 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/envelp/mailmrge.cxx22
-rw-r--r--sw/source/uibase/inc/mailmrge.hxx14
2 files changed, 3 insertions, 33 deletions
diff --git a/sw/source/ui/envelp/mailmrge.cxx b/sw/source/ui/envelp/mailmrge.cxx
index 7072502c095c..6c3f91d59f4f 100644
--- a/sw/source/ui/envelp/mailmrge.cxx
+++ b/sw/source/ui/envelp/mailmrge.cxx
@@ -118,20 +118,6 @@ void SwXSelChgLstnr_Impl::disposing( const EventObject& )
OSL_FAIL("disposing");
}
-short SvxStandardDialog::Execute()
-{
- short nRet = ModalDialog::Execute();
-
- if ( RET_OK == nRet )
- Apply();
- return nRet;
-}
-
-SvxStandardDialog::SvxStandardDialog(vcl::Window *pParent, const OUString& rID, const OUString& rUIXMLDescription )
- : SfxModalDialog(pParent, rID, rUIXMLDescription)
-{
-}
-
SwMailMergeDlg::SwMailMergeDlg(vcl::Window* pParent, SwWrtShell& rShell,
const OUString& rSourceName,
const OUString& rTableName,
@@ -139,7 +125,7 @@ SwMailMergeDlg::SwMailMergeDlg(vcl::Window* pParent, SwWrtShell& rShell,
const uno::Reference< XConnection>& _xConnection,
Sequence< Any > const * pSelection) :
- SvxStandardDialog(pParent, "MailmergeDialog", "modules/swriter/ui/mailmerge.ui"),
+ SfxModalDialog(pParent, "MailmergeDialog", "modules/swriter/ui/mailmerge.ui"),
pImpl (new SwMailMergeDlg_Impl),
@@ -420,11 +406,7 @@ void SwMailMergeDlg::dispose()
m_pFormatRtfCB.clear();
m_pFormatSwCB.clear();
m_pOkBTN.clear();
- SvxStandardDialog::dispose();
-}
-
-void SwMailMergeDlg::Apply()
-{
+ SfxModalDialog::dispose();
}
IMPL_LINK( SwMailMergeDlg, ButtonHdl, Button *, pBtn, void )
diff --git a/sw/source/uibase/inc/mailmrge.hxx b/sw/source/uibase/inc/mailmrge.hxx
index 2930f9f908ba..fb8773a3a602 100644
--- a/sw/source/uibase/inc/mailmrge.hxx
+++ b/sw/source/uibase/inc/mailmrge.hxx
@@ -47,18 +47,7 @@ namespace com{namespace sun{namespace star{
}
}}}
-class SvxStandardDialog : public SfxModalDialog
-{
-public:
- SvxStandardDialog( vcl::Window* pParent, const OUString& rID, const OUString& rUIXMLDescription );
-
- short Execute() override;
-
-protected:
- virtual void Apply() = 0;
-};
-
-class SwMailMergeDlg : public SvxStandardDialog
+class SwMailMergeDlg : public SfxModalDialog
{
friend class SwXSelChgLstnr_Impl;
@@ -122,7 +111,6 @@ class SwMailMergeDlg : public SvxStandardDialog
DECL_LINK( ModifyHdl, Edit&, void );
DECL_LINK( SaveTypeHdl, Button*, void );
- virtual void Apply() override;
bool ExecQryShell();
bool AskUserFilename() const;
OUString GetURLfromPath() const;