LibreOffice Module svgio (master) 1
|
#include <svglinenode.hxx>
Public Member Functions | |
SvgLineNode (SvgDocument &rDocument, SvgNode *pParent) | |
virtual | ~SvgLineNode () override |
virtual const SvgStyleAttributes * | getSvgStyleAttributes () 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 SvgNumber & | getX1 () const |
X1 content, set if found in current context. More... | |
const SvgNumber & | getY1 () const |
Y1 content, set if found in current context. More... | |
const SvgNumber & | getX2 () const |
X2 content, set if found in current context. More... | |
const SvgNumber & | getY2 () const |
Y2 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 | |
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 | |
SvgStyleAttributes | maSvgStyleAttributes |
use styles More... | |
SvgNumber | maX1 |
variable scan values, dependent of given XAttributeList More... | |
SvgNumber | maY1 |
SvgNumber | maX2 |
SvgNumber | maY2 |
std::optional< basegfx::B2DHomMatrix > | mpaTransform |
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 svglinenode.hxx.
svgio::svgreader::SvgLineNode::SvgLineNode | ( | SvgDocument & | rDocument, |
SvgNode * | pParent | ||
) |
Definition at line 26 of file svglinenode.cxx.
|
overridevirtual |
Definition at line 38 of file svglinenode.cxx.
|
overridevirtual |
Reimplemented from svgio::svgreader::SvgNode.
Definition at line 120 of file svglinenode.cxx.
References svgio::svgreader::SvgStyleAttributes::add_path(), svgio::svgreader::SvgStyleAttributes::add_postProcess(), basegfx::B2DPolygon::append(), getSvgStyleAttributes(), getTransform(), getX1(), getX2(), getY1(), getY2(), rTarget, solve(), X, svgio::svgreader::xcoordinate, Y, and svgio::svgreader::ycoordinate.
|
overridevirtual |
Reimplemented from svgio::svgreader::SvgNode.
Definition at line 42 of file svglinenode.cxx.
References svgio::svgreader::SvgNode::checkForCssStyle(), and maSvgStyleAttributes.
Referenced by decomposeSvgNode().
|
inline |
transform content, set if found in current context
Definition at line 64 of file svglinenode.hxx.
References mpaTransform.
Referenced by decomposeSvgNode().
|
inline |
X1 content, set if found in current context.
Definition at line 52 of file svglinenode.hxx.
References maX1.
Referenced by decomposeSvgNode().
|
inline |
X2 content, set if found in current context.
Definition at line 58 of file svglinenode.hxx.
References maX2.
Referenced by decomposeSvgNode().
|
inline |
Y1 content, set if found in current context.
Definition at line 55 of file svglinenode.hxx.
References maY1.
Referenced by decomposeSvgNode().
|
inline |
Y2 content, set if found in current context.
Definition at line 61 of file svglinenode.hxx.
References maY2.
Referenced by decomposeSvgNode().
|
overridevirtual |
Reimplemented from svgio::svgreader::SvgNode.
Definition at line 47 of file svglinenode.cxx.
References basegfx::B2DHomMatrix::isIdentity(), maSvgStyleAttributes, maX1, maX2, maY1, maY2, svgio::svgreader::SvgNode::parseAttribute(), svgio::svgreader::SvgStyleAttributes::parseStyleAttribute(), svgio::svgreader::SvgNode::readLocalCssStyle(), svgio::svgreader::readSingleNumber(), svgio::svgreader::readTransform(), setTransform(), svgio::svgreader::Style, svgio::svgreader::Transform, svgio::svgreader::X1, svgio::svgreader::X2, svgio::svgreader::Y1, and svgio::svgreader::Y2.
|
inline |
Definition at line 65 of file svglinenode.hxx.
References mpaTransform.
Referenced by parseAttribute().
|
private |
use styles
Definition at line 32 of file svglinenode.hxx.
Referenced by getSvgStyleAttributes(), and parseAttribute().
|
private |
variable scan values, dependent of given XAttributeList
Definition at line 35 of file svglinenode.hxx.
Referenced by getX1(), and parseAttribute().
|
private |
Definition at line 37 of file svglinenode.hxx.
Referenced by getX2(), and parseAttribute().
|
private |
Definition at line 36 of file svglinenode.hxx.
Referenced by getY1(), and parseAttribute().
|
private |
Definition at line 38 of file svglinenode.hxx.
Referenced by getY2(), and parseAttribute().
|
private |
Definition at line 39 of file svglinenode.hxx.
Referenced by getTransform(), and setTransform().