38 #ifndef CW_STYLE_MANAGER
39 # define CW_STYLE_MANAGER
58 namespace CWStyleManagerInternal
83 bool get(
int styleId,
Style &style)
const;
85 bool get(
int ksenId,
KSEN &ksen)
const;
87 bool get(
int graphId,
Graphic &graph)
const;
118 shared_ptr<CWStyleManagerInternal::State>
m_state;
129 for (
int i = 0; i < 2; i++) {
160 friend std::ostream &
operator<<(std::ostream &o,
KSEN const &ksen);
Style()
constructor
Definition: CWStyleManager.hxx:176
std::string m_extra
extra data
Definition: CWStyleManager.hxx:199
int m_fontHash
the fontHash id
Definition: CWStyleManager.hxx:185
shared_ptr< MWAWParserState > MWAWParserStatePtr
Definition: ACText.hxx:49
a structure to store the style list and the lookup zone
Definition: CWStyleManager.hxx:64
bool readStylesDef(int N, int fSz)
try to read the style definition zone
Definition: CWStyleManager.cxx:402
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:179
int m_pattern[2]
the line an surface pattern id
Definition: CWStyleManager.hxx:147
CWStyleManager & operator=(CWStyleManager const &orig)
bool readStyles(MWAWEntry const &entry)
Definition: CWStyleManager.cxx:269
int getFontId(int localId) const
return a mac font id corresponding to a local id
Definition: CWStyleManager.cxx:225
CWParser * m_mainParser
the main parser
Definition: CWStyleManager.hxx:116
MWAWParserStatePtr m_parserState
the parser state
Definition: CWStyleManager.hxx:114
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:175
MWAWColor m_color[2]
the line and surface color
Definition: CWStyleManager.hxx:145
the structure to store the style in a CWStyleManager
Definition: CWStyleManager.hxx:174
the KSEN structure a structure related to paragraph and cell style
Definition: CWStyleManager.hxx:155
std::string m_extra
extra data
Definition: CWStyleManager.hxx:151
int m_graphicId
the graphic (checkme)
Definition: CWStyleManager.hxx:193
int m_localStyleId
a local style id
Definition: CWStyleManager.hxx:195
Type
the line repetition
Definition: libmwaw_internal.hxx:236
the Graphic structure in a CWStyleManager
Definition: CWStyleManager.hxx:126
the class to store a color
Definition: libmwaw_internal.hxx:161
std::string m_extra
extra data
Definition: CWStyleManager.hxx:170
Style
the line style
Definition: libmwaw_internal.hxx:234
MWAWBorder::Type m_lineRepeat
the line repetition
Definition: CWStyleManager.hxx:166
friend std::ostream & operator<<(std::ostream &o, Style const &style)
operator<<
Definition: CWStyleManager.cxx:185
a border
Definition: libmwaw_internal.hxx:232
bool readGraphStyles(int N, int fSz)
read a Graphic sequence
Definition: CWStyleManager.cxx:650
a class to define the parser state
Definition: MWAWParser.hxx:60
shared_ptr< CWStyleManagerInternal::State > m_state
the state
Definition: CWStyleManager.hxx:118
friend std::ostream & operator<<(std::ostream &o, Graphic const &graph)
operator<<
Definition: CWStyleManager.cxx:82
int m_rulerId
the ruler
Definition: CWStyleManager.hxx:187
int m_fontId
the char
Definition: CWStyleManager.hxx:183
MWAWColor getLineColor() const
returns the line color
Definition: CWStyleManager.cxx:98
bool readStyleNames(int N, int fSz)
read a STYL Name sequence
Definition: CWStyleManager.cxx:563
Graphic()
constructor
Definition: CWStyleManager.hxx:128
MWAWColor getSurfaceColor() const
returns the surface color
Definition: CWStyleManager.cxx:105
int m_rulerHash
the rulerHash id
Definition: CWStyleManager.hxx:189
int m_lineWidth
the line width
Definition: CWStyleManager.hxx:143
the main class to read a Claris Works file
Definition: CWParser.hxx:75
int m_lines
an int used to add some oblique line ( or cross )
Definition: CWStyleManager.hxx:168
MWAWBorder::Style m_lineType
the line type
Definition: CWStyleManager.hxx:164
friend std::ostream & operator<<(std::ostream &o, KSEN const &ksen)
operator<<
Definition: CWStyleManager.cxx:115
bool readGenStyle(int id)
try to read a STYL_ subzone (in v4-6)
Definition: CWStyleManager.cxx:316
bool readLookUp(int N, int fSz)
try to read the lookup zone
Definition: CWStyleManager.cxx:464
~CWStyleManager()
destructor
Definition: CWStyleManager.cxx:214
bool readCellStyles(int N, int fSz)
Definition: CWStyleManager.cxx:602
int m_styleId
the style id
Definition: CWStyleManager.hxx:197
int m_ksenId
the ksen id
Definition: CWStyleManager.hxx:191
bool readKSEN(int N, int fSz)
read a KSEN sequence
Definition: CWStyleManager.cxx:732
KSEN()
constructor
Definition: CWStyleManager.hxx:157
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:218
CWStyleManager(CWParser &mainParser)
constructor
Definition: CWStyleManager.cxx:208
bool readFontNames(int N, int fSz)
read the font name style zone
Definition: CWStyleManager.cxx:501
int m_valign
the vertical alignement
Definition: CWStyleManager.hxx:162
float m_patternPercent[2]
the line an surface pattern percent
Definition: CWStyleManager.hxx:149