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 /sw | |
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 'sw')
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/tdf80526_word_wrap.docx | bin | 0 -> 15114 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport12.cxx | 10 |
2 files changed, 10 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf80526_word_wrap.docx b/sw/qa/extras/ooxmlexport/data/tdf80526_word_wrap.docx Binary files differnew file mode 100644 index 000000000000..abf5ee5ed2c8 --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/tdf80526_word_wrap.docx diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport12.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport12.cxx index 682343c782af..f1934775b1c1 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport12.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport12.cxx @@ -1086,6 +1086,16 @@ DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testTdf131420, "tdf131420.docx") assertXPath(pXmlDocument, "/w:document/w:body/w:p/w:pPr/w:pBdr[2]"); } +DECLARE_OOXMLEXPORT_TEST(testTdf80526_word_wrap, "tdf80526_word_wrap.docx") +{ + // tdf#80526: check whether the "wrap" property has been set + // TODO: fix export too + if (mbExported) + return; + uno::Reference<drawing::XShape> xShape = getShape(1); + CPPUNIT_ASSERT_EQUAL(false, getProperty<bool>(xShape, "TextWordWrap")); +} + CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |