diff options
author | Jan Holesovsky <kendy@collabora.com> | 2019-05-23 15:23:25 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-05-24 17:52:33 +0200 |
commit | 34807c652e9367fda26b8f66207ef448e024ca69 (patch) | |
tree | fe95b2d16105a2d4f16bac3123865e55b8159a2c /sd | |
parent | 8a37f1ef63640de5d2dcb0e038d54117dfdb1067 (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/72911
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/drviewse.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sd/source/ui/view/drviewse.cxx b/sd/source/ui/view/drviewse.cxx index 93c3b0f9cb16..332e7abaefcb 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; |