#include <ie_exp_XSL-FO.h>
s_XSL_FO_Listener::s_XSL_FO_Listener | ( | PD_Document * | pDocument, | |
IE_Exp_XSL_FO * | pie | |||
) |
References _handleLists(), _tagOpen(), m_pie, TT_DOCUMENT, and IE_Exp::write().
s_XSL_FO_Listener::~s_XSL_FO_Listener | ( | ) | [virtual] |
References _closeSection(), _handleDataItems(), _tagClose(), m_Lists, m_utvDataIDs, TT_DOCUMENT, UT_VECTOR_FREEALL, and UT_VECTOR_SPARSEPURGEALL.
void s_XSL_FO_Listener::_closeBlock | ( | void | ) | [protected] |
References _closeLink(), _closeSpan(), _openListItem(), _popListToDepth(), _tagClose(), _tagTop(), m_bWroteListField, m_iBlockDepth, m_iListBlockDepth, TT_BLOCK, and TT_LISTBLOCK.
Referenced by _closeSection(), and populateStrux().
void s_XSL_FO_Listener::_closeCell | ( | void | ) | [protected] |
References _tagClose(), _tagOpenClose(), _tagTop(), m_iLastClosed, TT_BLOCK, TT_TABLECELL, UT_ASSERT_HARMLESS, and UT_SHOULD_NOT_HAPPEN.
Referenced by _closeTable(), _openCell(), _openRow(), and populateStrux().
void s_XSL_FO_Listener::_closeLink | ( | void | ) | [protected] |
References _tagClose(), _tagTop(), m_bInLink, and TT_BASICLINK.
Referenced by _closeBlock(), _handleHyperlink(), and _openBlock().
void s_XSL_FO_Listener::_closeRow | ( | void | ) | [protected] |
References _tagClose(), _tagTop(), and TT_TABLEROW.
Referenced by _closeTable(), and _openRow().
void s_XSL_FO_Listener::_closeSection | ( | void | ) | [protected] |
References _closeBlock(), _closeTable(), _popListToDepth(), _tagClose(), _tagTop(), m_bInNote, m_bInSection, TT_FOOTNOTE, TT_FOOTNOTEBODY, TT_PAGE_SEQUENCE, TT_SECTION, UT_ASSERT_HARMLESS, and UT_SHOULD_NOT_HAPPEN.
Referenced by populateStrux(), and ~s_XSL_FO_Listener().
void s_XSL_FO_Listener::_closeSpan | ( | void | ) | [protected] |
References _tagClose(), _tagTop(), m_bInSpan, and TT_INLINE.
Referenced by _closeBlock(), _openSpan(), and populate().
void s_XSL_FO_Listener::_closeTable | ( | void | ) | [protected] |
References _closeCell(), _closeRow(), _tagClose(), _tagTop(), TT_TABLE, and TT_TABLEBODY.
Referenced by _closeSection(), and populateStrux().
UT_UTF8String s_XSL_FO_Listener::_getCellColors | ( | void | ) | [protected] |
References ie_Table::getCellProp(), ie_Table::getTableProp(), and mTableHelper.
Referenced by _openCell().
UT_UTF8String s_XSL_FO_Listener::_getCellThicknesses | ( | void | ) | [protected] |
References ie_Table::getCellProp(), ie_Table::getTableProp(), mTableHelper, and UT_UTF8String_sprintf().
Referenced by _openCell().
UT_UTF8String s_XSL_FO_Listener::_getTableColors | ( | void | ) | [protected] |
References ie_Table::getTableProp(), and mTableHelper.
Referenced by _openTable().
UT_UTF8String s_XSL_FO_Listener::_getTableThicknesses | ( | void | ) | [protected] |
References ie_Table::getTableProp(), mTableHelper, and UT_UTF8String_sprintf().
Referenced by _openTable().
void s_XSL_FO_Listener::_handleBookmark | ( | PT_AttrPropIndex | api | ) | [protected] |
References _tagOpenClose(), UT_UTF8String::escapeXML(), gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), UT_UTF8String::length(), and m_pDocument.
Referenced by populate().
void s_XSL_FO_Listener::_handleDataItems | ( | void | ) | [protected] |
References _stripSuffix(), PD_Document::enumDataItems(), extension, FREEP, IE_Exp::getFileName(), UT_GenericVector< T >::getItemCount(), m_pDocument, m_pie, m_utvDataIDs, szName, UT_go_basename(), UT_go_directory_create(), UT_go_file_create(), UT_UTF8String_sprintf(), and UT_UTF8String::utf8_str().
Referenced by ~s_XSL_FO_Listener().
void s_XSL_FO_Listener::_handleEmbedded | ( | PT_AttrPropIndex | api | ) | [protected] |
References _tagOpenClose(), UT_UTF8String::escapeXML(), gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), IE_Exp::getFileName(), PP_AttrProp::getProperty(), m_pDocument, m_pie, m_utvDataIDs, UT_GenericVector< T >::push_back(), UT_go_basename(), and UT_return_if_fail.
Referenced by populate().
void s_XSL_FO_Listener::_handleField | ( | const PX_ChangeRecord_Object * | pcro, | |
PT_AttrPropIndex | api | |||
) | [protected] |
References _tagClose(), _tagOpen(), _tagTop(), UT_UTF8String::escapeXML(), gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), PX_ChangeRecord_Object::getField(), UT_GenericVector< T >::getItemCount(), fd_Field::getValue(), label, UT_UTF8String::length(), m_bWroteListField, m_iBlockDepth, m_iListBlockDepth, m_iListID, m_Lists, m_pDocument, m_pie, IE_Exp::populateFields(), TT_BLOCK, TT_FOOTNOTE, TT_INLINE, TT_LISTBLOCK, TT_LISTITEM, TT_LISTITEMBODY, TT_LISTITEMLABEL, UT_UTF8String::utf8_str(), and IE_Exp::write().
Referenced by populate().
void s_XSL_FO_Listener::_handleFrame | ( | PT_AttrPropIndex | api | ) | [protected] |
References _handlePositionedImage(), gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), and m_pDocument.
Referenced by populateStrux().
void s_XSL_FO_Listener::_handleHyperlink | ( | PT_AttrPropIndex | api | ) | [protected] |
References _closeLink(), _tagOpen(), UT_UTF8String::escapeURL(), UT_UTF8String::escapeXML(), gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), m_bInLink, m_pDocument, and TT_BASICLINK.
Referenced by populate().
void s_XSL_FO_Listener::_handleImage | ( | PT_AttrPropIndex | api | ) | [protected] |
References _tagOpenClose(), UT_UTF8String::clear(), UT_UTF8String::escapeXML(), gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), PD_Document::getDataItemFileExtension(), IE_Exp::getFileName(), PP_AttrProp::getProperty(), m_pDocument, m_pie, m_utvDataIDs, UT_GenericVector< T >::push_back(), UT_go_basename(), and UT_return_if_fail.
Referenced by populate().
void s_XSL_FO_Listener::_handleLists | ( | void | ) | [protected] |
References UT_GenericVector< T >::addItem(), PD_Document::enumLists(), UT_GenericVector< T >::getItemCount(), m_Lists, and m_pDocument.
Referenced by s_XSL_FO_Listener().
void s_XSL_FO_Listener::_handleMath | ( | PT_AttrPropIndex | api | ) | [protected] |
References _tagOpenClose(), UT_UTF8String::clear(), UT_UTF8String::escapeXML(), gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), IE_Exp::getFileName(), PP_AttrProp::getProperty(), m_pDocument, m_pie, m_utvDataIDs, UT_GenericVector< T >::push_back(), UT_go_basename(), UT_LAYOUT_RESOLUTION, UT_return_if_fail, and UT_UTF8String_sprintf().
Referenced by populate().
void s_XSL_FO_Listener::_handlePageSize | ( | PT_AttrPropIndex | api | ) | [protected] |
References _tagClose(), _tagOpen(), _tagOpenClose(), UT_UTF8String::clear(), gchar, PD_Document::getAttrProp(), fp_PageSize::getDims(), fp_PageSize::Height(), m_bFirstWrite, PD_Document::m_docPageSize, m_pDocument, m_pie, PP_evalProperty(), TT_LAYOUT_MASTER_SET, TT_SIMPLE_PAGE_MASTER, UT_dimensionName(), UT_UTF8String_sprintf(), fp_PageSize::Width(), and IE_Exp::write().
Referenced by _openSection().
void s_XSL_FO_Listener::_handlePositionedImage | ( | PT_AttrPropIndex | api | ) | [protected] |
References _tagOpenClose(), UT_UTF8String::clear(), UT_UTF8String::escapeXML(), gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), PD_Document::getDataItemFileExtension(), IE_Exp::getFileName(), PP_AttrProp::getProperty(), m_pDocument, m_pie, m_utvDataIDs, UT_GenericVector< T >::push_back(), UT_go_basename(), and UT_return_if_fail.
Referenced by _handleFrame().
void s_XSL_FO_Listener::_handleTableColumns | ( | void | ) | [protected] |
References _tagOpenClose(), ie_Table::getNumCols(), ie_Table::getTableProp(), and mTableHelper.
Referenced by _openTable().
void s_XSL_FO_Listener::_openBlock | ( | PT_AttrPropIndex | api | ) | [protected] |
References _closeLink(), _openListItem(), _popListToDepth(), _tagOpen(), _tagTop(), gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), PP_AttrProp::getProperty(), m_bInSection, m_iBlockDepth, m_iListBlockDepth, m_iListID, m_pDocument, PROPERTY, purgeSpaces(), TT_BLOCK, TT_LISTBLOCK, and UT_UTF8String::utf8_str().
Referenced by populateStrux().
void s_XSL_FO_Listener::_openCell | ( | PT_AttrPropIndex | api | ) | [protected] |
void s_XSL_FO_Listener::_openListItem | ( | void | ) | [protected] |
References _tagClose(), _tagOpen(), _tagOpenClose(), _tagTop(), m_iListBlockDepth, m_pie, TT_BLOCK, TT_LISTBLOCK, TT_LISTITEM, TT_LISTITEMBODY, TT_LISTITEMLABEL, and IE_Exp::write().
Referenced by _closeBlock(), _openBlock(), _openSpan(), and _popListToDepth().
void s_XSL_FO_Listener::_openRow | ( | void | ) | [protected] |
References _closeCell(), _closeRow(), _tagOpen(), ie_Table::getCurRow(), ie_Table::getTableProp(), ie_Table::incCurRow(), ie_Table::isNewRow(), mTableHelper, and TT_TABLEROW.
Referenced by _openCell().
void s_XSL_FO_Listener::_openSection | ( | PT_AttrPropIndex | api | ) | [protected] |
References _handlePageSize(), _tagOpen(), m_bFirstWrite, m_bInSection, TT_PAGE_SEQUENCE, and TT_SECTION.
Referenced by populateStrux().
void s_XSL_FO_Listener::_openSpan | ( | PT_AttrPropIndex | api | ) | [protected] |
References _closeSpan(), _openListItem(), _tagOpen(), _tagTop(), gchar, PD_Document::getAttrProp(), PP_AttrProp::getProperty(), m_bInSpan, m_iBlockDepth, m_iListBlockDepth, m_pDocument, PROPERTY, purgeSpaces(), TT_INLINE, TT_LISTBLOCK, and UT_UTF8String::utf8_str().
Referenced by populate().
void s_XSL_FO_Listener::_openTable | ( | PT_AttrPropIndex | api | ) | [protected] |
References _getTableColors(), _getTableThicknesses(), _handleTableColumns(), _tagOpen(), m_bInSection, TT_TABLE, and TT_TABLEBODY.
Referenced by populateStrux().
void s_XSL_FO_Listener::_outputData | ( | const UT_UCSChar * | data, | |
UT_uint32 | length | |||
) | [protected] |
References UT_UTF8String::appendUCS4(), UT_UTF8String::byteLength(), m_pie, UT_UTF8String::reserve(), UCS_FF, UCS_LF, UCS_VTAB, UT_ASSERT, UT_TODO, UT_UTF8String::utf8_str(), and IE_Exp::write().
Referenced by populate().
void s_XSL_FO_Listener::_popListToDepth | ( | UT_sint32 | depth | ) | [protected] |
References _openListItem(), _tagClose(), _tagTop(), m_bWroteListField, m_iBlockDepth, m_iListBlockDepth, TT_BLOCK, TT_LISTBLOCK, TT_LISTITEM, and TT_LISTITEMBODY.
Referenced by _closeBlock(), _closeSection(), _openBlock(), _openCell(), and populateStrux().
void s_XSL_FO_Listener::_tagClose | ( | UT_uint32 | tagID, | |
const UT_UTF8String & | content, | |||
bool | newline = true | |||
) | [protected] |
References m_iLastClosed, m_pie, m_utnsTagStack, UT_NumberStack::pop(), UT_DEBUGMSG, UT_UTF8String::utf8_str(), IE_Exp::write(), and xxx_UT_DEBUGMSG.
Referenced by _closeBlock(), _closeCell(), _closeLink(), _closeRow(), _closeSection(), _closeSpan(), _closeTable(), _handleField(), _handlePageSize(), _openListItem(), _popListToDepth(), populateStrux(), and ~s_XSL_FO_Listener().
void s_XSL_FO_Listener::_tagOpen | ( | UT_uint32 | tagID, | |
const UT_UTF8String & | content, | |||
bool | newline = true | |||
) | [protected] |
References m_pie, m_utnsTagStack, UT_NumberStack::push(), UT_UTF8String::utf8_str(), IE_Exp::write(), and xxx_UT_DEBUGMSG.
Referenced by _handleField(), _handleHyperlink(), _handlePageSize(), _openBlock(), _openCell(), _openListItem(), _openRow(), _openSection(), _openSpan(), _openTable(), populateStrux(), and s_XSL_FO_Listener().
void s_XSL_FO_Listener::_tagOpenClose | ( | const UT_UTF8String & | content, | |
bool | suppress = true , |
|||
bool | newline = true | |||
) | [protected] |
References m_pie, UT_UTF8String::utf8_str(), and IE_Exp::write().
Referenced by _closeCell(), _handleBookmark(), _handleEmbedded(), _handleImage(), _handleMath(), _handlePageSize(), _handlePositionedImage(), _handleTableColumns(), _openListItem(), and populateStrux().
UT_uint32 s_XSL_FO_Listener::_tagTop | ( | void | ) | [protected] |
References m_utnsTagStack, and UT_NumberStack::viewTop().
Referenced by _closeBlock(), _closeCell(), _closeLink(), _closeRow(), _closeSection(), _closeSpan(), _closeTable(), _handleField(), _openBlock(), _openListItem(), _openSpan(), _popListToDepth(), and populateStrux().
bool s_XSL_FO_Listener::change | ( | fl_ContainerLayout * | sfh, | |
const PX_ChangeRecord * | pcr | |||
) | [virtual] |
Implements PL_Listener.
References UT_ASSERT.
virtual bool s_XSL_FO_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_XSL_FO_Listener::populate | ( | fl_ContainerLayout * | sfh, | |
const PX_ChangeRecord * | pcr | |||
) | [virtual] |
Implements PL_Listener.
References _closeSpan(), _handleBookmark(), _handleEmbedded(), _handleField(), _handleHyperlink(), _handleImage(), _handleMath(), _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_Embed, PTO_Field, PTO_Hyperlink, PTO_Image, PTO_Math, PX_ChangeRecord::PXT_InsertFmtMark, PX_ChangeRecord::PXT_InsertObject, PX_ChangeRecord::PXT_InsertSpan, UT_ASSERT, and UT_TODO.
bool s_XSL_FO_Listener::populateStrux | ( | pf_Frag_Strux * | sdh, | |
const PX_ChangeRecord * | pcr, | |||
fl_ContainerLayout ** | psfh | |||
) | [virtual] |
Implements PL_Listener.
References _closeBlock(), _closeCell(), _closeSection(), _closeTable(), _handleFrame(), _openBlock(), _openCell(), _openSection(), _openTable(), _popListToDepth(), _tagClose(), _tagOpen(), _tagOpenClose(), _tagTop(), ie_Table::closeCell(), ie_Table::closeTable(), gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), PX_ChangeRecord::getIndexAP(), PX_ChangeRecord::getType(), m_bInNote, m_bInSection, m_pDocument, mTableHelper, ie_Table::openCell(), ie_Table::openTable(), PTX_Block, PTX_EndCell, PTX_EndEndnote, PTX_EndFootnote, PTX_EndFrame, PTX_EndMarginnote, PTX_EndTable, PTX_EndTOC, PTX_Section, PTX_SectionCell, PTX_SectionEndnote, PTX_SectionFootnote, PTX_SectionFrame, PTX_SectionHdrFtr, PTX_SectionMarginnote, PTX_SectionTable, PTX_SectionTOC, TT_FOOTNOTE, TT_FOOTNOTEBODY, UT_ASSERT, UT_ASSERT_HARMLESS, UT_SHOULD_NOT_HAPPEN, and UT_TODO.
bool s_XSL_FO_Listener::signal | ( | UT_uint32 | iSignal | ) | [virtual] |
Implements PL_Listener.
References UT_ASSERT, and UT_SHOULD_NOT_HAPPEN.
bool s_XSL_FO_Listener::m_bFirstWrite [private] |
Referenced by _handlePageSize(), and _openSection().
bool s_XSL_FO_Listener::m_bInLink [private] |
Referenced by _closeLink(), and _handleHyperlink().
bool s_XSL_FO_Listener::m_bInNote [private] |
Referenced by _closeSection(), and populateStrux().
bool s_XSL_FO_Listener::m_bInSection [private] |
Referenced by _closeSection(), _openBlock(), _openCell(), _openSection(), _openTable(), and populateStrux().
bool s_XSL_FO_Listener::m_bInSpan [private] |
Referenced by _closeSpan(), and _openSpan().
bool s_XSL_FO_Listener::m_bWroteListField [private] |
Referenced by _closeBlock(), _handleField(), and _popListToDepth().
UT_sint32 s_XSL_FO_Listener::m_iBlockDepth [private] |
Referenced by _closeBlock(), _handleField(), _openBlock(), _openSpan(), and _popListToDepth().
UT_uint32 s_XSL_FO_Listener::m_iLastClosed [private] |
Referenced by _closeCell(), and _tagClose().
Referenced by _closeBlock(), _handleField(), _openBlock(), _openListItem(), _openSpan(), and _popListToDepth().
UT_uint32 s_XSL_FO_Listener::m_iListID [private] |
Referenced by _handleField(), and _openBlock().
UT_GenericVector<ListHelper *> s_XSL_FO_Listener::m_Lists [private] |
Referenced by _handleField(), _handleLists(), and ~s_XSL_FO_Listener().
PD_Document* s_XSL_FO_Listener::m_pDocument [private] |
IE_Exp_XSL_FO* s_XSL_FO_Listener::m_pie [private] |
Referenced by _tagClose(), _tagOpen(), and _tagTop().
UT_Vector s_XSL_FO_Listener::m_utvDataIDs [private] |
Referenced by _handleDataItems(), _handleEmbedded(), _handleImage(), _handleMath(), _handlePositionedImage(), and ~s_XSL_FO_Listener().
ie_Table s_XSL_FO_Listener::mTableHelper [private] |