DocImage Class Reference

Node representing an image. More...

#include <docparser.h>

Inheritance diagram for DocImage:

CompAccept< DocImage > DocNode List of all members.

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
DocNodeparent () const
bool hasCaption () const
QString width () const
QString height () const
QString relPath () const
const HtmlAttribListattribs () const
void accept (DocVisitor *v)
void parse ()

Detailed Description

Node representing an image.

Definition at line 586 of file docparser.h.


Member Enumeration Documentation

enum DocImage::Type

Enumerator:
Html 
Latex 
Rtf 

Definition at line 589 of file docparser.h.


Constructor & Destructor Documentation

DocImage::DocImage ( DocNode parent,
const HtmlAttribList attribs,
const QString &  name,
Type  t 
)

Definition at line 2409 of file docparser.cpp.


Member Function Documentation

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]

Definition at line 598 of file docparser.h.

Referenced by HtmlDocVisitor::visitPre().

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.

Parameters:
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().


The documentation for this class was generated from the following files:



Generated on Mon Mar 31 10:58:58 2008 by  doxygen 1.5.1