|
LibreOffice Module svgio (master) 1
|
#include <svgmarkernode.hxx>
Public Types | |
| enum class | MarkerUnits { strokeWidth , userSpaceOnUse } |
| enum class | MarkerOrient { notset , auto_start , auto_start_reverse } |
Public Member Functions | |
| SvgMarkerNode (SvgDocument &rDocument, SvgNode *pParent) | |
| virtual | ~SvgMarkerNode () override |
| virtual const SvgStyleAttributes * | getSvgStyleAttributes () const override |
| virtual void | parseAttribute (const OUString &rTokenName, SVGToken aSVGToken, const OUString &aContent) override |
| const drawinglayer::primitive2d::Primitive2DContainer & | getMarkerPrimitives () const |
| get marker primitives buffered, uses decomposeSvgNode internally More... | |
| virtual basegfx::B2DRange | getCurrentViewPort () const override |
| InfoProvider support for % values. More... | |
| const basegfx::B2DRange * | getViewBox () const |
| viewBox content More... | |
| void | setViewBox (const basegfx::B2DRange *pViewBox) |
| const SvgAspectRatio & | getSvgAspectRatio () const |
| SvgAspectRatio content. More... | |
| const SvgNumber & | getRefX () const |
| RefX content, set if found in current context. More... | |
| const SvgNumber & | getRefY () const |
| RefY content, set if found in current context. More... | |
| MarkerUnits | getMarkerUnits () const |
| MarkerUnits content. More... | |
| void | setMarkerUnits (const MarkerUnits aMarkerUnits) |
| const SvgNumber & | getMarkerWidth () const |
| MarkerWidth content, set if found in current context. More... | |
| const SvgNumber & | getMarkerHeight () const |
| MarkerHeight content, set if found in current context. More... | |
| double | getAngle () const |
| Angle content, set if found in current context. More... | |
| void | setAngle (double fAngle) |
| MarkerOrient | getMarkerOrient () const |
| MarkerOrient content. More... | |
| void | setMarkerOrient (const MarkerOrient aMarkerOrient) |
Public Member Functions inherited from svgio::svgreader::SvgNode | |
| SvgNode (SVGToken aType, SvgDocument &rDocument, SvgNode *pParent) | |
| virtual | ~SvgNode () override |
| SvgNode (const SvgNode &)=delete | |
| SvgNode & | operator= (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 SvgStyleAttributes * | getSvgStyleAttributes () 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 SvgDocument & | getDocument () const |
| const SvgNode * | getParent () 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 | |
| drawinglayer::primitive2d::Primitive2DContainer | aPrimitives |
| buffered decomposition More... | |
| SvgStyleAttributes | maSvgStyleAttributes |
| use styles More... | |
| std::unique_ptr< basegfx::B2DRange > | mpViewBox |
| variable scan values, dependent of given XAttributeList More... | |
| SvgAspectRatio | maSvgAspectRatio |
| SvgNumber | maRefX |
| SvgNumber | maRefY |
| MarkerUnits | maMarkerUnits |
| SvgNumber | maMarkerWidth |
| SvgNumber | maMarkerHeight |
| double | mfAngle |
| MarkerOrient | maMarkerOrient |
Additional Inherited Members | |
Protected Member Functions inherited from svgio::svgreader::SvgNode | |
| const SvgStyleAttributes * | checkForCssStyle (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) |
Definition at line 28 of file svgmarkernode.hxx.
|
strong |
| Enumerator | |
|---|---|
| notset | |
| auto_start | |
| auto_start_reverse | |
Definition at line 37 of file svgmarkernode.hxx.
|
strong |
| Enumerator | |
|---|---|
| strokeWidth | |
| userSpaceOnUse | |
Definition at line 31 of file svgmarkernode.hxx.
| svgio::svgreader::SvgMarkerNode::SvgMarkerNode | ( | SvgDocument & | rDocument, |
| SvgNode * | pParent | ||
| ) |
Definition at line 25 of file svgmarkernode.cxx.
References Marker, and svgio::svgreader::notset.
|
overridevirtual |
Definition at line 40 of file svgmarkernode.cxx.
|
inline |
Angle content, set if found in current context.
Definition at line 102 of file svgmarkernode.hxx.
References mfAngle.
Referenced by svgio::svgreader::SvgStyleAttributes::add_markers().
|
overridevirtual |
InfoProvider support for % values.
Reimplemented from svgio::svgreader::SvgNode.
Definition at line 185 of file svgmarkernode.cxx.
References svgio::svgreader::SvgNode::getCurrentViewPort(), and getViewBox().
|
inline |
MarkerHeight content, set if found in current context.
Definition at line 99 of file svgmarkernode.hxx.
References maMarkerHeight.
Referenced by svgio::svgreader::SvgStyleAttributes::prepare_singleMarker().
|
inline |
MarkerOrient content.
Definition at line 106 of file svgmarkernode.hxx.
References maMarkerOrient.
Referenced by svgio::svgreader::SvgStyleAttributes::add_markers().
| const drawinglayer::primitive2d::Primitive2DContainer & svgio::svgreader::SvgMarkerNode::getMarkerPrimitives | ( | ) | const |
get marker primitives buffered, uses decomposeSvgNode internally
Definition at line 175 of file svgmarkernode.cxx.
References aPrimitives, svgio::svgreader::SvgNode::decomposeSvgNode(), svgio::svgreader::SvgNode::getDisplay(), and svgio::svgreader::None.
Referenced by svgio::svgreader::SvgStyleAttributes::prepare_singleMarker().
|
inline |
MarkerUnits content.
Definition at line 92 of file svgmarkernode.hxx.
References maMarkerUnits.
Referenced by svgio::svgreader::SvgStyleAttributes::prepare_singleMarker().
|
inline |
MarkerWidth content, set if found in current context.
Definition at line 96 of file svgmarkernode.hxx.
References maMarkerWidth.
Referenced by svgio::svgreader::SvgStyleAttributes::prepare_singleMarker().
|
inline |
RefX content, set if found in current context.
Definition at line 86 of file svgmarkernode.hxx.
References maRefX.
Referenced by svgio::svgreader::SvgStyleAttributes::prepare_singleMarker().
|
inline |
RefY content, set if found in current context.
Definition at line 89 of file svgmarkernode.hxx.
References maRefY.
Referenced by svgio::svgreader::SvgStyleAttributes::prepare_singleMarker().
|
inline |
SvgAspectRatio content.
Definition at line 83 of file svgmarkernode.hxx.
References maSvgAspectRatio.
Referenced by svgio::svgreader::SvgStyleAttributes::prepare_singleMarker().
|
overridevirtual |
Reimplemented from svgio::svgreader::SvgNode.
Definition at line 44 of file svgmarkernode.cxx.
References svgio::svgreader::SvgNode::checkForCssStyle(), and maSvgStyleAttributes.
|
inline |
viewBox content
Definition at line 79 of file svgmarkernode.hxx.
References mpViewBox.
Referenced by getCurrentViewPort(), and svgio::svgreader::SvgStyleAttributes::prepare_singleMarker().
|
overridevirtual |
Reimplemented from svgio::svgreader::SvgNode.
Definition at line 49 of file svgmarkernode.cxx.
References svgio::svgreader::commonStrings::aStrUserSpaceOnUse, auto_start, auto_start_reverse, o3tl::equalsIgnoreAsciiCase(), basegfx::Range2D< typename TYPE, typename TRAITS >::isEmpty(), svgio::svgreader::SvgNumber::isPositive(), maMarkerHeight, maMarkerWidth, maRefX, maRefY, svgio::svgreader::MarkerHeight, svgio::svgreader::MarkerUnits, svgio::svgreader::MarkerWidth, maSvgAspectRatio, maSvgStyleAttributes, nPos, svgio::svgreader::Orient, svgio::svgreader::SvgNode::parseAttribute(), svgio::svgreader::SvgStyleAttributes::parseStyleAttribute(), svgio::svgreader::PreserveAspectRatio, svgio::svgreader::readAngle(), svgio::svgreader::SvgNode::readLocalCssStyle(), svgio::svgreader::readSingleNumber(), svgio::svgreader::readSvgAspectRatio(), svgio::svgreader::readViewBox(), svgio::svgreader::RefX, svgio::svgreader::RefY, setAngle(), setMarkerOrient(), setMarkerUnits(), setViewBox(), strokeWidth, svgio::svgreader::Style, o3tl::trim(), u, userSpaceOnUse, and svgio::svgreader::ViewBox.
|
inline |
Definition at line 103 of file svgmarkernode.hxx.
References mfAngle.
Referenced by parseAttribute().
|
inline |
Definition at line 107 of file svgmarkernode.hxx.
References maMarkerOrient.
Referenced by parseAttribute().
|
inline |
Definition at line 93 of file svgmarkernode.hxx.
References maMarkerUnits.
Referenced by parseAttribute().
|
inline |
Definition at line 80 of file svgmarkernode.hxx.
References mpViewBox.
Referenced by parseAttribute().
|
private |
buffered decomposition
Definition at line 46 of file svgmarkernode.hxx.
Referenced by getMarkerPrimitives().
|
private |
Definition at line 59 of file svgmarkernode.hxx.
Referenced by getMarkerHeight(), and parseAttribute().
|
private |
Definition at line 61 of file svgmarkernode.hxx.
Referenced by getMarkerOrient(), and setMarkerOrient().
|
private |
Definition at line 57 of file svgmarkernode.hxx.
Referenced by getMarkerUnits(), and setMarkerUnits().
|
private |
Definition at line 58 of file svgmarkernode.hxx.
Referenced by getMarkerWidth(), and parseAttribute().
|
private |
Definition at line 55 of file svgmarkernode.hxx.
Referenced by getRefX(), and parseAttribute().
|
private |
Definition at line 56 of file svgmarkernode.hxx.
Referenced by getRefY(), and parseAttribute().
|
private |
Definition at line 54 of file svgmarkernode.hxx.
Referenced by getSvgAspectRatio(), and parseAttribute().
|
private |
use styles
Definition at line 49 of file svgmarkernode.hxx.
Referenced by getSvgStyleAttributes(), and parseAttribute().
|
private |
Definition at line 60 of file svgmarkernode.hxx.
Referenced by getAngle(), and setAngle().
|
private |
variable scan values, dependent of given XAttributeList
Definition at line 53 of file svgmarkernode.hxx.
Referenced by getViewBox(), and setViewBox().