#include <docparser.h>
Inheritance diagram for DocImage:
Public Types | |
enum | Type { Html, Latex, Rtf } |
Public Member Functions | |
DocImage (DocNode *parent, const HtmlAttribList &attribs, const QString &name, Type t) | |
Kind | kind () const |
Type | type () const |
QString | name () const |
DocNode * | parent () const |
bool | hasCaption () const |
QString | width () const |
QString | height () const |
QString | relPath () const |
const HtmlAttribList & | attribs () const |
void | accept (DocVisitor *v) |
void | parse () |
Definition at line 586 of file docparser.h.
enum DocImage::Type |
DocImage::DocImage | ( | DocNode * | parent, | |
const HtmlAttribList & | attribs, | |||
const QString & | name, | |||
Type | t | |||
) |
Definition at line 2409 of file docparser.cpp.
Kind DocImage::kind | ( | ) | const [inline, virtual] |
Returns the kind of node. Provides runtime type information
Implements DocNode.
Definition at line 591 of file docparser.h.
References DocNode::Kind_Image.
Type DocImage::type | ( | ) | const [inline] |
Definition at line 592 of file docparser.h.
Referenced by LatexDocVisitor::visitPost(), HtmlDocVisitor::visitPost(), XmlDocVisitor::visitPre(), RTFDocVisitor::visitPre(), PrintDocVisitor::visitPre(), LatexDocVisitor::visitPre(), and HtmlDocVisitor::visitPre().
QString DocImage::name | ( | ) | const [inline] |
Definition at line 593 of file docparser.h.
Referenced by XmlDocVisitor::visitPre(), RTFDocVisitor::visitPre(), PrintDocVisitor::visitPre(), LatexDocVisitor::visitPre(), and HtmlDocVisitor::visitPre().
DocNode* DocImage::parent | ( | ) | const [inline, virtual] |
Returns the parent of this node or 0 for the root node.
Implements DocNode.
Definition at line 594 of file docparser.h.
bool DocImage::hasCaption | ( | ) | const [inline] |
Definition at line 595 of file docparser.h.
References CompAccept< DocImage >::m_children.
Referenced by LatexDocVisitor::visitPost(), HtmlDocVisitor::visitPost(), LatexDocVisitor::visitPre(), and HtmlDocVisitor::visitPre().
QString DocImage::width | ( | ) | const [inline] |
Definition at line 596 of file docparser.h.
Referenced by XmlDocVisitor::visitPre(), PrintDocVisitor::visitPre(), and LatexDocVisitor::visitPre().
QString DocImage::height | ( | ) | const [inline] |
Definition at line 597 of file docparser.h.
Referenced by XmlDocVisitor::visitPre(), PrintDocVisitor::visitPre(), and LatexDocVisitor::visitPre().
QString DocImage::relPath | ( | ) | const [inline] |
const HtmlAttribList& DocImage::attribs | ( | ) | const [inline] |
Definition at line 599 of file docparser.h.
void DocImage::accept | ( | DocVisitor * | v | ) | [inline, virtual] |
Acceptor function for node visitors. Part of the visitor pattern.
v | Abstract visitor. |
Implements DocNode.
Definition at line 600 of file docparser.h.
References CompAccept< T >::accept().
void DocImage::parse | ( | ) |
Definition at line 2415 of file docparser.cpp.
References TokenInfo::chars, DBG, doctokenizerYYlex(), doctokenizerYYlineno, doctokenizerYYsetStatePara(), doctokenizerYYsetStateTitle(), doctokenizerYYsetStateTitleAttrValue(), g_token, CompAccept< DocImage >::m_children, TokenInfo::name, TK_COMMAND, TK_SYMBOL, TK_WORD, tokToString(), and warn_doc_error().
Referenced by DocPara::handleImage().