23 #ifndef RVNGHTMLTEXT_TEXTSTYLE_H 24 #define RVNGHTMLTEXT_TEXTSTYLE_H 52 void send(std::ostream &out);
97 std::string
str()
const;
123 void send(std::ostream &out);
153 void send(std::ostream &out);
Small class to manage the list style.
Definition: RVNGHTMLTextTextStyle.h:68
std::map< std::string, std::string > m_contentNameMap
a map content -> name
Definition: RVNGHTMLTextTextStyle.h:162
std::map< int, std::string > m_idNameMap
a map id -> name
Definition: RVNGHTMLTextTextStyle.h:164
Definition: RVNGBinaryData.cpp:38
Definition: RVNGHTMLTextTextStyle.h:71
void closeLevel() const
open a new level
Definition: RVNGHTMLTextTextStyle.h:89
std::string getContent(RVNGPropertyList const &pList, bool isList) const
convert a property list in a html content string
Definition: RVNGHTMLTextTextStyle.cpp:214
std::map< std::string, std::string > m_contentNameMap
a map content -> name
Definition: RVNGHTMLTextTextStyle.h:57
void defineParagraph(RVNGPropertyList const &pList)
define a paragraph style
Definition: RVNGHTMLTextTextStyle.cpp:191
std::vector< std::string > m_contentsList
the properties
Definition: RVNGHTMLTextTextStyle.h:100
std::string getClass(RVNGPropertyList const &pList)
returns the class name corresponding to a propertylist
Definition: RVNGHTMLTextTextStyle.cpp:173
Small class to manage the span style.
Definition: RVNGHTMLTextTextStyle.h:137
~RVNGHTMLTextSpanStyleManager()
destructor
Definition: RVNGHTMLTextTextStyle.h:145
void defineLevel(RVNGPropertyList const &property, bool ordered)
add a level to the corresponding list
Definition: RVNGHTMLTextTextStyle.cpp:115
std::vector< int > m_actualIdStack
the actual list id
Definition: RVNGHTMLTextTextStyle.h:130
void parseBorders(RVNGPropertyList const &pList, std::ostream &out) const
add data corresponding to the border
Definition: RVNGHTMLTextTextStyle.cpp:282
RVNGHTMLTextSpanStyleManager()
constructor
Definition: RVNGHTMLTextTextStyle.h:141
void parseDecorations(RVNGPropertyList const &pList, std::ostream &out) const
add data corresponding to the line decoration
Definition: RVNGHTMLTextTextStyle.cpp:415
RVNGHTMLTextListStyleManager operator=(RVNGHTMLTextListStyleManager const &orig)
~RVNGHTMLTextListStyleManager()
destructor
Definition: RVNGHTMLTextTextStyle.h:110
std::string getClass(RVNGPropertyList const &pList)
returns the classname corresponding to a list element
Definition: RVNGHTMLTextTextStyle.cpp:103
void openLevel() const
open a new level
Definition: RVNGHTMLTextTextStyle.h:84
std::string openLevel(RVNGPropertyList const &pList, bool ordered)
returns the class name corresponding to a propertylist
Definition: RVNGHTMLTextTextStyle.cpp:130
void send(std::ostream &out)
send the data to the stream
Definition: RVNGHTMLTextTextStyle.cpp:92
std::string str() const
return the content string
Definition: RVNGHTMLTextTextStyle.cpp:82
List()
constructor
Definition: RVNGHTMLTextTextStyle.h:74
RVNGHTMLTextParagraphStyleManager()
constructor
Definition: RVNGHTMLTextTextStyle.h:40
void send(std::ostream &out)
send the data to the stream
Definition: RVNGHTMLTextTextStyle.cpp:335
void defineSpan(RVNGPropertyList const &pList)
define a span style
Definition: RVNGHTMLTextTextStyle.cpp:322
virtual ~RVNGHTMLTextParagraphStyleManager()
destructor
Definition: RVNGHTMLTextTextStyle.h:44
void send(std::ostream &out)
send the data to the stream
Definition: RVNGHTMLTextTextStyle.cpp:204
void parseTextPosition(char const *value, std::ostream &out) const
add data corresponding to a text position in out
Definition: RVNGHTMLTextTextStyle.cpp:430
RVNGHTMLTextParagraphStyleManager operator=(RVNGHTMLTextParagraphStyleManager const &orig)
RVNGHTMLTextSpanStyleManager operator=(RVNGHTMLTextSpanStyleManager const &orig)
void closeLevel()
close a level
Definition: RVNGHTMLTextTextStyle.cpp:155
void setLevel(int lvl, RVNGPropertyList const &property, bool ordered)
set the property correspond to a level
Definition: RVNGHTMLTextTextStyle.cpp:40
Small class to manage the paragraph style.
Definition: RVNGHTMLTextTextStyle.h:36
std::string getClass(RVNGPropertyList const &pList)
returns the class name corresponding to a propertylist
Definition: RVNGHTMLTextTextStyle.cpp:303
std::map< int, List > m_idListMap
a map listId -> list
Definition: RVNGHTMLTextTextStyle.h:128
std::map< int, std::string > m_idNameMap
a map id -> name
Definition: RVNGHTMLTextTextStyle.h:59
std::string getContent(RVNGPropertyList const &pList) const
convert a property list in a html content string
Definition: RVNGHTMLTextTextStyle.cpp:345
~List()
destructor
Definition: RVNGHTMLTextTextStyle.h:78
Definition: RVNGPropertyList.h:38
int m_level
the actual list level
Definition: RVNGHTMLTextTextStyle.h:102
std::map< std::string, std::string > m_levelNameMap
a map content -> list level name
Definition: RVNGHTMLTextTextStyle.h:126
RVNGHTMLTextListStyleManager()
constructor
Definition: RVNGHTMLTextTextStyle.h:105