LotusStyleManager Class Reference

This class parses the Lotus style. More...

#include <LotusStyleManager.h>

List of all members.

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)
LotusStyleManageroperator= (LotusStyleManager const &orig)
libwps::DebugFileascii ()
 returns the debug file

Private Attributes

RVNGInputStreamPtr m_input
 the input
LotusParserm_mainParser
 the main parser
shared_ptr
< LotusStyleManagerInternal::State
m_state
 the internal state
libwps::DebugFilem_asciiFile
 the ascii file

Friends

class LotusParser

Detailed Description

This class parses the Lotus style.


Constructor & Destructor Documentation


Member Function Documentation

bool LotusStyleManager::checkFilePosition ( long  pos) [protected]

return true if the pos is in the file, update the file size if need

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().

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


Friends And Related Function Documentation

friend class LotusParser [friend]

Member Data Documentation

the ascii file

Referenced by ascii().

the main parser

Referenced by readFontStyle(), updateState(), and version().


The documentation for this class was generated from the following files: