38 #ifndef CW_STYLE_MANAGER
39 # define CW_STYLE_MANAGER
53 namespace CWStyleManagerInternal
92 bool get(
int styleId,
Style &style)
const;
94 bool get(
int fontId, MWAWFont &font)
const;
96 bool get(
int formatId,
CellFormat &format)
const;
98 bool get(
int ksenId,
KSEN &ksen)
const;
103 bool readFont(
int id,
int fontSize, MWAWFont &font);
136 shared_ptr<CWStyleManagerInternal::State>
m_state;
172 friend std::ostream &
operator<<(std::ostream &o,
KSEN const &ksen);
Style()
constructor
Definition: CWStyleManager.hxx:188
std::string m_extra
extra data
Definition: CWStyleManager.hxx:211
a structure to store the style list and the lookup zone
Definition: CWStyleManager.hxx:59
bool readPatternList(long endPos=-1)
reads a pattern map zone ( v2)
Definition: CWStyleManager.cxx:1694
bool readStylesDef(int N, int fSz)
try to read the style definition zone
Definition: CWStyleManager.cxx:2040
CWStyleManager & operator=(CWStyleManager const &orig)
bool readStyles(MWAWEntry const &entry)
try to read the styles definition (in v4-6)
Definition: CWStyleManager.cxx:1889
int getFontId(int localId) const
return a mac font id corresponding to a local id
Definition: CWStyleManager.cxx:1600
CWParser * m_mainParser
the main parser
Definition: CWStyleManager.hxx:134
MWAWParserStatePtr m_parserState
the parser state
Definition: CWStyleManager.hxx:132
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:47
the structure to store the style in a CWStyleManager
Definition: CWStyleManager.hxx:186
the KSEN structure a structure related to paragraph and cell style
Definition: CWStyleManager.hxx:167
int m_graphicId
the graphic (checkme)
Definition: CWStyleManager.hxx:205
int m_localStyleId
a local style id
Definition: CWStyleManager.hxx:207
bool readGradientList(long endPos=-1)
reads a gradient map zone ( v2)
Definition: CWStyleManager.cxx:1753
Type
the line repetition
Definition: libmwaw_internal.hxx:241
the class to store a color
Definition: libmwaw_internal.hxx:166
std::string m_extra
extra data
Definition: CWStyleManager.hxx:182
Style
the line style
Definition: libmwaw_internal.hxx:239
MWAWBorder::Type m_lineRepeat
the line repetition
Definition: CWStyleManager.hxx:178
friend std::ostream & operator<<(std::ostream &o, Style const &style)
operator<<
Definition: CWStyleManager.cxx:1523
a border
Definition: libmwaw_internal.hxx:237
bool readGraphStyles(int N, int fSz)
read a GraphicStyle sequence
Definition: CWStyleManager.cxx:2407
shared_ptr< CWStyleManagerInternal::State > m_state
the state
Definition: CWStyleManager.hxx:136
int m_rulerId
the ruler
Definition: CWStyleManager.hxx:199
bool updateGradient(int grad, MWAWGraphicStyle &style) const
update a style using a gradiant id
Definition: CWStyleManager.cxx:1652
int m_fontId
the char
Definition: CWStyleManager.hxx:195
bool readStyleFonts(int N, int fSz)
read a STYL_CHAR Font sequence
Definition: CWStyleManager.cxx:2276
bool readStyleNames(int N, int fSz)
read a STYL Name sequence
Definition: CWStyleManager.cxx:2305
int m_rulerHash
the rulerHash id
Definition: CWStyleManager.hxx:201
the main class to read a Claris Works file
Definition: CWParser.hxx:73
bool readFont(int id, int fontSize, MWAWFont &font)
try to read a named font
Definition: CWStyleManager.cxx:2200
int m_lines
an int used to add some oblique line ( or cross )
Definition: CWStyleManager.hxx:180
MWAWBorder::Style m_lineType
the line type
Definition: CWStyleManager.hxx:176
friend std::ostream & operator<<(std::ostream &o, KSEN const &ksen)
operator<<
Definition: CWStyleManager.cxx:1453
bool readGenStyle(int id)
try to read a STYL_ subzone (in v4-6)
Definition: CWStyleManager.cxx:1937
bool readLookUp(int N, int fSz)
try to read the lookup zone
Definition: CWStyleManager.cxx:2101
~CWStyleManager()
destructor
Definition: CWStyleManager.cxx:1554
bool getColor(int id, MWAWColor &col) const
return the color which corresponds to an id (if possible)
Definition: CWStyleManager.cxx:1574
bool getPattern(int id, MWAWGraphicStyle::Pattern &pattern, float &percent) const
return the pattern which corresponds to an id.
Definition: CWStyleManager.cxx:1587
bool readColorList(MWAWEntry const &entry)
reads a color map zone ( v4-v6)
Definition: CWStyleManager.cxx:1840
bool readCellStyles(int N, int fSz)
Definition: CWStyleManager.cxx:2344
int m_styleId
the style id
Definition: CWStyleManager.hxx:209
int m_ksenId
the ksen id
Definition: CWStyleManager.hxx:203
bool readKSEN(int N, int fSz)
read a KSEN sequence
Definition: CWStyleManager.cxx:2500
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:356
KSEN()
constructor
Definition: CWStyleManager.hxx:169
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
int version() const
return the file version
Definition: CWStyleManager.cxx:1558
bool updateWallPaper(int wall, MWAWGraphicStyle &style) const
update a style using a wall paper id
Definition: CWStyleManager.cxx:1672
int m_cellFormatId
the formatId
Definition: CWStyleManager.hxx:197
CWStyleManager(CWParser &mainParser)
constructor
Definition: CWStyleManager.cxx:1548
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:92
bool readFontNames(int N, int fSz)
read the font name style zone
Definition: CWStyleManager.cxx:2138
int m_valign
the vertical alignement
Definition: CWStyleManager.hxx:174