summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/drviews2.cxx
diff options
context:
space:
mode:
authorYusuf Keten <ketenyusuf@gmail.com>2020-07-19 20:22:23 +0300
committerMuhammet Kara <muhammet.kara@collabora.com>2020-07-21 22:25:13 +0200
commit6e50e03262aa12921f108b502d3c76ce983d54f1 (patch)
treef39f736608778299607de1ab259c146cdeba6302 /sd/source/ui/view/drviews2.cxx
parent0587c88e23b4d3d1a0504cd4c6cf1d51fa9ff498 (diff)
tdf#133026: Additions - Parameter support to UNO Command
After this patch, parameter support to uno command(.uno:AdditionsDialog) will be available. To use parameter, add "?AdditionsTag:string=YourParameter" to UNO command. Parameters are the tags of extensions on webpage. Change-Id: I0072c7340bda14ee13c21c347e06a04545cba69a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99007 Tested-by: Jenkins Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Diffstat (limited to 'sd/source/ui/view/drviews2.cxx')
-rw-r--r--sd/source/ui/view/drviews2.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx
index 322829ac152a..8bd95fb43ce8 100644
--- a/sd/source/ui/view/drviews2.cxx
+++ b/sd/source/ui/view/drviews2.cxx
@@ -3492,9 +3492,15 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq)
case SID_ADDITIONS_DIALOG:
{
+ OUString sAdditionsTag = "";
+
+ const SfxStringItem* pStringArg = rReq.GetArg<SfxStringItem>(SID_ADDITIONS_TAG);
+ if (pStringArg)
+ sAdditionsTag = pStringArg->GetValue();
+
VclAbstractDialogFactory* pFact = VclAbstractDialogFactory::Create();
ScopedVclPtr<AbstractAdditionsDialog> pDlg(
- pFact->CreateAdditionsDialog(GetFrameWeld()));
+ pFact->CreateAdditionsDialog(GetFrameWeld(), sAdditionsTag));
pDlg->Execute();
Cancel();
rReq.Ignore ();