From 02d16928bcd1eb2b6dfd7524ea9af591c0f5f2e0 Mon Sep 17 00:00:00 2001 From: Shubham Goyal <22shubh22@gmail.com> Date: Wed, 24 Jul 2019 10:31:04 +0530 Subject: 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 --- include/svx/svxids.hrc | 5 ++++- include/vcl/abstdlg.hxx | 13 +++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) (limited to 'include') 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 xModel) = 0; + // creates instance of QrCodeDialog from cui + virtual VclPtr + CreateQrCodeGenDialog(weld::Window* pParent, + const css::uno::Reference xModel, + bool bEditExisting) + = 0; + // creates instance of ScreenshotAnnotationDlg from cui virtual VclPtr CreateScreenshotAnnotationDlg( vcl::Window* pParent, -- cgit