diff options
author | Bartosz Kosiorek <gang65@poczta.onet.pl> | 2021-05-13 22:04:56 +0200 |
---|---|---|
committer | Bartosz Kosiorek <gang65@poczta.onet.pl> | 2021-05-15 16:53:08 +0200 |
commit | e923f752a3adfe1a941dcbc2fdffc626a569d59e (patch) | |
tree | 7f0b60d7431d91506a95fd5b13dc6bff6eb0da69 /emfio/inc | |
parent | c1903d286febb512e06783c4e8b46a38a2567cbf (diff) |
tdf#117957 WMF Add support for selecting colors from palette
Change-Id: I8f995dab566d9fae79d87fe13741b8ea9658b408
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112998
Tested-by: Jenkins
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
Diffstat (limited to 'emfio/inc')
-rw-r--r-- | emfio/inc/mtftools.hxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/emfio/inc/mtftools.hxx b/emfio/inc/mtftools.hxx index c79bdae4c4d7..0fb99761d386 100644 --- a/emfio/inc/mtftools.hxx +++ b/emfio/inc/mtftools.hxx @@ -366,6 +366,22 @@ namespace emfio } }; + + struct WinMtfPalette final : GDIObj + { + std::vector< Color > aPaletteColors; + + WinMtfPalette() + : aPaletteColors(std::vector< Color >{}) + {} + + WinMtfPalette(const std::vector< Color > rPaletteColors) + : aPaletteColors(rPaletteColors) + {} + + }; + + struct WinMtfLineStyle final : GDIObj { Color aLineColor; @@ -497,6 +513,7 @@ namespace emfio WinMtfFillStyle maLatestFillStyle; WinMtfFillStyle maFillStyle; WinMtfFillStyle maNopFillStyle; + WinMtfPalette maPalette; vcl::Font maLatestFont; vcl::Font maFont; |