diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2023-06-11 00:50:08 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2023-06-12 05:26:11 +0200 |
commit | 953ef30494661788b2e980ece84b62c653d77321 (patch) | |
tree | 797ce0c562e8087722ddb833f016ba13d4105d47 /sw/source/filter/ww8/docxattributeoutput.cxx | |
parent | 92fc0ace46398eeb6c9238c8292459cc78db6694 (diff) |
ooxml: import and export char underline theme colors
This adds support to import and export char underline theme color
properties.
Change-Id: Ia8948ee5aacd20e0c2b7cbb1b2fdf97fc65c04e0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152834
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sw/source/filter/ww8/docxattributeoutput.cxx')
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index f5742eae4515..a75682761d84 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -7953,10 +7953,14 @@ void DocxAttributeOutput::CharUnderline( const SvxUnderlineItem& rUnderline ) bool bUnderlineHasColor = !aUnderlineColor.IsTransparent(); if (bUnderlineHasColor) { + model::ComplexColor const& rComplexColor = rUnderline.getComplexColor(); // Underline has a color - m_pSerializer->singleElementNS( XML_w, XML_u, - FSNS( XML_w, XML_val ), pUnderlineValue, - FSNS( XML_w, XML_color ), msfilter::util::ConvertColor(aUnderlineColor) ); + rtl::Reference<FastAttributeList> pAttrList = FastSerializerHelper::createAttrList(); + pAttrList->add(FSNS(XML_w, XML_val), pUnderlineValue); + pAttrList->add(FSNS(XML_w, XML_color), msfilter::util::ConvertColor(aUnderlineColor)); + lclAddThemeColorAttributes(pAttrList, rComplexColor); + m_pSerializer->singleElementNS(XML_w, XML_u, pAttrList); + } else { |