From ffd64889f3cad4fc64d733f5ad08a5c072de7ec6 Mon Sep 17 00:00:00 2001 From: panoskorovesis Date: Thu, 15 Jul 2021 11:17:08 +0300 Subject: Add Handler for FloatTransparent Read MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The handler separates MetaFloatTransparentAction::Read from metaact.hxx Read implementation is now in SvmReader.hxx Change-Id: Ie19d33570daec5a5ec34ba015cf83bffb18d250b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119171 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- include/vcl/filter/SvmReader.hxx | 1 + include/vcl/metaact.hxx | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'include') diff --git a/include/vcl/filter/SvmReader.hxx b/include/vcl/filter/SvmReader.hxx index d1ee96872490..ca8b9008a733 100644 --- a/include/vcl/filter/SvmReader.hxx +++ b/include/vcl/filter/SvmReader.hxx @@ -84,6 +84,7 @@ public: rtl::Reference PopHandler(); rtl::Reference RasterOpHandler(); rtl::Reference TransparentHandler(); + rtl::Reference FloatTransparentHandler(ImplMetaReadData* pData); }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/vcl/metaact.hxx b/include/vcl/metaact.hxx index 9de35c7ac271..fabe6f7c750a 100644 --- a/include/vcl/metaact.hxx +++ b/include/vcl/metaact.hxx @@ -1689,6 +1689,10 @@ public: const Point& GetPoint() const { return maPoint; } const Size& GetSize() const { return maSize; } const Gradient& GetGradient() const { return maGradient; } + void SetGDIMetaFile(const GDIMetaFile &rMtf) { maMtf = rMtf; } + void SetPoint(const Point& rPoint) { maPoint = rPoint; } + void SetSize(const Size& rSize) { maSize = rSize; } + void SetGradient(const Gradient& rGradient) { maGradient = rGradient; } bool IsTransparent() const override { return true; } }; -- cgit