Scribus
Open source desktop publishing at your fingertips
desaxe::IdRef_body< Obj_Type > Class Template Reference

#include <simple_actions.h>

Inheritance diagram for desaxe::IdRef_body< Obj_Type >:
Collaboration diagram for desaxe::IdRef_body< Obj_Type >:

Public Member Functions

void begin (const Xml_string &, Xml_attr attr)
 
void end (const Xml_string &)
 

Additional Inherited Members

- Protected Member Functions inherited from desaxe::Action_body
virtual void chars (const Xml_string &)
 
virtual void reset ()
 
- Protected Attributes inherited from desaxe::Action_body
Digesterdig
 

Detailed Description

template<class Obj_Type>
class desaxe::IdRef_body< Obj_Type >

This applies "id" and "idref" attributes to the object on top of the stack. In case of an "id" attribute, if there is no entry with this ID in the digester's storage, the topmost object is stored there. Otherwise the topmost object is replaced with the stored object. In case of an "idref" attribute, if there is no entry with this ID in the digester's storage, the topmost object is also stored there. Then the trigger "WithinIdRef" is set during begin() and the processing continues normally. When end() is called, the topmost object is replaced by the stored one (this will be a no-op if there wasnt an entry in storage before)


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