Public Member Functions | Private Attributes

ODi_MetaStream_ListenerState Class Reference

Class to handle meta-streams. More...

#include <ODi_MetaStream_ListenerState.h>

Inheritance diagram for ODi_MetaStream_ListenerState:
ODi_ListenerState

List of all members.

Public Member Functions

 ODi_MetaStream_ListenerState (PD_Document *pDocument, ODi_ElementStack &rElementStack)
 Constructor.
virtual ~ODi_MetaStream_ListenerState ()
void startElement (const gchar *pName, const gchar **ppAtts, ODi_ListenerStateAction &rAction)
 Called to signal that the start tag of an element has been reached.
void endElement (const gchar *pName, ODi_ListenerStateAction &rAction)
 Called to signal that the end tag of an element has been reached.
void charData (const gchar *pBuffer, int length)
 Called when parsing the content between the start and end element tags.

Private Attributes

std::string m_charData
 Holds the character data of the element being parsed.
PD_Documentm_pDocument
std::string m_keywords
 Holds all keywords defined on the meta stream.

Detailed Description

Class to handle meta-streams.


Constructor & Destructor Documentation

ODi_MetaStream_ListenerState::ODi_MetaStream_ListenerState ( PD_Document pDocument,
ODi_ElementStack rElementStack 
)

Constructor.

References PD_META_KEY_FORMAT, and PD_Document::setMetaDataProp().

virtual ODi_MetaStream_ListenerState::~ODi_MetaStream_ListenerState (  )  [inline, virtual]

Member Function Documentation

void ODi_MetaStream_ListenerState::charData ( const gchar *  pBuffer,
int  length 
) [virtual]

Called when parsing the content between the start and end element tags.

Implements ODi_ListenerState.

References m_charData.

void ODi_MetaStream_ListenerState::startElement ( const gchar *  pName,
const gchar **  ppAtts,
ODi_ListenerStateAction rAction 
) [virtual]

Called to signal that the start tag of an element has been reached.

Implements ODi_ListenerState.

References m_charData.


Member Data Documentation

Holds the character data of the element being parsed.

Referenced by charData(), endElement(), and startElement().

Holds all keywords defined on the meta stream.

This is necessary because OpenDocument defines one keyword per meta:keyword element and AbiWord holds all the keywords on a single abiword:keywords element.

Referenced by endElement().


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