#include <ie_exp_WordPerfect.h>
WordPerfect_Listener::WordPerfect_Listener | ( | PD_Document * | pDocument, | |
IE_Exp_WordPerfect * | pie | |||
) |
References m_bInBlock, m_paragraphJustification, and UT_DEBUGMSG.
virtual WordPerfect_Listener::~WordPerfect_Listener | ( | ) | [inline, virtual] |
void WordPerfect_Listener::_closeBlock | ( | void | ) | [protected] |
References m_bInBlock, IE_Exp_WordPerfect::m_buffer, m_pie, and UT_DEBUGMSG.
Referenced by populateStrux().
void WordPerfect_Listener::_closeSpan | ( | void | ) | [protected] |
References _handleAttributeOff(), FREEP, gchar, PP_AttrProp::getProperty(), m_pAP_Span, and UT_return_if_fail.
Referenced by populate().
void WordPerfect_Listener::_handleAttributeOff | ( | char | attribute | ) | [protected] |
References IE_Exp_WordPerfect::m_buffer, m_pie, UT_DEBUGMSG, and WP_TOP_ATTRIBUTE_OFF.
Referenced by _closeSpan().
void WordPerfect_Listener::_handleAttributeOn | ( | char | attribute | ) | [protected] |
References IE_Exp_WordPerfect::m_buffer, m_pie, UT_DEBUGMSG, and WP_TOP_ATTRIBUTE_ON.
Referenced by _openSpan().
void WordPerfect_Listener::_handleFontSizeChange | ( | double | points | ) | [protected] |
References IE_Exp_WordPerfect::_UT_String_add(), IE_Exp_WordPerfect::m_buffer, IE_Exp_WordPerfect::m_desiredFontUseCount, m_pie, UT_DEBUGMSG, and WP_TOP_CHARACTER_GROUP.
Referenced by _openSpan().
void WordPerfect_Listener::_handleParagraphJustification | ( | char | mode | ) | [protected] |
References IE_Exp_WordPerfect::_UT_String_add(), IE_Exp_WordPerfect::m_buffer, m_pie, UT_DEBUGMSG, WP_PARAGRAPH_GROUP_JUSTIFICATION, and WP_TOP_PARAGRAPH_GROUP.
Referenced by _openBlock().
void WordPerfect_Listener::_handleTabGroup | ( | char | tabDef | ) | [protected] |
References IE_Exp_WordPerfect::_UT_String_add(), IE_Exp_WordPerfect::m_buffer, m_pie, UT_DEBUGMSG, and WP_TOP_TAB_GROUP.
Referenced by _outputData().
void WordPerfect_Listener::_handleVariableGroup | ( | char | group, | |
char | subgroup, | |||
char | flags, | |||
short | sizeNonDelData, | |||
char * | nonDelData | |||
) | [protected] |
References IE_Exp_WordPerfect::_UT_String_add(), IE_Exp_WordPerfect::m_buffer, m_pie, size, and UT_DEBUGMSG.
void WordPerfect_Listener::_openBlock | ( | PT_AttrPropIndex | api | ) | [protected] |
References _handleParagraphJustification(), gchar, PD_Document::getAttrProp(), PP_AttrProp::getProperty(), m_bInBlock, m_paragraphJustification, m_pDocument, and UT_DEBUGMSG.
Referenced by populateStrux().
void WordPerfect_Listener::_openSpan | ( | PT_AttrPropIndex | api | ) | [protected] |
References _handleAttributeOn(), _handleFontSizeChange(), FREEP, gchar, PD_Document::getAttrProp(), PP_AttrProp::getProperty(), m_bInBlock, m_pAP_Span, m_pDocument, UT_convertToPoints(), and UT_return_if_fail.
Referenced by populate().
void WordPerfect_Listener::_outputData | ( | const UT_UCSChar * | p, | |
UT_uint32 | length | |||
) | [protected, virtual] |
References _handleTabGroup(), _wctomb(), UT_Wctomb::initialize(), IE_Exp_WordPerfect::m_buffer, m_pie, m_wctomb, MY_MB_LEN_MAX, UCS_FF, and UT_ASSERT_HARMLESS.
Referenced by populate().
virtual int WordPerfect_Listener::_wctomb | ( | char * | pC, | |
int & | length, | |||
UT_UCS4Char | wc | |||
) | [inline, protected, virtual] |
References m_wctomb, and UT_Wctomb::wctomb().
Referenced by _outputData().
bool WordPerfect_Listener::change | ( | fl_ContainerLayout * | sfh, | |
const PX_ChangeRecord * | pcr | |||
) | [virtual] |
Implements PL_Listener.
References UT_ASSERT_NOT_REACHED.
virtual bool WordPerfect_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 WordPerfect_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(), PD_Document::getPointer(), PX_ChangeRecord::getType(), m_pDocument, PX_ChangeRecord::PXT_InsertFmtMark, PX_ChangeRecord::PXT_InsertObject, PX_ChangeRecord::PXT_InsertSpan, and UT_ASSERT.
bool WordPerfect_Listener::populateStrux | ( | pf_Frag_Strux * | sdh, | |
const PX_ChangeRecord * | pcr, | |||
fl_ContainerLayout ** | psfh | |||
) | [virtual] |
Implements PL_Listener.
References _closeBlock(), _openBlock(), PX_ChangeRecord::getIndexAP(), PX_ChangeRecord_Strux::getStruxType(), PTX_Block, PTX_Section, PTX_SectionHdrFtr, UT_ASSERT_NOT_REACHED, and UT_DEBUGMSG.
bool WordPerfect_Listener::signal | ( | UT_uint32 | iSignal | ) | [virtual] |
Implements PL_Listener.
References UT_ASSERT_NOT_REACHED.
bool WordPerfect_Listener::m_bInBlock [private] |
Referenced by _closeBlock(), _openBlock(), _openSpan(), and WordPerfect_Listener().
const PP_AttrProp* WordPerfect_Listener::m_pAP_Span [private] |
Referenced by _closeSpan(), and _openSpan().
char WordPerfect_Listener::m_paragraphJustification [private] |
Referenced by _openBlock(), and WordPerfect_Listener().
PD_Document* WordPerfect_Listener::m_pDocument [private] |
Referenced by _openBlock(), _openSpan(), and populate().
IE_Exp_WordPerfect* WordPerfect_Listener::m_pie [private] |
UT_Wctomb WordPerfect_Listener::m_wctomb [private] |
Referenced by _outputData(), and _wctomb().