Kaydet (Commit) c26134c4 authored tarafından Caolán McNamara's avatar Caolán McNamara

merge SvxStandardDialog and SwMailMergeDlg

Change-Id: If4ee4e09f5549ef347c7e97b1c2e68b3971b8b19
Reviewed-on: https://gerrit.libreoffice.org/73284
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 2d815d9c
......@@ -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 )
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment