diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-03-22 11:23:31 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-04-13 08:08:15 +0200 |
commit | ca2fd526160b8f69524cdcf8c57f814b0ad48029 (patch) | |
tree | 6ddfd0ff48f3a3ec57ad93c994c44c171ec4cc2f /sw | |
parent | 55e84652ae84bd2374462ee19afd359a8cc90b95 (diff) |
tdf#83877 Add dialog to sign signature lines
actual signing still missing
Change-Id: I41f013a2867f923155203dcee58ff453a43fa7c2
Reviewed-on: https://gerrit.libreoffice.org/51735
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/sdi/viewsh.sdi | 6 | ||||
-rw-r--r-- | sw/source/uibase/uiview/viewdlg2.cxx | 14 | ||||
-rw-r--r-- | sw/source/uibase/uiview/viewstat.cxx | 1 | ||||
-rw-r--r-- | sw/uiconfig/swriter/popupmenu/draw.xml | 1 |
4 files changed, 22 insertions, 0 deletions
diff --git a/sw/sdi/viewsh.sdi b/sw/sdi/viewsh.sdi index f0c2a5b2ce3a..9980f21153cd 100644 --- a/sw/sdi/viewsh.sdi +++ b/sw/sdi/viewsh.sdi @@ -48,6 +48,12 @@ interface TextEditView : BaseTextEditView StateMethod = GetState ; DisableFlags="SfxDisableFlags::SwOnProtectedCursor"; ] + SID_SIGN_SIGNATURELINE // status() + [ + ExecMethod = ExecDlgExt ; + StateMethod = GetState ; + DisableFlags="SfxDisableFlags::SwOnProtectedCursor"; + ] FN_EDIT_FOOTNOTE // status(final|play) [ ExecMethod = ExecDlgExt ; diff --git a/sw/source/uibase/uiview/viewdlg2.cxx b/sw/source/uibase/uiview/viewdlg2.cxx index 554555c5b0fb..f0766d4f0f58 100644 --- a/sw/source/uibase/uiview/viewdlg2.cxx +++ b/sw/source/uibase/uiview/viewdlg2.cxx @@ -79,6 +79,20 @@ void SwView::ExecDlgExt(SfxRequest const &rReq) pDialog->Execute(); break; } + case SID_SIGN_SIGNATURELINE: + { + VclAbstractDialogFactory* pFact = VclAbstractDialogFactory::Create(); + assert(pFact && "VclAbstractDialogFactory fail!"); + + const uno::Reference<frame::XModel> xModel(GetCurrentDocument()); + VclPtr<AbstractSignSignatureLineDialog> pDialog + = pFact->CreateSignSignatureLineDialog(GetFrameWeld(), xModel); + assert(pDialog && "Dialog creation failed!"); + + if (pDialog) + pDialog->Execute(); + break; + } case FN_EDIT_FOOTNOTE: { SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create(); diff --git a/sw/source/uibase/uiview/viewstat.cxx b/sw/source/uibase/uiview/viewstat.cxx index d194793aa089..6a7723cc33e4 100644 --- a/sw/source/uibase/uiview/viewstat.cxx +++ b/sw/source/uibase/uiview/viewstat.cxx @@ -104,6 +104,7 @@ void SwView::GetState(SfxItemSet &rSet) } break; case SID_EDIT_SIGNATURELINE: + case SID_SIGN_SIGNATURELINE: if (!isSignatureLineSelected()) rSet.DisableItem(nWhich); break; diff --git a/sw/uiconfig/swriter/popupmenu/draw.xml b/sw/uiconfig/swriter/popupmenu/draw.xml index f9920588aa03..ae0337da30ec 100644 --- a/sw/uiconfig/swriter/popupmenu/draw.xml +++ b/sw/uiconfig/swriter/popupmenu/draw.xml @@ -69,4 +69,5 @@ <menu:menuitem menu:id=".uno:AddTextBox"/> <menu:menuitem menu:id=".uno:RemoveTextBox"/> <menu:menuitem menu:id=".uno:EditSignatureLine"/> + <menu:menuitem menu:id=".uno:SignSignatureLine"/> </menu:menupopup> |