From b1ac43d1ab416d334a0feb93244941eee447abcf Mon Sep 17 00:00:00 2001 From: Armin Le Grand Date: Wed, 14 Aug 2013 11:44:08 +0100 Subject: Resolves: fdo#67047 fdo#64125 #i122600# svgio improvements (list see in task itself) and a regression/crash Patch by: regina Review by: ALG (cherry picked from commit 8a9164f5f853db66b4453fc6fb798acf0a88a238) Conflicts: svgio/source/svgreader/svgsvgnode.cxx Change-Id: I1c29073a3a18d2e645378e64a9fb28e73fc7e9ab --- svgio/inc/svgio/svgreader/svgsvgnode.hxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'svgio/inc/svgio/svgreader/svgsvgnode.hxx') diff --git a/svgio/inc/svgio/svgreader/svgsvgnode.hxx b/svgio/inc/svgio/svgreader/svgsvgnode.hxx index 02f7e50e25c9..7226d7fcfc27 100644 --- a/svgio/inc/svgio/svgreader/svgsvgnode.hxx +++ b/svgio/inc/svgio/svgreader/svgsvgnode.hxx @@ -53,7 +53,15 @@ namespace svgio virtual void parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent); virtual void decomposeSvgNode(drawinglayer::primitive2d::Primitive2DSequence& rTarget, bool bReferenced) const; - /// InfoProvider support for % values + /// Seeks width and height of viewport, which is current before the new viewport is set. + // needed for percentage unit in x, y, width or height + virtual void seekReferenceWidth(double& fWidth, bool& bHasFound) const; + virtual void seekReferenceHeight(double& fHeight, bool& bHasFound) const; + + /// InfoProvider support for % values in childs + // The returned 'CurrentViewPort' is the viewport as it is set by this svg element + // and as it is needed to resolve relative values in childs + // The method does not check for invalid width and height virtual const basegfx::B2DRange* getCurrentViewPort() const; /// viewBox content -- cgit v1.2.3