24#include <unordered_map>
59 void appendNode(std::unique_ptr<SvgNode> pNode);
void removeSvgNodeFromMapper(const OUString &rStr)
void addSvgNodeToMapper(const OUString &rStr, const SvgNode &rNode)
add/remove nodes with Id to mapper
SvgDocument & operator=(const SvgDocument &)=delete
std::unordered_map< OUString, const SvgNode * > IdTokenMapper
hash mapper to find nodes by their id
const OUString & getAbsolutePath() const
std::unordered_map< OUString, const SvgStyleAttributes * > IdStyleTokenMapper
hash mapper to find css styles by their id
const SvgStyleAttributes * findGlobalCssStyleAttributes(const OUString &rStr) const
void appendNode(std::unique_ptr< SvgNode > pNode)
append another root node, ownership changes
SvgNodeVector maOrphanNodes
invalid nodes that have no parent
const OUString maAbsolutePath
the absolute path of the Svg file in progress (if available)
SvgDocument(OUString aAbsolutePath)
const SvgNode * findSvgNodeById(const OUString &rStr) const
find a node by its Id
void addOrphanNode(SvgNode *pOrphan)
invalid nodes that have no parent
SvgNodeVector maNodes
the document hierarchy with all root nodes
SvgDocument(const SvgDocument &)=delete
void addSvgStyleAttributesToMapper(const OUString &rStr, const SvgStyleAttributes &rSvgStyleAttributes)
add/remove styles to mapper
IdStyleTokenMapper maIdStyleTokenMapperList
bool hasGlobalCssStyleAttributes() const
find a style by its Id
const SvgNodeVector & getSvgNodeVector() const
data read access
IdTokenMapper maIdTokenMapperList
std::vector< std::unique_ptr< SvgNode > > SvgNodeVector