diff options
author | Regényi Balázs <regenyi.balazs@nisz.hu> | 2020-09-21 15:20:25 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2020-09-29 12:25:07 +0200 |
commit | 61291a63c0f9a57064300e7afc8222b4ae4e155a (patch) | |
tree | d8624491491c70734bbab8110251a3d601cc964a /oox/source/shape | |
parent | dc6e005c79b6c23b805dea44cd89fa83ea945f03 (diff) |
tdf#80526 DOCX: import word-wrap textbox setting
See option "Word wrap text in shape" in Format->Text Box
and Shape->Text Attributes... of the selected textbox.
Co-authored-by: Szabolcs Toth
Change-Id: I7f2ca392089043c4bec20b943aa8c1975de72e5f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103109
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'oox/source/shape')
-rw-r--r-- | oox/source/shape/WpsContext.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/oox/source/shape/WpsContext.cxx b/oox/source/shape/WpsContext.cxx index 076fd1124307..cb47692d4c95 100644 --- a/oox/source/shape/WpsContext.cxx +++ b/oox/source/shape/WpsContext.cxx @@ -160,6 +160,11 @@ oox::core::ContextHandlerRef WpsContext::onCreateContext(sal_Int32 nElementToken xTextBoxPropertySet->setPropertyValue("CharColor", xCharColor); } } + + auto nWrappingType = rAttribs.getToken(XML_wrap, XML_square); + xPropertySet->setPropertyValue("TextWordWrap", + uno::makeAny(nWrappingType == XML_square)); + return this; } break; |