summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-03-22 11:23:31 +0100
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-04-13 08:08:15 +0200
commitca2fd526160b8f69524cdcf8c57f814b0ad48029 (patch)
tree6ddfd0ff48f3a3ec57ad93c994c44c171ec4cc2f /include
parent55e84652ae84bd2374462ee19afd359a8cc90b95 (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 'include')
-rw-r--r--include/svx/svxids.hrc3
-rw-r--r--include/vcl/abstdlg.hxx16
2 files changed, 18 insertions, 1 deletions
diff --git a/include/svx/svxids.hrc b/include/svx/svxids.hrc
index bd3e28f3b1b4..6c5ae5c13117 100644
--- a/include/svx/svxids.hrc
+++ b/include/svx/svxids.hrc
@@ -966,10 +966,11 @@ class SfxStringItem;
#define SID_INSERT_SIGNATURELINE ( SID_SVX_START + 1173 )
#define SID_EDIT_SIGNATURELINE ( SID_SVX_START + 1174 )
+#define SID_SIGN_SIGNATURELINE ( SID_SVX_START + 1175 )
// IMPORTANT NOTE: adjust SID_SVX_FIRSTFREE, when adding new slot id
-#define SID_SVX_FIRSTFREE ( SID_EDIT_SIGNATURELINE + 1 )
+#define SID_SVX_FIRSTFREE ( SID_SIGN_SIGNATURELINE + 1 )
// Overflow check for slot IDs
#if SID_SVX_FIRSTFREE > SID_SVX_END
diff --git a/include/vcl/abstdlg.hxx b/include/vcl/abstdlg.hxx
index 29eeaaf71147..9ae88a3bdebd 100644
--- a/include/vcl/abstdlg.hxx
+++ b/include/vcl/abstdlg.hxx
@@ -19,6 +19,7 @@
#ifndef INCLUDED_VCL_ABSTDLG_HXX
#define INCLUDED_VCL_ABSTDLG_HXX
+#include <sal/types.h>
#include <rtl/ustring.hxx>
#include <tools/link.hxx>
#include <vcl/dllapi.h>
@@ -28,6 +29,9 @@
#include <functional>
#include <memory>
+#include <com/sun/star/uno/Reference.hxx>
+#include <com/sun/star/frame/XModel.hpp>
+
namespace vcl { class Window; }
class Dialog;
class Bitmap;
@@ -115,6 +119,12 @@ protected:
virtual ~AbstractScreenshotAnnotationDlg() override = default;
};
+class VCL_DLLPUBLIC AbstractSignSignatureLineDialog : public VclAbstractDialog
+{
+protected:
+ virtual ~AbstractSignSignatureLineDialog() override = default;
+};
+
class VCL_DLLPUBLIC VclAbstractDialogFactory
{
public:
@@ -126,6 +136,12 @@ public:
// creates instance of PasswordToOpenModifyDialog from cui
virtual VclPtr<AbstractPasswordToOpenModifyDialog> CreatePasswordToOpenModifyDialog(weld::Window * pParent, sal_uInt16 nMaxPasswdLen, bool bIsPasswordToModify) = 0;
+ // creates instance of SignSignatureDialog from cui
+ virtual VclPtr<AbstractSignSignatureLineDialog>
+ CreateSignSignatureLineDialog(weld::Window* pParent,
+ const css::uno::Reference<css::frame::XModel> xModel)
+ = 0;
+
// creates instance of ScreenshotAnnotationDlg from cui
virtual VclPtr<AbstractScreenshotAnnotationDlg> CreateScreenshotAnnotationDlg(
vcl::Window* pParent,