sd/source/ui/view/drviewse.cxx | 4 ++++ svx/sdi/svx.sdi | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-)
New commits: commit 935f6199d030fb77ce799c5193ad3d8a927bc3cf Author: Jan Holesovsky <ke...@collabora.com> AuthorDate: Thu May 23 15:23:25 2019 +0200 Commit: Jan Holesovsky <ke...@collabora.com> CommitDate: Fri May 24 23:26:25 2019 +0200 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 <ke...@collabora.com> 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; diff --git a/svx/sdi/svx.sdi b/svx/sdi/svx.sdi index 62f7fc78f857..3c63477df04e 100644 --- a/svx/sdi/svx.sdi +++ b/svx/sdi/svx.sdi @@ -8295,7 +8295,7 @@ SfxBoolItem TestMode SID_DIALOG_TESTMODE SfxBoolItem Text SID_ATTR_CHAR - +(SfxBoolItem CreateDirectly FN_PARAM_1) [ AutoUpdate = TRUE, FastCall = FALSE, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits