diff options
author | Armin Le Grand (Allotropia) <Armin.Le.Grand@me.com> | 2022-04-08 17:38:12 +0200 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@me.com> | 2022-04-11 09:54:33 +0200 |
commit | 027db2df5371183136f87e84ec4829d59eef209b (patch) | |
tree | 490e5cbfd0404e3b3efb2e37ea9c337da3a2060d /oox/source/shape | |
parent | a5c27f59c4e28d9ec1c1ce8f8c0c5ef6fc68772c (diff) |
Advanced Diagram support: Make Style/Theme info available
The Style/Theme information is central for re-creating the
Diagram shape representation. Make that data available in
the ModelData classes in svx. With that information, a re-
creation with all needed attributes is possible, e.g. when
the model gets changed (remove/add data entries).
Also some cleanups done.
Change-Id: Icd925c9731891092f1ddd96c8feb165e1f846f4f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132738
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Diffstat (limited to 'oox/source/shape')
-rw-r--r-- | oox/source/shape/ShapeFilterBase.cxx | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/oox/source/shape/ShapeFilterBase.cxx b/oox/source/shape/ShapeFilterBase.cxx index ebd47d83e9d5..ad10c4fe670d 100644 --- a/oox/source/shape/ShapeFilterBase.cxx +++ b/oox/source/shape/ShapeFilterBase.cxx @@ -132,29 +132,6 @@ GraphicHelper* ShapeFilterBase::implCreateGraphicHelper() const return nColor; } -void ShapeFilterBase::importTheme() -{ - drawingml::ThemePtr pTheme = std::make_shared<drawingml::Theme>(); - uno::Reference<beans::XPropertySet> xPropSet(getModel(), uno::UNO_QUERY_THROW); - uno::Sequence<beans::PropertyValue> aGrabBag; - xPropSet->getPropertyValue("InteropGrabBag") >>= aGrabBag; - - for (const auto& rProp : std::as_const(aGrabBag)) - { - if (rProp.Name == "OOXTheme") - { - uno::Reference<xml::sax::XFastSAXSerializable> xDoc; - if (rProp.Value >>= xDoc) - { - rtl::Reference<core::FragmentHandler> xFragmentHandler( - new drawingml::ThemeFragmentHandler(*this, OUString(), *pTheme)); - importFragment(xFragmentHandler, xDoc); - setCurrentTheme(pTheme); - } - } - } -} - } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |