diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-09-25 10:12:14 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-09-25 10:40:47 +0200 |
commit | f5ba3098b4406ff8656f2710df8af6ca6edcddc8 (patch) | |
tree | 5eda9dfaf3ae4c2f9670036f9670ec2e0b5c2ac3 /sw | |
parent | 76034b4962027155a44b1c6aab665ac12fecf952 (diff) |
fdo#83465 writerfilter: import font of numbering
Change-Id: I0afe389fa6ea8b4c701232c6ecb425d5fdcde5fe
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/numbering-font.docx | bin | 0 -> 11014 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport.cxx | 7 |
2 files changed, 7 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/numbering-font.docx b/sw/qa/extras/ooxmlexport/data/numbering-font.docx Binary files differnew file mode 100644 index 000000000000..ccbbd9ed8d46 --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/numbering-font.docx diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx index af4e9dd304b4..0b2c78f6b700 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx @@ -283,6 +283,13 @@ DECLARE_OOXMLEXPORT_TEST(testPositionAndRotation, "position-and-rotation.docx") CPPUNIT_ASSERT(xShape->getPosition().Y < 100); } +DECLARE_OOXMLEXPORT_TEST(testNumberingFont, "numbering-font.docx") +{ + uno::Reference<beans::XPropertySet> xStyle(getStyles("CharacterStyles")->getByName("ListLabel 1"), uno::UNO_QUERY); + // This was Calibri, i.e. custom font of the numbering itself ("1.\t") was lost on import. + CPPUNIT_ASSERT_EQUAL(OUString("Verdana"), getProperty<OUString>(xStyle, "CharFontName")); +} + CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |