diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/unit/data/xml/styles.xml | 2 | ||||
-rw-r--r-- | sc/qa/unit/subsequent_filters-test.cxx | 18 |
2 files changed, 19 insertions, 1 deletions
diff --git a/sc/qa/unit/data/xml/styles.xml b/sc/qa/unit/data/xml/styles.xml index ef9c337ee766..b481219f5dd4 100644 --- a/sc/qa/unit/data/xml/styles.xml +++ b/sc/qa/unit/data/xml/styles.xml @@ -27,7 +27,7 @@ <style:style style:name="Name9" style:family="table-cell" style:parent-style-name="Default"> <style:text-properties style:text-line-through-style="solid" style:text-line-through-type="single" style:text-line-through-text="/"/> </style:style> - <style:style style:name="Name23" style:family="table-cell" style:parent-style-name="Text"> + <style:style style:name="Name10" style:family="table-cell" style:parent-style-name="Text"> <style:table-cell-properties style:vertical-align="middle"/> <style:paragraph-properties fo:text-align="start"/> </style:style> diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx index dc11d9baec49..25f9ea2af239 100644 --- a/sc/qa/unit/subsequent_filters-test.cxx +++ b/sc/qa/unit/subsequent_filters-test.cxx @@ -2864,6 +2864,24 @@ void ScFiltersTest::testOrcusODSStyleInterface() pCrossedOutItem = static_cast<const SvxCrossedOutItem*>(pItem); CPPUNIT_ASSERT_MESSAGE("Style Name9 :Error with Strikeout", pCrossedOutItem->GetStrikeout() == STRIKEOUT_SLASH); + /* Test for Style Name "10" + * Has ver align, and hor align + */ + /* + pStyleSheet = pStyleSheetPool->FindCaseIns("Name10", SfxStyleFamily::Para); + CPPUNIT_ASSERT_MESSAGE("Style Name10 : Doesn't have Attribute hor justify, but it should have.", + pStyleSheet->GetItemSet().HasItem(ATTR_HOR_JUSTIFY, &pItem)); + + const SvxHorJustifyItem* pHorJustify = static_cast<const SvxHorJustifyItem*>(pItem); + CPPUNIT_ASSERT_MESSAGE("Style Name10 :Error with hor justify", pHorJustify->GetValue() == SVX_HOR_JUSTIFY_RIGHT); + + pStyleSheet = pStyleSheetPool->FindCaseIns("Name10", SfxStyleFamily::Para); + CPPUNIT_ASSERT_MESSAGE("Style Name10 : Doesn't have Attribute ver justify, but it should have.", + pStyleSheet->GetItemSet().HasItem(ATTR_VER_JUSTIFY, &pItem)); + + const SvxVerJustifyItem* pVerJustify = static_cast<const SvxVerJustifyItem*>(pItem); + CPPUNIT_ASSERT_MESSAGE("Style Name10 :Error with ver justify", pVerJustify->GetValue() == SVX_VER_JUSTIFY_CENTER); + */ } #endif |