38 #ifndef CLARIS_WKS_STYLE_MANAGER 39 # define CLARIS_WKS_STYLE_MANAGER 97 bool get(
int styleId,
Style &style)
const;
99 bool get(
int fontId,
MWAWFont &font)
const;
101 bool get(
int formatId,
CellFormat &format)
const;
103 bool get(
int ksenId,
KSEN &ksen)
const;
143 std::shared_ptr<ClarisWksStyleManagerInternal::State>
m_state;
168 friend std::ostream &operator<<(std::ostream &o,
CellFormat const &form);
193 friend std::ostream &
operator<<(std::ostream &o,
KSEN const &ksen);
215 , m_ksenId(-1), m_graphicId(-1)
bool updateWallPaper(int wall, MWAWGraphicStyle &style) const
update a style using a wall paper id
Definition: ClarisWksStyleManager.cxx:1736
ClarisWksStyleManager(MWAWParserStatePtr const &parserState, ClarisWksDocument *document=nullptr)
constructor
Definition: ClarisWksStyleManager.cxx:1592
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
int m_graphicId
the graphic (checkme)
Definition: ClarisWksStyleManager.hxx:238
bool getRulerName(int id, std::string &name) const
return the name corresponding to a styleId
Definition: ClarisWksStyleManager.cxx:1610
bool readColorList(MWAWEntry const &entry)
reads a color map zone ( v4-v6)
Definition: ClarisWksStyleManager.cxx:1872
bool readFont(int id, int fontSize, MWAWFont &font)
try to read a named font
Definition: ClarisWksStyleManager.cxx:2305
int m_fontId
the char
Definition: ClarisWksStyleManager.hxx:226
int m_localStyleId
a local style id
Definition: ClarisWksStyleManager.hxx:240
the KSEN structure a structure related to paragraph and cell style
Definition: ClarisWksStyleManager.hxx:182
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:47
ClarisWksDocument * m_document
the document
Definition: ClarisWksStyleManager.hxx:139
MWAWParserStatePtr m_parserState
the parser state
Definition: ClarisWksStyleManager.hxx:141
bool readGradientList(long endPos=-1)
reads a gradient map zone ( v2)
Definition: ClarisWksStyleManager.cxx:1799
int m_ksenId
the ksen id
Definition: ClarisWksStyleManager.hxx:236
int m_rulerId
the ruler
Definition: ClarisWksStyleManager.hxx:230
bool getColor(int id, MWAWColor &col) const
return the color which corresponds to an id (if possible)
Definition: ClarisWksStyleManager.cxx:1637
std::string m_extra
extra data
Definition: ClarisWksStyleManager.hxx:244
bool readStylesDef(int N, int fSz)
try to read the style definition zone
Definition: ClarisWksStyleManager.cxx:2073
a structure to store the style list and the lookup zone
Definition: ClarisWksStyleManager.hxx:60
Type
the line repetition
Definition: libmwaw_internal.hxx:337
MWAWBorder::Style m_lineType
the line type
Definition: ClarisWksStyleManager.hxx:197
a structure used to define a cell and its format
Definition: MWAWCell.hxx:52
the class to store a color
Definition: libmwaw_internal.hxx:192
bool readStyleFonts(int N, int fSz)
read a STYL_CHAR Font sequence
Definition: ClarisWksStyleManager.cxx:2484
Style
the line style
Definition: libmwaw_internal.hxx:335
~ClarisWksStyleManager()
destructor
Definition: ClarisWksStyleManager.cxx:1600
bool getPattern(int id, MWAWGraphicStyle::Pattern &pattern, float &percent) const
return the pattern which corresponds to an id.
Definition: ClarisWksStyleManager.cxx:1650
Class to store font.
Definition: MWAWFont.hxx:43
a border
Definition: libmwaw_internal.hxx:333
main document information used to create a ClarisWorks file
Definition: ClarisWksDocument.hxx:73
MWAWBorder::Type m_lineRepeat
the line repetition
Definition: ClarisWksStyleManager.hxx:199
bool readStyles(MWAWEntry const &entry)
try to read the styles definition (in v4-6)
Definition: ClarisWksStyleManager.cxx:1921
bool readGenStyle(int id)
try to read a STYL_ subzone (in v4-6)
Definition: ClarisWksStyleManager.cxx:1970
int m_styleId
the style id
Definition: ClarisWksStyleManager.hxx:242
int m_rulerPId
the ruler parent id ( or maybe the style parent)
Definition: ClarisWksStyleManager.hxx:232
bool readPatternList(long endPos=-1)
reads a pattern map zone ( v2)
Definition: ClarisWksStyleManager.cxx:1758
bool readGraphStyles(int N, int fSz)
read a GraphicStyle sequence
Definition: ClarisWksStyleManager.cxx:2638
the structure to store the style in a ClarisWksStyleManager
Definition: ClarisWksStyleManager.hxx:207
bool readFontAndPos(int id, int &posC, MWAWFont &font)
try to read a font
Definition: ClarisWksStyleManager.cxx:2381
bool readStyleNames(int N, int fSz)
read a STYL Name sequence
Definition: ClarisWksStyleManager.cxx:2513
int m_nameId
the style name id
Definition: ClarisWksStyleManager.hxx:234
int version() const
return the file version
Definition: ClarisWksStyleManager.cxx:1604
Internal: the structures of a ClarisWksStyleManagerInternal.
Definition: ClarisWksStyleManager.cxx:52
int m_lines
an int used to add some oblique line ( or cross )
Definition: ClarisWksStyleManager.hxx:201
Defines MWAWCell (cell content and format)
bool readCellStyles(int N, int fSz)
Definition: ClarisWksStyleManager.cxx:2559
int m_valign
the vertical alignment
Definition: ClarisWksStyleManager.hxx:195
std::shared_ptr< ClarisWksStyleManagerInternal::State > m_state
the state
Definition: ClarisWksStyleManager.hxx:143
bool readKSEN(int N, int fSz)
read a KSEN sequence
Definition: ClarisWksStyleManager.cxx:2731
ClarisWksStyleManager & operator=(ClarisWksStyleManager const &orig)=delete
int m_cellFormatId
the formatId
Definition: ClarisWksStyleManager.hxx:228
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
bool readLookUp(int N, int fSz)
try to read the lookup zone
Definition: ClarisWksStyleManager.cxx:2134
std::string m_extra
extra data
Definition: ClarisWksStyleManager.hxx:203
bool updateGradient(int grad, MWAWGraphicStyle &style) const
update a style using a gradiant id
Definition: ClarisWksStyleManager.cxx:1715
KSEN()
constructor
Definition: ClarisWksStyleManager.hxx:184
bool readFontNames()
read the font name style zone (method to store font names in v2/v3 files)
Definition: ClarisWksStyleManager.cxx:2175
int getFontId(int localId) const
return a mac font id corresponding to a local id
Definition: ClarisWksStyleManager.cxx:1663
Style()
constructor
Definition: ClarisWksStyleManager.hxx:209
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:351