Go to the documentation of this file.
21 #ifndef RVNGHTMLTEXTGENERATOR_H
22 #define RVNGHTMLTEXTGENERATOR_H
32 struct RVNGHTMLTextGeneratorImpl;
61 void closeParagraph();
73 void insertLineBreak();
78 void closeOrderedListLevel();
79 void closeUnorderedListLevel();
81 void closeListElement();
96 void closeTableCell();
const RVNGPropertyListVector * child(const char *name) const
Definition: RVNGPropertyList.cpp:350
std::string getClass(RVNGPropertyList const &pList)
returns the class name corresponding to a propertylist
Definition: RVNGHTMLTextTextStyle.cpp:303
void flush()
flush delayed label, ...
Definition: RVNGHTMLTextGenerator.cpp:151
void send(std::ostream &out)
send the data to the stream
Definition: RVNGHTMLTextTableStyle.cpp:121
@ Z_NumZones
Definition: RVNGHTMLTextGenerator.cpp:49
RVNGHTMLTextZone(RVNGHTMLTextZone const &orig)
void send(std::ostream &out)
send the data to the stream
Definition: RVNGHTMLTextTextStyle.cpp:92
RVNGHTMLTextZone(Type tp=Z_Unknown)
constructor for basic stream
Definition: RVNGHTMLTextGenerator.cpp:51
Type m_type
the zone type
Definition: RVNGHTMLTextGenerator.cpp:118
void openTable(const RVNGPropertyList &propList)
Called when a table should be opened.
Definition: RVNGHTMLTextGenerator.cpp:683
void insertText(const RVNGString &text)
Called when a string of text should be inserted.
Definition: RVNGHTMLTextGenerator.cpp:556
void void append(const RVNGString &s)
Definition: RVNGString.cpp:211
Type type() const
the type
Definition: RVNGHTMLTextGenerator.cpp:55
std::string getClass(RVNGPropertyList const &pList)
returns the classname corresponding to a list element
Definition: RVNGHTMLTextTextStyle.cpp:103
void closeListElement()
Called when a list element should be closed.
Definition: RVNGHTMLTextGenerator.cpp:612
int m_actualPage
Definition: RVNGHTMLTextGenerator.cpp:332
std::ostream & output(bool sendDelayed=true)
returns the actual output ( sending delayed data if needed)
Definition: RVNGHTMLTextGenerator.cpp:269
void drawEllipse(const librevenge::RVNGPropertyList &propList)
Definition: RVNGHTMLTextGenerator.cpp:749
RVNGHTMLTextGenerator(const RVNGHTMLTextGenerator &)
Small class to manage the span style.
Definition: RVNGHTMLTextTextStyle.h:138
std::string openLevel(RVNGPropertyList const &pList, bool ordered)
returns the class name corresponding to a propertylist
Definition: RVNGHTMLTextTextStyle.cpp:130
void closeFrame()
Called when the current positioned box is closed.
Definition: RVNGHTMLTextGenerator.cpp:742
void insertEquation(const RVNGPropertyList &propList)
Called when a mathml object should be inserted.
Definition: RVNGHTMLTextGenerator.cpp:756
#define RVNG_DEBUG_MSG(M)
Definition: librevenge_internal.h:33
void insertField(const RVNGPropertyList &propList)
Called when a field should be inserted.
Definition: RVNGHTMLTextGenerator.cpp:549
void remove(const char *name)
Definition: RVNGPropertyList.cpp:333
RVNGHTMLTextListStyleManager m_listManager
Definition: RVNGHTMLTextGenerator.cpp:335
std::ostream & stream()
return the stream
Definition: RVNGHTMLTextGenerator.cpp:160
void send(std::ostream &out)
send the data to the stream
Definition: RVNGHTMLTextTextStyle.cpp:204
bool m_ignore
Definition: RVNGHTMLTextGenerator.cpp:333
void closeParagraph()
Called when a paragraph is closed.
Definition: RVNGHTMLTextGenerator.cpp:482
void openEndnote(const RVNGPropertyList &propList)
Called when a endnote should be opened (a sub-document will be placed inside of it)
Definition: RVNGHTMLTextGenerator.cpp:635
RVNGHTMLTextGenerator & operator=(const RVNGHTMLTextGenerator &)
@ Z_Unknown
Definition: RVNGHTMLTextGenerator.cpp:49
void setType(Type tp)
the type
Definition: RVNGHTMLTextGenerator.cpp:60
void closeTableRow()
Called when the current table row is closed.
Definition: RVNGHTMLTextGenerator.cpp:702
void defineCharacterStyle(const RVNGPropertyList &)
Definition: RVNGHTMLTextGenerator.cpp:491
RVNGString & m_document
Definition: RVNGHTMLTextGenerator.cpp:330
RVNGHTMLTextParagraphStyleManager m_paragraphManager
Definition: RVNGHTMLTextGenerator.cpp:336
@ Z_MetaData
Definition: RVNGHTMLTextGenerator.cpp:49
friend struct RVNGHTMLTextStream
Definition: RVNGHTMLTextGenerator.cpp:46
void deleteStream(RVNGHTMLTextStream *stream)
delete a stream corresponding to this zone
Definition: RVNGHTMLTextGenerator.cpp:212
void closeLink()
Called when the current link is closed.
Definition: RVNGHTMLTextGenerator.cpp:526
void insertBinaryObject(const RVNGPropertyList &propList)
Called when a binary object should be inserted.
Definition: RVNGHTMLTextGenerator.cpp:755
void openPageSpan(const RVNGPropertyList &propList)
Called when a new page span is opened.
Definition: RVNGHTMLTextGenerator.cpp:419
void openUnorderedListLevel(const RVNGPropertyList &propList)
Called when a new unordered list level should be opened.
Definition: RVNGHTMLTextGenerator.cpp:587
void closeTableCell()
Called when the current table cell is closed.
Definition: RVNGHTMLTextGenerator.cpp:723
void drawConnector(const RVNGPropertyList &propList)
Draw a connector.
Definition: RVNGHTMLTextGenerator.cpp:753
Small class to manage the paragraph style.
Definition: RVNGHTMLTextTextStyle.h:37
void openSpan(const RVNGPropertyList &propList)
Called when a text span is opened.
Definition: RVNGHTMLTextGenerator.cpp:496
RVNGHTMLTextStream(RVNGHTMLTextStream const &orig)
Type
the different zone
Definition: RVNGHTMLTextGenerator.cpp:49
void closeHeader()
Called when a header should be closed.
Definition: RVNGHTMLTextGenerator.cpp:435
std::ostringstream m_stream
the stream
Definition: RVNGHTMLTextGenerator.cpp:199
Definition: RVNGPropertyList.h:39
RVNGHTMLTextGeneratorImpl(RVNGString &document)
constructor
Definition: RVNGHTMLTextGenerator.cpp:252
void definePageStyle(const RVNGPropertyList &)
Definition: RVNGHTMLTextGenerator.cpp:428
void closeUnorderedListLevel()
Called when an ununordered list level should be closed.
Definition: RVNGHTMLTextGenerator.cpp:596
void defineEmbeddedFont(const RVNGPropertyList &propList)
Called when an embedded font should be defined.
Definition: RVNGHTMLTextGenerator.cpp:415
void flushUnsent(std::ostream &out)
Definition: RVNGHTMLTextGenerator.cpp:309
void closeFooter()
Called when a footer should be closed.
Definition: RVNGHTMLTextGenerator.cpp:446
void closeLevel()
close a level
Definition: RVNGHTMLTextTextStyle.cpp:155
void defineParagraphStyle(const RVNGPropertyList &)
Definition: RVNGHTMLTextGenerator.cpp:455
int m_zoneId
the zone id
Definition: RVNGHTMLTextGenerator.cpp:197
void startDocument(const RVNGPropertyList &propList)
Called at the start of the parsing process.
Definition: RVNGHTMLTextGenerator.cpp:388
RVNGHTMLTextStream * getNewStream()
returns a new stream corresponding to this zone
Definition: RVNGHTMLTextGenerator.cpp:207
void openGroup(const librevenge::RVNGPropertyList &propList)
Definition: RVNGHTMLTextGenerator.cpp:744
void push(RVNGHTMLTextZone::Type type)
Definition: RVNGHTMLTextGenerator.cpp:280
Definition: RVNGProperty.h:33
Definition: RVNGTextInterface.h:40
void drawPolyline(const librevenge::RVNGPropertyList &propList)
Definition: RVNGHTMLTextGenerator.cpp:751
RVNGHTMLTextTableStyleManager m_tableManager
Definition: RVNGHTMLTextGenerator.cpp:338
std::string m_currentParaElement
Definition: RVNGHTMLTextGenerator.cpp:340
void openFrame(const RVNGPropertyList &propList)
Called when a positioned box should be opened.
Definition: RVNGHTMLTextGenerator.cpp:741
RVNGHTMLTextZone * m_zone
a zone
Definition: RVNGHTMLTextGenerator.cpp:195
UTF-8 string.
Definition: RVNGString.h:34
void closeEndnote()
Called when a endnote should be closed.
Definition: RVNGHTMLTextGenerator.cpp:644
Small class to manage the list style.
Definition: RVNGHTMLTextTextStyle.h:69
@ Z_Comment
Definition: RVNGHTMLTextGenerator.cpp:49
RVNGHTMLTextStream & stream()
returns the actual stream
Definition: RVNGHTMLTextGenerator.cpp:276
RVNGHTMLTextGeneratorImpl(RVNGHTMLTextGeneratorImpl const &orig)
void openFooter(const RVNGPropertyList &propList)
Called when a footer should be opened (a sub-document will be placed inside of it).
Definition: RVNGHTMLTextGenerator.cpp:441
Small class to manage the tables style.
Definition: RVNGHTMLTextTableStyle.h:37
void closeTable()
Called when the current table is closed.
Definition: RVNGHTMLTextGenerator.cpp:732
void openTableCell(const RVNGPropertyList &propList)
Called when a new table cell is opened.
Definition: RVNGHTMLTextGenerator.cpp:709
std::string label(int id) const
return a label corresponding to the zone
Definition: RVNGHTMLTextGenerator.cpp:217
void send(std::ostream &out) const
send the zone data
Definition: RVNGHTMLTextGenerator.cpp:77
RVNGHTMLTextGeneratorImpl operator=(RVNGHTMLTextGeneratorImpl const &orig)
void closePageSpan()
Called when a page span is closed.
Definition: RVNGHTMLTextGenerator.cpp:424
void closeTable()
close a table
Definition: RVNGHTMLTextTableStyle.cpp:56
RVNGHTMLTextSpanStyleManager m_spanManager
Definition: RVNGHTMLTextGenerator.cpp:337
std::string m_delayedLabel
the label
Definition: RVNGHTMLTextGenerator.cpp:201
void openTableRow(const RVNGPropertyList &propList)
Called when a new table row is opened.
Definition: RVNGHTMLTextGenerator.cpp:695
~RVNGHTMLTextStream()
destructor
Definition: RVNGHTMLTextGenerator.cpp:137
Definition: RVNGHTMLTextGenerator.cpp:129
static RVNGString escapeXML(const RVNGString &s)
Create a new string from s as escaped XML.
Definition: RVNGString.cpp:160
std::string getClass(RVNGPropertyList const &pList)
returns the class name corresponding to a propertylist
Definition: RVNGHTMLTextTextStyle.cpp:173
void defineLevel(RVNGPropertyList const &property, bool ordered)
add a level to the corresponding list
Definition: RVNGHTMLTextTextStyle.cpp:115
void insertSpace()
Called when an explicit space should be inserted.
Definition: RVNGHTMLTextGenerator.cpp:563
std::string label() const
return the stream label
Definition: RVNGHTMLTextGenerator.cpp:185
@ Z_EndNote
Definition: RVNGHTMLTextGenerator.cpp:49
void insertLineBreak()
Called when a line break should be inserted.
Definition: RVNGHTMLTextGenerator.cpp:542
void closeSpan()
Called when a text span is closed.
Definition: RVNGHTMLTextGenerator.cpp:504
void openListElement(const RVNGPropertyList &propList)
Called when a list element should be opened.
Definition: RVNGHTMLTextGenerator.cpp:605
void drawPath(const librevenge::RVNGPropertyList &propList)
Definition: RVNGHTMLTextGenerator.cpp:752
void addLabel(std::ostream &output)
add a label called on main and a label in this ( delayed to allow openParagraph to be called )
Definition: RVNGHTMLTextGenerator.cpp:139
void send(std::ostream &out)
send the data to the stream
Definition: RVNGHTMLTextTextStyle.cpp:335
void openLink(const RVNGPropertyList &propList)
Called when a link should be opened.
Definition: RVNGHTMLTextGenerator.cpp:511
Definition: RVNGHTMLTextGenerator.h:35
void drawPolygon(const librevenge::RVNGPropertyList &propList)
Definition: RVNGHTMLTextGenerator.cpp:750
void openFootnote(const RVNGPropertyList &propList)
Called when a footnote should be opened (a sub-document will be placed inside of it)
Definition: RVNGHTMLTextGenerator.cpp:619
void closeComment()
Called when a comment or annotation should be closed.
Definition: RVNGHTMLTextGenerator.cpp:660
void openTextBox(const RVNGPropertyList &propList)
Called when a text box should be opened (a sub-document will be placed inside of it)
Definition: RVNGHTMLTextGenerator.cpp:667
void setDocumentMetaData(const RVNGPropertyList &propList)
Called when all document metadata should be set.
Definition: RVNGHTMLTextGenerator.cpp:361
void sendMain(std::ostream &output)
send the data to the zone
Definition: RVNGHTMLTextGenerator.cpp:178
the internal state of a html document generator
Definition: RVNGHTMLTextGenerator.cpp:250
RVNGHTMLTextZone operator=(RVNGHTMLTextZone const &orig)
void closeOrderedListLevel()
Called when an unordered list level should be closed.
Definition: RVNGHTMLTextGenerator.cpp:579
~RVNGHTMLTextGeneratorImpl()
destructor
Definition: RVNGHTMLTextGenerator.cpp:259
const char * cstr() const
Definition: RVNGString.cpp:174
void insertTab()
Called when a TAB character should be inserted.
Definition: RVNGHTMLTextGenerator.cpp:533
std::vector< RVNGHTMLTextStream * > m_streamStack
Definition: RVNGHTMLTextGenerator.cpp:344
@ Z_Main
Definition: RVNGHTMLTextGenerator.cpp:49
void openComment(const RVNGPropertyList &propList)
Called when a comment or annotation should be opened (a sub-document will be placed inside of it)
Definition: RVNGHTMLTextGenerator.cpp:651
@ Z_TextBox
Definition: RVNGHTMLTextGenerator.cpp:49
virtual int getInt() const =0
void sendMetaData(std::ostream &out)
Definition: RVNGHTMLTextGenerator.cpp:305
void defineSpan(RVNGPropertyList const &pList)
define a span style
Definition: RVNGHTMLTextTextStyle.cpp:322
@ Z_FootNote
Definition: RVNGHTMLTextGenerator.cpp:49
RVNGHTMLTextStream * m_actualStream
Definition: RVNGHTMLTextGenerator.cpp:343
RVNGHTMLTextStream operator=(RVNGHTMLTextStream const &orig)
void endDocument()
Called at the end of the parsing process.
Definition: RVNGHTMLTextGenerator.cpp:392
std::string getRowClass(RVNGPropertyList const &pList)
returns the class name corresponding to a propertylist
Definition: RVNGHTMLTextTableStyle.cpp:109
void defineParagraph(RVNGPropertyList const &pList)
define a paragraph style
Definition: RVNGHTMLTextTextStyle.cpp:191
void pop()
Definition: RVNGHTMLTextGenerator.cpp:290
void openTable(RVNGPropertyListVector const &colList)
open a table
Definition: RVNGHTMLTextTableStyle.cpp:34
bool isEmpty() const
returns true if there is no data
Definition: RVNGHTMLTextGenerator.cpp:69
void closeTextBox()
Called when a text box should be closed.
Definition: RVNGHTMLTextGenerator.cpp:676
void insertCoveredTableCell(const RVNGPropertyList &propList)
Called when a covered (spanned by another cell in the table) table cell is opened.
Definition: RVNGHTMLTextGenerator.cpp:730
void defineGraphicStyle(const librevenge::RVNGPropertyList &propList)
Definition: RVNGHTMLTextGenerator.cpp:747
Definition: RVNGPropertyListVector.h:35
std::vector< std::string > m_stringList
the list of data string
Definition: RVNGHTMLTextGenerator.cpp:122
RVNGHTMLTextGeneratorImpl * m_impl
Definition: RVNGHTMLTextGenerator.h:118
void closeGroup()
Definition: RVNGHTMLTextGenerator.cpp:745
Definition: RVNGBinaryData.cpp:39
RVNGHTMLTextStream(RVNGHTMLTextZone *zone)
constructor
Definition: RVNGHTMLTextGenerator.cpp:131
std::string getCellClass(RVNGPropertyList const &pList)
returns the class name corresponding to a propertylist
Definition: RVNGHTMLTextTableStyle.cpp:97
void openHeader(const RVNGPropertyList &propList)
Called when a header should be opened (a sub-document will be placed inside of it).
Definition: RVNGHTMLTextGenerator.cpp:430
~RVNGHTMLTextGenerator()
Definition: RVNGHTMLTextGenerator.cpp:356
void defineSectionStyle(const RVNGPropertyList &)
Definition: RVNGHTMLTextGenerator.cpp:451
RVNGHTMLTextGenerator(RVNGString &document)
Definition: RVNGHTMLTextGenerator.cpp:352
void drawRectangle(const librevenge::RVNGPropertyList &propList)
Definition: RVNGHTMLTextGenerator.cpp:748
RVNGHTMLTextZone m_zones[RVNGHTMLTextZone::Z_NumZones]
Definition: RVNGHTMLTextGenerator.cpp:346
void send()
send the data to the zone
Definition: RVNGHTMLTextGenerator.cpp:165
#define REVENGE_GENERATORS_API
Definition: librevenge-generators-api.h:34
void openParagraph(const RVNGPropertyList &propList)
Called when a new paragraph is opened.
Definition: RVNGHTMLTextGenerator.cpp:463
void openOrderedListLevel(const RVNGPropertyList &propList)
Called when a new ordered list level should be opened.
Definition: RVNGHTMLTextGenerator.cpp:570
void openSection(const RVNGPropertyList &propList)
Called when a new section is opened.
Definition: RVNGHTMLTextGenerator.cpp:452
void closeFootnote()
Called when a footnote should be closed.
Definition: RVNGHTMLTextGenerator.cpp:628
int m_actualId
the actual id
Definition: RVNGHTMLTextGenerator.cpp:120
void closeSection()
Called when a section is closed.
Definition: RVNGHTMLTextGenerator.cpp:453
a zone to regroup footnote/endnote,... data
Definition: RVNGHTMLTextGenerator.cpp:45
Generated for librevenge by
doxygen 1.8.18