summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorumeshkadam <umesh.kadam@synerzip.com>2014-04-18 13:12:53 +0530
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-04-22 12:09:40 +0200
commit255194801e9eb8e3aaede56837450af35f8313e0 (patch)
treeaa423243a383fc9236c0229ef87d468ac98dddf2 /sw/qa
parentf12237c4c6239428b00dd4885a25bbc3b4f14368 (diff)
fod#77122 DOCX filter: link between textboxes is not being preserved
Added support for linked textboxes for docx interoperability. Reviewed on: https://gerrit.libreoffice.org/9092 Change-Id: I7db4f5a1783afff53c64908d182788b262f5e863
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/extras/ooxmlexport/data/LinkedTextBoxes.docxbin0 -> 63185 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport.cxx10
2 files changed, 10 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/LinkedTextBoxes.docx b/sw/qa/extras/ooxmlexport/data/LinkedTextBoxes.docx
new file mode 100644
index 000000000000..1c953c272848
--- /dev/null
+++ b/sw/qa/extras/ooxmlexport/data/LinkedTextBoxes.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
index a7ad9b7ef41b..00122ea7b3be 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
@@ -3087,6 +3087,16 @@ DECLARE_OOXMLEXPORT_TEST(testAuthorPropertySdt, "author-property.docx")
// "xmlns:ns0='http://purl.org/dc/elements/1.1/' xmlns:ns1='http://schemas.openxmlformats.org/package/2006/metadata/core-properties'");
}
+DECLARE_OOXMLEXPORT_TEST(testFDO77122, "LinkedTextBoxes.docx")
+{
+ xmlDocPtr pXmlDoc = parseExport("word/document.xml");
+ if (!pXmlDoc)
+ return;
+ //ensure that the text box links are preserved.
+ assertXPath(pXmlDoc, "/w:document/w:body/w:p/w:r[2]/mc:AlternateContent/mc:Choice/w:drawing/wp:anchor/a:graphic/a:graphicData[1]/wps:wsp[1]/wps:txbx[1]", "id", "1");
+ assertXPath(pXmlDoc, "/w:document[1]/w:body[1]/w:p[1]/w:r[3]/mc:AlternateContent[1]/mc:Choice[1]/w:drawing[1]/wp:anchor[1]/a:graphic[1]/a:graphicData[1]/wps:wsp[1]/wps:linkedTxbx[1]", "id", "1");
+}
+
DECLARE_OOXMLEXPORT_TEST(testFDO76586, "fdo76586.docx")
{
/*