MD::details::HtmlVisitor
Classes |
Public Member Functions |
Protected Member Functions |
Protected Attributes |
List of all members  
  MD::details::HtmlVisitor< Trait > Class Template Reference
#include <html.h>
Inheritance diagram for MD::details::HtmlVisitor< Trait >:

Classes | |
| struct | FootnoteRefStuff | 
Public Member Functions | |
| HtmlVisitor ()=default | |
| ~HtmlVisitor () override=default | |
| virtual Trait::String | toHtml (std::shared_ptr< Document< Trait > > doc, const typename Trait::String &hrefForRefBackImage, bool wrappedInArticle=true) | 
  Public Member Functions inherited from MD::Visitor< Trait > | |
| Visitor ()=default | |
| virtual | ~Visitor ()=default | 
| void | process (std::shared_ptr< Document< Trait > > d) | 
Protected Member Functions | |
| virtual void | closeStyle (const typename ItemWithOpts< Trait >::Styles &styles) | 
| virtual Trait::String | headingIdToHtml (Heading< Trait > *h) | 
| void | onAddLineEnding () override | 
| void | onAnchor (Anchor< Trait > *a) override | 
| void | onBlockquote (Blockquote< Trait > *b) override | 
| void | onCode (Code< Trait > *c) override | 
| void | onFootnoteRef (FootnoteRef< Trait > *ref) override | 
| virtual void | onFootnotes (const typename Trait::String &hrefForRefBackImage) | 
| void | onHeading (Heading< Trait > *h) override | 
| virtual void | onHeading (Heading< Trait > *h, const typename Trait::String &ht) | 
| void | onHorizontalLine (HorizontalLine< Trait > *) override | 
| void | onImage (Image< Trait > *i) override | 
| void | onInlineCode (Code< Trait > *c) override | 
| void | onLineBreak (LineBreak< Trait > *) override | 
| void | onLink (Link< Trait > *l) override | 
| void | onList (List< Trait > *l) override | 
| void | onListItem (ListItem< Trait > *i, bool first) override | 
| void | onMath (Math< Trait > *m) override | 
| void | onParagraph (Paragraph< Trait > *p, bool wrap) override | 
| void | onRawHtml (RawHtml< Trait > *h) override | 
| void | onTable (Table< Trait > *t) override | 
| void | onText (Text< Trait > *t) override | 
| virtual void | openStyle (const typename ItemWithOpts< Trait >::Styles &styles) | 
| virtual Trait::String | prepareTextForHtml (const typename Trait::String &t) | 
| virtual Trait::String | tableAlignmentToHtml (typename Table< Trait >::Alignment a) | 
  Protected Member Functions inherited from MD::Visitor< Trait > | |
| virtual void | onFootnote (Footnote< Trait > *f) | 
| virtual void | onTableCell (TableCell< Trait > *c) | 
| virtual void | onUserDefined (Item< Trait > *item) | 
Protected Attributes | |
| bool | m_dontIncrementFootnoteCount = false | 
| Trait::template Vector< FootnoteRefStuff > | m_fns | 
| Trait::String | m_html | 
| bool | m_isWrappedInArticle = true | 
| bool | m_justCollectFootnoteRefs = false | 
  Protected Attributes inherited from MD::Visitor< Trait > | |
| Trait::template Vector< typename Trait::String > | m_anchors | 
| std::shared_ptr< Document< Trait > > | m_doc | 
Detailed Description
template<class Trait>
class MD::details::HtmlVisitor< Trait >
class MD::details::HtmlVisitor< Trait >
HTML visitor interface to walk through Document.
Constructor & Destructor Documentation
◆ HtmlVisitor()
template<class Trait> 
      
  | 
  default | 
◆ ~HtmlVisitor()
template<class Trait> 
      
  | 
  overridedefault | 
Member Function Documentation
◆ closeStyle()
template<class Trait> 
      
  | 
  inlineprotectedvirtual | 
◆ headingIdToHtml()
template<class Trait> 
      
  | 
  inlineprotectedvirtual | 
◆ onAddLineEnding()
template<class Trait> 
      
  | 
  inlineoverrideprotectedvirtual | 
◆ onAnchor()
template<class Trait> 
      
  | 
  inlineoverrideprotectedvirtual | 
◆ onBlockquote()
template<class Trait> 
      
  | 
  inlineoverrideprotectedvirtual | 
◆ onCode()
template<class Trait> 
      
  | 
  inlineoverrideprotectedvirtual | 
◆ onFootnoteRef()
template<class Trait> 
      
  | 
  inlineoverrideprotectedvirtual | 
◆ onFootnotes()
template<class Trait> 
      
  | 
  inlineprotectedvirtual | 
◆ onHeading() [1/2]
template<class Trait> 
      
  | 
  inlineoverrideprotectedvirtual | 
◆ onHeading() [2/2]
template<class Trait> 
      
  | 
  inlineprotectedvirtual | 
◆ onHorizontalLine()
template<class Trait> 
      
  | 
  inlineoverrideprotectedvirtual | 
◆ onImage()
template<class Trait> 
      
  | 
  inlineoverrideprotectedvirtual | 
◆ onInlineCode()
template<class Trait> 
      
  | 
  inlineoverrideprotectedvirtual | 
◆ onLineBreak()
template<class Trait> 
      
  | 
  inlineoverrideprotectedvirtual | 
◆ onLink()
template<class Trait> 
      
  | 
  inlineoverrideprotectedvirtual | 
◆ onList()
template<class Trait> 
      
  | 
  inlineoverrideprotectedvirtual | 
◆ onListItem()
template<class Trait> 
      
  | 
  inlineoverrideprotectedvirtual | 
Handle list item.
- Parameters
 - 
  
i List item. first Is this item first in the list?  
Reimplemented from MD::Visitor< Trait >.
◆ onMath()
template<class Trait> 
      
  | 
  inlineoverrideprotectedvirtual | 
◆ onParagraph()
template<class Trait> 
      
  | 
  inlineoverrideprotectedvirtual | 
Handle paragraph.
- Parameters
 - 
  
p Paragraph. wrap Wrap this paragraph with something or no? It's useful to not wrap standalone paragraph in list item, for example.  
Reimplemented from MD::Visitor< Trait >.
◆ onRawHtml()
template<class Trait> 
      
  | 
  inlineoverrideprotectedvirtual | 
◆ onTable()
template<class Trait> 
      
  | 
  inlineoverrideprotectedvirtual | 
◆ onText()
template<class Trait> 
      
  | 
  inlineoverrideprotectedvirtual | 
◆ openStyle()
template<class Trait> 
      
  | 
  inlineprotectedvirtual | 
◆ prepareTextForHtml()
template<class Trait> 
      
  | 
  inlineprotectedvirtual | 
◆ tableAlignmentToHtml()
template<class Trait> 
      
  | 
  inlineprotectedvirtual | 
◆ toHtml()
template<class Trait> 
      
  | 
  inlinevirtual | 
Member Data Documentation
◆ m_dontIncrementFootnoteCount
template<class Trait> 
      
  | 
  protected | 
◆ m_fns
template<class Trait> 
      
  | 
  protected | 
◆ m_html
template<class Trait> 
      
  | 
  protected | 
◆ m_isWrappedInArticle
template<class Trait> 
      
  | 
  protected | 
◆ m_justCollectFootnoteRefs
template<class Trait> 
      
  | 
  protected | 
The documentation for this class was generated from the following file:
  This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri May 2 2025 12:05:26 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
          Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri May 2 2025 12:05:26 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
 Public Member Functions inherited from