diff options
Diffstat (limited to 'sc/qa/unit/subsequent_filters-test.cxx')
-rw-r--r-- | sc/qa/unit/subsequent_filters-test.cxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx index 2e876434ce49..0d6bc90761fb 100644 --- a/sc/qa/unit/subsequent_filters-test.cxx +++ b/sc/qa/unit/subsequent_filters-test.cxx @@ -232,6 +232,7 @@ public: void testPageScalingXLSX(); void testActiveXCheckboxXLSX(); + void testtdf120301_xmlSpaceParsingXLSX(); #ifdef UNX void testUnicodeFileNameGnumeric(); #endif @@ -364,6 +365,7 @@ public: CPPUNIT_TEST(testPageScalingXLSX); CPPUNIT_TEST(testActiveXCheckboxXLSX); + CPPUNIT_TEST(testtdf120301_xmlSpaceParsingXLSX); #ifdef UNX CPPUNIT_TEST(testUnicodeFileNameGnumeric); #endif @@ -4018,6 +4020,23 @@ void ScFiltersTest::testActiveXCheckboxXLSX() xDocSh->DoClose(); } +void ScFiltersTest::testtdf120301_xmlSpaceParsingXLSX() +{ + ScDocShellRef xDocSh = loadDoc("tdf120301_xmlSpaceParsing.", FORMAT_XLSX); + uno::Reference< frame::XModel > xModel = xDocSh->GetModel(); + uno::Reference< sheet::XSpreadsheetDocument > xDoc(xModel, UNO_QUERY_THROW); + uno::Reference< container::XIndexAccess > xIA(xDoc->getSheets(), UNO_QUERY_THROW); + uno::Reference< drawing::XDrawPageSupplier > xDrawPageSupplier( xIA->getByIndex(0), UNO_QUERY_THROW); + uno::Reference< container::XIndexAccess > xIA_DrawPage(xDrawPageSupplier->getDrawPage(), UNO_QUERY_THROW); + + uno::Reference< drawing::XControlShape > xControlShape(xIA_DrawPage->getByIndex(0), UNO_QUERY_THROW); + uno::Reference< beans::XPropertySet > XPropSet( xControlShape->getControl(), uno::UNO_QUERY_THROW ); + OUString sCaption; + XPropSet->getPropertyValue("Label") >>= sCaption; + CPPUNIT_ASSERT_EQUAL(OUString("Check Box 1"), sCaption); + xDocSh->DoClose(); +} + namespace { struct PaintListener : public SfxListener |