diff options
author | panoskorovesis <panoskorovesis@outlook.com> | 2021-08-05 17:37:13 +0300 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-08-17 04:40:46 +0200 |
commit | e7b6205bcf127d8afab8dfd015fef7573b296a22 (patch) | |
tree | c73551370ada11d7e208afe550bd4a922377d889 /sd/source/ui | |
parent | dd3ab0fd737ff84657ff34eebafe2628f489e5a1 (diff) |
Replace GDIMetaFile::Write and WriteGDIMetaFile with SvmWriter::Write
Use the new write functionality. This change also sets SvmWriter::Write
second argument as const, as it's value does not change
Change-Id: I1620756542a0bc54b5f8fc7ce3f57d0243a2ee55
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120408
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sd/source/ui')
-rw-r--r-- | sd/source/ui/unoidl/unopage.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx index f774fad439ef..e80bf3f20591 100644 --- a/sd/source/ui/unoidl/unopage.cxx +++ b/sd/source/ui/unoidl/unopage.cxx @@ -35,6 +35,7 @@ #include <cppuhelper/supportsservice.hxx> #include <rtl/ustrbuf.hxx> #include <vcl/bitmapex.hxx> +#include <vcl/filter/SvmWriter.hxx> #include <vcl/metaact.hxx> #include <toolkit/helper/vclunohelper.hxx> #include <tools/diagnose_ex.h> @@ -1105,8 +1106,11 @@ Any SAL_CALL SdGenericDrawPage::getPropertyValue( const OUString& PropertyName ) // Preview: WMF format. ConvertGDIMetaFileToWMF(*xMetaFile, aDestStrm, nullptr, false); else + { // PreviewMetafile: SVM format. - xMetaFile->Write(aDestStrm); + SvmWriter aWriter(aDestStrm); + aWriter.Write(*xMetaFile); + } Sequence<sal_Int8> aSeq( static_cast<sal_Int8 const *>(aDestStrm.GetData()), aDestStrm.Tell() ); aAny <<= aSeq; } |