summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2018-11-12 20:04:05 +0100
committerJan Holesovsky <kendy@collabora.com>2018-12-07 11:52:30 +0100
commit2bfc4494727d347d6ae8e0c6a68dee39a2dda040 (patch)
tree0b4f1a93989d3d8fd0a3eee2be87d8cc916b9098 /filter
parent7ffb0b7c71ea635f1a41b092b20b2b5ad37d04f4 (diff)
Remove noise from the SVG file exported in SelectionOnly mode
Change-Id: Ia09f6ab40c20c17230e8b544987a5d11b7359f2f
Diffstat (limited to 'filter')
-rw-r--r--filter/source/svg/svgexport.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx
index bce3e2612b18..be852f01fe85 100644
--- a/filter/source/svg/svgexport.cxx
+++ b/filter/source/svg/svgexport.cxx
@@ -803,6 +803,7 @@ bool SVGFilter::implExportDocument()
}
// Create a ClipPath element applied to the leaving slide in order
// to avoid that slide borders are visible during transition
+ if(!mbExportShapeSelection)
{
mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "id", "presentation_clip_path_shrink" );
mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "clipPathUnits", "userSpaceOnUse" );
@@ -821,7 +822,7 @@ bool SVGFilter::implExportDocument()
if( implLookForFirstVisiblePage() ) // OK! We found at least one visible page.
{
- if( mbPresentation )
+ if( mbPresentation && !mbExportShapeSelection )
{
implGenerateMetaData();
implExportAnimations();
@@ -1262,6 +1263,9 @@ void SVGFilter::implEmbedBulletGlyph( sal_Unicode cBullet, const OUString & sPat
*/
void SVGFilter::implExportTextEmbeddedBitmaps()
{
+ if (mEmbeddedBitmapActionSet.empty())
+ return;
+
mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "class", "TextEmbeddedBitmaps" );
SvXMLElementExport aDefsContainerElem( *mpSVGExport, XML_NAMESPACE_NONE, "defs", true, true );
@@ -1462,7 +1466,7 @@ void SVGFilter::implExportDrawPages( const std::vector< Reference< css::drawing:
"SVGFilter::implExportDrawPages: nFirstPage > nLastPage" );
// dummy slide - used as leaving slide for transition on the first slide
- if( mbPresentation )
+ if( mbPresentation && !mbExportShapeSelection)
{
mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "class", "DummySlide" );
SvXMLElementExport aDummySlideElement( *mpSVGExport, XML_NAMESPACE_NONE, "g", true, true );