// helper to convert a string associated with a token of type SVGTokenDisplay // to the enum Display. Empty strings return the default 'Display_inline' with // which members should be initialized
Display getDisplayFromContent(std::u16string_view aContent);
class Visitor;
class SvgNode : public InfoProvider
{ private: /// basic data, Type, document we belong to and parent (if not root)
SVGToken maType;
SvgDocument& mrDocument; const SvgNode* mpParent; const SvgNode* mpAlternativeParent;
/// sub hierarchy
std::vector< std::unique_ptr<SvgNode> > maChildren;
/// Id svan value
std::optional<OUString> mpId;
/// Class svan value
std::optional<OUString> mpClass;
// CSS style vector chain, used in decompose phase and built up once per node. // It contains the StyleHierarchy for the local node. Independent from the // node hierarchy itself which also needs to be used in style entry solving
::std::vector< const SvgStyleAttributes* > maCssStyleVector;
/// possible local CssStyle, e.g. style="fill:red; stroke:red;"
std::unique_ptr<SvgStyleAttributes> mpLocalCssStyle;
mutablebool mbDecomposing;
// flag if maCssStyleVector is already computed (done only once) bool mbCssStyleVectorBuilt : 1;
protected: /// helper to evtl. link to css style const SvgStyleAttributes* checkForCssStyle(const SvgStyleAttributes& rOriginal) const;
/// helper for filling the CssStyle vector once dependent on mbCssStyleVectorBuilt void fillCssStyleVector(const SvgStyleAttributes& rOriginal); void addCssStyle( const SvgDocument& rDocument, const OUString& aConcatenated); void fillCssStyleVectorUsingHierarchyAndSelectors( const SvgNode& rCurrent,
std::u16string_view aConcatenated); void fillCssStyleVectorUsingParent( const SvgNode& rCurrent);
/// InfoProvider support for %, em and ex values virtual basegfx::B2DRange getCurrentViewPort() const override; virtualdouble getCurrentFontSize() const override; virtualdouble getCurrentXHeight() const override;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.