basic class used to read/store RagTime 5/6 styles More...
#include <RagTime5StyleManager.hxx>
Classes | |
struct | GraphicStyle |
the graphic style of a RagTime v5-v6 document More... | |
struct | TextStyle |
the text style of a RagTime v5-v6 document More... | |
Public Member Functions | |
RagTime5StyleManager (RagTime5Document &doc) | |
constructor More... | |
~RagTime5StyleManager () | |
destructor More... | |
bool | readGraphicColors (RagTime5ClusterManager::Cluster &cluster) |
try to read a graphic color zone More... | |
bool | readGraphicStyles (RagTime5ClusterManager::Cluster &cluster) |
try to read a main graphic styles More... | |
bool | readTextStyles (RagTime5ClusterManager::Cluster &cluster) |
try to read a main text styles More... | |
bool | readFormats (RagTime5ClusterManager::Cluster &cluster) |
try to read the list of format More... | |
bool | updateSurfaceStyle (int graphicId, MWAWGraphicStyle &surfaceStyle) const |
updates a graphic style More... | |
bool | updateFrameStyle (int graphicId, MWAWGraphicStyle &surfaceStyle) const |
updates a graphic style (used for textbox) More... | |
bool | updateBorderStyle (int graphicId, MWAWGraphicStyle &borderStyle, bool isLine) const |
updates a graphic style(border) More... | |
bool | getLineColor (int graphicId, MWAWColor &color) const |
returns the line color corresponding to a graphic style More... | |
bool | updateTextStyles (int textId, MWAWFont &font, MWAWParagraph ¶, MWAWSection §ion, double totalWidth=0) const |
update the font and the paragraph properties using a text style More... | |
bool | getCellBorder (int graphicId, MWAWBorder &border) const |
returns a cell border More... | |
bool | getCellBackgroundColor (int graphicId, MWAWColor &color) const |
returns the cell background More... | |
bool | updateCellFormat (int formatId, MWAWCell &cell) const |
updates the cell format More... | |
Static Public Member Functions | |
static std::string | printType (unsigned long fileType) |
debug: print a file type More... | |
Protected Member Functions | |
void | updateTextStyles (size_t id, RagTime5StyleManager::TextStyle const &style, std::vector< RagTime5StyleManager::TextStyle > const &listReadStyles, std::multimap< size_t, size_t > const &idToChildIpMap, std::set< size_t > &seens) |
recursive function use to update the style list More... | |
void | updateGraphicStyles (size_t id, RagTime5StyleManager::GraphicStyle const &style, std::vector< RagTime5StyleManager::GraphicStyle > const &listReadStyles, std::multimap< size_t, size_t > const &idToChildIpMap, std::set< size_t > &seens) |
recursive function use to update the style list More... | |
Protected Attributes | |
RagTime5Document & | m_document |
the parser More... | |
MWAWParserStatePtr | m_parserState |
the parser state More... | |
std::shared_ptr< RagTime5StyleManagerInternal::State > | m_state |
the state More... | |
Private Member Functions | |
RagTime5StyleManager (RagTime5StyleManager const &orig)=delete | |
RagTime5StyleManager | operator= (RagTime5StyleManager const &orig)=delete |
Friends | |
class | RagTime5Document |
basic class used to read/store RagTime 5/6 styles
|
explicit |
constructor
RagTime5StyleManager::~RagTime5StyleManager | ( | ) |
destructor
|
privatedelete |
bool RagTime5StyleManager::getCellBackgroundColor | ( | int | graphicId, |
MWAWColor & | color | ||
) | const |
returns the cell background
bool RagTime5StyleManager::getCellBorder | ( | int | graphicId, |
MWAWBorder & | border | ||
) | const |
returns a cell border
bool RagTime5StyleManager::getLineColor | ( | int | graphicId, |
MWAWColor & | color | ||
) | const |
returns the line color corresponding to a graphic style
Referenced by updateTextStyles().
|
privatedelete |
|
inlinestatic |
debug: print a file type
Referenced by RagTime5StyleManager::GraphicStyle::read(), and RagTime5StyleManager::TextStyle::read().
bool RagTime5StyleManager::readFormats | ( | RagTime5ClusterManager::Cluster & | cluster | ) |
try to read the list of format
bool RagTime5StyleManager::readGraphicColors | ( | RagTime5ClusterManager::Cluster & | cluster | ) |
try to read a graphic color zone
bool RagTime5StyleManager::readGraphicStyles | ( | RagTime5ClusterManager::Cluster & | cluster | ) |
try to read a main graphic styles
bool RagTime5StyleManager::readTextStyles | ( | RagTime5ClusterManager::Cluster & | cluster | ) |
try to read a main text styles
bool RagTime5StyleManager::updateBorderStyle | ( | int | graphicId, |
MWAWGraphicStyle & | borderStyle, | ||
bool | isLine | ||
) | const |
updates a graphic style(border)
bool RagTime5StyleManager::updateCellFormat | ( | int | formatId, |
MWAWCell & | cell | ||
) | const |
updates the cell format
bool RagTime5StyleManager::updateFrameStyle | ( | int | graphicId, |
MWAWGraphicStyle & | surfaceStyle | ||
) | const |
updates a graphic style (used for textbox)
|
protected |
recursive function use to update the style list
Referenced by readGraphicStyles().
bool RagTime5StyleManager::updateSurfaceStyle | ( | int | graphicId, |
MWAWGraphicStyle & | surfaceStyle | ||
) | const |
updates a graphic style
bool RagTime5StyleManager::updateTextStyles | ( | int | textId, |
MWAWFont & | font, | ||
MWAWParagraph & | para, | ||
MWAWSection & | section, | ||
double | totalWidth = 0 |
||
) | const |
update the font and the paragraph properties using a text style
Referenced by readTextStyles(), and updateTextStyles().
|
protected |
recursive function use to update the style list
|
friend |
|
protected |
the parser
Referenced by readFormats(), readGraphicColors(), readGraphicStyles(), and readTextStyles().
|
protected |
the parser state
Referenced by readTextStyles().
|
protected |