From 79657a39b47a515e35555c5174fa16db67a507d7 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 Reviewed-on: https://gerrit.libreoffice.org/80262 Tested-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 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(pArgs->Get(FN_PARAM_1)).GetValue(); } break; -- cgit v1.2.3