[Libreoffice-commits] core.git: include/vcl vcl/source
panoskorovesis (via logerrit)
logerrit at kemper.freedesktop.org
Thu Aug 12 00:23:48 UTC 2021
include/vcl/filter/SvmWriter.hxx | 1 +
vcl/source/filter/svm/SvmWriter.cxx | 15 +++++++++++++++
2 files changed, 16 insertions(+)
New commits:
commit 526646cb631bf56fc0fae25499a867399db81b02
Author: panoskorovesis <panoskorovesis at outlook.com>
AuthorDate: Thu Aug 5 10:18:36 2021 +0300
Commit: Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Thu Aug 12 02:23:10 2021 +0200
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 at gmail.com>
diff --git a/include/vcl/filter/SvmWriter.hxx b/include/vcl/filter/SvmWriter.hxx
index e7c2a0adfbfe..10d7658c3bb7 100644
--- a/include/vcl/filter/SvmWriter.hxx
+++ b/include/vcl/filter/SvmWriter.hxx
@@ -70,6 +70,7 @@ public:
void HatchHandler(MetaHatchAction* pAction);
void WallpaperHandler(MetaWallpaperAction* pAction);
void ClipRegionHandler(MetaClipRegionAction* pAction);
+ void ISectRectClipRegionHandler(MetaISectRectClipRegionAction* pAction);
void OverlineColorHandler(MetaOverlineColorAction* pAction);
void TextAlignHandler(MetaTextAlignAction* pAction);
void MapModeHandler(MetaMapModeAction* pAction);
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()));
More information about the Libreoffice-commits
mailing list