|
LibreOffice Module svgio (master) 1
|
#include <svgstylenode.hxx>
Public Member Functions | |
| SvgStyleNode (SvgDocument &rDocument, SvgNode *pParent) | |
| virtual bool | supportsParentStyle () const override |
| #i125258# tell if this node is allowed to have a parent style (e.g. defs do not) More... | |
| virtual void | parseAttribute (const OUString &rTokenName, SVGToken aSVGToken, const OUString &aContent) override |
| void | addCssStyleSheet (std::u16string_view aSelectors, const SvgStyleAttributes &rNewStyle) |
| CssStyleSheet add helpers. More... | |
| void | addCssStyleSheet (std::u16string_view aSelectors, std::u16string_view aContent) |
| void | addCssStyleSheet (std::u16string_view aSelectorsAndContent) |
| bool | isTextCss () const |
| textCss access More... | |
| void | setTextCss (bool bNew) |
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 | |
| std::unordered_map< OUString, std::unique_ptr< SvgStyleAttributes > > | maSvgStyleAttributes |
| use styles More... | |
| bool | mbTextCss: 1 |
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 svgstylenode.hxx.
| svgio::svgreader::SvgStyleNode::SvgStyleNode | ( | SvgDocument & | rDocument, |
| SvgNode * | pParent | ||
| ) |
Definition at line 27 of file svgstylenode.cxx.
References Style.
| void svgio::svgreader::SvgStyleNode::addCssStyleSheet | ( | std::u16string_view | aSelectors, |
| const SvgStyleAttributes & | rNewStyle | ||
| ) |
CssStyleSheet add helpers.
Definition at line 74 of file svgstylenode.cxx.
References a, svgio::svgreader::copyToLimiter(), svgio::svgreader::SvgNode::getDocument(), nPos, svgio::svgreader::skip_char(), o3tl::trim(), and u.
Referenced by addCssStyleSheet(), and svgio::svgreader::SvgDocHdl::endElement().
| void svgio::svgreader::SvgStyleNode::addCssStyleSheet | ( | std::u16string_view | aSelectors, |
| std::u16string_view | aContent | ||
| ) |
Definition at line 137 of file svgstylenode.cxx.
References addCssStyleSheet(), svgio::svgreader::copyToLimiter(), maSvgStyleAttributes, nPos, svgio::svgreader::skip_char(), o3tl::trim(), and u.
| void svgio::svgreader::SvgStyleNode::addCssStyleSheet | ( | std::u16string_view | aSelectorsAndContent | ) |
Definition at line 184 of file svgstylenode.cxx.
References addCssStyleSheet(), svgio::svgreader::copyToLimiter(), nPos, svgio::svgreader::skip_char(), o3tl::trim(), and u.
|
inline |
textCss access
Definition at line 52 of file svgstylenode.hxx.
References mbTextCss.
Referenced by svgio::svgreader::SvgDocHdl::characters(), svgio::svgreader::SvgDocHdl::endElement(), svgio::svgreader::SvgDocHdl::startElement(), and supportsParentStyle().
|
overridevirtual |
Reimplemented from svgio::svgreader::SvgNode.
Definition at line 48 of file svgstylenode.cxx.
References o3tl::equalsIgnoreAsciiCase(), svgio::svgreader::SvgNode::parseAttribute(), setTextCss(), o3tl::trim(), svgio::svgreader::Type, and u.
|
inline |
Definition at line 53 of file svgstylenode.hxx.
References mbTextCss.
Referenced by parseAttribute().
|
overridevirtual |
#i125258# tell if this node is allowed to have a parent style (e.g. defs do not)
Reimplemented from svgio::svgreader::SvgNode.
Definition at line 37 of file svgstylenode.cxx.
References isTextCss(), and svgio::svgreader::SvgNode::supportsParentStyle().
|
private |
|
private |
Definition at line 34 of file svgstylenode.hxx.
Referenced by isTextCss(), and setTextCss().