Class to handle meta-streams. More...
#include <ODi_MetaStream_ListenerState.h>
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_Document * | m_pDocument |
std::string | m_keywords |
Holds all keywords defined on the meta stream. |
Class to handle meta-streams.
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] |
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::endElement | ( | const gchar * | pName, | |
ODi_ListenerStateAction & | rAction | |||
) | [virtual] |
Called to signal that the end tag of an element has been reached.
Implements ODi_ListenerState.
References gchar, ODi_StartTag::getAttributeValue(), ODi_ElementStack::getStartTag(), m_charData, m_keywords, m_pDocument, ODi_ListenerState::m_rElementStack, PD_META_KEY_CREATOR, PD_META_KEY_DATE, PD_META_KEY_DATE_LAST_CHANGED, PD_META_KEY_DESCRIPTION, PD_META_KEY_GENERATOR, PD_META_KEY_KEYWORDS, PD_META_KEY_LANGUAGE, PD_META_KEY_SUBJECT, PD_META_KEY_TITLE, ODi_ListenerStateAction::popState(), PD_Document::setMetaDataProp(), and UT_ASSERT.
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.
std::string ODi_MetaStream_ListenerState::m_charData [private] |
Holds the character data of the element being parsed.
Referenced by charData(), endElement(), and startElement().
std::string ODi_MetaStream_ListenerState::m_keywords [private] |
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().
Referenced by endElement().