summaryrefslogtreecommitdiff
path: root/writerfilter/source/dmapper/PropertyIds.cxx
diff options
context:
space:
mode:
authorJacobo Aragunde Pérez <jaragunde@igalia.com>2013-12-17 13:19:16 +0100
committerJacobo Aragunde Pérez <jaragunde@igalia.com>2013-12-17 19:51:18 +0100
commit3d126bcf1febe68919eab42c5cd2cd0d7db2f66b (patch)
tree88cd02dbb06a9a18428139becd1288c74001be0b /writerfilter/source/dmapper/PropertyIds.cxx
parent79aecccf048f98a187065fdfabbc911b0e499cdc (diff)
ooxml: preserve font theme color property
The property is called w:themeColor and it belongs to the w:color tag inside run properties. On import, the themeColor prop is stored in the character interop grab bag together with the val prop. On export, the current color of a text run is compared with the stored val prop to know if the color has been changed during the document edition. If it hasn't changed, the themeColor property must be written to the document; if it has, it must not be written to avoid overwriting the new color. Also added a unit test for this property. Change-Id: Icc95ee023aecc741adcba23d23206aadd6c30e1f
Diffstat (limited to 'writerfilter/source/dmapper/PropertyIds.cxx')
-rw-r--r--writerfilter/source/dmapper/PropertyIds.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/writerfilter/source/dmapper/PropertyIds.cxx b/writerfilter/source/dmapper/PropertyIds.cxx
index 09d8710b575b..a38b19cef30e 100644
--- a/writerfilter/source/dmapper/PropertyIds.cxx
+++ b/writerfilter/source/dmapper/PropertyIds.cxx
@@ -355,6 +355,8 @@ const OUString& PropertyNameSupplier::GetName( PropertyIds eId ) const
case PROP_CHAR_THEME_FONT_NAME_CS : sName = "CharThemeFontNameCs"; break;
case PROP_CHAR_THEME_FONT_NAME_H_ANSI : sName = "CharThemeFontNameHAnsi"; break;
case PROP_CHAR_THEME_FONT_NAME_EAST_ASIA: sName = "CharThemeFontNameEastAsia"; break;
+ case PROP_CHAR_THEME_COLOR : sName = "CharThemeColor"; break;
+ case PROP_CHAR_THEME_ORIGINAL_COLOR : sName = "CharThemeOriginalColor"; break;
}
::std::pair<PropertyNameMap_t::iterator,bool> aInsertIt =
m_pImpl->aNameMap.insert( PropertyNameMap_t::value_type( eId, sName ));