[Libreoffice-commits] core.git: sd/source svx/sdi
Jan Holesovsky (via logerrit)
logerrit at kemper.freedesktop.org
Fri May 24 21:27:43 UTC 2019
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 <kendy at collabora.com>
AuthorDate: Thu May 23 15:23:25 2019 +0200
Commit: Jan Holesovsky <kendy at 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 <kendy at 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,
More information about the Libreoffice-commits
mailing list