fdo#79738: Test case for patch that fixes 79738

Reviewed on:
	https://gerrit.libreoffice.org/13541

Change-Id: I40ba14503ad9f5458d8326741a4fe7a13653b05a
This commit is contained in:
Charu Tyagi
2014-12-19 13:56:26 +05:30
committed by Miklos Vajna
parent e1c45f55cd
commit 799e07f02d

View File

@@ -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")
{