Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Public Types | Public Member Functions | Protected Attributes | Private Attributes
desaxe::SetText_body< Obj_Type > Class Template Reference

Collects text (PCDATA) chunks and later stores it in the topmost object on the stack. More...

#include <simple_actions.h>

Inheritance diagram for desaxe::SetText_body< Obj_Type >:
Inheritance graph
[legend]
Collaboration diagram for desaxe::SetText_body< Obj_Type >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef void(Obj_Type::* FunType )(const Xml_string &)

Public Member Functions

 SetText_body (FunType set)
void begin (const Xml_string &, Xml_attr)
void chars (const Xml_string &chunk)
void end (const Xml_string &tag)

Protected Attributes

Digesterdig

Private Attributes

FunType setT
Xml_string txt

Detailed Description

template<class Obj_Type>
class desaxe::SetText_body< Obj_Type >

Collects text (PCDATA) chunks and later stores it in the topmost object on the stack.

This is only called once at the close tag of the current pattern. WARNING: not safe for nesting

Definition at line 534 of file simple_actions.h.


Member Typedef Documentation

template<class Obj_Type >
typedef void(Obj_Type::* desaxe::SetText_body< Obj_Type >::FunType)(const Xml_string &)

Definition at line 537 of file simple_actions.h.


Constructor & Destructor Documentation

template<class Obj_Type >
desaxe::SetText_body< Obj_Type >::SetText_body ( FunType  set) [inline]

Definition at line 539 of file simple_actions.h.

                                 : setT(set) 
       {}

Member Function Documentation

template<class Obj_Type >
void desaxe::SetText_body< Obj_Type >::begin ( const Xml_string ,
Xml_attr   
) [inline, virtual]

Reimplemented from desaxe::Action_body.

Definition at line 542 of file simple_actions.h.

       {
              txt = "";
       }
template<class Obj_Type >
void desaxe::SetText_body< Obj_Type >::chars ( const Xml_string chunk) [inline, virtual]

Reimplemented from desaxe::Action_body.

Definition at line 547 of file simple_actions.h.

       {
              txt += chunk;
       }
template<class Obj_Type >
void desaxe::SetText_body< Obj_Type >::end ( const Xml_string tag) [inline, virtual]

Reimplemented from desaxe::Action_body.

Definition at line 552 of file simple_actions.h.

       {
              Obj_Type* obj = this->dig->template top<Obj_Type>();
              (obj->*setT)( txt ); 
       }      

Member Data Documentation

Digester* desaxe::Action_body::dig [protected, inherited]

Definition at line 38 of file actions.h.

template<class Obj_Type >
FunType desaxe::SetText_body< Obj_Type >::setT [private]

Definition at line 559 of file simple_actions.h.

template<class Obj_Type >
Xml_string desaxe::SetText_body< Obj_Type >::txt [private]

Definition at line 560 of file simple_actions.h.


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