diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-12-19 22:35:38 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-12-19 22:45:56 +0100 |
commit | bee957fc48867aa1b98b8672b02a187a461f4e38 (patch) | |
tree | 6368b1d84059370710125e1956d7ad0553fa2c2c /sw/qa/extras | |
parent | 54b6b5ddaf6b36717eeb44d8dc6f3957056a1938 (diff) |
fdo#57881 sw: make UseOnPage independent from SvxPageUsage
UseOnPage got changed in commit
fa0f42bafbf24e9141ddee728b160b5ab47077f2, but SvxPageUsage got
unchanged. Given that right now other applications don't support first
page headers / footers, leave SvxPageUsage unchanged and provide
conversion methods between the two types.
Diffstat (limited to 'sw/qa/extras')
-rw-r--r-- | sw/qa/extras/odfimport/odfimport.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sw/qa/extras/odfimport/odfimport.cxx b/sw/qa/extras/odfimport/odfimport.cxx index 78531b439c91..885413c8623d 100644 --- a/sw/qa/extras/odfimport/odfimport.cxx +++ b/sw/qa/extras/odfimport/odfimport.cxx @@ -40,6 +40,7 @@ public: void testEmptySvgFamilyName(); void testHideAllSections(); void testOdtBorders(); + void testPageStyleLayoutDefault(); void testPageStyleLayoutRight(); CPPUNIT_TEST_SUITE(Test); @@ -58,6 +59,7 @@ void Test::run() {"empty-svg-family-name.odt", &Test::testEmptySvgFamilyName}, {"fdo53210.odt", &Test::testHideAllSections}, {"borders_ooo33.odt", &Test::testOdtBorders}, + {"hello.odt", &Test::testPageStyleLayoutDefault}, {"hello.odt", &Test::testPageStyleLayoutRight}, }; for (unsigned int i = 0; i < SAL_N_ELEMENTS(aMethods); ++i) @@ -273,6 +275,13 @@ void Test::testOdtBorders() } while(xParaEnum->hasMoreElements()); } +void Test::testPageStyleLayoutDefault() +{ + uno::Reference<beans::XPropertySet> xPropertySet(getStyles("PageStyles")->getByName("Default Style"), uno::UNO_QUERY); + // This was style::PageStyleLayout_MIRRORED. + CPPUNIT_ASSERT_EQUAL(style::PageStyleLayout_ALL, getProperty<style::PageStyleLayout>(xPropertySet, "PageStyleLayout")); +} + void Test::testPageStyleLayoutRight() { uno::Reference<beans::XPropertySet> xPropertySet(getStyles("PageStyles")->getByName("Default Style"), uno::UNO_QUERY); |