This class parses the Lotus style. More...
#include <LotusStyleManager.h>
Public Member Functions | |
| LotusStyleManager (LotusParser &parser) | |
| constructor | |
| ~LotusStyleManager () | |
| destructor | |
| void | cleanState () |
| clean internal state | |
| void | updateState () |
| update the state (need to be called before asking for style) | |
| bool | getColor (int cId, WPSColor &color) const |
| returns if possible the color | |
| bool | updateCellStyle (int cellId, WPSCellFormat &format, WPSFont &font, libwps_tools_win::Font::Type &fontType) |
| update a cell format using the cell id | |
| bool | updateFontStyle (int fontId, WPSFont &font, libwps_tools_win::Font::Type &fontType) |
| update a font using the font id | |
| bool | updateLineStyle (int lineId, WPSGraphicStyle &style) const |
| update style using line id | |
| bool | updateSurfaceStyle (int colorId, WPSGraphicStyle &style) const |
| update style using color id | |
| bool | updateGraphicStyle (int graphicId, WPSGraphicStyle &style) const |
| update style using graphic id | |
Protected Member Functions | |
| bool | checkFilePosition (long pos) |
| return true if the pos is in the file, update the file size if need | |
| int | version () const |
| return the file version | |
| bool | readCellStyle (long endPos) |
| reads a cell style | |
| bool | readColorStyle (long endPos) |
| reads a color style | |
| bool | readFontStyle (long endPos) |
| reads a font style | |
| bool | readFormatStyle (long endPos) |
| reads a format style | |
| bool | readLineStyle (long endPos) |
| reads a line style | |
| bool | readGraphicStyle (long endPos) |
| reads a graphic style | |
| bool | updateShadowStyle (int colorId, WPSGraphicStyle &style) const |
| update style using color id for defining shadow | |
Private Member Functions | |
| LotusStyleManager (LotusStyleManager const &orig) | |
| LotusStyleManager & | operator= (LotusStyleManager const &orig) |
| libwps::DebugFile & | ascii () |
| returns the debug file | |
Private Attributes | |
| RVNGInputStreamPtr | m_input |
| the input | |
| LotusParser & | m_mainParser |
| the main parser | |
| shared_ptr < LotusStyleManagerInternal::State > | m_state |
| the internal state | |
| libwps::DebugFile & | m_asciiFile |
| the ascii file | |
Friends | |
| class | LotusParser |
This class parses the Lotus style.
| LotusStyleManager::LotusStyleManager | ( | LotusParser & | parser | ) |
constructor
destructor
| LotusStyleManager::LotusStyleManager | ( | LotusStyleManager const & | orig | ) | [private] |
| libwps::DebugFile& LotusStyleManager::ascii | ( | ) | [inline, private] |
returns the debug file
Referenced by readCellStyle(), readColorStyle(), readFontStyle(), readFormatStyle(), readGraphicStyle(), and readLineStyle().
| bool LotusStyleManager::checkFilePosition | ( | long | pos | ) | [protected] |
return true if the pos is in the file, update the file size if need
| void LotusStyleManager::cleanState | ( | ) |
clean internal state
| bool LotusStyleManager::getColor | ( | int | cId, |
| WPSColor & | color | ||
| ) | const |
returns if possible the color
Referenced by readFontStyle().
| LotusStyleManager& LotusStyleManager::operator= | ( | LotusStyleManager const & | orig | ) | [private] |
| bool LotusStyleManager::readCellStyle | ( | long | endPos | ) | [protected] |
reads a cell style
| bool LotusStyleManager::readColorStyle | ( | long | endPos | ) | [protected] |
reads a color style
| bool LotusStyleManager::readFontStyle | ( | long | endPos | ) | [protected] |
reads a font style
| bool LotusStyleManager::readFormatStyle | ( | long | endPos | ) | [protected] |
reads a format style
| bool LotusStyleManager::readGraphicStyle | ( | long | endPos | ) | [protected] |
reads a graphic style
| bool LotusStyleManager::readLineStyle | ( | long | endPos | ) | [protected] |
reads a line style
| bool LotusStyleManager::updateCellStyle | ( | int | cellId, |
| WPSCellFormat & | format, | ||
| WPSFont & | font, | ||
| libwps_tools_win::Font::Type & | fontType | ||
| ) |
update a cell format using the cell id
| bool LotusStyleManager::updateFontStyle | ( | int | fontId, |
| WPSFont & | font, | ||
| libwps_tools_win::Font::Type & | fontType | ||
| ) |
update a font using the font id
Referenced by updateCellStyle().
| bool LotusStyleManager::updateGraphicStyle | ( | int | graphicId, |
| WPSGraphicStyle & | style | ||
| ) | const |
update style using graphic id
| bool LotusStyleManager::updateLineStyle | ( | int | lineId, |
| WPSGraphicStyle & | style | ||
| ) | const |
update style using line id
Referenced by updateGraphicStyle().
| bool LotusStyleManager::updateShadowStyle | ( | int | colorId, |
| WPSGraphicStyle & | style | ||
| ) | const [protected] |
update style using color id for defining shadow
Referenced by updateGraphicStyle().
| void LotusStyleManager::updateState | ( | ) |
update the state (need to be called before asking for style)
| bool LotusStyleManager::updateSurfaceStyle | ( | int | colorId, |
| WPSGraphicStyle & | style | ||
| ) | const |
update style using color id
Referenced by updateGraphicStyle().
| int LotusStyleManager::version | ( | ) | const [protected] |
return the file version
friend class LotusParser [friend] |
libwps::DebugFile& LotusStyleManager::m_asciiFile [private] |
the ascii file
Referenced by ascii().
RVNGInputStreamPtr LotusStyleManager::m_input [private] |
the input
Referenced by checkFilePosition(), readCellStyle(), readColorStyle(), readFontStyle(), readFormatStyle(), readGraphicStyle(), and readLineStyle().
LotusParser& LotusStyleManager::m_mainParser [private] |
the main parser
Referenced by readFontStyle(), updateState(), and version().
shared_ptr<LotusStyleManagerInternal::State> LotusStyleManager::m_state [private] |
the internal state
Referenced by checkFilePosition(), cleanState(), getColor(), LotusStyleManager(), readCellStyle(), readColorStyle(), readFontStyle(), readFormatStyle(), readGraphicStyle(), readLineStyle(), updateCellStyle(), updateFontStyle(), updateGraphicStyle(), updateLineStyle(), updateShadowStyle(), updateState(), updateSurfaceStyle(), and version().