From e923f752a3adfe1a941dcbc2fdffc626a569d59e Mon Sep 17 00:00:00 2001 From: Bartosz Kosiorek Date: Thu, 13 May 2021 22:04:56 +0200 Subject: 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 --- emfio/inc/mtftools.hxx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'emfio/inc') 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; -- cgit