#include <ie_exp_HTML.h>
IE_Exp_HTML::IE_Exp_HTML | ( | PD_Document * | pDocument | ) |
References XAP_Exp_HTMLOptions::bAbsUnits, XAP_Exp_HTMLOptions::bAddIdentifiers, XAP_Exp_HTMLOptions::bAllowAWML, XAP_Exp_HTMLOptions::bClassOnly, XAP_Exp_HTMLOptions::bDeclareXML, XAP_Exp_HTMLOptions::bEmbedCSS, XAP_Exp_HTMLOptions::bEmbedImages, XAP_Exp_HTMLOptions::bIs4, XAP_Exp_HTMLOptions::bIsAbiWebDoc, XAP_Exp_HTMLOptions::bLinkCSS, XAP_Exp_HTMLOptions::bMultipart, XAP_App::getApp(), XAP_Dialog_HTMLOptions::getHTMLDefaults(), XAP_Exp_HTMLOptions::iCompact, IE_Exp::m_error, m_exp_opt, and m_pNavigationHelper.
IE_Exp_HTML::~IE_Exp_HTML | ( | ) | [virtual] |
References m_bDefaultWriterFactory, m_pNavigationHelper, m_pWriterFactory, m_style_tree, and m_styleListener.
void IE_Exp_HTML::_buildStyleTree | ( | ) | [private] |
References IE_Exp_HTML_StyleTree::add(), PD_Document::enumStyles(), gchar, PD_Document::getAttrProp(), IE_Exp::getDoc(), IE_Exp::getDocRange(), PD_Style::getIndexAP(), PD_Style::getName(), UT_GenericVector< T >::getNthItem(), PD_Document::getStyleCount(), IE_Exp::isCopying(), m_style_tree, m_styleListener, PD_Document::tellListener(), PD_Document::tellListenerSubset(), UT_continue_if_fail, and UT_return_if_fail.
Referenced by _writeDocument(), and printStyleTree().
void IE_Exp_HTML::_createChapter | ( | PD_DocumentRange * | range, | |
const std::string & | title, | |||
bool | isIndex | |||
) | [protected] |
References XAP_Exp_HTMLOptions::bEmbedCSS, XAP_Exp_HTMLOptions::bEmbedImages, XAP_Exp_HTMLOptions::bMathMLRenderPNG, XAP_Exp_HTMLOptions::bSplitDocument, IE_Exp_HTML_WriterFactory::constructDocumentWriter(), ConvertToClean(), DELETEP, IE_Exp_HTML_HeaderFooterListener::doHdrFtr(), IE_Exp_HTML_Listener::endOfDocument(), IE_Exp_HTML_Listener::get_HasMathML(), IE_Exp::getDoc(), IE_Exp::getFileName(), IE_Exp::getFp(), m_exp_opt, m_mathmlFlags, m_pNavigationHelper, m_pWriterFactory, m_style_tree, m_suffix, s, SEPARATOR, IE_Exp_HTML_Listener::set_EmbedCSS(), IE_Exp_HTML_Listener::set_EmbedImages(), IE_Exp_HTML_Listener::set_RenderMathMLToPng(), IE_Exp_HTML_Listener::set_SplitDocument(), PD_Document::tellListener(), PD_Document::tellListenerSubset(), UT_go_basename_from_uri(), UT_go_file_create(), and UT_UTF8String::utf8_str().
Referenced by _writeDocument().
void IE_Exp_HTML::_createMultipart | ( | ) | [protected] |
References XAP_Exp_HTMLOptions::bEmbedCSS, XAP_Exp_HTMLOptions::bIs4, XAP_Exp_HTMLOptions::bMathMLRenderPNG, UT_UTF8String::byteLength(), IE_Exp_HTML_WriterFactory::constructDocumentWriter(), DELETEP, IE_Exp_HTML_HeaderFooterListener::doHdrFtr(), IE_Exp_HTML_Listener::endOfDocument(), IE_Exp_HTML_MultipartExporter::generateHeader(), IE_Exp::getDoc(), IE_Exp::getFileName(), IE_Exp_HTML_StringWriter::getString(), m_exp_opt, m_pNavigationHelper, m_pWriterFactory, m_style_tree, IE_Exp_HTML_Listener::set_EmbedCSS(), IE_Exp_HTML_Listener::set_RenderMathMLToPng(), PD_Document::tellListener(), UT_UTF8String::utf8_str(), and IE_Exp::write().
Referenced by _writeDocument().
UT_Error IE_Exp_HTML::_doOptions | ( | ) | [private] |
References GR_Graphics::DGP_PAPER, XAP_App::getApp(), XAP_Frame::getCurrentView(), XAP_App::getDialogFactory(), XAP_Frame::getFilename(), AV_View::getGraphics(), XAP_App::getLastFocussedFrame(), IE_Exp::isCopying(), m_bSuppressDialog, m_exp_opt, GR_Graphics::queryProperties(), XAP_DialogFactory::releaseDialog(), XAP_DialogFactory::requestDialog(), XAP_Dialog_HTMLOptions::runModal(), XAP_Dialog_HTMLOptions::setHTMLOptions(), XAP_Dialog_HTMLOptions::shouldSave(), and UT_return_val_if_fail.
Referenced by _writeDocument().
UT_Error IE_Exp_HTML::_writeDocument | ( | void | ) | [protected, virtual] |
Implements IE_Exp.
References _buildStyleTree(), _doOptions(), UT_UTF8String::append(), UT_UTF8String::appendUCS4(), XAP_Exp_HTMLOptions::bAbsUnits, XAP_Exp_HTMLOptions::bAddIdentifiers, XAP_Exp_HTMLOptions::bAllowAWML, XAP_Exp_HTMLOptions::bClassOnly, XAP_Exp_HTMLOptions::bDeclareXML, XAP_Exp_HTMLOptions::bEmbedCSS, XAP_Exp_HTMLOptions::bEmbedImages, XAP_Exp_HTMLOptions::bIs4, XAP_Exp_HTMLOptions::bIsAbiWebDoc, XAP_Exp_HTMLOptions::bLinkCSS, XAP_Exp_HTMLOptions::bMathMLRenderPNG, XAP_Exp_HTMLOptions::bSplitDocument, UT_UTF8String::byteLength(), UT_UTF8Stringbuf::charCode(), UT_UTF8String::clear(), gchar, IE_Exp::getDoc(), AD_Document::getFilename(), IE_Exp::getFileName(), IE_Exp::getProperty(), XAP_Exp_HTMLOptions::iCompact, IE_Exp::isCopying(), m_exp_opt, m_pNavigationHelper, m_sLinkCSS, m_sTitle, m_suffix, s_DTD_XHTML, set_HTML4(), set_MHTML(), set_PHTML(), UT_basename(), UT_DEBUGMSG, UT_go_basename(), UT_go_utf8_collate_casefold(), UT_OK, UT_parseBool(), UT_SAVE_CANCELLED, UT_UTF8String::utf8_str(), and IE_Exp::write().
UT_Error IE_Exp_HTML::_writeDocument | ( | bool | bClipBoard, | |
bool | bTemplateBody | |||
) | [virtual] |
References _createChapter(), _createMultipart(), XAP_Exp_HTMLOptions::bMultipart, XAP_Exp_HTMLOptions::bSplitDocument, PD_Document::getBounds(), IE_Exp::getDoc(), IE_Exp_HTML_NavigationHelper::getMinTOCIndex(), IE_Exp_HTML_NavigationHelper::getMinTOCLevel(), IE_TOCHelper::getNthTOCEntry(), IE_TOCHelper::getNthTOCEntryPos(), IE_TOCHelper::getNumTOCEntries(), IE_TOCHelper::hasTOC(), m_exp_opt, m_pNavigationHelper, UT_DEBUGMSG, and UT_UTF8String::utf8_str().
UT_Error IE_Exp_HTML::copyToBuffer | ( | PD_DocumentRange * | pDocRange, | |
UT_ByteBuf * | bufHTML | |||
) | [virtual] |
Reimplemented from IE_Exp.
References UT_ByteBuf::append(), IE_Exp::constructExporter(), PD_Document::createRawDocument(), IE_Exp::fileTypeForMimetype(), PD_Document::finishRawCreation(), PD_Document::getDocumentRDF(), PD_DocumentRange::m_pDoc, PD_DocumentRange::m_pos1, PD_DocumentRange::m_pos2, PD_Document::tellListenerSubset(), UNREFP, UT_DEBUGMSG, UT_OK, and IE_Exp::writeFile().
Referenced by IE_Exp_S5::_writeSlide(), AP_UnixApp::copyToClipboard(), and AP_UnixApp::getCurrentSelection().
static bool IE_Exp_HTML::GetDlgLabels | ( | const gchar ** | pszDesc, | |
const gchar ** | pszSuffixList, | |||
IEFileType * | ft | |||
) | [static] |
IE_Exp_HTML_NavigationHelper* IE_Exp_HTML::getNavigationHelper | ( | ) | [inline] |
Referenced by IE_Exp_EPUB::EPUB2_writeNavigation(), and IE_Exp_EPUB::EPUB3_writeNavigation().
const UT_UTF8String& IE_Exp_HTML::getSuffix | ( | ) | const [inline] |
bool IE_Exp_HTML::hasMathML | ( | const std::string & | file | ) |
References m_mathmlFlags.
Referenced by IE_Exp_EPUB::package().
void IE_Exp_HTML::printStyleTree | ( | PD_Document * | pDocument, | |
UT_ByteBuf & | sink | |||
) | [static] |
References _buildStyleTree(), m_style_tree, and IE_Exp_HTML_StyleTree::print().
Referenced by IE_Exp_S5::_writeHeader().
static bool IE_Exp_HTML::RecognizeSuffix | ( | const gchar * | szSuffix | ) | [static] |
void IE_Exp_HTML::set_AddIdentifiers | ( | bool | enable = true |
) | [inline] |
void IE_Exp_HTML::set_HTML4 | ( | bool | enable = true |
) | [inline] |
void IE_Exp_HTML::set_MathMLRenderPNG | ( | bool | enable = true |
) | [inline] |
Referenced by IE_Exp_EPUB::EPUB3_writeStructure().
void IE_Exp_HTML::set_MHTML | ( | bool | enable = true |
) | [inline] |
Referenced by _writeDocument().
void IE_Exp_HTML::set_PHTML | ( | bool | enable = true |
) | [inline] |
Referenced by _writeDocument().
void IE_Exp_HTML::set_SplitDocument | ( | bool | enable = true |
) | [inline] |
Referenced by IE_Exp_EPUB::EPUB3_writeStructure().
void IE_Exp_HTML::setWriterFactory | ( | IE_Exp_HTML_WriterFactory * | pWriterFactory | ) |
References DELETEP, IE_Exp::getDoc(), m_bDefaultWriterFactory, m_exp_opt, and m_pWriterFactory.
Referenced by IE_Exp_EPUB::EPUB3_writeStructure().
static UT_Error IE_Exp_HTML::StaticConstructor | ( | PD_Document * | pDocument, | |
IE_Exp ** | ppie | |||
) | [static] |
static bool IE_Exp_HTML::SupportsFileType | ( | IEFileType | ft | ) | [static] |
void IE_Exp_HTML::suppressDialog | ( | bool | disable = true |
) | [inline] |
Referenced by IE_Exp_EPUB::EPUB2_writeStructure(), and IE_Exp_EPUB::EPUB3_writeStructure().
bool IE_Exp_HTML::m_bDefaultWriterFactory [private] |
Referenced by setWriterFactory(), and ~IE_Exp_HTML().
bool IE_Exp_HTML::m_bSuppressDialog [private] |
Referenced by _doOptions().
XAP_Exp_HTMLOptions IE_Exp_HTML::m_exp_opt [private] |
Referenced by _createChapter(), _createMultipart(), _doOptions(), _writeDocument(), IE_Exp_HTML(), and setWriterFactory().
std::map<std::string, bool> IE_Exp_HTML::m_mathmlFlags [private] |
Referenced by _createChapter(), and hasMathML().
Referenced by _createChapter(), _createMultipart(), _writeDocument(), IE_Exp_HTML(), and ~IE_Exp_HTML().
Referenced by _createChapter(), _createMultipart(), setWriterFactory(), and ~IE_Exp_HTML().
UT_UTF8String IE_Exp_HTML::m_sLinkCSS [private] |
Referenced by _writeDocument().
UT_UTF8String IE_Exp_HTML::m_sTitle [private] |
Referenced by _writeDocument().
IE_Exp_HTML_StyleTree* IE_Exp_HTML::m_style_tree [private] |
Referenced by _buildStyleTree(), _createChapter(), _createMultipart(), printStyleTree(), and ~IE_Exp_HTML().
Referenced by _buildStyleTree(), and ~IE_Exp_HTML().
UT_UTF8String IE_Exp_HTML::m_suffix [private] |
Referenced by _createChapter(), and _writeDocument().