diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2021-01-22 19:31:26 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2021-03-06 21:58:48 +0100 |
commit | 3d008f3bcd19a74cff0781cbd9a3d173892553cf (patch) | |
tree | 0408f4f3cb98675d15571c65ab5eb94b52f3031f /filter/source/svg/svgfilter.hxx | |
parent | cc3b9c0bcc4a379efb99b273c426a5ecb2214d0f (diff) |
filter: svg: js engine: support for bitmaps in slide background
When a slide background includes one or more bitmaps, they are
exported only once.
This avoid to export the same bitmap more than once when it is
embedded in several backgound slides and to export only one bitmap for
the tile style.
Change-Id: Ia5b75f7805541486b76a81f86907e88ed9d4764a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109835
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111842
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'filter/source/svg/svgfilter.hxx')
-rw-r--r-- | filter/source/svg/svgfilter.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/filter/source/svg/svgfilter.hxx b/filter/source/svg/svgfilter.hxx index b761e1768e9c..9f612440ebdf 100644 --- a/filter/source/svg/svgfilter.hxx +++ b/filter/source/svg/svgfilter.hxx @@ -153,6 +153,9 @@ struct EqualityBitmap const ObjectRepresentation& rObjRep2 ) const; }; +// This must match the same type definition in svgwriter.hxx +typedef std::unordered_map< BitmapChecksum, std::unique_ptr< GDIMetaFile > > MetaBitmapActionMap; + class SVGFontExport; class SVGActionWriter; class EditFieldInfo; @@ -210,6 +213,7 @@ private: mTextShapeIdListMap; MetaBitmapActionSet mEmbeddedBitmapActionSet; ObjectMap mEmbeddedBitmapActionMap; + MetaBitmapActionMap maBitmapActionMap; std::vector< Reference< css::drawing::XDrawPage > > mMasterPageTargets; Link<EditFieldInfo*,void> maOldFieldHdl; @@ -229,6 +233,7 @@ private: void implEmbedBulletGlyphs(); void implEmbedBulletGlyph( sal_Unicode cBullet, const OUString & sPathData ); void implExportTextEmbeddedBitmaps(); + void implExportBackgroundBitmaps(); void implGenerateScript(); bool implExportDocument(); |