diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-03-20 11:36:00 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-03-22 16:06:41 +0100 |
commit | 5b348b1a8ca3c5ba1049aacba1ac2e3c43ed26b7 (patch) | |
tree | 2e9b28dd1d7c803fe30684d8138603281bae53a0 /sw/source/uibase/uiview/viewdlg2.cxx | |
parent | 178715e7ca365de98bcd3656b9ce0bfce5aa95e7 (diff) |
tdf#83877 Move SignatureLineDialog to svx
To prepare using from Calc
Change-Id: I102ecf2c956922dd1458c99bd7cd7be30f6f5ec4
Reviewed-on: https://gerrit.libreoffice.org/51726
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sw/source/uibase/uiview/viewdlg2.cxx')
-rw-r--r-- | sw/source/uibase/uiview/viewdlg2.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sw/source/uibase/uiview/viewdlg2.cxx b/sw/source/uibase/uiview/viewdlg2.cxx index 35a1409dd78b..554555c5b0fb 100644 --- a/sw/source/uibase/uiview/viewdlg2.cxx +++ b/sw/source/uibase/uiview/viewdlg2.cxx @@ -21,6 +21,7 @@ #include <sfx2/viewfrm.hxx> #include <sfx2/objface.hxx> #include <svx/svdograf.hxx> +#include <svx/SignatureLineDialog.hxx> #include <fldmgr.hxx> #include <expfld.hxx> #include <modcfg.hxx> @@ -42,6 +43,8 @@ #include <memory> +using namespace css; + void SwView::ExecDlgExt(SfxRequest const &rReq) { vcl::Window& rMDI = GetViewFrame()->GetWindow(); @@ -61,14 +64,17 @@ void SwView::ExecDlgExt(SfxRequest const &rReq) } break; } - case FN_INSERT_SIGNATURELINE: - case FN_EDIT_SIGNATURELINE: + case SID_INSERT_SIGNATURELINE: + case SID_EDIT_SIGNATURELINE: { SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create(); assert(pFact && "SwAbstractDialogFactory fail!"); - ScopedVclPtr<VclAbstractDialog> pDialog(pFact->CreateSignatureLineDialog(*this)); + const uno::Reference<frame::XModel> xModel(GetCurrentDocument()); + ScopedVclPtr<VclAbstractDialog> pDialog( + pFact->CreateSignatureLineDialog(*this, xModel, rReq.GetSlot() == SID_EDIT_SIGNATURELINE)); assert(pDialog && "Dialog creation failed!"); + if (pDialog) pDialog->Execute(); break; |