summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2018-11-12 20:04:05 +0100
committerTamás Zolnai <tamas.zolnai@collabora.com>2019-06-20 18:05:15 +0200
commit19e0d6662ff86913dc066095c26921d6f4a45c01 (patch)
tree7a92f03fe8e8b7cd39b8c2bd0fd230107fb7f6ab /filter
parentb15f1c7c234bf21bceafdb89f8b2791ae7fa0641 (diff)
Remove noise from the SVG file exported in SelectionOnly mode
Change-Id: Ia09f6ab40c20c17230e8b544987a5d11b7359f2f (cherry picked from commit 13f8545b84ab62fe9c19b58c024f46f89518ce03)
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 bfee60ca26e1..437ffd297ee1 100644
--- a/filter/source/svg/svgexport.cxx
+++ b/filter/source/svg/svgexport.cxx
@@ -804,6 +804,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" );
@@ -822,7 +823,7 @@ bool SVGFilter::implExportDocument()
if( implLookForFirstVisiblePage() ) // OK! We found at least one visible page.
{
- if( mbPresentation )
+ if( mbPresentation && !mbExportShapeSelection )
{
implGenerateMetaData();
implExportAnimations();
@@ -1263,6 +1264,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 );
@@ -1463,7 +1467,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 );