summaryrefslogtreecommitdiffstats
path: root/svgio/inc/svgsymbolnode.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'svgio/inc/svgsymbolnode.hxx')
-rw-r--r--svgio/inc/svgsymbolnode.hxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/svgio/inc/svgsymbolnode.hxx b/svgio/inc/svgsymbolnode.hxx
index 7a19b335b7..e82f75a767 100644
--- a/svgio/inc/svgsymbolnode.hxx
+++ b/svgio/inc/svgsymbolnode.hxx
@@ -29,6 +29,12 @@ namespace svgio::svgreader
/// use styles
SvgStyleAttributes maSvgStyleAttributes;
+ SvgNumber maX;
+ SvgNumber maY;
+ SvgNumber maWidth;
+ SvgNumber maHeight;
+
+ std::unique_ptr<basegfx::B2DRange> mpViewBox;
SvgAspectRatio maSvgAspectRatio;
public:
@@ -39,6 +45,15 @@ namespace svgio::svgreader
virtual const SvgStyleAttributes* getSvgStyleAttributes() const override;
virtual void parseAttribute(SVGToken aSVGToken, const OUString& aContent) override;
+ virtual void decomposeSvgNode(drawinglayer::primitive2d::Primitive2DContainer& rTarget, bool bReferenced) const override;
+
+ /// viewBox content
+ const basegfx::B2DRange* getViewBox() const { return mpViewBox.get(); }
+ void setViewBox(const basegfx::B2DRange* pViewBox) { mpViewBox.reset(); if(pViewBox) mpViewBox.reset( new basegfx::B2DRange(*pViewBox) ); }
+
+ /// SvgAspectRatio content
+ const SvgAspectRatio& getSvgAspectRatio() const { return maSvgAspectRatio; }
+
};
} // end of namespace svgio::svgreader