summaryrefslogtreecommitdiff
path: root/sw/qa/extras/ooxmlimport
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-01-22 11:17:02 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-01-22 11:30:13 +0100
commitf2d1e5ef1cbae5959e818577bc6c94bed746dc90 (patch)
tree39bc9a498a4519784c877fd40978b6bb7df6351d /sw/qa/extras/ooxmlimport
parentb65991145a07287f93b9738f4b9ab3ceca36402d (diff)
VML import: parse shape text run inside w:smartTag
Change-Id: I26c2f9e3f5e560f22d3de0a7378c5cd7d0413184
Diffstat (limited to 'sw/qa/extras/ooxmlimport')
-rwxr-xr-xsw/qa/extras/ooxmlimport/data/groupshape-smarttag.docxbin0 -> 10694 bytes
-rw-r--r--sw/qa/extras/ooxmlimport/ooxmlimport.cxx7
2 files changed, 7 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlimport/data/groupshape-smarttag.docx b/sw/qa/extras/ooxmlimport/data/groupshape-smarttag.docx
new file mode 100755
index 000000000000..6fc1cb2e6936
--- /dev/null
+++ b/sw/qa/extras/ooxmlimport/data/groupshape-smarttag.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index cde673b7bdaf..bf1725782b06 100644
--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
@@ -981,6 +981,13 @@ DECLARE_OOXMLIMPORT_TEST(testGroupshapeChildRotation, "groupshape-child-rotation
CPPUNIT_ASSERT_EQUAL(OUString("com.sun.star.drawing.TextShape"), xShapeDescriptor->getShapeType());
}
+DECLARE_OOXMLIMPORT_TEST(testGroupshapeSmarttag, "groupshape-smarttag.docx")
+{
+ uno::Reference<drawing::XShapes> xGroupShape(getShape(1), uno::UNO_QUERY);
+ // First run of shape text was missing due to the w:smartTag wrapper around it.
+ CPPUNIT_ASSERT_EQUAL(OUString("Box 2"), uno::Reference<text::XTextRange>(xGroupShape->getByIndex(0), uno::UNO_QUERY)->getString());
+}
+
DECLARE_OOXMLIMPORT_TEST(testN793262, "n793262.docx")
{
uno::Reference<container::XEnumerationAccess> xHeaderText = getProperty< uno::Reference<container::XEnumerationAccess> >(getStyles("PageStyles")->getByName(DEFAULT_STYLE), "HeaderText");