From a6fe1a5b2806b40edf0d06c8543d35abe5249412 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Mon, 25 Nov 2013 11:55:57 +0100 Subject: DOCX import: handle NS_sprm::LN_CFSmallCaps == 0 after NS_sprm::LN_CFCaps "caps and no smallcaps" means style::CaseMap::UPPERCASE, not style::CaseMap::NONE. Different XML elements in DOCX, single UNO property. Change-Id: I8cbc719f2c307d5d2cbd4af93ea61e35b640ad1d --- sw/qa/extras/ooxmlexport/ooxmlexport.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sw') diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx index 06bedcc53690..78b1256823be 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -1389,6 +1390,11 @@ DECLARE_OOXMLEXPORT_TEST(testCalendar1, "calendar1.docx") DECLARE_OOXMLEXPORT_TEST(testCalendar2, "calendar2.docx") { + // Problem was that CharCaseMap was style::CaseMap::NONE. + uno::Reference xTable(getParagraphOrTable(1), uno::UNO_QUERY); + uno::Reference xCell(xTable->getCellByName("A1"), uno::UNO_QUERY); + CPPUNIT_ASSERT_EQUAL(style::CaseMap::UPPERCASE, getProperty(getRun(getParagraphOfText(1, xCell->getText()), 1), "CharCaseMap")); + // This paragraph property was missing in table style. xmlDocPtr pXmlStyles = parseExport("word/styles.xml"); if (!pXmlStyles) -- cgit