EBOOKHTMLParser.h Source File documentation

EBOOKHTMLParser.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3 * This file is part of the libe-book project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10 #ifndef EBOOKHTMLPARSER_H_INCLUDED
11 #define EBOOKHTMLPARSER_H_INCLUDED
12
13 #include <memory>
14
15 #include <librevenge/librevenge.h>
16 #include <librevenge-stream/librevenge-stream.h>
17
18 #include "XMLTreeNode.h"
19
20 namespace libebook
21 {
22
23 class XMLCollector;
24 struct EBOOKHTMLMetadata;
25 class EBOOKHTMLParagraphAttributes;
26 class EBOOKHTMLSpanAttributes;
27 class EBOOKHTMLTableCellAttributes;
28 class EBOOKOutputElements;
29 class XMLTreeWalker;
30
31 class EBOOKHTMLParser
32 {
33 struct State;
34
35 public:
36 enum Dialect
37 {
38 DIALECT_UNKNOWN,
39 DIALECT_HTML,
40 DIALECT_XHTML
41 };
42
43 public:
44 EBOOKHTMLParser(librevenge::RVNGInputStream *input, Dialect dialect, librevenge::RVNGTextInterface *document);
45 virtual ~EBOOKHTMLParser();
46
47 void parse();
48 const XMLTreeNodePtr_t readTree();
49
50 virtual librevenge::RVNGInputStream *getImage(const char *path) = 0;
51 virtual librevenge::RVNGInputStream *getObject(const char *path) = 0;
52 virtual librevenge::RVNGInputStream *getStylesheet(const char *path) = 0;
53
54 private:
55 const XMLTreeNodePtr_t readTreeImpl(std::string &encoding, bool &encodingChange);
56 void processNode(const XMLTreeWalker &node);
57
58 void startElement(const XMLTreeWalker &node);
59 void endElement(const XMLTreeWalker &node);
60 void text(const XMLTreeWalker &node);
61
62 void startExternalElement(const XMLTreeWalker &node);
63 void endExternalElement(const XMLTreeWalker &node);
64
65 void sendParagraph(const XMLTreeWalker &node);
66 void sendSpan(const XMLTreeWalker &node);
67 void sendTableCell(const XMLTreeWalker &node);
68 void sendPreformattedText(const char *ch, int len);
69 void sendHeading(const XMLTreeWalker &node, int level);
70
71 private:
72 std::shared_ptr<XMLCollector> m_collector;
73 std::shared_ptr<State> m_state;
74 std::shared_ptr<librevenge::RVNGInputStream> m_input;
75 // const Dialect m_dialect;
76 std::shared_ptr<librevenge::RVNGInputStream> m_workingInput;
77 };
78
79 }
80
81 #endif // EBOOKHTMLPARSER_H_INCLUDED
82
83 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
HTMLParser.h
EBOOKHTMLParser.h
libebook::EBOOKHTMLParser::startExternalElement
void startExternalElement(const XMLTreeWalker &node)
Definition: EBOOKHTMLParser.cpp:1460
libebook::EBOOKHTMLToken::kbd
@ kbd
Definition: EBOOKHTMLToken.h:92
libebook::XMLTreeNode::ConfigurationPtr_t
std::shared_ptr< Configuration > ConfigurationPtr_t
Definition: XMLTreeNode.h:67
libebook::EBOOKHTMLToken::html
@ html
Definition: EBOOKHTMLToken.h:85
libebook::EBOOKHTMLToken::optgroup
@ optgroup
Definition: EBOOKHTMLToken.h:113
libebook::EBOOKHTMLToken::hr
@ hr
Definition: EBOOKHTMLToken.h:84
len
size_t len
Definition: EBOOKHTMLParser.cpp:47
libebook::EBOOKHTMLParser::readTreeImpl
const XMLTreeNodePtr_t readTreeImpl(std::string &encoding, bool &encodingChange)
Definition: EBOOKHTMLParser.cpp:964
EBOOKHTMLToken.h
libebook::EBOOKHTMLToken::del
@ del
Definition: EBOOKHTMLToken.h:59
EPubParser.h
mimetype
string mimetype
Definition: EBOOKOPFParser.cpp:50
EBOOKOutputElements.h
libebook::EBOOKHTMLToken::ul
@ ul
Definition: EBOOKHTMLToken.h:151
libebook::EBOOKHTMLParser::Dialect
Dialect
Definition: EBOOKHTMLParser.h:37
libebook::EBOOKHTMLToken::color
@ color
Definition: EBOOKHTMLToken.h:181
href
optional< string > href
Definition: EBOOKOPFParser.cpp:150
ZTXTParser.h
libebook::EBOOKHTMLToken::link
@ link
Definition: EBOOKHTMLToken.h:97
isPre
bool isPre
Definition: EBOOKHTMLParser.cpp:890
PalmDocParser.h
libebook::EBOOKHTMLToken::u
@ u
Definition: EBOOKHTMLToken.h:150
libebook::EBOOKHTMLToken::tt
@ tt
Definition: EBOOKHTMLToken.h:149
libebook::EBOOKHTMLToken::red
@ red
Definition: EBOOKHTMLToken.h:306
libebook::XMLTreeWalker
Definition: XMLTreeWalker.h:28
libebook::EBOOKCharsetConverter
Definition: EBOOKCharsetConverter.h:22
libebook::getOPFTokenId
int getOPFTokenId(const char *const name, const char *const ns)
Definition: EBOOKOPFToken.cpp:27
libebook::EBOOKHTMLToken::dfn
@ dfn
Definition: EBOOKHTMLToken.h:61
EBOOKHTMLTypes.h
libebook::XMLTreeWalker::begin
Iterator begin() const
Definition: XMLTreeWalker.cpp:1232
libebook::XMLTreeWalker::isText
bool isText() const
Definition: XMLTreeWalker.cpp:1276
libebook::EBOOKHTMLToken::colgroup
@ colgroup
Definition: EBOOKHTMLToken.h:56
libebook::EBOOKHTMLToken::big
@ big
Definition: EBOOKHTMLToken.h:45
libebook::EBOOKHTMLToken::maroon
@ maroon
Definition: EBOOKHTMLToken.h:293
libebook::EBOOKHTMLToken::label
@ label
Definition: EBOOKHTMLToken.h:94
libebook::EBOOKHTMLToken::yellow
@ yellow
Definition: EBOOKHTMLToken.h:322
libebook::EBOOKHTMLParser::EBOOKHTMLParser
EBOOKHTMLParser(librevenge::RVNGInputStream *input, Dialect dialect, librevenge::RVNGTextInterface *document)
Definition: EBOOKHTMLParser.cpp:920
libebook::EBOOKHTMLParser::State::contextStack
stack< ParseContext > contextStack
Definition: EBOOKHTMLParser.cpp:904
libebook::EBOOKHTMLParser::m_input
std::shared_ptr< librevenge::RVNGInputStream > m_input
Definition: EBOOKHTMLParser.h:74
libebook::EBOOKHTMLToken::black
@ black
Definition: EBOOKHTMLToken.h:274
libebook::EBOOKHTMLToken::em
@ em
Definition: EBOOKHTMLToken.h:67
libebook::XMLStylesheets_t
std::deque< XMLStylesheet > XMLStylesheets_t
Definition: XMLStylesheet.h:51
libebook::EBOOKHTMLToken::title
@ title
Definition: EBOOKHTMLToken.h:146
libebook::FictionBook2Token::v
@ v
Definition: FictionBook2Token.h:97
libebook::getRemainingLength
unsigned long getRemainingLength(librevenge::RVNGInputStream *const input)
Definition: libebook_utils.cpp:170
libebook::XMLCollector
Definition: XMLCollector.h:23
libebook::RVNGInputStreamPtr_t
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition: libebook_utils.h:54
libebook::EBOOKDummyDeleter
Definition: libebook_utils.h:57
libebook::EBOOKHTMLToken::button
@ button
Definition: EBOOKHTMLToken.h:50
libebook::EBOOKHTMLParser
Definition: EBOOKHTMLParser.h:32
libebook::ZTXTParser::checkType
static bool checkType(unsigned type, unsigned creator)
Definition: ZTXTParser.cpp:33
libebook::EBOOKOPFToken::creator
@ creator
Definition: EBOOKOPFToken.h:50
m_chained
const Self_t *const m_chained
Definition: EBOOKHTMLParser.cpp:612
libebook::EBOOKHTMLParser::State::sheets
XMLStylesheets_t sheets
Definition: EBOOKHTMLParser.cpp:907
libebook::EBOOKHTMLToken::select
@ select
Definition: EBOOKHTMLToken.h:129
FictionBook2Token.h
libebook::EBOOKHTMLToken::textarea
@ textarea
Definition: EBOOKHTMLToken.h:142
libebook::EBOOKHTMLToken::blockquote
@ blockquote
Definition: EBOOKHTMLToken.h:47
libebook::EPubToken::NS_container
@ NS_container
Definition: EPubToken.h:54
probeFun
ProbeFun_t probeFun
Definition: EBOOKDocument.cpp:324
path
string path
Definition: EBOOKOPFParser.cpp:49
libebook::EBOOKHTMLParser::DIALECT_XHTML
@ DIALECT_XHTML
Definition: EBOOKHTMLParser.h:40
libebook::EBOOKUTF8Stream
Definition: EBOOKUTF8Stream.h:23
libebook::EBOOKHTMLToken::address
@ address
Definition: EBOOKHTMLToken.h:35
libebook::EBOOKHTMLToken::legend
@ legend
Definition: EBOOKHTMLToken.h:95
libebook::EBOOKHTMLToken::dir
@ dir
Definition: EBOOKHTMLToken.h:63
ebookXMLReadFromStream
int ebookXMLReadFromStream(void *context, char *buffer, int len)
Definition: libebook_xml.cpp:19
libebook::EBOOKHTMLToken::body
@ body
Definition: EBOOKHTMLToken.h:48
libebook::EBOOKHTMLToken::get
@ get
Definition: EBOOKHTMLToken.h:283
libebook::EBOOKHTMLParser::text
void text(const XMLTreeWalker &node)
Definition: EBOOKHTMLParser.cpp:1429
libebook
Definition: BBeBCollector.cpp:19
libebook::EBOOKHTMLToken::isindex
@ isindex
Definition: EBOOKHTMLToken.h:91
libebook::EBOOKHTMLToken::ol
@ ol
Definition: EBOOKHTMLToken.h:112
value
qi::rule< Iterator, AttrValue_t, qi::space_type > value
Definition: TealDocParser.cpp:231
libebook::EBOOKHTMLToken::navy
@ navy
Definition: EBOOKHTMLToken.h:295
libebook::EBOOKHTMLToken::sub
@ sub
Definition: EBOOKHTMLToken.h:136
libebook::char_cast
const char * char_cast(const char *const c)
Definition: libebook_xml.cpp:53
libebook::XMLTreeWalker::getStyle
CSSSelectResultsPtr_t getStyle(const XMLStylesheets_t &sheets, bool quirks=false, const CSSStylesheetPtr_t &inlineSheet=CSSStylesheetPtr_t()) const
Definition: XMLTreeWalker.cpp:1524
libebook_utils.h
libebook::EBOOKHTMLToken::xml
@ xml
Definition: EBOOKHTMLToken.h:28
libebook::EPubToken::container
@ container
Definition: EPubToken.h:27
libebook::TealDocParser::checkType
static bool checkType(unsigned type, unsigned creator)
Definition: TealDocParser.cpp:560
libebook::HUBBUBParserPtr_t
std::shared_ptr< hubbub_parser > HUBBUBParserPtr_t
Definition: libebook_hubbub.h:20
libebook::EBOOKOPFToken::Type
@ Type
Definition: EBOOKOPFToken.h:47
libebook::EBOOKHTMLToken::strong
@ strong
Definition: EBOOKHTMLToken.h:134
libebook::EBOOKHTMLToken::h4
@ h4
Definition: EBOOKHTMLToken.h:78
libebook::FictionBook2Token::FictionBook
@ FictionBook
Definition: FictionBook2Token.h:54
XMLTreeNode.h
TCRParser.h
libebook::XMLTreeWalker::getName
const std::string getName() const
Definition: XMLTreeWalker.cpp:1306
libebook::BBeBParser::isSupported
static bool isSupported(librevenge::RVNGInputStream *input)
Definition: BBeBParser.cpp:299
libebook::EBOOKHTMLToken::acronym
@ acronym
Definition: EBOOKHTMLToken.h:34
libebook::EBOOKOPFToken::package
@ package
Definition: EBOOKOPFToken.h:63
libebook::EBOOKHTMLToken::h6
@ h6
Definition: EBOOKHTMLToken.h:80
libebook::EBOOKHTMLToken::q
@ q
Definition: EBOOKHTMLToken.h:121
libebook::EBOOKHTMLToken::a
@ a
Definition: EBOOKHTMLToken.h:32
libebook::PalmDocParser::checkType
static bool checkType(unsigned type, unsigned creator)
Definition: PalmDocParser.cpp:47
libebook::FictionBook2Token::NS_FICTIONBOOK
@ NS_FICTIONBOOK
Definition: FictionBook2Token.h:29
libebook::EPubToken::MIME_epub
@ MIME_epub
Definition: EPubToken.h:44
encoding
const char * encoding
Definition: EBOOKHTMLParser.cpp:166
context
ContextType context
Definition: XMLCollector.cpp:568
libebook::EBOOKHTMLToken::img
@ img
Definition: EBOOKHTMLToken.h:88
libebook::EBOOKHTMLToken::iframe
@ iframe
Definition: EBOOKHTMLToken.h:87
nsMap
LWCStringPtr_t nsMap[HUBBUB_NS_XMLNS]
Definition: EBOOKHTMLParser.cpp:172
libebook::EBOOKHTMLToken::samp
@ samp
Definition: EBOOKHTMLToken.h:126
libebook::EBOOKHTMLToken::rhs
@ rhs
Definition: EBOOKHTMLToken.h:309
libebook::CSSSelectResultsPtr_t
std::shared_ptr< css_select_results > CSSSelectResultsPtr_t
Definition: libebook_libcss.h:25
libebook::EBOOKHTMLToken::INVALID_TOKEN
@ INVALID_TOKEN
Definition: EBOOKHTMLToken.h:23
libebook::EBOOKHTMLToken::sup
@ sup
Definition: EBOOKHTMLToken.h:137
EPubToken.h
intrusive_ptr_release
void intrusive_ptr_release(lwc_string *const p)
Definition: libebook_libcss.cpp:42
libebook::EBOOKHTMLToken::font
@ font
Definition: EBOOKHTMLToken.h:72
libebook::EBOOKHTMLToken::i
@ i
Definition: EBOOKHTMLToken.h:86
libebook::EBOOKHTMLToken::th
@ th
Definition: EBOOKHTMLToken.h:144
libebook::EBOOKHTMLToken::target
@ target
Definition: EBOOKHTMLToken.h:256
libebook::EBOOKHTMLParser::m_collector
std::shared_ptr< XMLCollector > m_collector
Definition: EBOOKHTMLParser.h:72
libebook::EBOOKHTMLParser::sendPreformattedText
void sendPreformattedText(const char *ch, int len)
Definition: EBOOKHTMLParser.cpp:1490
libebook::EBOOKHTMLToken::id
@ id
Definition: EBOOKHTMLToken.h:203
libebook::EBOOKHTMLToken::h1
@ h1
Definition: EBOOKHTMLToken.h:75
libebook::EBOOKHTMLParser::sendParagraph
void sendParagraph(const XMLTreeWalker &node)
Definition: EBOOKHTMLParser.cpp:1472
HTMLHelpStream.h
QiOOParser.h
libebook::EBOOKHTMLToken::param
@ param
Definition: EBOOKHTMLToken.h:117
libebook::operator==
bool operator==(const XMLTreeNode::QName &lhs, const XMLTreeNode::QName &rhs)
Definition: XMLTreeNode.cpp:440
TealDocParser.h
libebook::EBOOKHTMLToken::h5
@ h5
Definition: EBOOKHTMLToken.h:79
libebook::EBOOKOPFToken::NS_opf
@ NS_opf
Definition: EBOOKOPFToken.h:121
libebook::seek
void seek(librevenge::RVNGInputStream *const input, const unsigned long pos)
Definition: libebook_utils.cpp:152
libebook::EBOOKHTMLToken::basefont
@ basefont
Definition: EBOOKHTMLToken.h:42
libebook::SoftBookHeader::create
static std::shared_ptr< SoftBookHeader > create(librevenge::RVNGInputStream *input)
Definition: SoftBookHeader.cpp:58
libebook::EBOOKHTMLToken::base
@ base
Definition: EBOOKHTMLToken.h:41
libebook::EBOOKHTMLToken::form
@ form
Definition: EBOOKHTMLToken.h:74
libebook_hubbub.h
libebook::EBOOKHTMLToken::blue
@ blue
Definition: EBOOKHTMLToken.h:275
SoftBookParser.h
STR_LIT
#define STR_LIT(s)
Definition: EBOOKHTMLParser.cpp:36
libebook::EBOOKHTMLToken::abbr
@ abbr
Definition: EBOOKHTMLToken.h:33
data
MSPackFileData * data
Definition: HTMLHelpStream.cpp:63
libebook::EBOOKHTMLParser::State
Definition: EBOOKHTMLParser.cpp:903
libebook::EBOOKHTMLToken::dt
@ dt
Definition: EBOOKHTMLToken.h:66
libebook::EBOOKHTMLParser::readTree
const XMLTreeNodePtr_t readTree()
Definition: EBOOKHTMLParser.cpp:946
document
XMLTreeNodePtr_t document
Definition: EBOOKHTMLParser.cpp:163
EBOOKOPFParser.h
EBOOK_NUM_ELEMENTS
#define EBOOK_NUM_ELEMENTS(array)
Definition: libebook_utils.h:49
libebook::EBOOKHTMLParser::getImage
virtual librevenge::RVNGInputStream * getImage(const char *path)=0
libebook::EBOOKHTMLToken::head
@ head
Definition: EBOOKHTMLToken.h:81
libebook::PluckerParser::checkType
static bool checkType(unsigned type, unsigned creator)
Definition: PluckerParser.cpp:1203
libebook::getEPubTokenId
int getEPubTokenId(const char *const name, const char *const ns)
Definition: EPubToken.cpp:27
libebook::EBOOKHTMLToken::span
@ span
Definition: EBOOKHTMLToken.h:132
libebook::EBOOKHTMLToken::area
@ area
Definition: EBOOKHTMLToken.h:37
libebook::EBOOKHTMLToken::gray
@ gray
Definition: EBOOKHTMLToken.h:284
ebookXMLCloseStream
int ebookXMLCloseStream(void *)
Definition: libebook_xml.cpp:43
metadata
RVNGPropertyList metadata
Definition: EBOOKOPFParser.cpp:63
ZVRParser.h
BBeBParser.h
libebook::EBOOKHTMLParser::~EBOOKHTMLParser
virtual ~EBOOKHTMLParser()
Definition: EBOOKHTMLParser.cpp:928
libebook::EBOOKHTMLToken::lime
@ lime
Definition: EBOOKHTMLToken.h:291
str
const char * str
Definition: EBOOKHTMLParser.cpp:46
libebook::EBOOKHTMLToken::caption
@ caption
Definition: EBOOKHTMLToken.h:51
libebook::EBOOKHTMLToken::input
@ input
Definition: EBOOKHTMLToken.h:89
mode
hubbub_quirks_mode mode
Definition: EBOOKHTMLParser.cpp:164
libebook::EBOOKHTMLToken::option
@ option
Definition: EBOOKHTMLToken.h:114
libebook::EBOOKHTMLParser::processNode
void processNode(const XMLTreeWalker &node)
Definition: EBOOKHTMLParser.cpp:996
m_attrs
T & m_attrs
Definition: EBOOKHTMLParser.cpp:610
libebook::EBOOKHTMLParser::m_workingInput
std::shared_ptr< librevenge::RVNGInputStream > m_workingInput
Definition: EBOOKHTMLParser.h:76
libebook::EBOOKHTMLParser::endElement
void endElement(const XMLTreeWalker &node)
Definition: EBOOKHTMLParser.cpp:1261
libebook::EBOOKHTMLToken::p
@ p
Definition: EBOOKHTMLToken.h:116
libebook::EBOOKHTMLToken::applet
@ applet
Definition: EBOOKHTMLToken.h:36
libebook::EBOOKHTMLToken::purple
@ purple
Definition: EBOOKHTMLToken.h:304
config
XMLTreeNode::ConfigurationPtr_t config
Definition: EBOOKHTMLParser.cpp:177
HTMLHelpParser.h
libebook::EBOOKHTMLParser::DIALECT_UNKNOWN
@ DIALECT_UNKNOWN
Definition: EBOOKHTMLParser.h:38
libebook::wrap
HUBBUBParserPtr_t wrap(hubbub_parser *const p)
Definition: libebook_hubbub.cpp:15
libebook::EBOOKHTMLToken::td
@ td
Definition: EBOOKHTMLToken.h:140
libebook::XMLTreeWalker::end
const Iterator end() const
Definition: XMLTreeWalker.cpp:1240
parser
HUBBUBParserPtr_t parser
Definition: EBOOKHTMLParser.cpp:170
libebook::getFictionBook2TokenID
int getFictionBook2TokenID(const FictionBook2TokenData &token)
Definition: FictionBook2Token.cpp:50
libebook::EBOOKHTMLToken::olive
@ olive
Definition: EBOOKHTMLToken.h:299
EBOOKOPFToken.h
libebook::XMLTreeWalker::getText
const std::string & getText() const
Definition: XMLTreeWalker.cpp:1322
container
MSPackFile container
Definition: HTMLHelpStream.cpp:93
libebook::EBOOKHTMLToken::dd
@ dd
Definition: EBOOKHTMLToken.h:58
libebook::PeanutPressParser::checkType
static bool checkType(unsigned type, unsigned creator)
Definition: PeanutPressParser.cpp:720
libebook::EBOOKHTMLParser::sendSpan
void sendSpan(const XMLTreeWalker &node)
Definition: EBOOKHTMLParser.cpp:1478
libebook::EBOOKHTMLToken::map
@ map
Definition: EBOOKHTMLToken.h:100
libebook::readU32
uint32_t readU32(librevenge::RVNGInputStream *input, bool bigEndian)
Definition: libebook_utils.cpp:73
libebook::EBOOKHTMLToken::aqua
@ aqua
Definition: EBOOKHTMLToken.h:270
PluckerParser.h
libebook::EBOOKOPFParser::findOPFStream
static bool findOPFStream(const RVNGInputStreamPtr_t &package, unsigned &stream)
Definition: EBOOKOPFParser.cpp:689
libebook::EBOOKHTMLToken::header
@ header
Definition: EBOOKHTMLToken.h:82
libebook::EBOOKHTMLToken::div
@ div
Definition: EBOOKHTMLToken.h:64
libebook::EBOOKHTMLToken::code
@ code
Definition: EBOOKHTMLToken.h:54
checkFun
CheckTypeFun_t checkFun
Definition: EBOOKDocument.cpp:323
name
string name
Definition: HTMLHelpStream.cpp:80
libebook::EBOOKHTMLParser::startElement
void startElement(const XMLTreeWalker &node)
Definition: EBOOKHTMLParser.cpp:1011
xhtmlConfig
XMLTreeNode::ConfigurationPtr_t xhtmlConfig
Definition: EBOOKHTMLParser.cpp:175
libebook::EBOOKHTMLToken::table
@ table
Definition: EBOOKHTMLToken.h:138
libebook::EBOOKHTMLToken::var
@ var
Definition: EBOOKHTMLToken.h:152
libebook::EBOOKOPFToken::opf
@ opf
Definition: EBOOKOPFToken.h:28
libebook::EBOOKHTMLToken::lang
@ lang
Definition: EBOOKHTMLToken.h:205
libebook::EBOOKHTMLToken::h3
@ h3
Definition: EBOOKHTMLToken.h:77
libebook::EBOOKHTMLToken::style
@ style
Definition: EBOOKHTMLToken.h:135
libebook::EBOOKHTMLToken::fuchsia
@ fuchsia
Definition: EBOOKHTMLToken.h:282
libebook::XMLTreeWalker::getId
int getId() const
Definition: XMLTreeWalker.cpp:1283
libebook::EBOOKHTMLToken::source
@ source
Definition: EBOOKHTMLToken.h:131
libebook::EBOOKHTMLToken::lhs
@ lhs
Definition: EBOOKHTMLToken.h:290
EBOOKUTF8Stream.h
libebook::EBOOKHTMLToken::pre
@ pre
Definition: EBOOKHTMLToken.h:119
PeanutPressParser.h
libebook::EBOOKHTMLToken::br
@ br
Definition: EBOOKHTMLToken.h:49
libebook::EBOOKHTMLToken::thead
@ thead
Definition: EBOOKHTMLToken.h:145
libebook::EBOOKHTMLParser::DIALECT_HTML
@ DIALECT_HTML
Definition: EBOOKHTMLParser.h:39
libebook::EBOOKHTMLToken::li
@ li
Definition: EBOOKHTMLToken.h:96
EBOOKCharsetConverter.h
libebook::EBOOKHTMLToken::cite
@ cite
Definition: EBOOKHTMLToken.h:53
libebook::EBOOKHTMLToken::tbody
@ tbody
Definition: EBOOKHTMLToken.h:139
libebook_xml.h
OpenEBookParser.h
libebook::EBOOKHTMLParser::endExternalElement
void endExternalElement(const XMLTreeWalker &node)
Definition: EBOOKHTMLParser.cpp:1466
EBOOK_DEBUG_MSG
#define EBOOK_DEBUG_MSG(M)
Definition: libebook_utils.h:44
libebook::EBOOKHTMLToken::menu
@ menu
Definition: EBOOKHTMLToken.h:103
libebook::EBOOKHTMLParser::State::metadata
EBOOKHTMLMetadata metadata
Definition: EBOOKHTMLParser.cpp:906
m_handler
const Func_t m_handler
Definition: EBOOKHTMLParser.cpp:611
libebook::XMLTreeWalker::isElement
bool isElement() const
Definition: XMLTreeWalker.cpp:1269
libebook::readNBytes
const unsigned char * readNBytes(librevenge::RVNGInputStream *const input, const unsigned long numBytes)
Definition: libebook_utils.cpp:105
libebook::EBOOKHTMLToken::white
@ white
Definition: EBOOKHTMLToken.h:321
libebook::getHTMLTokenId
int getHTMLTokenId(const char *const name, const char *const ns)
Definition: EBOOKHTMLToken.cpp:27
libebook::EBOOKHTMLToken::center
@ center
Definition: EBOOKHTMLToken.h:52
libebook::EBOOKHTMLToken::size
@ size
Definition: EBOOKHTMLToken.h:249
libebook::EBOOKHTMLToken::fieldset
@ fieldset
Definition: EBOOKHTMLToken.h:69
libebook::EBOOKHTMLToken::script
@ script
Definition: EBOOKHTMLToken.h:127
libebook::EBOOKHTMLToken::object
@ object
Definition: EBOOKHTMLToken.h:111
libebook::EBOOKHTMLToken::ins
@ ins
Definition: EBOOKHTMLToken.h:90
XMLStylesheet.h
libebook::EBOOKHTMLToken::tfoot
@ tfoot
Definition: EBOOKHTMLToken.h:143
libebook::XMLTreeNodePtr_t
boost::intrusive_ptr< XMLTreeNode > XMLTreeNodePtr_t
Definition: XMLTreeNode.h:24
type
EBOOKDocument::Type type
Definition: EBOOKDocument.cpp:325
libebook::EBOOKHTMLToken::noframes
@ noframes
Definition: EBOOKHTMLToken.h:109
tag
qi::rule< Iterator, std::pair< int, Attributes_t >, qi::space_type > tag
Definition: TealDocParser.cpp:229
libebook::EBOOKHTMLToken::bdo
@ bdo
Definition: EBOOKHTMLToken.h:44
libebook::EBOOKHTMLToken::s
@ s
Definition: EBOOKHTMLToken.h:125
libebook::EBOOKHTMLToken::NS_html
@ NS_html
Definition: EBOOKHTMLToken.h:332
RocketEBookParser.h
libebook::EBOOKHTMLToken::tr
@ tr
Definition: EBOOKHTMLToken.h:147
libebook::EBOOKHTMLToken::meta
@ meta
Definition: EBOOKHTMLToken.h:104
handler
hubbub_tree_handler handler
Definition: EBOOKHTMLParser.cpp:168
libebook::EBOOKHTMLToken::b
@ b
Definition: EBOOKHTMLToken.h:40
FictionBook2Parser.h
libebook::EBOOKHTMLToken::col
@ col
Definition: EBOOKHTMLToken.h:55
libebook::EBOOKHTMLToken::h2
@ h2
Definition: EBOOKHTMLToken.h:76
libebook::EBOOKHTMLToken::strike
@ strike
Definition: EBOOKHTMLToken.h:133
XMLCollector.h
libebook::EBOOKHTMLParser::parse
void parse()
Definition: EBOOKHTMLParser.cpp:932
libebook::EBOOKHTMLToken::noscript
@ noscript
Definition: EBOOKHTMLToken.h:110
libebook::EBOOKHTMLToken::teal
@ teal
Definition: EBOOKHTMLToken.h:317
libebook::findSubStreamByExt
bool findSubStreamByExt(const RVNGInputStreamPtr_t &input, const std::string &ext, unsigned &id)
Definition: libebook_utils.cpp:245
libebook::EBOOKHTMLToken::dl
@ dl
Definition: EBOOKHTMLToken.h:65
intrusive_ptr_add_ref
void intrusive_ptr_add_ref(lwc_string *const p)
Definition: libebook_libcss.cpp:37
libebook::EBOOKHTMLParser::getStylesheet
virtual librevenge::RVNGInputStream * getStylesheet(const char *path)=0
libebook::EBOOKHTMLParser::m_state
std::shared_ptr< State > m_state
Definition: EBOOKHTMLParser.h:73
style
optional< Style > style
Definition: TealDocParser.cpp:105
libebook::EBOOKHTMLToken::silver
@ silver
Definition: EBOOKHTMLToken.h:314
htmlConfig
XMLTreeNode::ConfigurationPtr_t htmlConfig
Definition: EBOOKHTMLParser.cpp:174
libebook::EBOOKHTMLMetadata
Definition: EBOOKHTMLTypes.h:21
libebook::EBOOKHTMLParser::sendTableCell
void sendTableCell(const XMLTreeWalker &node)
Definition: EBOOKHTMLParser.cpp:1484
libebook::GenericException
Definition: libebook_utils.h:106
libebook::EBOOKHTMLToken::green
@ green
Definition: EBOOKHTMLToken.h:285
libebook::EBOOKHTMLParser::getObject
virtual librevenge::RVNGInputStream * getObject(const char *path)=0
libebook::EBOOKHTMLParser::State::blockState
BlockState blockState
Definition: EBOOKHTMLParser.cpp:905
libebook::LWCStringPtr_t
boost::intrusive_ptr< lwc_string > LWCStringPtr_t
Definition: libebook_libcss.h:27
libebook::EBOOKHTMLParser::sendHeading
void sendHeading(const XMLTreeWalker &node, int level)
Definition: EBOOKHTMLParser.cpp:1534
libebook::EBOOKHTMLToken::small
@ small
Definition: EBOOKHTMLToken.h:130