From f91775c00dfd50e89cfcbc280d90309a5d08d727 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 31 Oct 2013 17:05:57 +0100 Subject: writerfilter: implement BorderHandler::getInteropGrabBag() Change-Id: I86922585122898692dc4fb1fbbee11e1864dad29 --- sw/qa/extras/ooxmlexport/data/calendar2.docx | Bin 0 -> 9178 bytes sw/qa/extras/ooxmlexport/ooxmlexport.cxx | 14 ++++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 sw/qa/extras/ooxmlexport/data/calendar2.docx (limited to 'sw/qa') diff --git a/sw/qa/extras/ooxmlexport/data/calendar2.docx b/sw/qa/extras/ooxmlexport/data/calendar2.docx new file mode 100644 index 000000000000..e89222f895bc Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/calendar2.docx differ diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx index f63dd4af040a..86e50ad4f308 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx @@ -1323,6 +1323,20 @@ DECLARE_OOXML_TEST(testCalendar1, "calendar1.docx") assertXPath(pXmlStyles, "/w:styles/w:style[@w:styleId='Calendar1']/w:tblStylePr[@w:type='band2Horz']/w:tcPr/w:tcBorders/w:top", "themeColor", "text1"); } +DECLARE_OOXML_TEST(testCalendar2, "calendar2.docx") +{ + // This paragraph property was missing in table style. + xmlDocPtr pXmlStyles = parseExport("word/styles.xml"); + assertXPath(pXmlStyles, "/w:styles/w:style[@w:styleId='Calendar2']/w:pPr/w:jc", "val", "center"); + + // These run properties were missing + assertXPath(pXmlStyles, "/w:styles/w:style[@w:styleId='Calendar2']/w:rPr/w:lang", "val", "en-US"); + assertXPath(pXmlStyles, "/w:styles/w:style[@w:styleId='Calendar2']/w:rPr/w:lang", "bidi", "ar-SA"); + + // Table borders were also missing + assertXPath(pXmlStyles, "/w:styles/w:style[@w:styleId='Calendar2']/w:tblPr/w:tblBorders/w:insideV", "themeTint", "99"); +} + DECLARE_OOXML_TEST(testSmartart, "smartart.docx") { uno::Reference xTextDocument(mxComponent, uno::UNO_QUERY); -- cgit