LibreOffice Module svgio (master) 1
Public Member Functions | Private Attributes | List of all members
svgio::svgreader::SvgEllipseNode Class Referencefinal

#include <svgellipsenode.hxx>

Inheritance diagram for svgio::svgreader::SvgEllipseNode:
[legend]
Collaboration diagram for svgio::svgreader::SvgEllipseNode:
[legend]

Public Member Functions

 SvgEllipseNode (SvgDocument &rDocument, SvgNode *pParent)
 
virtual ~SvgEllipseNode () override
 
virtual const SvgStyleAttributesgetSvgStyleAttributes () const override
 
virtual void parseAttribute (const OUString &rTokenName, SVGToken aSVGToken, const OUString &aContent) override
 
virtual void decomposeSvgNode (drawinglayer::primitive2d::Primitive2DContainer &rTarget, bool bReferenced) const override
 
const SvgNumbergetCx () const
 Cx content, set if found in current context. More...
 
const SvgNumbergetCy () const
 Cy content, set if found in current context. More...
 
const SvgNumbergetRx () const
 Rx content, set if found in current context. More...
 
const SvgNumbergetRy () const
 Ry content, set if found in current context. More...
 
const std::optional< basegfx::B2DHomMatrix > & getTransform () const
 transform content, set if found in current context More...
 
void setTransform (const std::optional< basegfx::B2DHomMatrix > &pMatrix)
 
- Public Member Functions inherited from svgio::svgreader::SvgNode
 SvgNode (SVGToken aType, SvgDocument &rDocument, SvgNode *pParent)
 
virtual ~SvgNode () override
 
 SvgNode (const SvgNode &)=delete
 
SvgNodeoperator= (const SvgNode &)=delete
 
void accept (Visitor &rVisitor)
 
void readLocalCssStyle (std::u16string_view aContent)
 scan helper to read and interpret a local CssStyle to mpLocalCssStyle More...
 
void parseAttributes (const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs)
 style helpers More...
 
virtual const SvgStyleAttributesgetSvgStyleAttributes () const
 
virtual void parseAttribute (const OUString &rTokenName, SVGToken aSVGToken, const OUString &aContent)
 
virtual void decomposeSvgNode (drawinglayer::primitive2d::Primitive2DContainer &rTarget, bool bReferenced) const
 
virtual bool supportsParentStyle () const
 #i125258# tell if this node is allowed to have a parent style (e.g. defs do not) More...
 
SVGToken getType () const
 basic data read access More...
 
const SvgDocumentgetDocument () const
 
const SvgNodegetParent () const
 
const std::vector< std::unique_ptr< SvgNode > > & getChildren () const
 
virtual basegfx::B2DRange getCurrentViewPort () const override
 InfoProvider support for %, em and ex values. More...
 
virtual double getCurrentFontSizeInherited () const override
 return font size of node inherited from parents More...
 
virtual double getCurrentXHeightInherited () const override
 return xheight of node inherited from parents More...
 
double getCurrentFontSize () const
 
double getCurrentXHeight () const
 
std::optional< OUString > const & getId () const
 Id access. More...
 
void setId (OUString const &)
 
std::optional< OUString > const & getClass () const
 Class access. More...
 
void setClass (OUString const &)
 
XmlSpace getXmlSpace () const
 XmlSpace access. More...
 
void setXmlSpace (XmlSpace eXmlSpace)
 
Display getDisplay () const
 Display access #i121656#. More...
 
void setDisplay (Display eDisplay)
 
void setAlternativeParent (const SvgNode *pAlternativeParent=nullptr)
 alternative parent More...
 
bool hasLocalCssStyle ()
 Check if there is a local css style. More...
 
- Public Member Functions inherited from svgio::svgreader::InfoProvider
virtual ~InfoProvider ()
 
virtual basegfx::B2DRange getCurrentViewPort () const =0
 
virtual double getCurrentFontSizeInherited () const =0
 return font size of node inherited from parents More...
 
virtual double getCurrentXHeightInherited () const =0
 return xheight of node inherited from parents More...
 

Private Attributes

SvgStyleAttributes maSvgStyleAttributes
 use styles More...
 
SvgNumber maCx
 variable scan values, dependent of given XAttributeList More...
 
SvgNumber maCy
 
SvgNumber maRx
 
SvgNumber maRy
 
std::optional< basegfx::B2DHomMatrixmpaTransform
 

Additional Inherited Members

- Protected Member Functions inherited from svgio::svgreader::SvgNode
const SvgStyleAttributescheckForCssStyle (const SvgStyleAttributes &rOriginal) const
 helper to evtl. link to css style More...
 
void fillCssStyleVector (const SvgStyleAttributes &rOriginal)
 helper for filling the CssStyle vector once dependent on mbCssStyleVectorBuilt More...
 
void addCssStyle (const SvgDocument &rDocument, const OUString &aConcatenated)
 
