summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorShubham Goyal <22shubh22@gmail.com>2019-07-24 10:31:04 +0530
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-08-01 22:32:11 +0200
commit02d16928bcd1eb2b6dfd7524ea9af591c0f5f2e0 (patch)
treedc92a0b8b4e940e8224a6ccef9ee37b4b29a328e /include
parent8fe5161a9e36d8285c489da7167d7cca27cb0f1d (diff)
Make QR Code callable in calc and writer
Change-Id: I73793100478c34a7721821cec1f8ccec0174d20c Reviewed-on: https://gerrit.libreoffice.org/74598 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'include')
-rw-r--r--include/svx/svxids.hrc5
-rw-r--r--include/vcl/abstdlg.hxx13
2 files changed, 17 insertions, 1 deletions
diff --git a/include/svx/svxids.hrc b/include/svx/svxids.hrc
index bbca92682819..d430f6de692f 100644
--- a/include/svx/svxids.hrc
+++ b/include/svx/svxids.hrc
@@ -982,8 +982,11 @@ class SvxSetItem;
#define SID_TOGGLE_RESOLVED_NOTES ( SID_SVX_START + 1190 )
+#define SID_INSERT_QRCODE ( SID_SVX_START + 1191 )
+#define SID_EDIT_QRCODE ( SID_SVX_START + 1192 )
+
// IMPORTANT NOTE: adjust SID_SVX_FIRSTFREE, when adding new slot id
-#define SID_SVX_FIRSTFREE ( SID_SVX_START + 1190 + 1 )
+#define SID_SVX_FIRSTFREE ( SID_SVX_START + 1192 + 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 b4b839c71fe4..365a8f6e04ed 100644
--- a/include/vcl/abstdlg.hxx
+++ b/include/vcl/abstdlg.hxx
@@ -119,6 +119,12 @@ protected:
virtual ~AbstractSignSignatureLineDialog() override = default;
};
+class VCL_DLLPUBLIC AbstractQrCodeGenDialog : public VclAbstractDialog
+{
+protected:
+ virtual ~AbstractQrCodeGenDialog() override = default;
+};
+
class VCL_DLLPUBLIC AbstractTipOfTheDayDialog : public VclAbstractDialog
{
protected:
@@ -149,6 +155,13 @@ public:
const css::uno::Reference<css::frame::XModel> xModel)
= 0;
+ // creates instance of QrCodeDialog from cui
+ virtual VclPtr<AbstractQrCodeGenDialog>
+ CreateQrCodeGenDialog(weld::Window* pParent,
+ const css::uno::Reference<css::frame::XModel> xModel,
+ bool bEditExisting)
+ = 0;
+
// creates instance of ScreenshotAnnotationDlg from cui
virtual VclPtr<AbstractScreenshotAnnotationDlg> CreateScreenshotAnnotationDlg(
vcl::Window* pParent,