From a61ca650e21de3bd896bc6f9abce1481425fb29a Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 28 Jan 2016 13:31:52 +0100 Subject: sw: add AnchorType parameter to .uno:Paste Which allows not hardcoding as-char for LOK. (cherry picked from commit 552361aaad740e55fcfa7993b4111aba354f863f) Change-Id: I3b2987abbaf1f259c614b7b2a8709f15048d362d --- desktop/source/lib/init.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'desktop/source') diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 7d078a30126c..410081b3d611 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -33,6 +33,7 @@ #include #include #include +#include #include #include @@ -50,6 +51,7 @@ #include #include #include +#include #include #include @@ -1330,7 +1332,10 @@ static bool doc_paste(LibreOfficeKitDocument* pThis, const char* pMimeType, cons return false; } - uno::Sequence aPropertyValues; + uno::Sequence aPropertyValues(comphelper::InitPropertySequence( + { + {"AnchorType", uno::makeAny(static_cast(text::TextContentAnchorType_AS_CHARACTER))}, + })); if (!comphelper::dispatchCommand(".uno:Paste", aPropertyValues)) { gImpl->maLastExceptionMsg = "Failed to dispatch the .uno: command"; -- cgit