[Libreoffice-commits] core.git: include/vcl vcl/source
panoskorovesis (via logerrit)
logerrit at kemper.freedesktop.org
Thu Aug 12 00:24:09 UTC 2021
include/vcl/filter/SvmWriter.hxx | 1 +
vcl/source/filter/svm/SvmWriter.cxx | 14 ++++++++++++++
2 files changed, 15 insertions(+)
New commits:
commit d7fc4cfb90d688ff2b5a774f60f87d8d120ddb1e
Author: panoskorovesis <panoskorovesis at outlook.com>
AuthorDate: Thu Aug 5 10:20:49 2021 +0300
Commit: Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Thu Aug 12 02:23:33 2021 +0200
Add Handler for ISectRegionClipRegion Write
The handler separates MetaISectRegionClipRegionAction::Write from metaact.hxx
Write implementation is now in SvmWriter.hxx
Change-Id: I734e574c9a292fd44f36c155ba976908512ee588
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120309
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 10d7658c3bb7..c89b93fb52e7 100644
--- a/include/vcl/filter/SvmWriter.hxx
+++ b/include/vcl/filter/SvmWriter.hxx
@@ -71,6 +71,7 @@ public:
void WallpaperHandler(MetaWallpaperAction* pAction);
void ClipRegionHandler(MetaClipRegionAction* pAction);
void ISectRectClipRegionHandler(MetaISectRectClipRegionAction* pAction);
+ void ISectRegionClipRegionHandler(MetaISectRegionClipRegionAction* 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 e5635e31a141..402d397dc21b 100644
--- a/vcl/source/filter/svm/SvmWriter.cxx
+++ b/vcl/source/filter/svm/SvmWriter.cxx
@@ -305,6 +305,13 @@ void SvmWriter::MetaActionHandler(MetaAction* pAction, ImplMetaWriteData* pData)
}
break;
+ case MetaActionType::ISECTREGIONCLIPREGION:
+ {
+ auto* pMetaAction = static_cast<MetaISectRegionClipRegionAction*>(pAction);
+ ISectRegionClipRegionHandler(pMetaAction);
+ }
+ break;
+
case MetaActionType::OVERLINECOLOR:
{
auto* pMetaAction = static_cast<MetaOverlineColorAction*>(pAction);
@@ -836,6 +843,13 @@ void SvmWriter::ISectRectClipRegionHandler(MetaISectRectClipRegionAction* pActio
aSerializer.writeRectangle(pAction->GetRect());
}
+void SvmWriter::ISectRegionClipRegionHandler(MetaISectRegionClipRegionAction* pAction)
+{
+ mrStream.WriteUInt16(static_cast<sal_uInt16>(pAction->GetType()));
+ VersionCompatWrite aCompat(mrStream, 1);
+ WriteRegion(mrStream, pAction->GetRegion());
+}
+
void SvmWriter::OverlineColorHandler(MetaOverlineColorAction* pAction)
{
mrStream.WriteUInt16(static_cast<sal_uInt16>(pAction->GetType()));
More information about the Libreoffice-commits
mailing list