#include <ie_exp_WML.h>
s_WML_Listener::s_WML_Listener | ( | PD_Document * | pDocument, | |
IE_Exp_WML * | pie | |||
) |
References _handleMetaData(), m_pDocument, m_pie, m_toc, and IE_Exp::write().
s_WML_Listener::~s_WML_Listener | ( | ) | [virtual] |
References _closeSection(), _handleDataItems(), DELETEP, m_bPendingClose, m_pie, m_toc, m_utvDataIDs, UT_VECTOR_FREEALL, and IE_Exp::write().
void s_WML_Listener::_closeAnchor | ( | void | ) | [protected] |
References m_bInAnchor, m_pie, and IE_Exp::write().
Referenced by _closeBlock(), _handleBookmark(), and _handleHyperlink().
void s_WML_Listener::_closeBlock | ( | void | ) | [protected] |
References _closeAnchor(), _closeHyperlink(), m_bInBlock, m_bInTable, m_pie, and IE_Exp::write().
Referenced by _closeSection(), _emitTOC(), and populateStrux().
void s_WML_Listener::_closeCell | ( | void | ) | [protected] |
References _closeRow(), ie_Table::getNumCols(), ie_Table::getRight(), m_bInCell, m_bInTable, m_pie, mTableHelper, and IE_Exp::write().
Referenced by _closeTable(), _openCell(), and populateStrux().
void s_WML_Listener::_closeHyperlink | ( | void | ) | [protected] |
References m_bInHyperlink, m_pie, and IE_Exp::write().
Referenced by _closeBlock(), and _handleHyperlink().
void s_WML_Listener::_closeRow | ( | void | ) | [protected] |
References m_bInRow, m_bInTable, m_pie, and IE_Exp::write().
Referenced by _closeCell(), _closeTable(), and _openCell().
void s_WML_Listener::_closeSection | ( | void | ) | [protected] |
References _closeBlock(), _closeSpan(), m_bInSection, and m_bPendingClose.
Referenced by populateStrux(), and ~s_WML_Listener().
void s_WML_Listener::_closeSpan | ( | void | ) | [protected] |
References gchar, PP_AttrProp::getProperty(), m_bInAnchor, m_bInHyperlink, m_bInSpan, m_pAP_Span, m_pie, and IE_Exp::write().
Referenced by _closeSection(), _emitTOC(), _openSection(), populate(), and populateStrux().
void s_WML_Listener::_closeTable | ( | void | ) | [protected] |
References _closeCell(), _closeRow(), m_bInTable, m_pie, and IE_Exp::write().
Referenced by populateStrux().
void s_WML_Listener::_emitTOC | ( | PT_AttrPropIndex | api | ) | [protected] |
References _closeBlock(), _closeSpan(), _outputDataUnchecked(), UT_UTF8String::byteLength(), gchar, XAP_App::getApp(), PD_Document::getAttrProp(), IE_TOCHelper::getNthTOCEntry(), IE_TOCHelper::getNumTOCEntries(), PP_AttrProp::getProperty(), XAP_App::getStringSet(), XAP_StringSet::getValueUTF8(), UT_UCS4String::length(), m_pDocument, m_pie, m_toc, UT_UCS4String::ucs4_str(), UT_UTF8String::ucs4_str(), UT_escapeXML(), UT_UTF8String_sprintf(), UT_UTF8String::utf8_str(), and IE_Exp::write().
Referenced by populateStrux().
void s_WML_Listener::_handleBookmark | ( | PT_AttrPropIndex | api | ) | [protected] |
References _closeAnchor(), UT_UTF8String::escapeXML(), gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), UT_UTF8String::length(), m_bInAnchor, m_bInCell, m_bInHyperlink, m_bInRow, m_bInTable, m_pDocument, m_pie, UT_ASSERT_HARMLESS, UT_SHOULD_NOT_HAPPEN, UT_UTF8String::utf8_str(), and IE_Exp::write().
Referenced by populate().
void s_WML_Listener::_handleDataItems | ( | void | ) | [protected] |
References _stripSuffix(), PD_Document::enumDataItems(), FREEP, IE_Exp::getFileName(), UT_GenericVector< T >::getItemCount(), m_pDocument, m_pie, m_utvDataIDs, szName, UT_DEBUGMSG, UT_go_basename(), UT_go_directory_create(), UT_go_file_create(), UT_UTF8String_sprintf(), and UT_UTF8String::utf8_str().
Referenced by ~s_WML_Listener().
void s_WML_Listener::_handleEmbedded | ( | PT_AttrPropIndex | api | ) | [protected] |
References DIM_PX, gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), IE_Exp::getFileName(), PP_AttrProp::getProperty(), m_bInCell, m_bInRow, m_bInTable, m_pDocument, m_pie, m_utvDataIDs, UT_GenericVector< T >::push_back(), UT_ASSERT_HARMLESS, UT_convertToDimension(), UT_go_basename(), UT_return_if_fail, UT_SHOULD_NOT_HAPPEN, UT_UTF8String_sprintf(), and IE_Exp::write().
Referenced by populate().
void s_WML_Listener::_handleField | ( | const PX_ChangeRecord_Object * | pcro, | |
PT_AttrPropIndex | api | |||
) | [protected] |
References gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), PX_ChangeRecord_Object::getField(), fd_Field::getValue(), m_bInCell, m_bInRow, m_bInTable, m_pDocument, m_pie, IE_Exp::populateFields(), UT_ASSERT_HARMLESS, UT_return_if_fail, UT_SHOULD_NOT_HAPPEN, and IE_Exp::write().
Referenced by populate().
void s_WML_Listener::_handleHyperlink | ( | PT_AttrPropIndex | api | ) | [protected] |
References _closeAnchor(), _closeHyperlink(), UT_UTF8String::escapeURL(), gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), UT_UTF8String::length(), m_bInCell, m_bInHyperlink, m_bInRow, m_bInTable, m_pDocument, m_pie, UT_ASSERT_HARMLESS, UT_SHOULD_NOT_HAPPEN, UT_UTF8String::utf8_str(), and IE_Exp::write().
Referenced by populate().
void s_WML_Listener::_handleImage | ( | PT_AttrPropIndex | api, | |
bool | bPos = false | |||
) | [protected] |
References _stripSuffix(), DIM_PX, UT_UTF8String::escapeXML(), FREEP, gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), PD_Document::getDataItemFileExtension(), IE_Exp::getFileName(), PP_AttrProp::getProperty(), m_bInCell, m_bInRow, m_bInTable, m_pDocument, m_pie, m_utvDataIDs, UT_GenericVector< T >::push_back(), UT_ASSERT_HARMLESS, UT_convertToDimension(), UT_go_basename(), UT_return_if_fail, UT_SHOULD_NOT_HAPPEN, UT_UTF8String_sprintf(), UT_UTF8String::utf8_str(), and IE_Exp::write().
Referenced by _openSection(), and populate().
void s_WML_Listener::_handleMath | ( | PT_AttrPropIndex | api | ) | [protected] |
References gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), IE_Exp::getFileName(), PP_AttrProp::getProperty(), m_bInCell, m_bInRow, m_bInTable, m_pDocument, m_pie, m_utvDataIDs, UT_GenericVector< T >::push_back(), UT_ASSERT_HARMLESS, UT_go_basename(), UT_return_if_fail, UT_SHOULD_NOT_HAPPEN, and IE_Exp::write().
Referenced by populate().
void s_WML_Listener::_handleMetaData | ( | void | ) | [protected] |
References PD_Document::getMetaDataProp(), m_pDocument, m_pie, PD_META_KEY_CONTRIBUTOR, PD_META_KEY_COVERAGE, PD_META_KEY_CREATOR, PD_META_KEY_DATE, PD_META_KEY_DESCRIPTION, PD_META_KEY_KEYWORDS, PD_META_KEY_PUBLISHER, PD_META_KEY_RELATION, PD_META_KEY_RIGHTS, PD_META_KEY_SOURCE, PD_META_KEY_SUBJECT, PD_META_KEY_TITLE, IE_Exp::write(), and WRITEMETA.
Referenced by s_WML_Listener().
void s_WML_Listener::_openCell | ( | void | ) | [protected] |
References _closeCell(), _closeRow(), _openRow(), ie_Table::isNewRow(), m_bInCell, m_bInTable, m_pie, mTableHelper, and IE_Exp::write().
Referenced by populateStrux().
void s_WML_Listener::_openParagraph | ( | PT_AttrPropIndex | api | ) | [protected] |
References _openSection(), _styleDescendsFrom(), gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), PP_AttrProp::getProperty(), m_bInBlock, m_bInSection, m_bInTable, m_heading_count, m_pDocument, m_pie, m_toc, PT_STYLE_ATTRIBUTE_NAME, UT_UTF8String_sprintf(), UT_UTF8String::utf8_str(), IE_Exp::write(), and xxx_UT_DEBUGMSG.
Referenced by populateStrux().
void s_WML_Listener::_openRow | ( | void | ) | [protected] |
References m_bInRow, m_pie, and IE_Exp::write().
Referenced by _openCell().
void s_WML_Listener::_openSection | ( | PT_AttrPropIndex | api | ) | [protected] |
References _closeSpan(), _handleImage(), _openSpan(), gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), m_bInSection, m_bPendingClose, m_iCards, m_pDocument, m_pie, UT_UTF8String_sprintf(), and IE_Exp::write().
Referenced by _openParagraph(), _openTable(), and populateStrux().
void s_WML_Listener::_openSpan | ( | PT_AttrPropIndex | api | ) | [protected] |
References gchar, PD_Document::getAttrProp(), PP_AttrProp::getProperty(), m_bInAnchor, m_bInBlock, m_bInCell, m_bInHyperlink, m_bInRow, m_bInSpan, m_bInTable, m_pAP_Span, m_pDocument, m_pie, and IE_Exp::write().
Referenced by _openSection(), and populate().
void s_WML_Listener::_openTable | ( | PT_AttrPropIndex | api | ) | [protected] |
References _openSection(), ie_Table::getNumCols(), m_bInSection, m_bInTable, m_pie, mTableHelper, UT_UTF8String::size(), UT_UTF8String_sprintf(), UT_UTF8String::utf8_str(), and IE_Exp::write().
Referenced by populateStrux().
void s_WML_Listener::_outputData | ( | const UT_UCSChar * | p, | |
UT_uint32 | length | |||
) | [protected] |
References _outputDataUnchecked(), m_bInBlock, m_bInCell, m_bInRow, and m_bInTable.
Referenced by populate().
void s_WML_Listener::_outputDataUnchecked | ( | const UT_UCSChar * | p, | |
UT_uint32 | length | |||
) | [protected] |
References UT_UTF8String::appendUCS4(), UT_UTF8String::byteLength(), m_bWasSpace, m_pie, UT_UTF8String::reserve(), UCS_FF, UCS_LF, UCS_TAB, UCS_VTAB, UT_UTF8String::utf8_str(), and IE_Exp::write().
Referenced by _emitTOC(), and _outputData().
bool s_WML_Listener::_styleDescendsFrom | ( | const char * | style_name, | |
const char * | base_name | |||
) | [protected] |
References PD_Style::getBasedOn(), PD_Style::getName(), PD_Document::getStyle(), m_pDocument, and style.
Referenced by _openParagraph().
bool s_WML_Listener::change | ( | fl_ContainerLayout * | sfh, | |
const PX_ChangeRecord * | pcr | |||
) | [virtual] |
Implements PL_Listener.
References UT_ASSERT_NOT_REACHED.
virtual bool s_WML_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_WML_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_Annotation, 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_HARMLESS, and UT_TODO.
bool s_WML_Listener::populateStrux | ( | pf_Frag_Strux * | sdh, | |
const PX_ChangeRecord * | pcr, | |||
fl_ContainerLayout ** | psfh | |||
) | [virtual] |
Implements PL_Listener.
References _closeBlock(), _closeCell(), _closeSection(), _closeSpan(), _closeTable(), _emitTOC(), _openCell(), _openParagraph(), _openSection(), _openTable(), ie_Table::closeCell(), ie_Table::closeTable(), PX_ChangeRecord::getIndexAP(), PX_ChangeRecord::getType(), m_bInTable, m_iTableDepth, mTableHelper, ie_Table::openCell(), ie_Table::openTable(), PTX_Block, PTX_EndAnnotation, PTX_EndCell, PTX_EndEndnote, PTX_EndFootnote, PTX_EndFrame, PTX_EndMarginnote, PTX_EndTable, PTX_EndTOC, PTX_Section, PTX_SectionAnnotation, PTX_SectionCell, PTX_SectionEndnote, PTX_SectionFootnote, PTX_SectionFrame, PTX_SectionHdrFtr, PTX_SectionMarginnote, PTX_SectionTable, PTX_SectionTOC, UT_ASSERT_HARMLESS, and UT_TODO.
bool s_WML_Listener::signal | ( | UT_uint32 | iSignal | ) | [virtual] |
Implements PL_Listener.
References UT_ASSERT_NOT_REACHED.
bool s_WML_Listener::m_bInAnchor [protected] |
Referenced by _closeAnchor(), _closeSpan(), _handleBookmark(), and _openSpan().
bool s_WML_Listener::m_bInBlock [protected] |
Referenced by _closeBlock(), _openParagraph(), _openSpan(), and _outputData().
bool s_WML_Listener::m_bInCell [protected] |
Referenced by _closeCell(), _handleBookmark(), _handleEmbedded(), _handleField(), _handleHyperlink(), _handleImage(), _handleMath(), _openCell(), _openSpan(), and _outputData().
bool s_WML_Listener::m_bInHyperlink [protected] |
Referenced by _closeHyperlink(), _closeSpan(), _handleBookmark(), _handleHyperlink(), and _openSpan().
bool s_WML_Listener::m_bInRow [protected] |
Referenced by _closeRow(), _handleBookmark(), _handleEmbedded(), _handleField(), _handleHyperlink(), _handleImage(), _handleMath(), _openRow(), _openSpan(), and _outputData().
bool s_WML_Listener::m_bInSection [protected] |
Referenced by _closeSection(), _openParagraph(), _openSection(), and _openTable().
bool s_WML_Listener::m_bInSpan [protected] |
Referenced by _closeSpan(), and _openSpan().
bool s_WML_Listener::m_bInTable [protected] |
bool s_WML_Listener::m_bPendingClose [protected] |
Referenced by _closeSection(), _openSection(), and ~s_WML_Listener().
bool s_WML_Listener::m_bWasSpace [protected] |
Referenced by _outputDataUnchecked().
UT_uint32 s_WML_Listener::m_heading_count [protected] |
Referenced by _openParagraph().
UT_uint32 s_WML_Listener::m_iCards [protected] |
Referenced by _openSection().
UT_uint32 s_WML_Listener::m_iTableDepth [protected] |
Referenced by populateStrux().
const PP_AttrProp* s_WML_Listener::m_pAP_Span [protected] |
Referenced by _closeSpan(), and _openSpan().
PD_Document* s_WML_Listener::m_pDocument [protected] |
IE_Exp_WML* s_WML_Listener::m_pie [protected] |
Referenced by _closeAnchor(), _closeBlock(), _closeCell(), _closeHyperlink(), _closeRow(), _closeSpan(), _closeTable(), _emitTOC(), _handleBookmark(), _handleDataItems(), _handleEmbedded(), _handleField(), _handleHyperlink(), _handleImage(), _handleMath(), _handleMetaData(), _openCell(), _openParagraph(), _openRow(), _openSection(), _openSpan(), _openTable(), _outputDataUnchecked(), s_WML_Listener(), and ~s_WML_Listener().
IE_TOCHelper* s_WML_Listener::m_toc [protected] |
Referenced by _emitTOC(), _openParagraph(), s_WML_Listener(), and ~s_WML_Listener().
UT_Vector s_WML_Listener::m_utvDataIDs [protected] |
Referenced by _handleDataItems(), _handleEmbedded(), _handleImage(), _handleMath(), and ~s_WML_Listener().
ie_Table s_WML_Listener::mTableHelper [protected] |
Referenced by _closeCell(), _openCell(), _openTable(), and populateStrux().