diff options
author | panoskorovesis <panoskorovesis@outlook.com> | 2021-07-27 10:40:58 +0300 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-07-31 08:45:09 +0200 |
commit | 5e020c43668c9e11188ba48bf57de4bd7e9cc501 (patch) | |
tree | e0b0d24376c886d5201c9f40b04394d305bf837b /vcl/qa/cppunit/svm/svmtest.cxx | |
parent | d5765ae2f9236c8ce32d61f05f46d9d76b991544 (diff) |
Create SvmWriter class
This class will separate Write functionality from metaact.hxx with
the use of handlers for each metaact subclass
Change-Id: I7c74ec183f08b62d713457e4e971ea5b0b67cde2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119541
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/qa/cppunit/svm/svmtest.cxx')
-rw-r--r-- | vcl/qa/cppunit/svm/svmtest.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/qa/cppunit/svm/svmtest.cxx b/vcl/qa/cppunit/svm/svmtest.cxx index 5f9a4bced6a4..84978a6e9c67 100644 --- a/vcl/qa/cppunit/svm/svmtest.cxx +++ b/vcl/qa/cppunit/svm/svmtest.cxx @@ -23,6 +23,7 @@ #include <tools/fract.hxx> #include <vcl/metaact.hxx> #include <vcl/filter/SvmReader.hxx> +#include <vcl/filter/SvmWriter.hxx> #include <salhelper/simplereferenceobject.hxx> #include <bitmap/BitmapWriteAccess.hxx> @@ -325,7 +326,8 @@ GDIMetaFile SvmTest::writeAndReadStream(GDIMetaFile& rMetaFile, std::u16string_v writeToFile(rMetaFile, rName); SvMemoryStream aStream; - rMetaFile.Write(aStream); + SvmWriter aWriter(aStream); + aWriter.Write(rMetaFile); aStream.Seek(STREAM_SEEK_TO_BEGIN); GDIMetaFile aResultMetafile; |