From 935f6199d030fb77ce799c5193ad3d8a927bc3cf Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Thu, 23 May 2019 15:23:25 +0200 Subject: 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 --- sd/source/ui/view/drviewse.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sd') 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(pArgs->Get(FN_PARAM_1)).GetValue(); } break; -- cgit