22 #ifndef LOTUS_STYLE_MANAGER_H 23 #define LOTUS_STYLE_MANAGER_H 29 #include <librevenge-stream/librevenge-stream.h> 37 struct CellStyleEntry;
95 bool readColorStyle(std::shared_ptr<WPSStream> stream,
long endPos);
99 bool readLineStyle(std::shared_ptr<WPSStream> stream,
long endPos,
int vers);
119 bool readStyleE6(std::shared_ptr<WPSStream> stream,
long endPos);
148 std::shared_ptr<LotusStyleManagerInternal::State>
m_state;
bool readMenuStyleE7(std::shared_ptr< WPSStream > stream, long endPos)
reads the list of style: 32e7 (wk4)
Definition: LotusStyleManager.cpp:2256
bool getPattern64(int id, WPSGraphicStyle::Pattern &pattern) const
returns the pattern corresponding to a pattern id (id between 1 and 64)
Definition: LotusStyleManager.cpp:634
void updateState()
update the state (need to be called before asking for style)
Definition: LotusStyleManager.cpp:595
bool readFontStyleF0(std::shared_ptr< WPSStream > stream, long endPos)
reads a font style: ff0 (wk4)
Definition: LotusStyleManager.cpp:1181
bool readLineStyle(std::shared_ptr< WPSStream > stream, long endPos, int vers)
reads a line style
Definition: LotusStyleManager.cpp:642
define the font properties
Definition: WPSFont.h:36
bool readColorStyle(std::shared_ptr< WPSStream > stream, long endPos)
reads a color style
Definition: LotusStyleManager.cpp:742
LotusStyleManager(LotusParser &parser)
constructor
Definition: LotusStyleManager.cpp:580
bool getColor256(int cId, WPSColor &color) const
returns if possible the color(id between 0 and 255)
Definition: LotusStyleManager.cpp:629
int version() const
return the file version
Definition: LotusStyleManager.cpp:612
LotusParser & m_mainParser
the main parser
Definition: LotusStyleManager.h:146
bool readCellStyleD2(std::shared_ptr< WPSStream > stream, long endPos)
reads a cell style: fd2 (mac 123 or 123)
Definition: LotusStyleManager.cpp:1632
~LotusStyleManager()
destructor
Definition: LotusStyleManager.cpp:586
void cleanState()
clean internal state
Definition: LotusStyleManager.cpp:590
bool readFormatStyle(std::shared_ptr< WPSStream > stream, long endPos)
reads a format style
Definition: LotusStyleManager.cpp:1289
bool readFMTFontName(std::shared_ptr< WPSStream > stream)
reads a format font name: zones 0xae
Definition: LotusStyleManager.cpp:2090
This class parses a wk3,wk4,123 Lotus spreadsheet.
Definition: Lotus.h:72
bool readFontStyleA0(std::shared_ptr< WPSStream > stream, long endPos)
reads a font style: fa0
Definition: LotusStyleManager.cpp:1103
a structure used to define a picture style
Definition: WPSGraphicStyle.h:37
bool updateGraphicStyle(int graphicId, WPSGraphicStyle &style) const
update style using graphic id
Definition: LotusStyleManager.cpp:1076
bool getColor16(int cId, WPSColor &color) const
returns if possible the color(id between 0 and 15)
Definition: LotusStyleManager.cpp:624
bool updateCellStyle(int cellId, WPSCellFormat &format, WPSFont &font, libwps_tools_win::Font::Type &fontType)
update a cell format using the cell id
Definition: LotusStyleManager.cpp:2000
bool updateSurfaceStyle(int colorId, WPSGraphicStyle &style) const
update style using color id
Definition: LotusStyleManager.cpp:800
This class parses the Lotus style.
Definition: LotusStyleManager.h:47
Definition: LotusStyleManager.cpp:47
bool updateFontStyle(int fontId, WPSFont &font, libwps_tools_win::Font::Type &fontType)
update a font using the font id
Definition: LotusStyleManager.cpp:1269
bool readGraphicStyleC9(std::shared_ptr< WPSStream > stream, long endPos)
reads a graphic style: fc9, lotus123
Definition: LotusStyleManager.cpp:978
bool updateLineStyle(int lineId, WPSGraphicStyle &style) const
update style using line id
Definition: LotusStyleManager.cpp:727
bool getColor8(int cId, WPSColor &color) const
returns if possible the color(id between 0 and 7)
Definition: LotusStyleManager.cpp:619
the class to store a color
Definition: libwps_internal.h:280
bool updateShadowStyle(int colorId, WPSGraphicStyle &style) const
update style using color id for defining shadow
Definition: LotusStyleManager.cpp:879
bool readStyleE6(std::shared_ptr< WPSStream > stream, long endPos)
reads a style: fe6 (123)
Definition: LotusStyleManager.cpp:1949
LotusStyleManager & operator=(LotusStyleManager const &orig)=delete
bool readGraphicStyle(std::shared_ptr< WPSStream > stream, long endPos)
reads a graphic style
Definition: LotusStyleManager.cpp:906
bool readFMTFontSize(std::shared_ptr< WPSStream > stream)
reads a format font sizes zones 0xaf and 0xb1
Definition: LotusStyleManager.cpp:2204
bool readFMTFontId(std::shared_ptr< WPSStream > stream)
reads a format font id zone: 0xb0
Definition: LotusStyleManager.cpp:2153
bool readCellStyleD2Data(LotusStyleManagerInternal::CellStyleEntry const &entry, std::set< int > &seen)
really reads the cell style: fd2 (123)
Definition: LotusStyleManager.cpp:1366
a basic pattern used in a WPSGraphicStyle:
Definition: WPSGraphicStyle.h:88
small struct used to defined cell style file entry
Definition: LotusStyleManager.cpp:326
bool readCellStyleE6(std::shared_ptr< WPSStream > stream, long endPos)
reads a cell style: fe6 (wk4)
Definition: LotusStyleManager.cpp:1762
bool getPattern48(int id, WPSGraphicStyle::Pattern &pattern) const
returns the pattern corresponding to a pattern id (id between 1 and 48)
std::shared_ptr< LotusStyleManagerInternal::State > m_state
the internal state
Definition: LotusStyleManager.h:148