summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorpanoskorovesis <panoskorovesis@outlook.com>2021-08-05 10:05:26 +0300
committerTomaž Vajngerl <quikee@gmail.com>2021-08-12 02:22:29 +0200
commitf6032e23bbedebcbf32eeb56627d89489b52f024 (patch)
treea8168ee2a323a856e9c5d9e632017bebf2770927 /vcl
parent3c0c1b79b689775f09b3bff75bb01118b380f41f (diff)
Add Handler for Wallpaper Write
The handler separates MetaWallpaperAction::Write from metaact.hxx Write implementation is now in SvmWriter.hxx Change-Id: Icfbb4ab5cf3d7ea803cb55405e82dc262f3958c9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120306 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/filter/svm/SvmWriter.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/vcl/source/filter/svm/SvmWriter.cxx b/vcl/source/filter/svm/SvmWriter.cxx
index 93f0c2b2baa6..765bcb10e354 100644
--- a/vcl/source/filter/svm/SvmWriter.cxx
+++ b/vcl/source/filter/svm/SvmWriter.cxx
@@ -284,6 +284,13 @@ void SvmWriter::MetaActionHandler(MetaAction* pAction, ImplMetaWriteData* pData)
}
break;
+ case MetaActionType::WALLPAPER:
+ {
+ auto* pMetaAction = static_cast<MetaWallpaperAction*>(pAction);
+ WallpaperHandler(pMetaAction);
+ }
+ break;
+
case MetaActionType::OVERLINECOLOR:
{
auto* pMetaAction = static_cast<MetaOverlineColorAction*>(pAction);
@@ -791,6 +798,14 @@ void SvmWriter::HatchHandler(MetaHatchAction* pAction)
WriteHatch(mrStream, pAction->GetHatch());
}
+void SvmWriter::WallpaperHandler(MetaWallpaperAction* pAction)
+{
+ mrStream.WriteUInt16(static_cast<sal_uInt16>(pAction->GetType()));
+ VersionCompatWrite aCompat(mrStream, 1);
+
+ WriteWallpaper(mrStream, pAction->GetWallpaper());
+}
+
void SvmWriter::OverlineColorHandler(MetaOverlineColorAction* pAction)
{
mrStream.WriteUInt16(static_cast<sal_uInt16>(pAction->GetType()));