Kaydet (Commit) 2bfc4494 authored tarafından Tamás Zolnai's avatar Tamás Zolnai Kaydeden (comit) Jan Holesovsky

Remove noise from the SVG file exported in SelectionOnly mode

Change-Id: Ia09f6ab40c20c17230e8b544987a5d11b7359f2f
üst 7ffb0b7c
...@@ -803,6 +803,7 @@ bool SVGFilter::implExportDocument() ...@@ -803,6 +803,7 @@ bool SVGFilter::implExportDocument()
} }
// Create a ClipPath element applied to the leaving slide in order // Create a ClipPath element applied to the leaving slide in order
// to avoid that slide borders are visible during transition // 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, "id", "presentation_clip_path_shrink" );
mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "clipPathUnits", "userSpaceOnUse" ); mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "clipPathUnits", "userSpaceOnUse" );
...@@ -821,7 +822,7 @@ bool SVGFilter::implExportDocument() ...@@ -821,7 +822,7 @@ bool SVGFilter::implExportDocument()
if( implLookForFirstVisiblePage() ) // OK! We found at least one visible page. if( implLookForFirstVisiblePage() ) // OK! We found at least one visible page.
{ {
if( mbPresentation ) if( mbPresentation && !mbExportShapeSelection )
{ {
implGenerateMetaData(); implGenerateMetaData();
implExportAnimations(); implExportAnimations();
...@@ -1262,6 +1263,9 @@ void SVGFilter::implEmbedBulletGlyph( sal_Unicode cBullet, const OUString & sPat ...@@ -1262,6 +1263,9 @@ void SVGFilter::implEmbedBulletGlyph( sal_Unicode cBullet, const OUString & sPat
*/ */
void SVGFilter::implExportTextEmbeddedBitmaps() void SVGFilter::implExportTextEmbeddedBitmaps()
{ {
if (mEmbeddedBitmapActionSet.empty())
return;
mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "class", "TextEmbeddedBitmaps" ); mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "class", "TextEmbeddedBitmaps" );
SvXMLElementExport aDefsContainerElem( *mpSVGExport, XML_NAMESPACE_NONE, "defs", true, true ); SvXMLElementExport aDefsContainerElem( *mpSVGExport, XML_NAMESPACE_NONE, "defs", true, true );
...@@ -1462,7 +1466,7 @@ void SVGFilter::implExportDrawPages( const std::vector< Reference< css::drawing: ...@@ -1462,7 +1466,7 @@ void SVGFilter::implExportDrawPages( const std::vector< Reference< css::drawing:
"SVGFilter::implExportDrawPages: nFirstPage > nLastPage" ); "SVGFilter::implExportDrawPages: nFirstPage > nLastPage" );
// dummy slide - used as leaving slide for transition on the first slide // dummy slide - used as leaving slide for transition on the first slide
if( mbPresentation ) if( mbPresentation && !mbExportShapeSelection)
{ {
mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "class", "DummySlide" ); mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "class", "DummySlide" );
SvXMLElementExport aDummySlideElement( *mpSVGExport, XML_NAMESPACE_NONE, "g", true, true ); SvXMLElementExport aDummySlideElement( *mpSVGExport, XML_NAMESPACE_NONE, "g", true, true );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment