diff options
author | panoskorovesis <panoskorovesis@outlook.com> | 2021-07-14 12:40:11 +0300 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-07-14 16:06:43 +0200 |
commit | 8a13231580a806e3ee9b2d197d4cc118f30ab157 (patch) | |
tree | bc1bde0c9d99c76d6bfb9eb97b5df6bc2b97a804 /vcl | |
parent | 9a8c8053b4fb322edb1e45b891307cdad1f3d41f (diff) |
Add Handler for ISectRectClipRegion Read
The handler separates MetaISectRectClipRegionAction::Read from
metaact.hxx. Read implementation is now in SvmReader.hxx
Change-Id: I5db6d405ac926d8881acbb17b47610f24ce77994
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118892
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/filter/svm/SvmReader.cxx | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/vcl/source/filter/svm/SvmReader.cxx b/vcl/source/filter/svm/SvmReader.cxx index b01acffd92ad..87d6157a7734 100644 --- a/vcl/source/filter/svm/SvmReader.cxx +++ b/vcl/source/filter/svm/SvmReader.cxx @@ -253,7 +253,7 @@ rtl::Reference<MetaAction> SvmReader::MetaActionHandler(ImplMetaReadData* pData) return ClipRegionHandler(); break; case MetaActionType::ISECTRECTCLIPREGION: - pAction = new MetaISectRectClipRegionAction; + return ISectRectClipRegionHandler(); break; case MetaActionType::ISECTREGIONCLIPREGION: pAction = new MetaISectRegionClipRegionAction; @@ -1105,4 +1105,18 @@ rtl::Reference<MetaAction> SvmReader::ClipRegionHandler() return pAction; } + +rtl::Reference<MetaAction> SvmReader::ISectRectClipRegionHandler() +{ + auto pAction = new MetaISectRectClipRegionAction(); + + VersionCompatRead aCompat(mrStream); + TypeSerializer aSerializer(mrStream); + tools::Rectangle aRect; + aSerializer.readRectangle(aRect); + + pAction->SetRect(aRect); + + return pAction; +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |