Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

desaxe::IdRef_body< Obj_Type > Class Template Reference

#include <simple_actions.h>

Inheritance diagram for desaxe::IdRef_body< Obj_Type >:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Private Attributes

std::vector< Modestack

Classes

struct  Mode


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)

Definition at line 614 of file simple_actions.h.


Constructor & Destructor Documentation

template<class Obj_Type>
desaxe::IdRef_body< Obj_Type >::IdRef_body (  )  [inline]

Definition at line 617 of file simple_actions.h.


Member Function Documentation

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

template<class Obj_Type>
void desaxe::IdRef_body< Obj_Type >::end ( const Xml_string  )  [inline, virtual]


Member Data Documentation

template<class Obj_Type>
std::vector<Mode> desaxe::IdRef_body< Obj_Type >::stack [private]


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.