path: root/svx/source/svdraw/svdmodel.cxx
diff options
authorArmin Le Grand <>2018-05-10 17:49:19 +0200
committerArmin Le Grand <>2018-05-18 20:11:35 +0200
commit3ca7be09834a26fbd1c371deabd7a58111092676 (patch)
tree560c1ee287e529b8879bbc2375b5a48f87c65a51 /svx/source/svdraw/svdmodel.cxx
parentc845135b7b605257b5c94b382d88627282cb05a3 (diff)
Replace SVGFilter using SVGIO
Target of this change is to get rid of the SVGFilter in current LO which is based on the standard-ODF importer using it's functionality by passing in/handing over temporary created XML-Stream-Data. First step is to alternatively import the given SVG file to a newly created Document and to strip the existing Filter-Code. Adding the first prototype of the changed import. It is capable of importing the given SVG to the created Draw/Impress document. It adds the SVG which gets imported by SVGIO as GraphicObject. It adapts sizes and positions of Page and GraphicObject to have a smooth import. Adding stripping of SVGFilter and used ressources. Done as deep as possible, hopefully all places found. Adapted now to create an Impress document. Also added needed adaptions to PageSize(s), including layout and PresObj stuff to make all MasterPages/LayoutPages work correctly. Added reaction on empty SVG. This is needed since the PageSize is adapted to the Graphic. With empty Graphic a Size(0,0) results and this goes wrong. Change-Id: Ia364a5783bee7dadcbe91e700efbabc121cf98f9 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Armin Le Grand <>
Diffstat (limited to 'svx/source/svdraw/svdmodel.cxx')
1 files changed, 12 insertions, 0 deletions
diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx
index 5be0dffeac55..1b17da722a86 100644
--- a/svx/source/svdraw/svdmodel.cxx
+++ b/svx/source/svdraw/svdmodel.cxx
@@ -1718,6 +1718,18 @@ void SdrModel::setUnoModel( const css::uno::Reference< css::uno::XInterface >& x
mxUnoModel = xModel;
+void SdrModel::adaptSizeAndBorderForAllPages(
+ const Size& /*rNewSize*/,
+ long /*nLeft*/,
+ long /*nRight*/,
+ long /*nUpper*/,
+ long /*nLower*/)
+ // base implementation does currently nothing. It may be added if needed,
+ // but we are on SdrModel level here, thus probably have not enough information
+ // to do this for higher-level (derived) Models (e.g. Draw/Impress)
uno::Reference< uno::XInterface > SdrModel::createUnoModel()
OSL_FAIL( "SdrModel::createUnoModel() - base implementation should not be called!" );