From d5a71bc6a28f8a3d726b2ac4688c7cef9d77ddf0 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Mon, 12 Dec 2022 22:12:58 +0900 Subject: oox: add support for importing font scheme into a svx::Theme MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I862256a17ce84c85174678f3fd03c8ef6661f2c5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143995 Tested-by: Tomaž Vajngerl Reviewed-by: Tomaž Vajngerl --- include/oox/drawingml/theme.hxx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'include/oox/drawingml') diff --git a/include/oox/drawingml/theme.hxx b/include/oox/drawingml/theme.hxx index f7b4a262ffb8..ebd05957bf3b 100644 --- a/include/oox/drawingml/theme.hxx +++ b/include/oox/drawingml/theme.hxx @@ -35,8 +35,12 @@ namespace com::sun::star { namespace drawing { class XDrawPage; } namespace xml::dom { class XDocument; } } +namespace svx { + class Theme; +} -namespace oox::drawingml { +namespace oox::drawingml +{ struct EffectProperties; struct FillProperties; @@ -82,6 +86,10 @@ public: FontScheme& getFontScheme() { return maFontScheme; } const FontScheme& getFontScheme() const { return maFontScheme; } + + std::map>>& getSupplementalFontMap() { return maSupplementalFontMap; } + std::map>> const& getSupplementalFontMap() const { return maSupplementalFontMap; } + /** Returns theme font properties by scheme type (major/minor). */ const TextCharacterProperties* getFontStyle( sal_Int32 nSchemeType ) const; /** Returns theme font by placeholder name, e.g. the major latin theme font for the font name '+mj-lt'. */ @@ -99,6 +107,7 @@ public: const css::uno::Reference& getFragment() const { return mxFragment; } void setFragment( const css::uno::Reference< css::xml::dom::XDocument>& xRef ) { mxFragment=xRef; } + std::unique_ptr createSvxTheme() const; void addTheme(const css::uno::Reference& xDrawPage) const; private: @@ -111,6 +120,7 @@ private: LineStyleList maLineStyleList; EffectStyleList maEffectStyleList; FontScheme maFontScheme; + std::map>> maSupplementalFontMap; Shape maSpDef; Shape maLnDef; Shape maTxDef; -- cgit