summaryrefslogtreecommitdiff
path: root/svgio/inc/svgio/svgreader/svgsvgnode.hxx
diff options
context:
space:
mode:
authorArmin Le Grand <alg@apache.org>2013-08-14 11:44:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-08-14 12:07:51 +0100
commitb1ac43d1ab416d334a0feb93244941eee447abcf (patch)
tree72cd01bd4fd07f6a3541038a9703c985fe671e64 /svgio/inc/svgio/svgreader/svgsvgnode.hxx
parentf0b9a27703db603a6a2fcf1d6f4db87e0bf4823b (diff)
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
Diffstat (limited to 'svgio/inc/svgio/svgreader/svgsvgnode.hxx')
-rw-r--r--svgio/inc/svgio/svgreader/svgsvgnode.hxx10
1 files changed, 9 insertions, 1 deletions
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