
enum s_HTML_Listener::WhiteSpace [private] |
| s_HTML_Listener::s_HTML_Listener | ( | PD_Document * | pDocument, | |
| IE_Exp_HTML * | pie, | |||
| bool | bClipBoard, | |||
| bool | bTemplateBody, | |||
| const XAP_Exp_HTMLOptions * | exp_opt, | |||
| s_StyleTree * | style_tree, | |||
| UT_UTF8String & | linkCSS, | |||
| UT_UTF8String & | title | |||
| ) |
References s_StyleTree::find(), m_pDocument, m_style_tree, m_StyleTreeBody, and m_toc.
| s_HTML_Listener::~s_HTML_Listener | ( | ) |
References _closeSection(), _closeTag(), _outputEnd(), DELETEP, listPopToDepth(), m_toc, m_vecDWidths, UT_DEBUGMSG, and UT_VECTOR_PURGEALL.
| bool s_HTML_Listener::populate | ( | PL_StruxFmtHandle | sfh, | |
| const PX_ChangeRecord * | pcr | |||
| ) | [virtual] |
Implements PL_Listener.
References _closeSpan(), _handleAnnotationMark(), _handleBookmark(), _handleEmbedded(), _handleField(), _handleHyperlink(), _handleImage(), _handleMath(), _openSection(), _openSpan(), _openTag(), _outputData(), PX_ChangeRecord_Span::getBufIndex(), PX_ChangeRecord::getIndexAP(), PX_ChangeRecord_Span::getLength(), PX_ChangeRecord_Object::getObjectType(), PD_Document::getPointer(), PX_ChangeRecord::getType(), m_bClipBoard, m_bFirstWrite, m_bIgnoreTillEnd, m_bIgnoreTillNextSection, m_bInSpan, m_bWroteText, 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, UT_DEBUGMSG, and UT_TODO.
| bool s_HTML_Listener::populateStrux | ( | PL_StruxDocHandle | sdh, | |
| const PX_ChangeRecord * | pcr, | |||
| PL_StruxFmtHandle * | psfh | |||
| ) | [virtual] |
Implements PL_Listener.
References _closeCell(), _closeSpan(), _closeTable(), _closeTag(), _closeTextBox(), _doEndnotes(), _emitTOC(), _openCell(), _openPosImage(), _openSection(), _openTable(), _openTag(), _openTextBox(), _popUnendedStructures(), addAnnotation(), addEndnote(), addFootnote(), ie_Table::CloseCell(), ie_Table::CloseTable(), gchar, PD_Document::getAttrProp(), PD_Document::getAttrPropIndex(), PX_ChangeRecord::getIndexAP(), ie_Table::getNestDepth(), PX_ChangeRecord::getPosition(), PP_AttrProp::getProperty(), PX_ChangeRecord_Strux::getStruxType(), PX_ChangeRecord::getType(), listPopToDepth(), m_bClipBoard, m_bFirstWrite, m_bIgnoreTillEnd, m_bIgnoreTillNextSection, m_bInBlock, m_iEmbedStartPos, m_iListDepth, m_pDocument, m_TableHelper, m_utf8_1, 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, PX_ChangeRecord::PXT_InsertStrux, tagClose(), TT_TR, UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_return_val_if_fail, and UT_TODO.
| bool s_HTML_Listener::endOfDocument | ( | ) |
References _doAnnotations(), _doEndnotes(), _doFootnotes(), _popUnendedStructures(), and m_bIgnoreTillNextSection.
Referenced by IE_Exp_HTML::_writeDocument().
| bool s_HTML_Listener::change | ( | PL_StruxFmtHandle | sfh, | |
| const PX_ChangeRecord * | pcr | |||
| ) | [virtual] |
| bool s_HTML_Listener::insertStrux | ( | PL_StruxFmtHandle | sfh, | |
| const PX_ChangeRecord * | pcr, | |||
| PL_StruxDocHandle | sdh, | |||
| PL_ListenerId | lid, | |||
| void(*)(PL_StruxDocHandle sdhNew, PL_ListenerId lid, PL_StruxFmtHandle sfhNew) | pfnBindHandles | |||
| ) | [virtual] |
Implements PL_Listener.
| bool s_HTML_Listener::signal | ( | UT_uint32 | iSignal | ) | [virtual] |
| void s_HTML_Listener::startEmbeddedStrux | ( | void | ) |
This closes open section tags and starts new one for embedded struxes
References _closeSection(), m_bInSection, m_utf8_1, tagOpen(), and TT_DIV.
Referenced by _doAnnotations(), and _doFootnotes().
| void s_HTML_Listener::_outputBegin | ( | PT_AttrPropIndex | api | ) | [private] |
References _handleMeta(), _outputStyles(), UT_UTF8String::byteLength(), UT_UTF8String::escapeXML(), get_Allow_AWML(), get_Compact(), get_Declare_XML(), get_Embed_CSS(), get_HTML4(), get_Multipart(), get_PHTML(), PD_Document::getAttrProp(), IE_Exp::getFileName(), PD_Document::getMetaDataProp(), m_bFirstWrite, m_bTemplateBody, m_pAPStyles, m_pDocument, m_pie, m_sTitle, m_utf8_1, multiHeader(), MYEOL, PD_META_KEY_TITLE, tagClose(), tagComment(), tagOpen(), tagOpenClose(), tagPI(), textTrusted(), textUntrusted(), TT_BODY, TT_HEAD, TT_HTML, TT_TITLE, UT_basename(), UT_UTF8String::utf8_str(), ws_Post, and ws_Pre.
Referenced by _openSection().
| void s_HTML_Listener::_outputEnd | ( | ) | [private] |
References _closeTag(), _handlePendingImages(), _outputStyles(), get_Multipart(), get_PHTML(), m_bInBlock, m_bQuotedPrintable, m_bTemplateBody, m_pAPStyles, m_utf8_1, multiBoundary(), MYEOL, tagClose(), tagPI(), tagPop(), tagTop(), TT_BODY, and TT_HTML.
Referenced by ~s_HTML_Listener().
| bool s_HTML_Listener::_openStyleSheet | ( | UT_UTF8String & | css_path | ) | [private] |
References UT_UTF8String::byteLength(), get_Multipart(), IE_Exp::getFileName(), IE_MIMETYPE_CSS, m_bQuotedPrintable, m_fdCSS, m_pie, m_utf8_1, m_utf8_css_path, multiBoundary(), multiBreak(), multiField(), UT_go_basename_from_uri(), UT_go_directory_create(), and UT_go_file_create().
Referenced by _outputStyles().
| void s_HTML_Listener::_closeStyleSheet | ( | ) | [private] |
| void s_HTML_Listener::_outputStyles | ( | const PP_AttrProp * | pAP | ) | [private] |
References _closeStyleSheet(), _openStyleSheet(), _populateFooterStyle(), _populateHeaderStyle(), UT_UTF8String::byteLength(), DIM_MM, gchar, get_Abs_Units(), get_Compact(), get_Embed_CSS(), get_HTML4(), get_Link_CSS(), get_Multipart(), get_Scale_Units(), PD_Style::getNthProperty(), PD_Style::getPropertyCount(), PD_Document::getStyle(), is_CSS(), IS_TRANSPARENT_COLOR, m_bHaveFooter, m_bHaveHeader, m_pDocument, m_sLinkCSS, m_style_tree, m_utf8_0, m_utf8_1, m_utf8_css_path, MYEOL, PP_evalProperty(), s_StyleTree::print(), styleClose(), styleNameValue(), styleOpen(), styleText(), szName, tagClose(), tagCommentClose(), tagCommentOpen(), tagOpen(), tagOpenClose(), TT_STYLE, UT_colorToHex(), UT_convertToDimension(), and UT_UTF8String_sprintf().
Referenced by _outputBegin(), and _outputEnd().
| void s_HTML_Listener::_openSection | ( | PT_AttrPropIndex | api, | |
| UT_uint16 | iSectionSpecialType | |||
| ) | [private] |
References _closeSection(), _outputBegin(), DIM_IN, gchar, PD_Document::getAttrProp(), PP_AttrProp::getProperty(), m_bFirstWrite, m_bInSection, PD_Document::m_docPageSize, m_dPageWidthInches, m_dSecBottomMarginInches, m_dSecLeftMarginInches, m_dSecRightMarginInches, m_dSecTopMarginInches, m_pDocument, m_utf8_1, tagOpen(), TT_DIV, UT_convertToInches(), and fp_PageSize::Width().
Referenced by _openCell(), _openTable(), _openTag(), s_HTML_HdrFtr_Listener::doHdrFtr(), populate(), and populateStrux().
| void s_HTML_Listener::_closeSection | ( | void | ) | [private] |
References listPopToDepth(), m_bInBlock, m_bInSection, m_utf8_1, tagClose(), tagTop(), TT_DIV, TT_P, TT_SPAN, and UT_DEBUGMSG.
Referenced by _openSection(), s_HTML_HdrFtr_Listener::doHdrFtr(), startEmbeddedStrux(), and ~s_HTML_Listener().
| void s_HTML_Listener::_openTag | ( | PT_AttrPropIndex | api, | |
| PL_StruxDocHandle | sdh | |||
| ) | [private] |
References _closeTag(), _openSection(), BT_BLOCKTEXT, BT_BULLETLIST, BT_HEADING1, BT_HEADING2, BT_HEADING3, BT_NORMAL, BT_NUMBEREDLIST, BT_PLAINTEXT, UT_UTF8String::byteLength(), s_StyleTree::class_list(), s_StyleTree::class_name(), s_StyleTree::descends(), IE_TOCHelper::docHasTOC(), UT_UTF8String::escapeXML(), s_StyleTree::find(), gchar, get_Allow_AWML(), get_Class_Only(), get_HTML4(), PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), PP_AttrProp::getProperty(), IE_TOCHelper::isTOCStyle(), listDepth(), listPop(), listPopToDepth(), listPush(), listType(), m_bFirstWrite, m_bInBlock, m_bInFrame, m_bInSection, m_bWroteText, m_heading_count, m_iBlockType, m_iListDepth, m_pDocument, m_style_tree, m_StyleTreeBlock, m_StyleTreeInline, m_toc, m_utf8_1, m_utf8_style, PT_LISTID_ATTRIBUTE_NAME, PT_STYLE_ATTRIBUTE_NAME, tagClose(), tagOpen(), tagTop(), TT_A, TT_BLOCKQUOTE, TT_H1, TT_H2, TT_H3, TT_LI, TT_OTHER, TT_P, TT_TD, UT_DEBUGMSG, UT_UTF8String_sprintf(), ws_None, ws_Post, and ws_Pre.
Referenced by _openSpan(), populate(), and populateStrux().
| void s_HTML_Listener::_closeTag | ( | void | ) | [private] |
References _closeSpan(), BT_BLOCKTEXT, BT_BULLETLIST, BT_HEADING1, BT_HEADING2, BT_HEADING3, BT_NORMAL, BT_NUMBEREDLIST, BT_PLAINTEXT, get_HTML4(), m_bInBlock, m_bInSpan, m_bWroteText, m_iBlockType, m_utf8_1, tagClose(), tagOpenClose(), tagTop(), TT_A, TT_BLOCKQUOTE, TT_H1, TT_H2, TT_H3, TT_P, TT_PRE, UT_DEBUGMSG, ws_None, and ws_Post.
Referenced by _closeTextBox(), _doAnnotations(), _openTable(), _openTag(), _openTextBox(), _outputEnd(), populateStrux(), and ~s_HTML_Listener().
| void s_HTML_Listener::_closeSpan | ( | void | ) | [private] |
References m_bInSpan, tagClose(), tagTop(), TT_A, TT_BDO, TT_SPAN, and ws_None.
Referenced by _closeTag(), _openSpan(), populate(), and populateStrux().
| void s_HTML_Listener::_openSpan | ( | PT_AttrPropIndex | api | ) | [private] |
References _closeSpan(), _openTag(), UT_UTF8String::byteLength(), s_StyleTree::class_list(), s_StyleTree::class_name(), compareStyle(), UT_UTF8String::escapeXML(), s_StyleTree::find(), gchar, get_Class_Only(), get_HTML4(), PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), PP_AttrProp::getProperty(), IS_TRANSPARENT_COLOR, m_apiLastSpan, m_bFirstWrite, m_bInBlock, m_bInSpan, m_pDocument, m_style_tree, m_StyleTreeInline, m_utf8_0, m_utf8_1, m_utf8_span, m_utf8_style, PT_STYLE_ATTRIBUTE_NAME, tagOpen(), TT_BDO, TT_SPAN, UT_colorToHex(), UT_convertToPoints(), UT_UTF8String::utf8_str(), and ws_None.
Referenced by populate().
| void s_HTML_Listener::_popUnendedStructures | ( | void | ) | [private] |
Close up all HTML-structures for which we haven't a definitive end in the piecetable, such as lists.
References listPopToDepth(), and m_iListDepth.
Referenced by _closeCell(), endOfDocument(), and populateStrux().
| void s_HTML_Listener::_openTable | ( | PT_AttrPropIndex | api | ) | [private] |
References _closeTag(), _fillColWidthsVector(), _openSection(), UT_UTF8String::append(), UT_UTF8String::byteLength(), UT_UTF8String::clear(), DIM_MM, DIM_PT, gchar, get_Abs_Units(), get_Scale_Units(), PD_Document::getAttrProp(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), ie_Table::getNumCols(), ie_Table::getTableProp(), PP_PropertyMap::linestyle_for_CSS(), listPopToDepth(), m_bFirstWrite, m_bInBlock, m_bInSection, m_dPageWidthInches, m_dSecLeftMarginInches, m_dSecRightMarginInches, m_iListDepth, m_pDocument, m_TableHelper, m_utf8_1, m_vecDWidths, s, UT_HashColor::setHashIfValid(), UT_UTF8String::size(), tagClose(), tagOpen(), tagOpenClose(), TT_COLGROUP, TT_TABLE, TT_TBODY, UT_convertInchesToDimension(), UT_convertToDimension(), UT_DEBUGMSG, UT_UTF8String_sprintf(), and UT_UTF8String::utf8_str().
Referenced by _openCell(), _openRow(), and populateStrux().
| void s_HTML_Listener::_closeTable | ( | void | ) | [private] |
References _fillColWidthsVector(), _setCellWidthInches(), UT_GenericVector< T >::clear(), ie_Table::getNestDepth(), m_TableHelper, m_utf8_1, m_vecDWidths, tagClose(), TT_TABLE, TT_TBODY, and UT_VECTOR_PURGEALL.
Referenced by populateStrux().
| void s_HTML_Listener::_openRow | ( | PT_AttrPropIndex | api | ) | [private] |
References _openTable(), DIM_MM, get_Abs_Units(), PD_Document::getAttrProp(), PP_AttrProp::getProperty(), m_pDocument, m_utf8_1, tagClose(), tagOpen(), tagTop(), TT_TBODY, TT_TR, UT_convertToDimension(), and UT_UTF8String_sprintf().
Referenced by _openCell().
| void s_HTML_Listener::_openCell | ( | PT_AttrPropIndex | api | ) | [private] |
References _openRow(), _openSection(), _openTable(), _setCellWidthInches(), UT_UTF8String::append(), UT_UTF8String::byteLength(), DIM_PT, gchar, PD_Document::getAttrProp(), ie_Table::getBot(), ie_Table::getCellProp(), ie_Table::getLeft(), ie_Table::getNestDepth(), ie_Table::getRight(), ie_Table::getTableProp(), ie_Table::getTop(), ie_Table::isNewRow(), PP_PropertyMap::linestyle_for_CSS(), m_bCellHasData, m_bFirstWrite, m_bInSection, m_pDocument, m_TableHelper, m_utf8_1, s, UT_HashColor::setHashIfValid(), UT_UTF8String::size(), tagOpen(), TT_TD, UT_convertToDimension(), UT_UTF8String_sprintf(), and UT_UTF8String::utf8_str().
Referenced by populateStrux().
| void s_HTML_Listener::_closeCell | ( | void | ) | [private] |
References _popUnendedStructures(), ie_Table::getNestDepth(), m_bCellHasData, m_TableHelper, m_utf8_1, s, tagClose(), tagRaw(), and TT_TD.
Referenced by populateStrux().
| void s_HTML_Listener::_openTextBox | ( | PT_AttrPropIndex | api | ) | [private] |
References _closeTag(), _closeTextBox(), gchar, PD_Document::getAttrProp(), PP_AttrProp::getProperty(), listPopToDepth(), m_bInBlock, m_bInFrame, m_bInSection, m_bInTextBox, m_iListDepth, m_pDocument, m_utf8_1, tagClose(), tagOpen(), tagTop(), and TT_DIV.
Referenced by populateStrux().
| void s_HTML_Listener::_openPosImage | ( | PT_AttrPropIndex | api | ) | [private] |
References _handleImage(), gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), m_pDocument, and PT_STRUX_IMAGE_DATAID.
Referenced by populateStrux().
| void s_HTML_Listener::_closeTextBox | ( | ) | [private] |
References _closeTag(), m_bInBlock, m_bInFrame, m_bInTextBox, m_utf8_1, tagClose(), tagTop(), TT_DIV, and UT_DEBUGMSG.
Referenced by _openTextBox(), listPop(), and populateStrux().
| void s_HTML_Listener::_outputData | ( | const UT_UCSChar * | p, | |
| UT_uint32 | length | |||
| ) | [private] |