diff options
author | Jan Holesovsky <kendy@collabora.com> | 2019-05-23 15:23:25 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2019-05-24 23:26:25 +0200 |
commit | 935f6199d030fb77ce799c5193ad3d8a927bc3cf (patch) | |
tree | b88f1225f3f54d34dc1138d8a6532ea55b1a8291 /sd | |
parent | af67aeff0e76c1130401685824a6a2d9216e8abe (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>
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 d00f125a23eb..0c9ee3867fec 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; |