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

#include <svggradientstopnode.hxx>

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

Public Member Functions

 SvgGradientStopNode (SvgDocument &rDocument, SvgNode *pParent)
 
virtual ~SvgGradientStopNode () override
 
virtual const SvgStyleAttributesgetSvgStyleAttributes () const override
 
virtual void parseAttribute (const OUString &rTokenName, SVGToken aSVGToken, const OUString &aContent) override
 
const SvgNumbergetOffset () const
 offset content More...
 
- 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 maOffset
 local attributes More...
 

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 27 of file svggradientstopnode.hxx.

Constructor & Destructor Documentation

◆ SvgGradientStopNode()

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

Definition at line 24 of file svggradientstopnode.cxx.

References Stop().

◆ ~SvgGradientStopNode()

svgio::svgreader::SvgGradientStopNode::~SvgGradientStopNode ( )
overridevirtual

Definition at line 32 of file svggradientstopnode.cxx.

Member Function Documentation

◆ getOffset()

const SvgNumber & svgio::svgreader::SvgGradientStopNode::getOffset ( ) const
inline

offset content

Definition at line 46 of file svggradientstopnode.hxx.

References maOffset.

Referenced by svgio::svgreader::SvgGradientNode::collectGradientEntries().

◆ getSvgStyleAttributes()

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

◆ parseAttribute()

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

Member Data Documentation

◆ maOffset

SvgNumber svgio::svgreader::SvgGradientStopNode::maOffset
private

local attributes

Definition at line 34 of file svggradientstopnode.hxx.

Referenced by getOffset(), and parseAttribute().

◆ maSvgStyleAttributes

SvgStyleAttributes svgio::svgreader::SvgGradientStopNode::maSvgStyleAttributes
private

use styles

Definition at line 31 of file svggradientstopnode.hxx.

Referenced by getSvgStyleAttributes(), and parseAttribute().


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