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:

PL_Listener

List of all members.

Public Member Functions

 ODe_AbiDocListener (PD_Document *pDocument, ODe_AbiDocListenerImpl *pListenerImpl, bool deleteWhenPop)
 Constructor.
virtual ~ODe_AbiDocListener ()
 Destructor.
virtual bool populate (PL_StruxFmtHandle sfh, const PX_ChangeRecord *pcr)
virtual bool populateStrux (PL_StruxDocHandle sdh, const PX_ChangeRecord *pcr, PL_StruxFmtHandle *psfh)
virtual bool change (PL_StruxFmtHandle sfh, const PX_ChangeRecord *pcr)
virtual bool insertStrux (PL_StruxFmtHandle sfh, const PX_ChangeRecord *pcr, PL_StruxDocHandle sdh, PL_ListenerId lid, void(*pfnBindHandles)(PL_StruxDocHandle sdhNew, PL_ListenerId lid, PL_StruxFmtHandle 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)
void _closeAnnotation ()
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 _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

fd_Fieldm_pCurrentField
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
UT_sint32 m_iInTable
UT_sint32 m_iInCell
PD_Documentm_pDocument
UT_GenericVector
< ODe_AbiDocListener::StackCell
m_implStack
ODe_AbiDocListenerImplm_pCurrentImpl
bool m_deleteCurrentWhenPop
ODe_ListenerAction m_listenerImplAction

Classes

class  StackCell


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 
)

Constructor.

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

References UT_ASSERT_HARMLESS.

ODe_AbiDocListener::~ODe_AbiDocListener (  )  [virtual]


Member Function Documentation

bool ODe_AbiDocListener::populate ( PL_StruxFmtHandle  sfh,
const PX_ChangeRecord pcr 
) [virtual]

bool ODe_AbiDocListener::populateStrux ( PL_StruxDocHandle  sdh,
const PX_ChangeRecord pcr,
PL_StruxFmtHandle psfh 
) [virtual]

bool ODe_AbiDocListener::change ( PL_StruxFmtHandle  sfh,
const PX_ChangeRecord pcr 
) [virtual]

Implements PL_Listener.

References UT_ASSERT_NOT_REACHED.

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

Implements PL_Listener.

References UT_ASSERT_NOT_REACHED.

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

Implements PL_Listener.

References UT_ASSERT_NOT_REACHED.

void ODe_AbiDocListener::finished (  ) 

void ODe_AbiDocListener::_openSpan ( PT_AttrPropIndex  api  )  [private]

void ODe_AbiDocListener::_closeSpan ( void   )  [private]

void ODe_AbiDocListener::_openBlock ( PT_AttrPropIndex  api  )  [private]

void ODe_AbiDocListener::_closeBlock ( void   )  [private]

void ODe_AbiDocListener::_openSection ( PT_AttrPropIndex  api,
bool  recursiveCall = false 
) [private]

void ODe_AbiDocListener::_closeSection ( bool  recursiveCall = false  )  [private]

void ODe_AbiDocListener::_openField ( const PX_ChangeRecord_Object pcro,
PT_AttrPropIndex  api 
) [private]

void ODe_AbiDocListener::_closeField ( void   )  [private]

void ODe_AbiDocListener::_openTable ( PT_AttrPropIndex  api,
bool  recursiveCall = false 
) [private]

void ODe_AbiDocListener::_closeTable ( bool  recursiveCall = false  )  [private]

void ODe_AbiDocListener::_openCell ( PT_AttrPropIndex  api,
bool  recursiveCall = false 
) [private]

void ODe_AbiDocListener::_closeCell ( bool  recursiveCall = false  )  [private]

void ODe_AbiDocListener::_openFootnote ( PT_AttrPropIndex  api  )  [private]

void ODe_AbiDocListener::_closeFootnote (  )  [private]

void ODe_AbiDocListener::_openEndnote ( PT_AttrPropIndex  api  )  [private]

void ODe_AbiDocListener::_closeEndnote (  )  [private]

void ODe_AbiDocListener::_openAnnotation ( PT_AttrPropIndex  api  )  [private]

void ODe_AbiDocListener::_closeAnnotation (  )  [private]

void ODe_AbiDocListener::_openFrame ( PT_AttrPropIndex  api  )  [private]

void ODe_AbiDocListener::_closeFrame (  )  [private]

void ODe_AbiDocListener::_openTOC ( PT_AttrPropIndex  api  )  [private]

void ODe_AbiDocListener::_closeTOC (  )  [private]

void ODe_AbiDocListener::_openBookmark ( PT_AttrPropIndex  api  )  [private]

void ODe_AbiDocListener::_closeBookmark ( PT_AttrPropIndex  api  )  [private]

void ODe_AbiDocListener::_closeBookmark ( UT_UTF8String sBookmarkName  )  [private]

void ODe_AbiDocListener::_openHyperlink ( PT_AttrPropIndex  api  )  [private]

void ODe_AbiDocListener::_closeHyperlink (  )  [private]

void ODe_AbiDocListener::_insertInlinedImage ( PT_AttrPropIndex  api  )  [private]

void ODe_AbiDocListener::_insertEmbeddedImage ( PT_AttrPropIndex  api  )  [private]

void ODe_AbiDocListener::_insertMath ( PT_AttrPropIndex  api  )  [private]

void ODe_AbiDocListener::_outputData ( const UT_UCSChar pData,
UT_uint32  length 
) [private]

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

References UT_UTF8String_sprintf().

Referenced by _outputData().

const gchar * ODe_AbiDocListener::_getObjectKey ( const PT_AttrPropIndex api,
const gchar *  key 
) [private]

void ODe_AbiDocListener::_handleListenerImplAction (  )  [private]


Member Data Documentation

Referenced by _closeField(), _openField(), and populate().

Referenced by _closeField(), and _openField().

Referenced by _openSpan().

Referenced by _closeSpan(), and _openSpan().

Referenced by _closeBookmark(), and _openBookmark().

Referenced by _closeHyperlink(), and _openHyperlink().

Referenced by _closeSection(), and _openSection().

Referenced by _closeTable(), and _openTable().

Referenced by _closeCell(), and _openCell().


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

Generated on Thu Nov 20 00:07:08 2008 for AbiWord by  doxygen 1.5.5