summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-09-25 10:12:14 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-09-25 10:40:47 +0200
commitf5ba3098b4406ff8656f2710df8af6ca6edcddc8 (patch)
tree5eda9dfaf3ae4c2f9670036f9670ec2e0b5c2ac3 /sw
parent76034b4962027155a44b1c6aab665ac12fecf952 (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.docxbin0 -> 11014 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport.cxx7
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
new file mode 100644
index 000000000000..ccbbd9ed8d46
--- /dev/null
+++ b/sw/qa/extras/ooxmlexport/data/numbering-font.docx
Binary files differ
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: */