#include <ie_exp_RTF_listenerGetProps.h>
s_RTF_ListenerGetProps::s_RTF_ListenerGetProps | ( | PD_Document * | pDocument, | |
IE_Exp_RTF * | pie | |||
) |
References m_apiLastSpan, m_apiThisBlock, m_apiThisSection, m_bHasBlock, m_bInBlock, m_bInSection, m_bInSpan, m_pDocument, and m_pie.
s_RTF_ListenerGetProps::~s_RTF_ListenerGetProps | ( | ) | [virtual] |
References _closeBlock(), _closeSection(), and _closeSpan().
void s_RTF_ListenerGetProps::_check_revs_for_color | ( | const PP_AttrProp * | pAP1, | |
const PP_AttrProp * | pAP2, | |||
const PP_AttrProp * | pAP3 | |||
) | [protected] |
References IE_Exp_RTF::_findOrAddColor(), gchar, PP_AttrProp::getAttribute(), m_pie, s, and UT_MIN.
Referenced by _compute_span_properties().
void s_RTF_ListenerGetProps::_check_revs_for_font | ( | const PP_AttrProp * | pAP1, | |
const PP_AttrProp * | pAP2, | |||
const PP_AttrProp * | pAP3 | |||
) | [protected] |
References IE_Exp_RTF::_addFont(), IE_Exp_RTF::_findFont(), gchar, PP_AttrProp::getAttribute(), _rtf_font_info::init(), m_pie, s, and UT_MIN.
Referenced by _compute_span_properties().
void s_RTF_ListenerGetProps::_closeBlock | ( | void | ) | [protected] |
References m_apiThisBlock, and m_bInBlock.
Referenced by populateStrux(), and ~s_RTF_ListenerGetProps().
void s_RTF_ListenerGetProps::_closeSection | ( | void | ) | [protected] |
References m_apiThisSection, and m_bInSection.
Referenced by populateStrux(), and ~s_RTF_ListenerGetProps().
void s_RTF_ListenerGetProps::_closeSpan | ( | void | ) | [protected] |
References m_bInSpan.
Referenced by _openSpan(), populate(), populateStrux(), and ~s_RTF_ListenerGetProps().
void s_RTF_ListenerGetProps::_compute_span_properties | ( | const PP_AttrProp * | pSpanAP, | |
const PP_AttrProp * | pBlockAP, | |||
const PP_AttrProp * | pSectionAP | |||
) | [protected] |
References IE_Exp_RTF::_addColor(), IE_Exp_RTF::_addFont(), _check_revs_for_color(), _check_revs_for_font(), IE_Exp_RTF::_findColor(), IE_Exp_RTF::_findFont(), gchar, _rtf_font_info::init(), m_pDocument, m_pie, and PP_evalProperty().
Referenced by _openSpan().
void s_RTF_ListenerGetProps::_openSpan | ( | PT_AttrPropIndex | apiSpan | ) | [protected] |
References _closeSpan(), _compute_span_properties(), PD_Document::getAttrProp(), m_apiLastSpan, m_apiThisBlock, m_apiThisSection, m_bInSpan, and m_pDocument.
Referenced by populate().
void s_RTF_ListenerGetProps::_outputData | ( | const UT_UCSChar * | p, | |
UT_uint32 | length | |||
) | [protected] |
References IE_Exp_RTF::m_bNeedUnicodeText, and m_pie.
Referenced by populate().
void s_RTF_ListenerGetProps::_searchCellAPI | ( | PT_AttrPropIndex | api | ) | [protected] |
References IE_Exp_RTF::_addColor(), IE_Exp_RTF::_findColor(), gchar, PD_Document::getAttrProp(), m_pDocument, m_pie, and PP_evalProperty().
Referenced by populateStrux().
void s_RTF_ListenerGetProps::_searchTableAPI | ( | PT_AttrPropIndex | api | ) | [protected] |
References IE_Exp_RTF::_addColor(), IE_Exp_RTF::_findColor(), gchar, PD_Document::getAttrProp(), m_pDocument, m_pie, and PP_evalProperty().
Referenced by populateStrux().
bool s_RTF_ListenerGetProps::change | ( | fl_ContainerLayout * | sfh, | |
const PX_ChangeRecord * | pcr | |||
) | [virtual] |
Implements PL_Listener.
References UT_ASSERT_NOT_REACHED.
bool s_RTF_ListenerGetProps::hasBlock | ( | ) | [inline] |
Referenced by IE_Exp_RTF::_writeDocumentLocal().
virtual bool s_RTF_ListenerGetProps::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_RTF_ListenerGetProps::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_Field, PTO_Image, PX_ChangeRecord::PXT_InsertFmtMark, PX_ChangeRecord::PXT_InsertObject, PX_ChangeRecord::PXT_InsertSpan, and UT_ASSERT_NOT_REACHED.
bool s_RTF_ListenerGetProps::populateStrux | ( | pf_Frag_Strux * | sdh, | |
const PX_ChangeRecord * | pcr, | |||
fl_ContainerLayout ** | psfh | |||
) | [virtual] |
Implements PL_Listener.
References IE_Exp_RTF::_addColor(), _closeBlock(), _closeSection(), _closeSpan(), IE_Exp_RTF::_findColor(), _searchCellAPI(), _searchTableAPI(), gchar, PD_Document::getAttrProp(), PX_ChangeRecord::getIndexAP(), PX_ChangeRecord::getType(), m_apiSavedBlock, m_apiThisBlock, m_apiThisSection, m_bHasBlock, m_bInBlock, m_bInSection, m_pDocument, m_pie, PP_evalProperty(), PTX_Block, PTX_EndAnnotation, PTX_EndCell, PTX_EndEndnote, PTX_EndFootnote, PTX_EndFrame, PTX_EndTable, PTX_EndTOC, PTX_Section, PTX_SectionAnnotation, PTX_SectionCell, PTX_SectionEndnote, PTX_SectionFootnote, PTX_SectionFrame, PTX_SectionHdrFtr, PTX_SectionTable, PTX_SectionTOC, UT_ASSERT_NOT_REACHED, and UT_return_val_if_fail.
bool s_RTF_ListenerGetProps::signal | ( | UT_uint32 | iSignal | ) | [virtual] |
Implements PL_Listener.
References UT_ASSERT_NOT_REACHED.
Referenced by _openSpan(), and s_RTF_ListenerGetProps().
Referenced by populateStrux().
Referenced by _closeBlock(), _openSpan(), populateStrux(), and s_RTF_ListenerGetProps().
Referenced by _closeSection(), _openSpan(), populateStrux(), and s_RTF_ListenerGetProps().
bool s_RTF_ListenerGetProps::m_bHasBlock [private] |
true if we have a multi-block paste.
Referenced by populateStrux(), and s_RTF_ListenerGetProps().
bool s_RTF_ListenerGetProps::m_bInBlock [private] |
Referenced by _closeBlock(), populateStrux(), and s_RTF_ListenerGetProps().
bool s_RTF_ListenerGetProps::m_bInSection [private] |
Referenced by _closeSection(), populateStrux(), and s_RTF_ListenerGetProps().
bool s_RTF_ListenerGetProps::m_bInSpan [private] |
Referenced by _closeSpan(), _openSpan(), and s_RTF_ListenerGetProps().
PD_Document* s_RTF_ListenerGetProps::m_pDocument [private] |
Referenced by _compute_span_properties(), _openSpan(), _searchCellAPI(), _searchTableAPI(), populate(), populateStrux(), and s_RTF_ListenerGetProps().
IE_Exp_RTF* s_RTF_ListenerGetProps::m_pie [private] |