diff options
author | Charu Tyagi <charu.tyagi@ericsson.com> | 2014-12-19 13:56:26 +0530 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-01-04 11:50:37 +0100 |
commit | 799e07f02dbca97f4dd9cff5b779392b13b9021c (patch) | |
tree | 774575e1a910485d5c1468b07a4977bc9f84b66a | |
parent | e1c45f55cde70d71154fa12b2449b20a256d3a26 (diff) |
fdo#79738: Test case for patch that fixes 79738
Reviewed on:
https://gerrit.libreoffice.org/13541
Change-Id: I40ba14503ad9f5458d8326741a4fe7a13653b05a
-rw-r--r-- | sw/qa/extras/ooxmlimport/ooxmlimport.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx index a9f0d2422f0b..5bec69cf1f28 100644 --- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx +++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx @@ -242,6 +242,17 @@ DECLARE_OOXMLIMPORT_TEST(testFdo81486, "fdo81486.docx") CPPUNIT_ASSERT_EQUAL(text->getString(),OUString("CustomTitle")); } +DECLARE_OOXMLIMPORT_TEST(testFdo79738, "fdo79738.docx") +{ + uno::Reference< style::XStyleFamiliesSupplier > xStylesSupplier( mxComponent, uno::UNO_QUERY_THROW ); + uno::Reference< container::XNameAccess > xStyleFamilies = xStylesSupplier->getStyleFamilies(); + uno::Reference<container::XNameContainer> xStyles; + xStyleFamilies->getByName("ParagraphStyles") >>= xStyles; + uno::Reference<beans::XPropertySet> xPropertySetHeader( xStyles->getByName("Header"), uno::UNO_QUERY ); + CPPUNIT_ASSERT_EQUAL(false, xPropertySetHeader->getPropertyValue("ParaLineNumberCount").get<bool>()); + uno::Reference<beans::XPropertySet> xPropertySetFooter( xStyles->getByName("Footer"), uno::UNO_QUERY ); + CPPUNIT_ASSERT_EQUAL(false, xPropertySetFooter->getPropertyValue("ParaLineNumberCount").get<bool>()); +} DECLARE_OOXMLIMPORT_TEST(testN751077, "n751077.docx") { |