summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2019-05-23 15:23:25 +0200
committerJan Holesovsky <kendy@collabora.com>2019-10-09 10:35:08 +0200
commit79657a39b47a515e35555c5174fa16db67a507d7 (patch)
treefd1c5968b72164727484d3637441855bb2c4305c /sd
parent6235787feb0377a28d26e5764b78266af1e4dc90 (diff)
Add a parameter to insert a text box directly.
This is useful for the Online, where we want to insert the text box directly into the document so that it is visible right away. Change-Id: I09ab2efba758aac077fa37ddfd20b1486b35b3ef Reviewed-on: https://gerrit.libreoffice.org/72912 Tested-by: Jenkins Reviewed-by: Jan Holesovsky <kendy@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/80262 Tested-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/drviewse.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sd/source/ui/view/drviewse.cxx b/sd/source/ui/view/drviewse.cxx
index 233e627208fe..df63acc9e107 100644
--- a/sd/source/ui/view/drviewse.cxx
+++ b/sd/source/ui/view/drviewse.cxx
@@ -255,6 +255,10 @@ void DrawViewShell::FuPermanent(SfxRequest& rReq)
ImpAddPrintableCharactersToTextEdit(rReq, GetView());
rReq.Done();
+
+ const SfxItemSet* pArgs = rReq.GetArgs();
+ if (pArgs && pArgs->HasItem(FN_PARAM_1))
+ bCreateDirectly = static_cast<const SfxBoolItem&>(pArgs->Get(FN_PARAM_1)).GetValue();
}
break;