diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2021-11-19 13:44:40 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-11-19 15:28:42 +0100 |
commit | 32ae1ed7504d58f9216593cb87f25c480a0e623b (patch) | |
tree | c5f5907e1dd6a072e7be3473d4c0cb7cd114cc5a /include | |
parent | 13aa5081793f133077610cd01b7f01ee765b4add (diff) |
PPTX import: handle <a:clrScheme name="...">
We had doc model for this, but the UNO API and the PPTX import was
missing.
Change-Id: I199e9cc235a783d91700ce74f17d442f41d3c3f8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125532
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'include')
-rw-r--r-- | include/oox/drawingml/clrscheme.hxx | 4 | ||||
-rw-r--r-- | include/svx/svdpage.hxx | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/oox/drawingml/clrscheme.hxx b/include/oox/drawingml/clrscheme.hxx index 21553aafe2fe..fbb107601940 100644 --- a/include/oox/drawingml/clrscheme.hxx +++ b/include/oox/drawingml/clrscheme.hxx @@ -80,6 +80,7 @@ typedef std::shared_ptr< ClrMap > ClrMapPtr; class OOX_DLLPUBLIC ClrScheme { std::vector< std::pair<sal_Int32, ::Color> > maClrScheme; + OUString maName; public: @@ -88,6 +89,9 @@ public: bool getColorByIndex(size_t nIndex, ::Color& rColor) const; + + void SetName(const OUString& rName) { maName = rName; } + const OUString& GetName() const { return maName; } }; } diff --git a/include/svx/svdpage.hxx b/include/svx/svdpage.hxx index 540002eb7d14..065590e85b9a 100644 --- a/include/svx/svdpage.hxx +++ b/include/svx/svdpage.hxx @@ -344,6 +344,8 @@ public: void SetTheme(std::unique_ptr<svx::Theme> pTheme); svx::Theme* GetTheme(); + + void dumpAsXml(xmlTextWriterPtr pWriter) const; }; @@ -535,6 +537,8 @@ public: const sdr::contact::ViewObjectContact& rOriginal, const sdr::contact::DisplayInfo& rDisplayInfo, bool bEdit ); + + void dumpAsXml(xmlTextWriterPtr pWriter) const override; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |