Classes | Public Member Functions | Private Member Functions | Private Attributes

ODe_AbiDocListener Class Reference

Handles the mess involved in PL_Listener event handling translating then into simple and clean calls to ODe_AbiDocListenerImpl. More...

#include <ODe_AbiDocListener.h>

Inheritance diagram for ODe_AbiDocListener:

List of all members.


class  StackCell

Public Member Functions

 ODe_AbiDocListener (PD_Document *pDocument, ODe_AbiDocListenerImpl *pListenerImpl, bool deleteWhenPop)
virtual ~ODe_AbiDocListener ()
virtual bool populate (fl_ContainerLayout *sfh, const PX_ChangeRecord *pcr)
virtual bool populateStrux (pf_Frag_Strux *sdh, const PX_ChangeRecord *pcr, fl_ContainerLayout **psfh)
virtual bool change (fl_ContainerLayout *sfh, const PX_ChangeRecord *pcr)
virtual bool insertStrux (fl_ContainerLayout *sfh, const PX_ChangeRecord *pcr, pf_Frag_Strux *sdh, PL_ListenerId lid, void(*pfnBindHandles)(pf_Frag_Strux *sdhNew, PL_ListenerId lid, fl_ContainerLayout *sfhNew))
virtual bool signal (UT_uint32 iSignal)
void finished ()

Private Member Functions

void _openSpan (PT_AttrPropIndex api)
void _closeSpan ()
void _openBlock (PT_AttrPropIndex api)
void _closeBlock ()
void _openSection (PT_AttrPropIndex api, bool recursiveCall=false)
void _closeSection (bool recursiveCall=false)
void _openField (const PX_ChangeRecord_Object *pcro, PT_AttrPropIndex api)
void _closeField ()
void _openTable (PT_AttrPropIndex api, bool recursiveCall=false)
void _closeTable (bool recursiveCall=false)
void _openCell (PT_AttrPropIndex api, bool recursiveCall=false)
void _closeCell (bool recursiveCall=false)
void _openFootnote (PT_AttrPropIndex api)
void _closeFootnote ()
void _openEndnote (PT_AttrPropIndex api)
void _closeEndnote ()
void _openAnnotation (PT_AttrPropIndex api, const std::string &defaultName)
void _closeAnnotation ()
void _endAnnotation (PT_AttrPropIndex api)
void _openFrame (PT_AttrPropIndex api)
void _closeFrame ()
void _openTOC (PT_AttrPropIndex api)
void _closeTOC ()
void _openBookmark (PT_AttrPropIndex api)
void _closeBookmark (PT_AttrPropIndex api)
void _closeBookmark (UT_UTF8String &sBookmarkName)
void _openHyperlink (PT_AttrPropIndex api)
void _closeHyperlink ()
void _openRDFAnchor (PT_AttrPropIndex api)
void _closeRDFAnchor (PT_AttrPropIndex api)
void _insertInlinedImage (PT_AttrPropIndex api)
void _insertEmbeddedImage (PT_AttrPropIndex api)
void _insertMath (PT_AttrPropIndex api)
void _outputData (const UT_UCSChar *pData, UT_uint32 length)
void _appendSpaces (UT_UTF8String *sBuf, UT_uint32 count)
const gchar * _getObjectKey (const PT_AttrPropIndex &api, const gchar *key)
void _handleListenerImplAction ()

Private Attributes

UT_UTF8String m_currentFieldType
UT_UTF8String m_bookmarkName
PT_AttrPropIndex m_apiLastSpan
bool m_bInSpan
bool m_bInBlock
bool m_bInBookmark
bool m_bInHyperlink
bool m_bInSection
bool m_bInAnnotation
bool m_bPendingAnnotationEnd
std::string m_currentAnnotationName
UT_sint32 m_iInTable
UT_sint32 m_iInCell
< ODe_AbiDocListener::StackCell
bool m_deleteCurrentWhenPop
ODe_ListenerAction m_listenerImplAction

Detailed Description

Handles the mess involved in PL_Listener event handling translating then into simple and clean calls to ODe_AbiDocListenerImpl.

Constructor & Destructor Documentation

ODe_AbiDocListener::ODe_AbiDocListener ( PD_Document pDocument,
ODe_AbiDocListenerImpl pListenerImpl,
bool  deleteWhenPop 


deleteWhenPop "true" if the implementation object is to be deleted when it pops itself.


ODe_AbiDocListener::~ODe_AbiDocListener (  )  [virtual]

Member Function Documentation

void ODe_AbiDocListener::_appendSpaces ( UT_UTF8String sBuf,
UT_uint32  count 
) [private]

References UT_UTF8String_sprintf().

Referenced by _outputData().

void ODe_AbiDocListener::_closeAnnotation (  )  [private]
void ODe_AbiDocListener::_closeBlock ( void   )  [private]
void ODe_AbiDocListener::_closeBookmark ( UT_UTF8String sBookmarkName  )  [private]
void ODe_AbiDocListener::_closeHyperlink (  )  [private]
void ODe_AbiDocListener::_closeRDFAnchor ( PT_AttrPropIndex  api  )  [private]
void ODe_AbiDocListener::_closeTOC (  )  [private]
const gchar * ODe_AbiDocListener::_getObjectKey ( const PT_AttrPropIndex api,
const gchar *  key 
) [private]
void ODe_AbiDocListener::_insertEmbeddedImage ( PT_AttrPropIndex  api  )  [private]
void ODe_AbiDocListener::_openHyperlink ( PT_AttrPropIndex  api  )  [private]
void ODe_AbiDocListener::_openRDFAnchor ( PT_AttrPropIndex  api  )  [private]
void ODe_AbiDocListener::_openSpan ( PT_AttrPropIndex  api  )  [private]
void ODe_AbiDocListener::_openTOC ( PT_AttrPropIndex  api  )  [private]
bool ODe_AbiDocListener::change ( fl_ContainerLayout sfh,
const PX_ChangeRecord pcr 
) [virtual]

Implements PL_Listener.


bool ODe_AbiDocListener::insertStrux ( fl_ContainerLayout sfh,
const PX_ChangeRecord pcr,
pf_Frag_Strux sdh,
PL_ListenerId  lid,
void(*)(pf_Frag_Strux *sdhNew, PL_ListenerId lid, fl_ContainerLayout *sfhNew)  pfnBindHandles 
) [virtual]

Implements PL_Listener.


bool ODe_AbiDocListener::signal ( UT_uint32  iSignal  )  [virtual]

Implements PL_Listener.


Member Data Documentation

Referenced by _closeSpan(), and _openSpan().

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