summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorpanoskorovesis <panoskorovesis@outlook.com>2021-07-13 13:47:48 +0300
committerMiklos Vajna <vmiklos@collabora.com>2021-07-14 08:50:28 +0200
commit1583371d1d39c63940a3f58d3d2e940f903baa88 (patch)
treed216b8a85c6690b15a556a53fea79fe06b640008 /include
parent9256284b785b119baa2eddeab5e9c5d8e464da02 (diff)
Add Handler for Gradient Read
The handler separates MetaGradientAction::Read from metaact.hxx Read implementation is now in SvmReader.hxx Change-Id: Ib8b6db1362c0ada3491e56d05409b810ac16be89 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118833 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/filter/SvmReader.hxx1
-rw-r--r--include/vcl/metaact.hxx2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/vcl/filter/SvmReader.hxx b/include/vcl/filter/SvmReader.hxx
index 720480e7fd57..c4c3080b7af6 100644
--- a/include/vcl/filter/SvmReader.hxx
+++ b/include/vcl/filter/SvmReader.hxx
@@ -65,6 +65,7 @@ public:
rtl::Reference<MetaAction> MaskHandler();
rtl::Reference<MetaAction> MaskScaleHandler();
rtl::Reference<MetaAction> MaskScalePartHandler();
+ rtl::Reference<MetaAction> GradientHandler();
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/vcl/metaact.hxx b/include/vcl/metaact.hxx
index eb9c47c560d2..958807d5126c 100644
--- a/include/vcl/metaact.hxx
+++ b/include/vcl/metaact.hxx
@@ -1067,6 +1067,8 @@ public:
const tools::Rectangle& GetRect() const { return maRect; }
const Gradient& GetGradient() const { return maGradient; }
+ void SetGradient(Gradient& rGradient) { maGradient = rGradient; }
+ void SetRect(tools::Rectangle& rRect) { maRect = rRect; }
};
class UNLESS_MERGELIBS(VCL_DLLPUBLIC) MetaGradientExAction final : public MetaAction