Public Member Functions | |
s_Applix_Listener (PD_Document *pDocument, IE_Exp_Applix *pie) | |
virtual | ~s_Applix_Listener () |
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) |
Protected Member Functions | |
void | _closeBlock (void) |
void | _outputData (const UT_UCSChar *p, UT_uint32 length) |
void | _write (const char *) |
void | _write (const char *src, int len) |
void | _writeln (const char *) |
void | _openTag (const char *) |
void | _closeTag (void) |
void | _flush (void) |
void | _openParagraph (PT_AttrPropIndex api) |
void | _openSpan (PT_AttrPropIndex api) |
void | _closeSpan (PT_AttrPropIndex api) |
void | _writePreamble (void) |
void | _writePostamble (void) |
void | _resetBuffer (void) |
Protected Attributes | |
PD_Document * | m_pDocument |
IE_Exp_Applix * | m_pie |
bool | m_bInBlock |
char | m_buf [APPLIX_LINE+1] |
int | m_pos |
bool | m_bInSpan |
s_Applix_Listener::s_Applix_Listener | ( | PD_Document * | pDocument, | |
IE_Exp_Applix * | pie | |||
) |
References _resetBuffer(), _writePreamble(), m_bInBlock, m_bInSpan, m_pDocument, and m_pie.
s_Applix_Listener::~s_Applix_Listener | ( | ) | [virtual] |
References _closeBlock(), _flush(), and _writePostamble().
void s_Applix_Listener::_closeBlock | ( | void | ) | [protected] |
References m_bInBlock.
Referenced by populateStrux(), and ~s_Applix_Listener().
void s_Applix_Listener::_closeSpan | ( | PT_AttrPropIndex | api | ) | [protected] |
References _closeTag(), _write(), and m_bInSpan.
Referenced by populate().
void s_Applix_Listener::_closeTag | ( | void | ) | [protected] |
References _writeln().
Referenced by _closeSpan(), and _openParagraph().
void s_Applix_Listener::_flush | ( | void | ) | [protected] |
References _resetBuffer(), m_buf, m_pie, m_pos, and IE_Exp::write().
Referenced by _write(), and ~s_Applix_Listener().
void s_Applix_Listener::_openParagraph | ( | PT_AttrPropIndex | api | ) | [protected] |
References _closeTag(), and _openTag().
Referenced by populateStrux().
void s_Applix_Listener::_openSpan | ( | PT_AttrPropIndex | api | ) | [protected] |
References _openTag(), _write(), and m_bInSpan.
Referenced by populate().
void s_Applix_Listener::_openTag | ( | const char * | tag | ) | [protected] |
References _write().
Referenced by _openParagraph(), and _openSpan().
void s_Applix_Listener::_outputData | ( | const UT_UCSChar * | p, | |
UT_uint32 | length | |||
) | [protected] |
References _write(), UT_String::c_str(), XAP_EncodingManager::get_instance(), m_bInBlock, UT_String::reserve(), UT_String::size(), XAP_EncodingManager::try_UToNative(), UT_ASSERT, and UT_String_sprintf().
Referenced by populate().
void s_Applix_Listener::_resetBuffer | ( | void | ) | [protected] |
Referenced by _flush(), and s_Applix_Listener().
void s_Applix_Listener::_write | ( | const char * | src, | |
int | len | |||
) | [protected] |
References _flush(), APPLIX_LINE, m_buf, m_pie, m_pos, and IE_Exp::write().
void s_Applix_Listener::_write | ( | const char * | src | ) | [protected] |
Referenced by _closeSpan(), _openSpan(), _openTag(), _outputData(), _writeln(), and _writePreamble().
void s_Applix_Listener::_writeln | ( | const char * | src | ) | [protected] |
References _write().
Referenced by _closeTag(), _writePostamble(), and _writePreamble().
void s_Applix_Listener::_writePostamble | ( | void | ) | [protected] |
References _writeln().
Referenced by ~s_Applix_Listener().
void s_Applix_Listener::_writePreamble | ( | void | ) | [protected] |
References _write(), and _writeln().
Referenced by s_Applix_Listener().
bool s_Applix_Listener::change | ( | fl_ContainerLayout * | sfh, | |
const PX_ChangeRecord * | pcr | |||
) | [virtual] |
Implements PL_Listener.
References UT_ASSERT.
virtual bool s_Applix_Listener::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 s_Applix_Listener::populate | ( | fl_ContainerLayout * | sfh, | |
const PX_ChangeRecord * | pcr | |||
) | [virtual] |
Implements PL_Listener.
References _closeSpan(), _openSpan(), _outputData(), PX_ChangeRecord_Span::getBufIndex(), PX_ChangeRecord::getIndexAP(), PX_ChangeRecord_Span::getLength(), PX_ChangeRecord_Object::getObjectType(), PD_Document::getPointer(), PX_ChangeRecord::getType(), m_pDocument, PTO_Bookmark, PTO_Field, PTO_Hyperlink, PTO_Image, PX_ChangeRecord::PXT_InsertFmtMark, PX_ChangeRecord::PXT_InsertObject, PX_ChangeRecord::PXT_InsertSpan, and UT_ASSERT.
bool s_Applix_Listener::populateStrux | ( | pf_Frag_Strux * | sdh, | |
const PX_ChangeRecord * | pcr, | |||
fl_ContainerLayout ** | psfh | |||
) | [virtual] |
Implements PL_Listener.
References _closeBlock(), _openParagraph(), PX_ChangeRecord::getIndexAP(), PX_ChangeRecord::getType(), m_bInBlock, PTX_Block, PTX_EndCell, PTX_EndEndnote, PTX_EndFootnote, PTX_EndFrame, PTX_EndMarginnote, PTX_EndTable, PTX_Section, PTX_SectionCell, PTX_SectionEndnote, PTX_SectionFootnote, PTX_SectionFrame, PTX_SectionHdrFtr, PTX_SectionMarginnote, PTX_SectionTable, UT_ASSERT, and UT_ASSERT_NOT_REACHED.
bool s_Applix_Listener::signal | ( | UT_uint32 | iSignal | ) | [virtual] |
Implements PL_Listener.
References UT_ASSERT, and UT_SHOULD_NOT_HAPPEN.
bool s_Applix_Listener::m_bInBlock [protected] |
Referenced by _closeBlock(), _outputData(), populateStrux(), and s_Applix_Listener().
bool s_Applix_Listener::m_bInSpan [protected] |
Referenced by _closeSpan(), _openSpan(), and s_Applix_Listener().
char s_Applix_Listener::m_buf[APPLIX_LINE+1] [protected] |
Referenced by _flush(), _resetBuffer(), and _write().
PD_Document* s_Applix_Listener::m_pDocument [protected] |
Referenced by populate(), and s_Applix_Listener().
IE_Exp_Applix* s_Applix_Listener::m_pie [protected] |
Referenced by _flush(), _write(), and s_Applix_Listener().
int s_Applix_Listener::m_pos [protected] |
Referenced by _flush(), _resetBuffer(), and _write().