Md4qt
algo.h
Go to the documentation of this file.
virtual ItemType type() const =0
void process(std::shared_ptr< Document< Trait > > d)
Walk through the document.
Definition visitor.h:33
virtual void onFootnotes(std::shared_ptr< Document< Trait > > doc)
Process all footnotes.
Definition algo.h:314
virtual void walk(std::shared_ptr< Document< Trait > > doc)
Walk through the document.
Definition algo.h:47
void onHorizontalLine(HorizontalLine< Trait > *l) override
Process horizontal line.
Definition algo.h:232
ItemFunctor< Trait > m_func
Functor that will be invoked if all circumstances will be observed.
Definition algo.h:329
const Trait::template Vector< ItemType > & m_types
List of types that should be processed.
Definition algo.h:327
AlgoVisitor(unsigned int mnl, const typename Trait::template Vector< ItemType > &t, ItemFunctor< Trait > f)
Definition algo.h:35
void onFootnoteRef(FootnoteRef< Trait > *ref) override
Process footnote reference.
Definition algo.h:270
void onAddLineEnding() override
For some generator it's important to keep line endings like they were in Markdown.
Definition algo.h:55
unsigned int m_currentNestingLevel
Current nesting level, increments/decrements during walking through te document.
Definition algo.h:323
~AlgoVisitor() override=default
void forEach(const typename Trait::template Vector< ItemType > &types, std::shared_ptr< Document< Trait > > doc, ItemFunctor< Trait > func, unsigned int maxNestingLevel=0)
Calls function for each item in the document with the given type.
Definition algo.h:375
Auxiliary structure to increment/decrement nesting level during walking through the document,...
Definition algo.h:333
~IncrementNestingLevel()
Definition algo.h:344
bool nextAllowed() const
Definition algo.h:357
bool allowed(ItemType t) const
Definition algo.h:350
IncrementNestingLevel(unsigned int &l, unsigned int m, const typename Trait::template Vector< ItemType > &t)
Definition algo.h:334
const Trait::template Vector< ItemType > & m_types
Reference to list of allowed types.
Definition algo.h:367
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Nov 6 2024 12:12:28 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Nov 6 2024 12:12:28 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.