diff options
author | panoskorovesis <panoskorovesis@outlook.com> | 2021-07-14 13:07:41 +0300 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-07-14 16:10:32 +0200 |
commit | 8f00b018cd035db040ec18bff5c53571e3f86f93 (patch) | |
tree | 2eda66911cf7f9be16a0a8e98c584089aef09547 /vcl | |
parent | ce30918cfe59a702dfe5f69ed84d13a0cc3de4bc (diff) |
Add Handler for MoveClipRegion Read
The handler separates the MetaMoveClipRegion::Read from metaact.hxx
Read implementation is now in SvmReader.hxx
Change-Id: I12f987a2887060b30ae0496a5785baffe8550dfa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118895
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 47683276eab4..1c009e093b56 100644 --- a/vcl/source/filter/svm/SvmReader.cxx +++ b/vcl/source/filter/svm/SvmReader.cxx @@ -259,7 +259,7 @@ rtl::Reference<MetaAction> SvmReader::MetaActionHandler(ImplMetaReadData* pData) return ISectRegionClipRegionHandler(); break; case MetaActionType::MOVECLIPREGION: - pAction = new MetaMoveClipRegionAction; + return MoveClipRegionHandler(); break; case MetaActionType::LINECOLOR: return LineColorHandler(); @@ -1131,4 +1131,18 @@ rtl::Reference<MetaAction> SvmReader::ISectRegionClipRegionHandler() return pAction; } + +rtl::Reference<MetaAction> SvmReader::MoveClipRegionHandler() +{ + auto pAction = new MetaMoveClipRegionAction(); + + VersionCompatRead aCompat(mrStream); + sal_Int32 nTmpHM(0), nTmpVM(0); + mrStream.ReadInt32(nTmpHM).ReadInt32(nTmpVM); + + pAction->SetHorzMove(nTmpHM); + pAction->SetVertMove(nTmpVM); + + return pAction; +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |