DocStyleChange Class Reference

Node representing a style change. More...

#include <docparser.h>

Inheritance diagram for DocStyleChange:

DocNode List of all members.

Public Types

enum  Style {
  Bold, Italic, Code, Center,
  Small, Subscript, Superscript, Preformatted,
  Span, Div
}

Public Member Functions

 DocStyleChange (DocNode *parent, uint position, Style s, bool enable, const HtmlAttribList *attribs=0)
Kind kind () const
Style style () const
const char * styleString () const
bool enable () const
uint position () const
DocNodeparent () const
void accept (DocVisitor *v)
const HtmlAttribListattribs () const

Detailed Description

Node representing a style change.

Definition at line 294 of file docparser.h.


Member Enumeration Documentation

enum DocStyleChange::Style

Enumerator:
Bold 
Italic 
Code 
Center 
Small 
Subscript 
Superscript 
Preformatted 
Span 
Div 

Definition at line 297 of file docparser.h.


Constructor & Destructor Documentation

DocStyleChange::DocStyleChange ( DocNode parent,
uint  position,
Style  s,
bool  enable,
const HtmlAttribList attribs = 0 
) [inline]

Definition at line 301 of file docparser.h.

References attribs().


Member Function Documentation

Kind DocStyleChange::kind (  )  const [inline, virtual]

Returns the kind of node. Provides runtime type information

Implements DocNode.

Definition at line 305 of file docparser.h.

References DocNode::Kind_StyleChange.

Style DocStyleChange::style (  )  const [inline]

Definition at line 306 of file docparser.h.

Referenced by XmlDocVisitor::visit(), RTFDocVisitor::visit(), PrintDocVisitor::visit(), PerlModDocVisitor::visit(), ManDocVisitor::visit(), LatexDocVisitor::visit(), and HtmlDocVisitor::visit().

const char * DocStyleChange::styleString (  )  const

Definition at line 920 of file docparser.cpp.

References Bold, Center, Code, Div, Italic, Preformatted, Small, Span, Subscript, and Superscript.

bool DocStyleChange::enable (  )  const [inline]

Definition at line 308 of file docparser.h.

Referenced by XmlDocVisitor::visit(), RTFDocVisitor::visit(), PrintDocVisitor::visit(), PerlModDocVisitor::visit(), ManDocVisitor::visit(), LatexDocVisitor::visit(), and HtmlDocVisitor::visit().

uint DocStyleChange::position (  )  const [inline]

Definition at line 309 of file docparser.h.

DocNode* DocStyleChange::parent (  )  const [inline, virtual]

Returns the parent of this node or 0 for the root node.

Implements DocNode.

Definition at line 310 of file docparser.h.

void DocStyleChange::accept ( DocVisitor v  )  [inline, virtual]

Acceptor function for node visitors. Part of the visitor pattern.

Parameters:
v Abstract visitor.

Implements DocNode.

Definition at line 311 of file docparser.h.

References DocVisitor::visit().

const HtmlAttribList& DocStyleChange::attribs (  )  const [inline]

Definition at line 312 of file docparser.h.

Referenced by DocStyleChange(), and HtmlDocVisitor::visit().


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



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