#include <ie_exp_HTML_DocumentWriter.h>
Public Member Functions | |
IE_Exp_HTML_DocumentWriter (IE_Exp_HTML_OutputWriter *pOutputWriter) | |
virtual | ~IE_Exp_HTML_DocumentWriter () |
void | openSpan (const gchar *szStyleNames, const UT_UTF8String &style) |
void | closeSpan () |
void | openBlock (const gchar *szStyleName, const UT_UTF8String &style, const PP_AttrProp *pAP) |
void | closeBlock () |
void | openHeading (size_t level, const gchar *szStyleName, const gchar *szId, const PP_AttrProp *pAP) |
void | closeHeading () |
void | openSection (const gchar *szStyleName) |
void | closeSection () |
void | openHyperlink (const gchar *szUri, const gchar *szStyleName, const gchar *szId) |
void | closeHyperlink () |
void | openDocument () |
void | closeDocument () |
void | openHead () |
void | closeHead () |
void | openBody () |
void | closeBody () |
void | openTable (const UT_UTF8String &style, const UT_UTF8String &cellPadding, const UT_UTF8String &border) |
void | closeTable () |
void | openRow () |
void | closeRow () |
void | openCell (const UT_UTF8String &style, const UT_UTF8String &rowspan, const UT_UTF8String &colspan) |
void | closeCell () |
void | openBookmark (const gchar *szBookmarkName) |
void | closeBookmark () |
void | openList (bool ordered, const gchar *szStyleName, const PP_AttrProp *pAP) |
void | closeList () |
void | openListItem () |
void | closeListItem () |
void | openField (const UT_UTF8String &fieldType, const UT_UTF8String &value) |
void | closeField (const UT_UTF8String &fieldType) |
void | openAnnotation () |
void | closeAnnotation () |
void | openTextbox (const UT_UTF8String &style) |
void | closeTextbox () |
void | insertDTD () |
void | insertMeta (const std::string &name, const std::string &content, const std::string &httpEquiv) |
void | insertText (const UT_UTF8String &text) |
void | insertImage (const UT_UTF8String &url, const UT_UTF8String &width, const UT_UTF8String &align, const UT_UTF8String &style, const UT_UTF8String &alt) |
void | insertTOC (const gchar *title, const std::vector< UT_UTF8String > &items, const std::vector< UT_UTF8String > &itemUriList) |
void | insertEndnotes (const std::vector< UT_UTF8String > &endnotes) |
void | insertFootnotes (const std::vector< UT_UTF8String > &footnotes) |
void | insertAnnotations (const std::vector< UT_UTF8String > &titles, const std::vector< UT_UTF8String > &authors, const std::vector< UT_UTF8String > &annotations) |
void | insertStyle (const UT_UTF8String &style) |
virtual void | insertJavaScript (const gchar *, const gchar *) |
void | insertTitle (const std::string &title) |
void | insertLink (const UT_UTF8String &rel, const UT_UTF8String &type, const UT_UTF8String &uri) |
void | insertMath (const UT_UTF8String &mathml, const UT_UTF8String &width, const UT_UTF8String &height) |
void | enablePHP (bool bEnable=true) |
void | enableSVGScript (bool bEnable=true) |
void | insertLineFeed (void) |
Protected Member Functions | |
IE_Exp_HTML_DocumentWriter () | |
void | _handleStyleAndId (const gchar *szStyleName, const gchar *szId, const gchar *szStyle) |
Protected Attributes | |
IE_Exp_HTML_OutputWriter * | m_pOutputWriter |
IE_Exp_HTML_TagWriter * | m_pTagWriter |
UT_uint32 | m_iEndnoteCount |
UT_uint32 | m_iEndnoteAnchorCount |
UT_uint32 | m_iFootnoteCount |
UT_uint32 | m_iAnnotationCount |
bool | m_bInsertPhp |
bool | m_bInsertSvgScript |
IE_Exp_HTML_DocumentWriter::IE_Exp_HTML_DocumentWriter | ( | IE_Exp_HTML_OutputWriter * | pOutputWriter | ) |
IE_Exp_HTML_DocumentWriter::~IE_Exp_HTML_DocumentWriter | ( | ) | [virtual] |
References DELETEP, and m_pTagWriter.
IE_Exp_HTML_DocumentWriter::IE_Exp_HTML_DocumentWriter | ( | ) | [inline, protected] |
void IE_Exp_HTML_DocumentWriter::_handleStyleAndId | ( | const gchar * | szStyleName, | |
const gchar * | szId, | |||
const gchar * | szStyle | |||
) | [inline, protected] |
References IE_Exp_HTML_TagWriter::addAttribute(), and m_pTagWriter.
Referenced by insertImage(), openBlock(), openCell(), openHeading(), openHyperlink(), openList(), openSection(), openSpan(), openTable(), and openTextbox().
void IE_Exp_HTML_DocumentWriter::closeAnnotation | ( | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
Reimplemented in IE_Exp_EPUB_EPUB3Writer.
References IE_Exp_HTML_TagWriter::closeTag(), and m_pTagWriter.
void IE_Exp_HTML_DocumentWriter::closeBlock | ( | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References IE_Exp_HTML_TagWriter::closeTag(), and m_pTagWriter.
void IE_Exp_HTML_DocumentWriter::closeBody | ( | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References IE_Exp_HTML_TagWriter::closeTag(), m_bInsertPhp, m_pTagWriter, MYEOL, UT_UTF8String::utf8_str(), and IE_Exp_HTML_TagWriter::writeData().
void IE_Exp_HTML_DocumentWriter::closeBookmark | ( | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References IE_Exp_HTML_TagWriter::closeTag(), and m_pTagWriter.
void IE_Exp_HTML_DocumentWriter::closeCell | ( | void | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References IE_Exp_HTML_TagWriter::closeTag(), and m_pTagWriter.
void IE_Exp_HTML_DocumentWriter::closeDocument | ( | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References IE_Exp_HTML_TagWriter::closeTag(), and m_pTagWriter.
void IE_Exp_HTML_DocumentWriter::closeField | ( | const UT_UTF8String & | fieldType | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References IE_Exp_HTML_TagWriter::closeTag(), and m_pTagWriter.
void IE_Exp_HTML_DocumentWriter::closeHead | ( | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References IE_Exp_HTML_TagWriter::addAttribute(), IE_Exp_HTML_TagWriter::closeComment(), IE_Exp_HTML_TagWriter::closeTag(), m_bInsertPhp, m_bInsertSvgScript, m_pTagWriter, MYEOL, IE_Exp_HTML_TagWriter::openComment(), IE_Exp_HTML_TagWriter::openTag(), sMathSVGScript, UT_UTF8String::utf8_str(), and IE_Exp_HTML_TagWriter::writeData().
void IE_Exp_HTML_DocumentWriter::closeHeading | ( | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References IE_Exp_HTML_TagWriter::closeTag(), and m_pTagWriter.
void IE_Exp_HTML_DocumentWriter::closeHyperlink | ( | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References IE_Exp_HTML_TagWriter::closeTag(), and m_pTagWriter.
void IE_Exp_HTML_DocumentWriter::closeList | ( | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References IE_Exp_HTML_TagWriter::closeTag(), and m_pTagWriter.
void IE_Exp_HTML_DocumentWriter::closeListItem | ( | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References IE_Exp_HTML_TagWriter::closeTag(), and m_pTagWriter.
void IE_Exp_HTML_DocumentWriter::closeRow | ( | void | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References IE_Exp_HTML_TagWriter::closeTag(), and m_pTagWriter.
void IE_Exp_HTML_DocumentWriter::closeSection | ( | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References IE_Exp_HTML_TagWriter::closeTag(), and m_pTagWriter.
Referenced by IE_Exp_HTML_HeaderFooterListener::doHdrFtr().
void IE_Exp_HTML_DocumentWriter::closeSpan | ( | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References IE_Exp_HTML_TagWriter::closeTag(), and m_pTagWriter.
void IE_Exp_HTML_DocumentWriter::closeTable | ( | void | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References IE_Exp_HTML_TagWriter::closeTag(), and m_pTagWriter.
void IE_Exp_HTML_DocumentWriter::closeTextbox | ( | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References IE_Exp_HTML_TagWriter::closeTag(), and m_pTagWriter.
void IE_Exp_HTML_DocumentWriter::enablePHP | ( | bool | bEnable = true |
) | [inline] |
Referenced by IE_Exp_HTML_DefaultWriterFactory::constructDocumentWriter().
void IE_Exp_HTML_DocumentWriter::enableSVGScript | ( | bool | bEnable = true |
) | [inline] |
Referenced by IE_Exp_HTML_DefaultWriterFactory::constructDocumentWriter().
void IE_Exp_HTML_DocumentWriter::insertAnnotations | ( | const std::vector< UT_UTF8String > & | titles, | |
const std::vector< UT_UTF8String > & | authors, | |||
const std::vector< UT_UTF8String > & | annotations | |||
) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
Reimplemented in IE_Exp_EPUB_EPUB3Writer.
References IE_Exp_HTML_TagWriter::addAttribute(), IE_Exp_HTML_TagWriter::closeTag(), UT_UTF8String::length(), m_pTagWriter, IE_Exp_HTML_TagWriter::openTag(), UT_UTF8String_sprintf(), UT_UTF8String::utf8_str(), and IE_Exp_HTML_TagWriter::writeData().
void IE_Exp_HTML_DocumentWriter::insertDTD | ( | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
Reimplemented in IE_Exp_EPUB_EPUB3Writer, IE_Exp_HTML_XHTMLWriter, and IE_Exp_HTML_HTML4Writer.
void IE_Exp_HTML_DocumentWriter::insertEndnotes | ( | const std::vector< UT_UTF8String > & | endnotes | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
Reimplemented in IE_Exp_EPUB_EPUB3Writer.
References IE_Exp_HTML_TagWriter::addAttribute(), IE_Exp_HTML_TagWriter::closeTag(), m_iEndnoteAnchorCount, m_pTagWriter, IE_Exp_HTML_TagWriter::openTag(), UT_UTF8String_sprintf(), and IE_Exp_HTML_TagWriter::writeData().
void IE_Exp_HTML_DocumentWriter::insertFootnotes | ( | const std::vector< UT_UTF8String > & | footnotes | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
Reimplemented in IE_Exp_EPUB_EPUB3Writer.
References IE_Exp_HTML_TagWriter::addAttribute(), IE_Exp_HTML_TagWriter::closeTag(), m_pTagWriter, IE_Exp_HTML_TagWriter::openTag(), UT_UTF8String_sprintf(), and IE_Exp_HTML_TagWriter::writeData().
void IE_Exp_HTML_DocumentWriter::insertImage | ( | const UT_UTF8String & | url, | |
const UT_UTF8String & | width, | |||
const UT_UTF8String & | align, | |||
const UT_UTF8String & | style, | |||
const UT_UTF8String & | alt | |||
) | [virtual] |
virtual void IE_Exp_HTML_DocumentWriter::insertJavaScript | ( | const gchar * | , | |
const gchar * | ||||
) | [inline, virtual] |
Implements IE_Exp_HTML_ListenerImpl.
void IE_Exp_HTML_DocumentWriter::insertLineFeed | ( | void | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References IE_Exp_HTML_TagWriter::closeTag(), m_pTagWriter, and IE_Exp_HTML_TagWriter::openTag().
void IE_Exp_HTML_DocumentWriter::insertLink | ( | const UT_UTF8String & | rel, | |
const UT_UTF8String & | type, | |||
const UT_UTF8String & | uri | |||
) | [virtual] |
void IE_Exp_HTML_DocumentWriter::insertMath | ( | const UT_UTF8String & | mathml, | |
const UT_UTF8String & | width, | |||
const UT_UTF8String & | height | |||
) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References m_pTagWriter, UT_UTF8String::utf8_str(), and IE_Exp_HTML_TagWriter::writeData().
void IE_Exp_HTML_DocumentWriter::insertMeta | ( | const std::string & | name, | |
const std::string & | content, | |||
const std::string & | httpEquiv | |||
) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References IE_Exp_HTML_TagWriter::addAttribute(), IE_Exp_HTML_TagWriter::closeTag(), m_pTagWriter, and IE_Exp_HTML_TagWriter::openTag().
Referenced by IE_Exp_HTML_HTML4Writer::openHead(), and IE_Exp_HTML_XHTMLWriter::openHead().
void IE_Exp_HTML_DocumentWriter::insertStyle | ( | const UT_UTF8String & | style | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References IE_Exp_HTML_TagWriter::addAttribute(), IE_Exp_HTML_TagWriter::closeComment(), IE_Exp_HTML_TagWriter::closeTag(), m_pTagWriter, IE_Exp_HTML_TagWriter::openComment(), IE_Exp_HTML_TagWriter::openTag(), UT_UTF8String::utf8_str(), and IE_Exp_HTML_TagWriter::writeData().
void IE_Exp_HTML_DocumentWriter::insertText | ( | const UT_UTF8String & | text | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References m_pTagWriter, UT_UTF8String::utf8_str(), and IE_Exp_HTML_TagWriter::writeData().
void IE_Exp_HTML_DocumentWriter::insertTitle | ( | const std::string & | title | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References IE_Exp_HTML_TagWriter::closeTag(), m_pTagWriter, IE_Exp_HTML_TagWriter::openTag(), and IE_Exp_HTML_TagWriter::writeData().
void IE_Exp_HTML_DocumentWriter::insertTOC | ( | const gchar * | title, | |
const std::vector< UT_UTF8String > & | items, | |||
const std::vector< UT_UTF8String > & | itemUriList | |||
) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
Reimplemented in IE_Exp_EPUB_EPUB3Writer.
References IE_Exp_HTML_TagWriter::addAttribute(), IE_Exp_HTML_TagWriter::closeTag(), m_pTagWriter, IE_Exp_HTML_TagWriter::openTag(), and IE_Exp_HTML_TagWriter::writeData().
void IE_Exp_HTML_DocumentWriter::openAnnotation | ( | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
Reimplemented in IE_Exp_EPUB_EPUB3Writer.
References IE_Exp_HTML_TagWriter::addAttribute(), m_iAnnotationCount, m_pTagWriter, IE_Exp_HTML_TagWriter::openTag(), and UT_UTF8String_sprintf().
void IE_Exp_HTML_DocumentWriter::openBlock | ( | const gchar * | szStyleName, | |
const UT_UTF8String & | style, | |||
const PP_AttrProp * | pAP | |||
) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
Reimplemented in IE_Exp_HTML_XHTMLWriter.
References _handleStyleAndId(), m_pTagWriter, IE_Exp_HTML_TagWriter::openTag(), and UT_UTF8String::utf8_str().
void IE_Exp_HTML_DocumentWriter::openBody | ( | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References m_bInsertPhp, m_pTagWriter, MYEOL, IE_Exp_HTML_TagWriter::openTag(), UT_UTF8String::utf8_str(), and IE_Exp_HTML_TagWriter::writeData().
void IE_Exp_HTML_DocumentWriter::openBookmark | ( | const gchar * | szBookmarkName | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References IE_Exp_HTML_TagWriter::addAttribute(), m_pTagWriter, and IE_Exp_HTML_TagWriter::openTag().
void IE_Exp_HTML_DocumentWriter::openCell | ( | const UT_UTF8String & | style, | |
const UT_UTF8String & | rowspan, | |||
const UT_UTF8String & | colspan | |||
) | [virtual] |
void IE_Exp_HTML_DocumentWriter::openDocument | ( | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
Reimplemented in IE_Exp_EPUB_EPUB3Writer, and IE_Exp_HTML_XHTMLWriter.
References m_pTagWriter, and IE_Exp_HTML_TagWriter::openTag().
void IE_Exp_HTML_DocumentWriter::openField | ( | const UT_UTF8String & | fieldType, | |
const UT_UTF8String & | value | |||
) | [virtual] |
void IE_Exp_HTML_DocumentWriter::openHead | ( | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
Reimplemented in IE_Exp_HTML_XHTMLWriter, and IE_Exp_HTML_HTML4Writer.
References m_pTagWriter, and IE_Exp_HTML_TagWriter::openTag().
void IE_Exp_HTML_DocumentWriter::openHeading | ( | size_t | level, | |
const gchar * | szStyleName, | |||
const gchar * | szId, | |||
const PP_AttrProp * | pAP | |||
) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
Reimplemented in IE_Exp_HTML_XHTMLWriter.
References _handleStyleAndId(), m_pTagWriter, and IE_Exp_HTML_TagWriter::openTag().
void IE_Exp_HTML_DocumentWriter::openHyperlink | ( | const gchar * | szUri, | |
const gchar * | szStyleName, | |||
const gchar * | szId | |||
) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References _handleStyleAndId(), IE_Exp_HTML_TagWriter::addAttribute(), m_pTagWriter, and IE_Exp_HTML_TagWriter::openTag().
void IE_Exp_HTML_DocumentWriter::openList | ( | bool | ordered, | |
const gchar * | szStyleName, | |||
const PP_AttrProp * | pAP | |||
) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
Reimplemented in IE_Exp_HTML_XHTMLWriter.
References _handleStyleAndId(), m_pTagWriter, and IE_Exp_HTML_TagWriter::openTag().
void IE_Exp_HTML_DocumentWriter::openListItem | ( | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References m_pTagWriter, and IE_Exp_HTML_TagWriter::openTag().
void IE_Exp_HTML_DocumentWriter::openRow | ( | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References m_pTagWriter, and IE_Exp_HTML_TagWriter::openTag().
void IE_Exp_HTML_DocumentWriter::openSection | ( | const gchar * | szStyleName | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References _handleStyleAndId(), m_pTagWriter, and IE_Exp_HTML_TagWriter::openTag().
Referenced by IE_Exp_HTML_HeaderFooterListener::doHdrFtr().
void IE_Exp_HTML_DocumentWriter::openSpan | ( | const gchar * | szStyleNames, | |
const UT_UTF8String & | style | |||
) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References _handleStyleAndId(), m_pTagWriter, IE_Exp_HTML_TagWriter::openTag(), and UT_UTF8String::utf8_str().
void IE_Exp_HTML_DocumentWriter::openTable | ( | const UT_UTF8String & | style, | |
const UT_UTF8String & | cellPadding, | |||
const UT_UTF8String & | border | |||
) | [virtual] |
void IE_Exp_HTML_DocumentWriter::openTextbox | ( | const UT_UTF8String & | style | ) | [virtual] |
Implements IE_Exp_HTML_ListenerImpl.
References _handleStyleAndId(), m_pTagWriter, IE_Exp_HTML_TagWriter::openTag(), and UT_UTF8String::utf8_str().
bool IE_Exp_HTML_DocumentWriter::m_bInsertPhp [protected] |
Referenced by closeBody(), closeHead(), and openBody().
bool IE_Exp_HTML_DocumentWriter::m_bInsertSvgScript [protected] |
Referenced by closeHead().
Referenced by openAnnotation(), and IE_Exp_EPUB_EPUB3Writer::openAnnotation().
Referenced by insertEndnotes(), and IE_Exp_EPUB_EPUB3Writer::insertEndnotes().
UT_uint32 IE_Exp_HTML_DocumentWriter::m_iEndnoteCount [protected] |
Referenced by openField().
Referenced by openField().
Referenced by IE_Exp_HTML_XHTMLWriter::_handleAwmlStyle(), _handleStyleAndId(), closeAnnotation(), IE_Exp_EPUB_EPUB3Writer::closeAnnotation(), closeBlock(), closeBody(), closeBookmark(), closeCell(), closeDocument(), closeField(), closeHead(), closeHeading(), closeHyperlink(), closeList(), closeListItem(), closeRow(), closeSection(), closeSpan(), closeTable(), closeTextbox(), IE_Exp_EPUB_EPUB3Writer::IE_Exp_EPUB_EPUB3Writer(), IE_Exp_HTML_HTML4Writer::IE_Exp_HTML_HTML4Writer(), IE_Exp_HTML_XHTMLWriter::IE_Exp_HTML_XHTMLWriter(), insertAnnotations(), IE_Exp_EPUB_EPUB3Writer::insertAnnotations(), insertEndnotes(), IE_Exp_EPUB_EPUB3Writer::insertEndnotes(), insertFootnotes(), IE_Exp_EPUB_EPUB3Writer::insertFootnotes(), insertImage(), insertLineFeed(), insertLink(), insertMath(), insertMeta(), insertStyle(), insertText(), insertTitle(), insertTOC(), openAnnotation(), IE_Exp_EPUB_EPUB3Writer::openAnnotation(), openBlock(), openBody(), openBookmark(), openCell(), IE_Exp_HTML_XHTMLWriter::openDocument(), openDocument(), IE_Exp_EPUB_EPUB3Writer::openDocument(), openField(), openHead(), openHeading(), openHyperlink(), openList(), openListItem(), openRow(), openSection(), openSpan(), openTable(), openTextbox(), and ~IE_Exp_HTML_DocumentWriter().