diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-01-22 11:17:02 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-01-22 11:30:13 +0100 |
commit | f2d1e5ef1cbae5959e818577bc6c94bed746dc90 (patch) | |
tree | 39bc9a498a4519784c877fd40978b6bb7df6351d /sw | |
parent | b65991145a07287f93b9738f4b9ab3ceca36402d (diff) |
VML import: parse shape text run inside w:smartTag
Change-Id: I26c2f9e3f5e560f22d3de0a7378c5cd7d0413184
Diffstat (limited to 'sw')
-rwxr-xr-x | sw/qa/extras/ooxmlimport/data/groupshape-smarttag.docx | bin | 0 -> 10694 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlimport/ooxmlimport.cxx | 7 |
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 Binary files differnew file mode 100755 index 000000000000..6fc1cb2e6936 --- /dev/null +++ b/sw/qa/extras/ooxmlimport/data/groupshape-smarttag.docx 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"); |