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

#include <svgmasknode.hxx>

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

Public Member Functions

 SvgMaskNode (SvgDocument &rDocument, SvgNode *pParent)
 
virtual ~SvgMaskNode () 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
 
void apply (drawinglayer::primitive2d::Primitive2DContainer &rTarget, const std::optional< basegfx::B2DHomMatrix > &pTransform) const
 apply contained clipPath to given geometry #i124852# transform may be needed More...
 
const SvgNumbergetX () const
 x content, set if found in current context More...
 
const SvgNumbergetY () const
 y content, set if found in current context More...
 
const SvgNumbergetWidth () const
 width content, set if found in current context More...
 
const SvgNumbergetHeight () const
 height content, set if found in current context More...
 
const std::optional< basegfx::B2DHomMatrix > & getTransform () const
 transform content More...
 
void setTransform (const std::optional< basegfx::B2DHomMatrix > &pMatrix)
 
void setMaskUnits (const SvgUnits aMaskUnits)
 MaskUnits content. More...
 
void setMaskContentUnits (const SvgUnits aMaskContentUnits)
 MaskContentUnits 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 maX
 variable scan values, dependent of given XAttributeList More...
 
SvgNumber maY
 
SvgNumber maWidth
 
SvgNumber maHeight
 
std::optional< basegfx::B2DHomMatrixmpaTransform
 
SvgUnits maMaskUnits
 
SvgUnits maMaskContentUnits
 

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 svgmasknode.hxx.

Constructor & Destructor Documentation

◆ SvgMaskNode()

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

◆ ~SvgMaskNode()

svgio::svgreader::SvgMaskNode::~SvgMaskNode ( )
overridevirtual

Definition at line 47 of file svgmasknode.cxx.

Member Function Documentation

◆ apply()

void svgio::svgreader::SvgMaskNode::apply ( drawinglayer::primitive2d::Primitive2DContainer rTarget,
const std::optional< basegfx::B2DHomMatrix > &  pTransform 
) const

◆ decomposeSvgNode()

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

Reimplemented from svgio::svgreader::SvgNode.

Definition at line 165 of file svgmasknode.cxx.

References svgio::svgreader::SvgNode::decomposeSvgNode(), getTransform(), and rTarget.

Referenced by apply().

◆ getHeight()

const SvgNumber & svgio::svgreader::SvgMaskNode::getHeight ( ) const
inline

height content, set if found in current context

Definition at line 69 of file svgmasknode.hxx.

References maHeight.

Referenced by apply().

◆ getSvgStyleAttributes()

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

Reimplemented from svgio::svgreader::SvgNode.

Definition at line 51 of file svgmasknode.cxx.

References maSvgStyleAttributes.

◆ getTransform()

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

transform content

Definition at line 72 of file svgmasknode.hxx.

References mpaTransform.

Referenced by decomposeSvgNode().

◆ getWidth()

const SvgNumber & svgio::svgreader::SvgMaskNode::getWidth ( ) const
inline

width content, set if found in current context

Definition at line 66 of file svgmasknode.hxx.

References maWidth.

Referenced by apply().

◆ getX()

const SvgNumber & svgio::svgreader::SvgMaskNode::getX ( ) const
inline

x content, set if found in current context

Definition at line 60 of file svgmasknode.hxx.

References maX.

Referenced by apply().

◆ getY()

const SvgNumber & svgio::svgreader::SvgMaskNode::getY ( ) const
inline

y content, set if found in current context

Definition at line 63 of file svgmasknode.hxx.

References maY.

Referenced by apply().

◆ parseAttribute()

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

◆ setMaskContentUnits()

void svgio::svgreader::SvgMaskNode::setMaskContentUnits ( const SvgUnits  aMaskContentUnits)
inline

MaskContentUnits content.

Definition at line 79 of file svgmasknode.hxx.

References maMaskContentUnits.

Referenced by parseAttribute().

◆ setMaskUnits()

void svgio::svgreader::SvgMaskNode::setMaskUnits ( const SvgUnits  aMaskUnits)
inline

MaskUnits content.

Definition at line 76 of file svgmasknode.hxx.

References maMaskUnits.

Referenced by parseAttribute().

◆ setTransform()

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

Definition at line 73 of file svgmasknode.hxx.

References mpaTransform.

Referenced by parseAttribute().

Member Data Documentation

◆ maHeight

SvgNumber svgio::svgreader::SvgMaskNode::maHeight
private

Definition at line 38 of file svgmasknode.hxx.

Referenced by getHeight(), and parseAttribute().

◆ maMaskContentUnits

SvgUnits svgio::svgreader::SvgMaskNode::maMaskContentUnits
private

Definition at line 42 of file svgmasknode.hxx.

Referenced by apply(), and setMaskContentUnits().

◆ maMaskUnits

SvgUnits svgio::svgreader::SvgMaskNode::maMaskUnits
private

Definition at line 41 of file svgmasknode.hxx.

Referenced by apply(), and setMaskUnits().

◆ maSvgStyleAttributes

SvgStyleAttributes svgio::svgreader::SvgMaskNode::maSvgStyleAttributes
private

use styles

Definition at line 32 of file svgmasknode.hxx.

Referenced by getSvgStyleAttributes(), and parseAttribute().

◆ maWidth

SvgNumber svgio::svgreader::SvgMaskNode::maWidth
private

Definition at line 37 of file svgmasknode.hxx.

Referenced by getWidth(), and parseAttribute().

◆ maX

SvgNumber svgio::svgreader::SvgMaskNode::maX
private

variable scan values, dependent of given XAttributeList

Definition at line 35 of file svgmasknode.hxx.

Referenced by getX(), and parseAttribute().

◆ maY

SvgNumber svgio::svgreader::SvgMaskNode::maY
private

Definition at line 36 of file svgmasknode.hxx.

Referenced by getY(), and parseAttribute().

◆ mpaTransform

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

Definition at line 40 of file svgmasknode.hxx.

Referenced by getTransform(), and setTransform().


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