diff options
author | panoskorovesis <panoskorovesis@outlook.com> | 2021-08-05 10:18:36 +0300 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-08-12 02:23:10 +0200 |
commit | 526646cb631bf56fc0fae25499a867399db81b02 (patch) | |
tree | 0e245aa30f7a6286248f2548053e754d66d97722 /vcl | |
parent | b0d1f39266ec0a3bef63e66c8d97ba1d6652734b (diff) |
Add Handler for ISectRectClipRegion Write
The handler separates MetaISectRectClipRegionAction::Write from metaact.hxx
Write implementation is now in SvmWriter.hxx
Change-Id: I999fa1baa4e3c34f3f83dc1d3973f961857f89d6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120308
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/filter/svm/SvmWriter.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vcl/source/filter/svm/SvmWriter.cxx b/vcl/source/filter/svm/SvmWriter.cxx index b310824f1beb..e5635e31a141 100644 --- a/vcl/source/filter/svm/SvmWriter.cxx +++ b/vcl/source/filter/svm/SvmWriter.cxx @@ -298,6 +298,13 @@ void SvmWriter::MetaActionHandler(MetaAction* pAction, ImplMetaWriteData* pData) } break; + case MetaActionType::ISECTRECTCLIPREGION: + { + auto* pMetaAction = static_cast<MetaISectRectClipRegionAction*>(pAction); + ISectRectClipRegionHandler(pMetaAction); + } + break; + case MetaActionType::OVERLINECOLOR: { auto* pMetaAction = static_cast<MetaOverlineColorAction*>(pAction); @@ -821,6 +828,14 @@ void SvmWriter::ClipRegionHandler(MetaClipRegionAction* pAction) mrStream.WriteBool(pAction->IsClipping()); } +void SvmWriter::ISectRectClipRegionHandler(MetaISectRectClipRegionAction* pAction) +{ + mrStream.WriteUInt16(static_cast<sal_uInt16>(pAction->GetType())); + VersionCompatWrite aCompat(mrStream, 1); + TypeSerializer aSerializer(mrStream); + aSerializer.writeRectangle(pAction->GetRect()); +} + void SvmWriter::OverlineColorHandler(MetaOverlineColorAction* pAction) { mrStream.WriteUInt16(static_cast<sal_uInt16>(pAction->GetType())); |