Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

desaxe::Action Class Reference

#include <actions.h>

Inheritance diagram for desaxe::Action:

Inheritance graph
[legend]
Collaboration diagram for desaxe::Action:

Collaboration graph
[legend]

List of all members.

Public Member Functions

Digesterdigester ()
void setDigester (Digester *dig)
void begin (const Xml_string &tag, Xml_attr attr)
void end (const Xml_string &tag)
void chars (const Xml_string &data)
 Action (const Action &other)
virtual ~Action ()
Actionoperator= (const Action &other)

Protected Member Functions

 Action (Action_body *body_)

Private Member Functions

 Action ()

Private Attributes

Action_bodybody


Detailed Description

Actions do all the real work when digesting XML files: creating new objects, setting attributes, calling methods. Each Action gets control two or more times for each time the corresponding rule triggers: 1 x begin(), 0- x chars(), 1 x end(). They come in two basic flavors: Generators create a new object in their begin() method and put it on the object stack. Other Actions use objects on the stack, XML attributes or XML text to store this data in other objects. This is usually done in the end() method. Warning: end() methods are called in reverse order. This is to ensure that they see exactly the same stack content as their corresponging begin() method. This is the handle class which delegates to the body

Definition at line 58 of file actions.h.


Constructor & Destructor Documentation

desaxe::Action::Action ( const Action other  )  [inline]

Definition at line 70 of file actions.h.

References body, and desaxe::Action_body::refs.

virtual desaxe::Action::~Action (  )  [inline, virtual]

Definition at line 75 of file actions.h.

References body, and desaxe::Action_body::refs.

desaxe::Action::Action ( Action_body body_  )  [inline, protected]

Definition at line 92 of file actions.h.

References body, and desaxe::Action_body::refs.

desaxe::Action::Action (  )  [private]


Member Function Documentation

Digester* desaxe::Action::digester (  )  [inline]

Definition at line 61 of file actions.h.

References body, and desaxe::Action_body::dig.

void desaxe::Action::setDigester ( Digester dig  )  [inline]

Definition at line 62 of file actions.h.

References body, and desaxe::Action_body::dig.

Referenced by desaxe::Digester::addRule().

void desaxe::Action::begin ( const Xml_string tag,
Xml_attr  attr 
) [inline]

Definition at line 64 of file actions.h.

References desaxe::Action_body::begin(), and body.

void desaxe::Action::end ( const Xml_string tag  )  [inline]

Definition at line 66 of file actions.h.

References body, and desaxe::Action_body::end().

void desaxe::Action::chars ( const Xml_string data  )  [inline]

Definition at line 67 of file actions.h.

References body, and desaxe::Action_body::chars().

Action& desaxe::Action::operator= ( const Action other  )  [inline]

Definition at line 80 of file actions.h.

References body, and desaxe::Action_body::refs.


Member Data Documentation


The documentation for this class was generated from the following file:
Created with personalized Doxygen. This is documentation for GPL software Scribus - Open Source Desktop Publishing.