Back to index

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

Stores all attributes to the topmost object on the stack. More...

#include <simple_actions.h>

Inheritance diagram for desaxe::SetAttributes_body< Obj_Type >:
Inheritance graph
Collaboration diagram for desaxe::SetAttributes_body< Obj_Type >:
Collaboration graph

List of all members.

Public Types

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

Public Member Functions

 SetAttributes_body (FunType set)
void begin (const Xml_string &, Xml_attr attr)

Protected Member Functions

virtual void end (const Xml_string &)
virtual void chars (const Xml_string &)

Protected Attributes


Private Attributes

FunType set_

Detailed Description

template<class Obj_Type>
class desaxe::SetAttributes_body< Obj_Type >

Stores all attributes to the topmost object on the stack.

Definition at line 366 of file simple_actions.h.

Member Typedef Documentation

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

Definition at line 369 of file simple_actions.h.

Constructor & Destructor Documentation

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

Definition at line 371 of file simple_actions.h.

                                       : set_(set) 

Member Function Documentation

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

Reimplemented from desaxe::Action_body.

Definition at line 374 of file simple_actions.h.

              Obj_Type* obj = this->dig->template top<Obj_Type>();
              Xml_attr::iterator it;
              for(it=attr.begin(); it != attr.end(); ++it)
                     (obj->*set_)( Xml_key(it), Xml_data(it) ); 

Here is the call graph for this function:

virtual void desaxe::Action_body::chars ( const Xml_string ) [inline, protected, virtual, inherited]

Reimplemented in AppendText_body, desaxe::SetText_body< Obj_Type >, and desaxe::AddText_body< Obj_Type >.

Definition at line 36 of file actions.h.


Here is the caller graph for this function:

virtual void desaxe::Action_body::end ( const Xml_string ) [inline, protected, virtual, inherited]

Member Data Documentation

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

Definition at line 38 of file actions.h.

template<class Obj_Type >
FunType desaxe::SetAttributes_body< Obj_Type >::set_ [private]

Definition at line 382 of file simple_actions.h.

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