diff options
| author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2022-12-31 20:59:03 +0900 |
|---|---|---|
| committer | Tomaž Vajngerl <quikee@gmail.com> | 2023-01-13 13:44:09 +0000 |
| commit | 3eb53d327fb5d9689b799ff991a6c53c05eff496 (patch) | |
| tree | 91a11362d23ef451d89b5efdcc4ec0e7866e5c72 /xmloff/source/text/txtexppr.cxx | |
| parent | a6d44c4684f9b037e5c762430df78af2fc85cf34 (diff) | |
xmloff: use XThemeColor in ODF, change the format for themes
Change the xmloff filter to use XThemeColor and the associated
proprties (CharColorThemeReference and FillColorThemeReference).
Change the ODF format for referencing a theme color - make it an
element instead a series of attributes on the *-properties style
element.
Change-Id: I0fa7d8ebffecc02897b7fe9824d6f1776ef36380
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144923
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'xmloff/source/text/txtexppr.cxx')
| -rw-r--r-- | xmloff/source/text/txtexppr.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xmloff/source/text/txtexppr.cxx b/xmloff/source/text/txtexppr.cxx index 65cdf59b74ee..8d73fe303304 100644 --- a/xmloff/source/text/txtexppr.cxx +++ b/xmloff/source/text/txtexppr.cxx @@ -72,6 +72,12 @@ void XMLTextExportPropertySetMapper::handleElementItem( pThis->maTextColumnsExport.exportXML( rProperty.maValue ); break; + case CTF_THEME_COLOR: + pThis->maThemeColorExport.exportXML(rProperty.maValue, + getPropertySetMapper()->GetEntryNameSpace(rProperty.mnIndex), + getPropertySetMapper()->GetEntryXMLName(rProperty.mnIndex)); + break; + case CTF_BACKGROUND_URL: { const Any *pPos = nullptr, *pFilter = nullptr, *pTrans = nullptr; @@ -210,6 +216,7 @@ XMLTextExportPropertySetMapper::XMLTextExportPropertySetMapper( maDropCapExport( rExp ), maTabStopExport( rExp ), maTextColumnsExport( rExp ), + maThemeColorExport(rExp), maBackgroundImageExport( rExp ) { } |
