diff options
Diffstat (limited to 'sd/qa/filter/eppt/eppt.cxx')
-rw-r--r-- | sd/qa/filter/eppt/eppt.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sd/qa/filter/eppt/eppt.cxx b/sd/qa/filter/eppt/eppt.cxx index 738539c5eff7..6c73ccec5c2b 100644 --- a/sd/qa/filter/eppt/eppt.cxx +++ b/sd/qa/filter/eppt/eppt.cxx @@ -16,6 +16,7 @@ #include <test/xmldocptr.hxx> #include <docmodel/uno/UnoTheme.hxx> +#include <docmodel/theme/Theme.hxx> using namespace ::com::sun::star; @@ -61,7 +62,7 @@ CPPUNIT_TEST_FIXTURE(Test, testThemeExport) xDrawPagesSupplier->getDrawPages()->getByIndex(0), uno::UNO_QUERY); uno::Reference<beans::XPropertySet> xMasterPage(xDrawPage->getMasterPage(), uno::UNO_QUERY); - model::Theme aTheme("mytheme"); + auto pTheme = std::make_shared<model::Theme>("mytheme"); std::unique_ptr<model::ColorSet> pColorSet(new model::ColorSet("mycolorscheme")); pColorSet->add(model::ThemeColorType::Dark1, 0x1); pColorSet->add(model::ThemeColorType::Light1, 0x2); @@ -75,9 +76,9 @@ CPPUNIT_TEST_FIXTURE(Test, testThemeExport) pColorSet->add(model::ThemeColorType::Accent6, 0xa); pColorSet->add(model::ThemeColorType::Hyperlink, 0xb); pColorSet->add(model::ThemeColorType::FollowedHyperlink, 0xc); - aTheme.SetColorSet(std::move(pColorSet)); + pTheme->SetColorSet(std::move(pColorSet)); - xMasterPage->setPropertyValue("Theme", uno::Any(model::theme::createXTheme(aTheme))); + xMasterPage->setPropertyValue("Theme", uno::Any(model::theme::createXTheme(pTheme))); // When exporting to PPTX: save("Impress Office Open XML"); |