Kaydet (Commit) b766cab6 authored tarafından Tamás Zolnai's avatar Tamás Zolnai

tdf#108926: Notes placeholder text boxes not shown in PPTs

Regression from:
acb2943c

Call this placeholder related code not only for
normal slide pages.

Change-Id: Iae185ac7e5d2505554692045516cc51dbdcd735b
Reviewed-on: https://gerrit.libreoffice.org/41517Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarTamás Zolnai <tamas.zolnai@collabora.com>
üst 04e719ef
...@@ -171,6 +171,7 @@ public: ...@@ -171,6 +171,7 @@ public:
void testSmartArtRotation(); void testSmartArtRotation();
void testTdf109223(); void testTdf109223();
void testTdf109187(); void testTdf109187();
void testTdf108926();
bool checkPattern(sd::DrawDocShellRef const & rDocRef, int nShapeNumber, std::vector<sal_uInt8>& rExpected); bool checkPattern(sd::DrawDocShellRef const & rDocRef, int nShapeNumber, std::vector<sal_uInt8>& rExpected);
void testPatternImport(); void testPatternImport();
...@@ -250,6 +251,7 @@ public: ...@@ -250,6 +251,7 @@ public:
CPPUNIT_TEST(testSmartArtRotation); CPPUNIT_TEST(testSmartArtRotation);
CPPUNIT_TEST(testTdf109223); CPPUNIT_TEST(testTdf109223);
CPPUNIT_TEST(testTdf109187); CPPUNIT_TEST(testTdf109187);
CPPUNIT_TEST(testTdf108926);
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
}; };
...@@ -2431,6 +2433,23 @@ void SdImportTest::testTdf109187() ...@@ -2431,6 +2433,23 @@ void SdImportTest::testTdf109187()
xDocShRef->DoClose(); xDocShRef->DoClose();
} }
void SdImportTest::testTdf108926()
{
sd::DrawDocShellRef xDocShRef = loadURL(m_directories.getURLFromSrc("sd/qa/unit/data/pptx/tdf108926.ppt"), PPT);
uno::Reference< presentation::XPresentationPage > xPage (getPage(0, xDocShRef), uno::UNO_QUERY_THROW);
uno::Reference< drawing::XDrawPage > xNotesPage (xPage->getNotesPage(), uno::UNO_QUERY_THROW);
CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(2), xNotesPage->getCount());
// Second object should be imported as an empty presentation shape
uno::Reference< beans::XPropertySet > xPresentationShape(xNotesPage->getByIndex(1), uno::UNO_QUERY);
CPPUNIT_ASSERT(xPresentationShape.is());
bool bIsEmptyPresObject = false;
xPresentationShape->getPropertyValue( "IsEmptyPresentationObject" ) >>= bIsEmptyPresObject;
CPPUNIT_ASSERT(bIsEmptyPresObject);
xDocShRef->DoClose();
}
CPPUNIT_TEST_SUITE_REGISTRATION(SdImportTest); CPPUNIT_TEST_SUITE_REGISTRATION(SdImportTest);
CPPUNIT_PLUGIN_IMPLEMENT(); CPPUNIT_PLUGIN_IMPLEMENT();
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment