[Libreoffice-commits] core.git: include/vcl vcl/source

panoskorovesis (via logerrit) logerrit at kemper.freedesktop.org
Tue Aug 3 22:55:07 UTC 2021


 include/vcl/filter/SvmWriter.hxx    |    1 +
 vcl/source/filter/svm/SvmWriter.cxx |   13 +++++++++++++
 2 files changed, 14 insertions(+)

New commits:
commit e58348e73b5f3f6eb8fd68eb50c1bc4b58f32104
Author:     panoskorovesis <panoskorovesis at outlook.com>
AuthorDate: Tue Aug 3 10:02:04 2021 +0300
Commit:     Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Wed Aug 4 00:54:34 2021 +0200

     Add Handler for Pop Write
    
    The handler separates MetaPopAction::Write from metaact.hxx
    Write implementation is now in SvmWriter.hxx
    
    Change-Id: Ifd6768f74b503bfd2831b6b595e442727cfa2eac
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119925
    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 044d7981b776..5c83bfd8913c 100644
--- a/include/vcl/filter/SvmWriter.hxx
+++ b/include/vcl/filter/SvmWriter.hxx
@@ -61,4 +61,5 @@ public:
     void MapModeHandler(MetaMapModeAction* pAction);
     void FontHandler(MetaFontAction* pAction, ImplMetaWriteData* pData);
     void PushHandler(MetaPushAction* pAction);
+    void PopHandler(MetaPopAction* pAction);
 };
\ No newline at end of file
diff --git a/vcl/source/filter/svm/SvmWriter.cxx b/vcl/source/filter/svm/SvmWriter.cxx
index f37a945d9c4c..375cda5218fd 100644
--- a/vcl/source/filter/svm/SvmWriter.cxx
+++ b/vcl/source/filter/svm/SvmWriter.cxx
@@ -234,6 +234,13 @@ void SvmWriter::MetaActionHandler(MetaAction* pAction, ImplMetaWriteData* pData)
         }
         break;
 
+        case MetaActionType::POP:
+        {
+            auto* pMetaAction = static_cast<MetaPopAction*>(pAction);
+            PopHandler(pMetaAction);
+        }
+        break;
+
         /* default case prevents test failure and will be
         removed once all the handlers are completed */
         default:
@@ -525,4 +532,10 @@ void SvmWriter::PushHandler(MetaPushAction* pAction)
     VersionCompatWrite aCompat(mrStream, 1);
     mrStream.WriteUInt16(static_cast<sal_uInt16>(pAction->GetFlags()));
 }
+
+void SvmWriter::PopHandler(MetaPopAction* pAction)
+{
+    mrStream.WriteUInt16(static_cast<sal_uInt16>(pAction->GetType()));
+    VersionCompatWrite aCompat(mrStream, 1);
+}
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */


More information about the Libreoffice-commits mailing list