diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2023-01-05 13:12:34 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2023-01-13 23:07:22 +0000 |
commit | af8fdba1194e657237f9abc460381a1c4bc49982 (patch) | |
tree | 706c2a25bf0e477a07beaf8047a1f4002c3fe2d5 /sd | |
parent | c9b0eacae71f111209cb77f14f2693d73e5e8d90 (diff) |
support theme color for lines + oox support + tests
Extended XLineColor to handle model::ThemeColor which then maps
to the newly added LineColorThemeData property.
Extended oox import and export to map the scheme color elements
to and from ThemeColor. Added a new test to check the theme line
color in impress shapes.
Change-Id: I23ecc18c88b5b47608c9110f5681f189d02e2f36
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145071
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/core/stlsheet.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sd/source/core/stlsheet.cxx b/sd/source/core/stlsheet.cxx index 9575169356c4..96850f5b107e 100644 --- a/sd/source/core/stlsheet.cxx +++ b/sd/source/core/stlsheet.cxx @@ -40,6 +40,7 @@ #include <svx/xflbmtit.hxx> #include <svx/xflbstit.hxx> +#include <svx/xlnclit.hxx> #include <editeng/bulletitem.hxx> #include <editeng/lrspitem.hxx> #include <svx/unoshprp.hxx> @@ -1400,6 +1401,15 @@ PropertyState SAL_CALL SdStyleSheet::getPropertyState( const OUString& PropertyN } } break; + case XATTR_LINECOLOR: + if (pEntry->nMemberId == MID_COLOR_THEME_REFERENCE) + { + auto const* pColor = rStyleSet.GetItem<XLineColorItem>(pEntry->nWID); + if (pColor->GetThemeColor().getType() == model::ThemeColorType::Unknown) + { + eState = PropertyState_DEFAULT_VALUE; + } + } break; } } |