diff options
Diffstat (limited to 'sd/source/ui/view/drviews2.cxx')
-rw-r--r-- | sd/source/ui/view/drviews2.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx index e81ff4b62bce..6902cba6d812 100644 --- a/sd/source/ui/view/drviews2.cxx +++ b/sd/source/ui/view/drviews2.cxx @@ -100,6 +100,7 @@ #include <unotools/useroptions.hxx> +#include <vcl/abstdlg.hxx> #include <vcl/graph.hxx> #include <vcl/svapp.hxx> #include <vcl/unohelp2.hxx> @@ -119,6 +120,7 @@ #include <svx/xtable.hxx> #include <svx/svdobj.hxx> #include <svx/SvxColorChildWindow.hxx> +#include <svx/svxids.hrc> #include <editeng/outlobj.hxx> #include <editeng/flstitem.hxx> #include <editeng/scripttypeitem.hxx> @@ -3404,6 +3406,19 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) } break; + case SID_INSERT_QRCODE: + case SID_EDIT_QRCODE: + { + VclAbstractDialogFactory* pFact = VclAbstractDialogFactory::Create(); + const uno::Reference<frame::XModel> xModel = GetViewShellBase().GetController()->getModel(); + ScopedVclPtr<AbstractQrCodeGenDialog> pDlg(pFact->CreateQrCodeGenDialog( + GetFrameWeld(), xModel, rReq.GetSlot() == SID_EDIT_QRCODE)); + pDlg->Execute(); + Cancel(); + rReq.Ignore (); + } + break; + default: { SAL_WARN( "sd.ui", "Slot without function" ); |