void fillCssStyleVectorUsingHierarchyAndSelectors (const SvgNode &rCurrent, const OUString &aConcatenated)
 
void fillCssStyleVectorUsingParent (const SvgNode &rCurrent)
 

Detailed Description

Definition at line 28 of file svgellipsenode.hxx.

Constructor & Destructor Documentation

◆ SvgEllipseNode()

svgio::svgreader::SvgEllipseNode::SvgEllipseNode ( SvgDocument rDocument,
SvgNode pParent 
)

Definition at line 27 of file svgellipsenode.cxx.

References svgio::svgreader::Ellipse.

◆ ~SvgEllipseNode()

svgio::svgreader::SvgEllipseNode::~SvgEllipseNode ( )
overridevirtual

Definition at line 39 of file svgellipsenode.cxx.

Member Function Documentation

◆ decomposeSvgNode()

void svgio::svgreader::SvgEllipseNode::decomposeSvgNode ( drawinglayer::primitive2d::Primitive2DContainer rTarget,
bool  bReferenced 
) const
overridevirtual

◆ getCx()

const SvgNumber & svgio::svgreader::SvgEllipseNode::getCx ( ) const
inline

Cx content, set if found in current context.

Definition at line 52 of file svgellipsenode.hxx.

References maCx.

Referenced by decomposeSvgNode().

◆ getCy()

const SvgNumber & svgio::svgreader::SvgEllipseNode::getCy ( ) const
inline

Cy content, set if found in current context.

Definition at line 55 of file svgellipsenode.hxx.

References maCy.

Referenced by decomposeSvgNode().

◆ getRx()

const SvgNumber & svgio::svgreader::SvgEllipseNode::getRx ( ) const
inline

Rx content, set if found in current context.

Definition at line 58 of file svgellipsenode.hxx.

References maRx.

Referenced by decomposeSvgNode().

◆ getRy()

const SvgNumber & svgio::svgreader::SvgEllipseNode::getRy ( ) const
inline

Ry content, set if found in current context.

Definition at line 61 of file svgellipsenode.hxx.

References maRy.

Referenced by decomposeSvgNode().

◆ getSvgStyleAttributes()

const SvgStyleAttributes * svgio::svgreader::SvgEllipseNode::getSvgStyleAttributes ( ) const
overridevirtual

Reimplemented from svgio::svgreader::SvgNode.

Definition at line 43 of file svgellipsenode.cxx.

References svgio::svgreader::SvgNode::checkForCssStyle(), and maSvgStyleAttributes.

Referenced by decomposeSvgNode().

◆ getTransform()

const std::optional< basegfx::B2DHomMatrix > & svgio::svgreader::SvgEllipseNode::getTransform ( ) const
inline

transform content, set if found in current context

Definition at line 64 of file svgellipsenode.hxx.

References mpaTransform.

Referenced by decomposeSvgNode().

◆ parseAttribute()

void svgio::svgreader::SvgEllipseNode::parseAttribute ( const OUString &  rTokenName,
SVGToken  aSVGToken,
const OUString &  aContent 
)
overridevirtual

◆ setTransform()

void svgio::svgreader::SvgEllipseNode::setTransform ( const std::optional< basegfx::B2DHomMatrix > &  pMatrix)
inline

Definition at line 65 of file svgellipsenode.hxx.

References mpaTransform.

Referenced by parseAttribute().

Member Data Documentation

◆ maCx

SvgNumber svgio::svgreader::SvgEllipseNode::maCx
private

variable scan values, dependent of given XAttributeList

Definition at line 35 of file svgellipsenode.hxx.

Referenced by getCx(), and parseAttribute().

◆ maCy

SvgNumber svgio::svgreader::SvgEllipseNode::maCy
private

Definition at line 36 of file svgellipsenode.hxx.

Referenced by getCy(), and parseAttribute().

◆ maRx

SvgNumber svgio::svgreader::SvgEllipseNode::maRx
private

Definition at line 37 of file svgellipsenode.hxx.

Referenced by getRx(), and parseAttribute().

◆ maRy

SvgNumber svgio::svgreader::SvgEllipseNode::maRy
private

Definition at line 38 of file svgellipsenode.hxx.

Referenced by getRy(), and parseAttribute().

◆ maSvgStyleAttributes

SvgStyleAttributes svgio::svgreader::SvgEllipseNode::maSvgStyleAttributes
private

use styles

Definition at line 32 of file svgellipsenode.hxx.

Referenced by getSvgStyleAttributes(), and parseAttribute().

◆ mpaTransform

std::optional<basegfx::B2DHomMatrix> svgio::svgreader::SvgEllipseNode::mpaTransform
private

Definition at line 39 of file svgellipsenode.hxx.

Referenced by getTransform(), and setTransform().


The documentation for this class was generated from the following files: