MacDrawProStyleManager.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
2 
3 /* libmwaw
4 * Version: MPL 2.0 / LGPLv2+
5 *
6 * The contents of this file are subject to the Mozilla Public License Version
7 * 2.0 (the "License"); you may not use this file except in compliance with
8 * the License or as specified alternatively below. You may obtain a copy of
9 * the License at http://www.mozilla.org/MPL/
10 *
11 * Software distributed under the License is distributed on an "AS IS" basis,
12 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 * for the specific language governing rights and limitations under the
14 * License.
15 *
16 * Major Contributor(s):
17 * Copyright (C) 2002 William Lachance (wrlach@gmail.com)
18 * Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)
19 * Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
20 * Copyright (C) 2006, 2007 Andrew Ziem
21 * Copyright (C) 2011, 2012 Alonso Laurent (alonso@loria.fr)
22 *
23 *
24 * All Rights Reserved.
25 *
26 * For minor contributions see the git repository.
27 *
28 * Alternatively, the contents of this file may be used under the terms of
29 * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
30 * in which case the provisions of the LGPLv2+ are applicable
31 * instead of those above.
32 */
33 
34 #ifndef MACDRAWPRO_STYLE_MANAGER
35 # define MACDRAWPRO_STYLE_MANAGER
36 
37 #include <map>
38 #include <string>
39 #include <vector>
40 
41 #include <librevenge/librevenge.h>
42 
43 #include "MWAWDebug.hxx"
44 #include "MWAWGraphicStyle.hxx"
45 #include "MWAWInputStream.hxx"
46 
47 class MWAWFont;
48 
50 {
51 struct State;
52 }
53 
54 class MacDrawProParser;
55 
60 {
61  friend class MacDrawProParser;
62 public:
64  explicit MacDrawProStyleManager(MacDrawProParser &parser);
66  virtual ~MacDrawProStyleManager();
67 
68 protected:
70  bool readRSRCZones();
71 
72  // Intermediate level
73 
75  bool readHeaderInfoStylePart(std::string &extra);
77  bool readStyles(long const(&sizeZones)[6]);
78 
80  bool getColor(int cId, MWAWColor &color) const;
82  bool getDash(int dId, std::vector<float> &dash) const;
84  bool getFont(int fId, MWAWFont &font) const;
86  bool getParagraph(int pId, MWAWParagraph &para) const;
88  bool getPattern(int pId, MWAWGraphicStyle::Pattern &pattern) const;
90  bool getPenSize(int pId, float &penSize) const;
92  bool updateGradient(int gId, MWAWGraphicStyle &style) const;
93  //
94  // low level
95  //
96 
98  bool readFontStyles(MWAWEntry const &entry);
100  bool readParagraphStyles(MWAWEntry const &entry);
101 
102  // data fork or rsrc fork
103 
105  bool readArrows(MWAWEntry const &entry, bool inRsrc=false);
107  bool readDashs(MWAWEntry const &entry, bool inRsrc=false);
109  bool readPens(MWAWEntry const &entry, bool inRsrc=false);
111  bool readRulers(MWAWEntry const &entry, bool inRsrc=false);
112 
113  // rsrc
114 
116  bool readDocumentInfo(MWAWEntry const &entry);
118  bool readPreferences(MWAWEntry const &entry);
120  bool readFontNames();
122  bool readColors(MWAWEntry const &entry);
124  bool readBWPatterns(MWAWEntry const &entry);
126  bool readColorPatterns(MWAWEntry const &entry);
128  bool readPatternsToolList(MWAWEntry const &entry);
130  bool readRulerSettings(MWAWEntry const &entry);
132  bool readViews(MWAWEntry const &entry);
133 
135  bool readRSRCDstl(MWAWEntry const &entry);
136 
137  // v1
139  bool readPaletteDef(MWAWEntry const &entry);
141  bool readPaletteMap(MWAWEntry const &entry, int N, int dataSz);
143  bool readPaletteData(MWAWEntry const &entry, int dataSz);
144 
146  bool readColorMap(MWAWEntry const &entry, int N, int fSz);
148  bool readPatternMap(MWAWEntry const &entry, int N, int fSz);
150  bool readGradientMap(MWAWEntry const &entry, int N, int fSz);
152  bool readFAMap(MWAWEntry const &entry, int N, int fSz);
153 
155  bool readColorPalette(MWAWEntry const &entry, int fSz);
157  bool readFAPalette(MWAWEntry const &entry, int fSz);
159  bool readGradientPalette(MWAWEntry const &entry, int fSz);
161  bool readPatternPalette(MWAWEntry const &entry, int fSz);
163  bool readListNames(MWAWEntry const &entry, int N=-1);
165  bool readListNames(char const *type);
166 
168  bool readPreferencesListBool(MWAWEntry const &entry, int num);
170  bool readPreferences1(MWAWEntry const &entry);
172  bool readPreferences6(MWAWEntry const &entry);
174  bool readPreferences8(MWAWEntry const &entry);
176  bool readUPDL(MWAWEntry const &entry);
178  bool readGrid(MWAWEntry const &entry);
179 
180  //
181  // data
182  //
183 
184 protected:
190  std::shared_ptr<MacDrawProStyleManagerInternal::State> m_state;
191 };
192 #endif
193 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MacDrawProStyleManagerInternal::Gradient
Definition: MacDrawProStyleManager.cxx:64
MWAWEntry
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
MWAWParagraph::m_justify
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:167
MWAWInputStreamPtr
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
MWAWGraphicStyle::Gradient::G_Square
@ G_Square
Definition: MWAWGraphicStyle.hxx:177
MacDrawProStyleManager::readColors
bool readColors(MWAWEntry const &entry)
tries to read colors map Ctbl:256
Definition: MacDrawProStyleManager.cxx:1436
MacDrawProStyleManager::m_parser
MacDrawProParser & m_parser
the main parser
Definition: MacDrawProStyleManager.hxx:186
MacDrawProStyleManagerInternal::State::initBWPatterns
void initBWPatterns()
init the black and white patterns list
Definition: MacDrawProStyleManager.cxx:247
MWAWFont::set
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:314
MacDrawProStyleManagerInternal
Internal: the structures of a MacDrawProStyleManager.
Definition: MacDrawProStyleManager.cxx:62
MacDrawProParser
the main class to read a MacDraw II file
Definition: MacDrawProParser.hxx:64
MWAWFont::smallCapsBit
@ smallCapsBit
Definition: MWAWFont.hxx:192
MWAWTabStop::m_leaderCharacter
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:78
MacDrawProStyleManager::readGradientPalette
bool readGradientPalette(MWAWEntry const &entry, int fSz)
try to read the gradient palette resource RaEL:128
Definition: MacDrawProStyleManager.cxx:2523
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MacDrawProStyleManagerInternal::State::m_colorList
std::vector< MWAWColor > m_colorList
the color list
Definition: MacDrawProStyleManager.cxx:180
MacDrawProStyleManagerInternal::State::m_numBWPatterns
int m_numBWPatterns
the number of BW pattern
Definition: MacDrawProStyleManager.cxx:173
MWAWVec2f
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
MWAWPictBitmapIndexed::setColors
void setColors(std::vector< MWAWColor > const &cols)
sets the array of indexed colors
Definition: MWAWPictBitmap.hxx:446
libmwaw::DebugFile::addDelimiter
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
MacDrawProStyleManager::readColorMap
bool readColorMap(MWAWEntry const &entry, int N, int fSz)
try to read the display color map DPCo:0
Definition: MacDrawProStyleManager.cxx:2073
MacDrawProStyleManagerInternal::Gradient::m_percentCenter
MWAWVec2f m_percentCenter
the gradient center
Definition: MacDrawProStyleManager.cxx:89
MacDrawProStyleManager::readUPDL
bool readUPDL(MWAWEntry const &entry)
try to read the UPDL resource, maybe U? Palette Display Layer
Definition: MacDrawProStyleManager.cxx:2727
MacDrawProStyleManagerInternal::Gradient::m_angle
float m_angle
the gradient angle
Definition: MacDrawProStyleManager.cxx:87
MWAWGraphicStyle::Gradient::m_type
Type m_type
the gradient type
Definition: MWAWGraphicStyle.hxx:260
MWAWParagraph::m_tabs
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:162
MacDrawProStyleManager::readListNames
bool readListNames(MWAWEntry const &entry, int N=-1)
try to read a list of names : CoNa:128 color name, FaNa:128 font color name, PaNa:128....
Definition: MacDrawProStyleManager.cxx:2667
MacDrawProStyleManager::readRulerSettings
bool readRulerSettings(MWAWEntry const &entry)
tries to read the Ruler settings resource Rset:256 or Rst2:256
Definition: MacDrawProStyleManager.cxx:1687
MacDrawProParser.hxx
MWAWGraphicStyle::Gradient::G_None
@ G_None
Definition: MWAWGraphicStyle.hxx:177
MWAWFont::Script::sub100
static Script sub100()
return a yposition which correspond to a basic subscript100
Definition: MWAWFont.hxx:125
MWAWFont::boldBit
@ boldBit
Definition: MWAWFont.hxx:190
MacDrawProStyleManager::readFontNames
bool readFontNames()
tries to read the font name resources Fmtx:256 and Fnms:256
Definition: MacDrawProStyleManager.cxx:1367
MWAWColor::white
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:250
MWAWFont::setColor
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:341
MWAWTabStop::CENTER
@ CENTER
Definition: MWAWParagraph.hxx:48
MacDrawProStyleManagerInternal::Gradient::m_stopList
std::vector< MWAWGraphicStyle::Gradient::Stop > m_stopList
the list of gradient limits
Definition: MacDrawProStyleManager.cxx:85
MWAWParagraph::setInterline
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:129
MacDrawProStyleManagerInternal::State::m_documentSize
MWAWVec2f m_documentSize
the document size (in point)
Definition: MacDrawProStyleManager.cxx:167
MWAWEntry::id
int id() const
returns the id
Definition: MWAWEntry.hxx:164
MWAWFontConverter.hxx
MWAWColor
the class to store a color
Definition: libmwaw_internal.hxx:192
MWAWEmbeddedObject
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
MacDrawProStyleManager::readFontStyles
bool readFontStyles(MWAWEntry const &entry)
tries to read the font style ( last style in v0 data fork )
Definition: MacDrawProStyleManager.cxx:564
MWAWParagraph::m_spacings
MWAWVariable< double > m_spacings[3]
the line spacing
Definition: MWAWParagraph.hxx:156
MWAWEntry::type
std::string const & type() const
returns the type of the entry
Definition: MWAWEntry.hxx:137
MacDrawProStyleManagerInternal::State::m_penSizeList
std::vector< float > m_penSizeList
the list of pen size
Definition: MacDrawProStyleManager.cxx:190
MWAWGraphicStyle::Gradient::G_Linear
@ G_Linear
Definition: MWAWGraphicStyle.hxx:177
MWAWPrinter.hxx
MWAWParagraph
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
MacDrawProStyleManager::m_parserState
MWAWParserStatePtr m_parserState
the parser state
Definition: MacDrawProStyleManager.hxx:188
MacDrawProStyleManager::~MacDrawProStyleManager
virtual ~MacDrawProStyleManager()
destructor
Definition: MacDrawProStyleManager.cxx:310
MWAWFont::Line::Simple
@ Simple
Definition: MWAWFont.hxx:49
MWAW_FALLTHROUGH
#define MWAW_FALLTHROUGH
Definition: libmwaw_internal.hxx:118
MacDrawProStyleManager::readFAMap
bool readFAMap(MWAWEntry const &entry, int N, int fSz)
try to read the FA map DPFa:3
Definition: MacDrawProStyleManager.cxx:2316
MWAWEntry::setParsed
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:126
MWAWPictBitmap::getBinary
bool getBinary(MWAWEmbeddedObject &picture) const override
returns the final picture
Definition: MWAWPictBitmap.hxx:225
libmwaw::DebugFile::addNote
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
MWAWGraphicStyle
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
MWAWParagraph::m_margins
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:148
MWAWGraphicStyle::Pattern::m_data
std::vector< unsigned char > m_data
the pattern data: a sequence of data: p[0..7,0],p[8..15,0]...p[0..7,1],p[8..15,1],...
Definition: MWAWGraphicStyle.hxx:363
MacDrawProStyleManager::readFAPalette
bool readFAPalette(MWAWEntry const &entry, int fSz)
try to read the FA palette resource FaEL:128
Definition: MacDrawProStyleManager.cxx:2359
MacDrawProStyleManager::readColorPalette
bool readColorPalette(MWAWEntry const &entry, int fSz)
try to read the color palette resource CoEL:128
Definition: MacDrawProStyleManager.cxx:2144
MWAWTabStop::DECIMAL
@ DECIMAL
Definition: MWAWParagraph.hxx:48
MacDrawProStyleManager::readPreferences1
bool readPreferences1(MWAWEntry const &entry)
try to read the first pref resource Prf1:256
Definition: MacDrawProStyleManager.cxx:2866
MacDrawProStyleManagerInternal::State::m_fontList
std::vector< MWAWFont > m_fontList
the list of font
Definition: MacDrawProStyleManager.cxx:186
MacDrawProStyleManager::readGradientMap
bool readGradientMap(MWAWEntry const &entry, int N, int fSz)
try to read the gradian map DPRa:2
Definition: MacDrawProStyleManager.cxx:2404
MacDrawProStyleManagerInternal::State::m_gradientList
std::vector< Gradient > m_gradientList
the gradient list
Definition: MacDrawProStyleManager.cxx:197
MacDrawProStyleManagerInternal::State::initColors
void initColors()
init the colors list
Definition: MacDrawProStyleManager.cxx:200
MWAWFont::Script::super100
static Script super100()
return a yposition which correspond to a basic superscript100
Definition: MWAWFont.hxx:135
MWAWFont::embossBit
@ embossBit
Definition: MWAWFont.hxx:190
MacDrawProStyleManager::readRSRCZones
bool readRSRCZones()
tries to read the RSRC zones
Definition: MacDrawProStyleManager.cxx:1079
MacDrawProStyleManager::m_state
std::shared_ptr< MacDrawProStyleManagerInternal::State > m_state
the state
Definition: MacDrawProStyleManager.hxx:190
MWAWGraphicStyle::Gradient::G_Rectangular
@ G_Rectangular
Definition: MWAWGraphicStyle.hxx:177
MacDrawProStyleManager::readRulers
bool readRulers(MWAWEntry const &entry, bool inRsrc=false)
tries to read the Ruler styles or the resource Drul:256
Definition: MacDrawProStyleManager.cxx:885
MacDrawProStyleManager::readDocumentInfo
bool readDocumentInfo(MWAWEntry const &entry)
tries to read the Document Information resource Dinf:256
Definition: MacDrawProStyleManager.cxx:1276
MWAWTabStop
class to store a tab use by MWAWParagraph
Definition: MWAWParagraph.hxx:46
MacDrawProStyleManagerInternal::State::m_dashList
std::vector< std::vector< float > > m_dashList
the list of dash
Definition: MacDrawProStyleManager.cxx:184
MWAWGraphicStyle::Pattern
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:277
MWAWSubDocument.hxx
MacDrawProStyleManager::readPens
bool readPens(MWAWEntry const &entry, bool inRsrc=false)
tries to read the Pen styles or the resource PSet:256
Definition: MacDrawProStyleManager.cxx:815
MacDrawProStyleManager::readPatternPalette
bool readPatternPalette(MWAWEntry const &entry, int fSz)
try to read the pattern palette resource PaEL:128
Definition: MacDrawProStyleManager.cxx:2266
MWAWParagraph::AtLeast
@ AtLeast
Definition: MWAWParagraph.hxx:94
MWAWFont::m_extra
std::string m_extra
extra data
Definition: MWAWFont.hxx:573
MacDrawProStyleManager::readParagraphStyles
bool readParagraphStyles(MWAWEntry const &entry)
tries to read the paragraph style ( last style in v1 data fork )
Definition: MacDrawProStyleManager.cxx:944
MWAWParagraph::JustificationCenter
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
MWAWFont::shadowBit
@ shadowBit
Definition: MWAWFont.hxx:191
MacDrawProStyleManager::getPattern
bool getPattern(int pId, MWAWGraphicStyle::Pattern &pattern) const
tries to return the pattern corresponding to an id
Definition: MacDrawProStyleManager.cxx:399
MacDrawProStyleManager::getPenSize
bool getPenSize(int pId, float &penSize) const
tries to return the pen size corresponding to an id
Definition: MacDrawProStyleManager.cxx:388
MWAWParagraph.hxx
MacDrawProStyleManagerInternal::operator<<
std::ostream & operator<<(std::ostream &o, Gradient const &grad)
Definition: MacDrawProStyleManager.cxx:94
MWAWRSRCParser.hxx
MacDrawProStyleManager::readPaletteDef
bool readPaletteDef(MWAWEntry const &entry)
try to read a palette definition PaDB:[0-3]
Definition: MacDrawProStyleManager.cxx:1843
MacDrawProStyleManager::readPreferencesListBool
bool readPreferencesListBool(MWAWEntry const &entry, int num)
try to read the first pref resource Prf[23459]:256
Definition: MacDrawProStyleManager.cxx:2831
MacDrawProStyleManagerInternal::Gradient::operator<<
friend std::ostream & operator<<(std::ostream &o, Gradient const &grad)
a print operator
Definition: MacDrawProStyleManager.cxx:94
MacDrawProStyleManager::readViews
bool readViews(MWAWEntry const &entry)
reads the view positions resource Dvws:256
Definition: MacDrawProStyleManager.cxx:1741
MacDrawProStyleManagerInternal::State::m_paragraphList
std::vector< MWAWParagraph > m_paragraphList
the list of paragraph
Definition: MacDrawProStyleManager.cxx:188
MWAWPosition.hxx
MWAWColor::getBlue
unsigned char getBlue() const
returns the green value
Definition: libmwaw_internal.hxx:269
MacDrawProStyleManagerInternal::State::m_numStyleZones
int m_numStyleZones[6]
the number of zones
Definition: MacDrawProStyleManager.cxx:169
MacDrawProStyleManagerInternal::Gradient::hasGradient
bool hasGradient() const
returns true if the gradient is defined
Definition: MacDrawProStyleManager.cxx:75
MWAWGraphicStyle::Gradient::Stop
a structure used to define the gradient limit in MWAWGraphicStyle
Definition: MWAWGraphicStyle.hxx:141
MacDrawProStyleManager::readPatternsToolList
bool readPatternsToolList(MWAWEntry const &entry)
tries to read the list of pattern patR:256: list of BW/Color patterns list which appear in the patter...
Definition: MacDrawProStyleManager.cxx:1639
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
MWAWGraphicStyle::Pattern::m_dim
MWAWVec2i m_dim
the dimension width x height
Definition: MWAWGraphicStyle.hxx:358
MWAWRSRCParserPtr
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
MWAWEntry::length
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
MWAWPictData.hxx
MacDrawProStyleManager::readColorPatterns
bool readColorPatterns(MWAWEntry const &entry)
tries to read the color pattern colP:256
Definition: MacDrawProStyleManager.cxx:1543
MacDrawProStyleManagerInternal::State::State
State()
constructor
Definition: MacDrawProStyleManager.cxx:140
MWAWVec2< float >
MWAWGraphicListener.hxx
MWAWTabStop::m_alignment
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:76
MWAWPictBitmapIndexed::setRow
void setRow(int j, U const *val)
sets all cell contents of a row
Definition: MWAWPictBitmap.hxx:430
MWAWGraphicShape.hxx
MWAWDebug.hxx
MacDrawProStyleManager
the main class to read a MacDraw II file
Definition: MacDrawProStyleManager.hxx:60
MWAWFont::getDebugString
std::string getDebugString(std::shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
MWAWEntry::begin
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
MWAWEntry::setLength
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:72
MacDrawProStyleManagerInternal::State::m_BWPatternList
std::vector< MWAWGraphicStyle::Pattern > m_BWPatternList
the patterns list
Definition: MacDrawProStyleManager.cxx:193
MWAWColor::black
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:245
MacDrawProStyleManagerInternal::State::initPens
void initPens()
init the pens list
Definition: MacDrawProStyleManager.cxx:240
MWAWTabStop::m_position
double m_position
the tab position
Definition: MWAWParagraph.hxx:74
MacDrawProStyleManager::readPaletteMap
bool readPaletteMap(MWAWEntry const &entry, int N, int dataSz)
try to read a palette map
Definition: MacDrawProStyleManager.cxx:2019
MacDrawProStyleManager::readStyles
bool readStyles(long const(&sizeZones)[6])
tries to read the style zone knowings the size and the number of data in each zones
Definition: MacDrawProStyleManager.cxx:512
MWAWFont::setId
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
MacDrawProStyleManager::getColor
bool getColor(int cId, MWAWColor &color) const
tries to return the color corresponding to an id
Definition: MacDrawProStyleManager.cxx:319
MacDrawProStyleManager::readPaletteData
bool readPaletteData(MWAWEntry const &entry, int dataSz)
try to read a palette data
Definition: MacDrawProStyleManager.cxx:1969
MWAWTabStop::m_decimalCharacter
uint16_t m_decimalCharacter
the decimal char
Definition: MWAWParagraph.hxx:80
MacDrawProStyleManagerInternal::Gradient::Gradient
Gradient()
constructor
Definition: MacDrawProStyleManager.cxx:66
MWAWGraphicStyle::Gradient::G_Axial
@ G_Axial
Definition: MWAWGraphicStyle.hxx:177
MWAWGraphicStyle::Pattern::m_colors
MWAWColor m_colors[2]
the two indexed colors
Definition: MWAWGraphicStyle.hxx:361
MWAWHeader.hxx
Defines MWAWHeader (document's type, version, kind)
MWAWEntry::end
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
MWAWFont::setSize
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
MWAWBox2i
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1191
MWAWGraphicStyle.hxx
MWAWFont::italicBit
@ italicBit
Definition: MWAWFont.hxx:190
MWAWParagraph::m_marginsUnit
MWAWVariable< librevenge::RVNGUnit > m_marginsUnit
the margins INCH, ...
Definition: MWAWParagraph.hxx:150
MWAWPictBitmapIndexed
a bitmap of int to store indexed bitmap
Definition: MWAWPictBitmap.hxx:357
MWAWGraphicStyle::m_gradient
Gradient m_gradient
the gradient
Definition: MWAWGraphicStyle.hxx:533
MacDrawProStyleManagerInternal::Gradient::m_extra
std::string m_extra
extra data
Definition: MacDrawProStyleManager.cxx:91
MacDrawProStyleManager::getFont
bool getFont(int fId, MWAWFont &font) const
tries to return the font corresponding to an id
Definition: MacDrawProStyleManager.cxx:356
MWAWColor::getRed
unsigned char getRed() const
returns the red value
Definition: libmwaw_internal.hxx:274
MWAWGraphicStyle::Gradient::G_Ellipsoid
@ G_Ellipsoid
Definition: MWAWGraphicStyle.hxx:177
MacDrawProStyleManager.hxx
MWAWParagraph::JustificationFull
@ JustificationFull
Definition: MWAWParagraph.hxx:90
MWAWParagraph::JustificationRight
@ JustificationRight
Definition: MWAWParagraph.hxx:91
MWAWParserStatePtr
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
MacDrawProStyleManagerInternal::State::m_displayColorList
std::vector< MWAWColor > m_displayColorList
the display color list
Definition: MacDrawProStyleManager.cxx:182
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
MWAWEntry::valid
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
MacDrawProStyleManagerInternal::State::m_numPatternsInTool
int m_numPatternsInTool
the number of pattern in tool list
Definition: MacDrawProStyleManager.cxx:177
MacDrawProStyleManager::readPreferences
bool readPreferences(MWAWEntry const &entry)
tries to read the main Preferences resource Pref:256
Definition: MacDrawProStyleManager.cxx:1225
libmwaw::DebugFile
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
MacDrawProStyleManagerInternal::State::m_numColorPatterns
int m_numColorPatterns
the number of color pattern
Definition: MacDrawProStyleManager.cxx:175
MacDrawProStyleManagerInternal::State::m_colorPatternList
std::vector< MWAWGraphicStyle::Pattern > m_colorPatternList
the color patterns list
Definition: MacDrawProStyleManager.cxx:195
MacDrawProStyleManagerInternal::State::initDashs
void initDashs()
init the dashs list
Definition: MacDrawProStyleManager.cxx:213
MacDrawProStyleManagerInternal::State::m_numColors
int m_numColors
the number of color
Definition: MacDrawProStyleManager.cxx:171
MacDrawProStyleManager::updateGradient
bool updateGradient(int gId, MWAWGraphicStyle &style) const
tries to update the style gradient
Definition: MacDrawProStyleManager.cxx:440
MacDrawProStyleManager::MacDrawProStyleManager
MacDrawProStyleManager(MacDrawProParser &parser)
constructor
Definition: MacDrawProStyleManager.cxx:303
MWAWInputStream.hxx
MacDrawProStyleManager::readRSRCDstl
bool readRSRCDstl(MWAWEntry const &entry)
reads the Dstl:256 resource (unknown content)
Definition: MacDrawProStyleManager.cxx:1796
MacDrawProStyleManager::readHeaderInfoStylePart
bool readHeaderInfoStylePart(std::string &extra)
tries to read the header info part which corresponds to style data
Definition: MacDrawProStyleManager.cxx:460
MWAWFont.hxx
MacDrawProStyleManager::getDash
bool getDash(int dId, std::vector< float > &dash) const
tries to return the dash definition corresponding to an id
Definition: MacDrawProStyleManager.cxx:377
MWAWPictBitmap.hxx
MWAWTabStop::RIGHT
@ RIGHT
Definition: MWAWParagraph.hxx:48
MWAWFont
Class to store font.
Definition: MWAWFont.hxx:44
MWAWColor::getGreen
unsigned char getGreen() const
returns the green value
Definition: libmwaw_internal.hxx:279
MacDrawProStyleManager::readPatternMap
bool readPatternMap(MWAWEntry const &entry, int N, int fSz)
try to read the display pattern DPPa:1
Definition: MacDrawProStyleManager.cxx:2211
MWAWGraphicStyle::Gradient::G_Radial
@ G_Radial
Definition: MWAWGraphicStyle.hxx:177
MacDrawProStyleManager::getParagraph
bool getParagraph(int pId, MWAWParagraph &para) const
tries to return the paragraph corresponding to an id
Definition: MacDrawProStyleManager.cxx:367
MWAWColor::colorFromHSL
static MWAWColor colorFromHSL(unsigned char H, unsigned char S, unsigned char L)
return a color from a hsl color (basic)
Definition: libmwaw_internal.hxx:228
MacDrawProStyleManager::readPreferences8
bool readPreferences8(MWAWEntry const &entry)
try to read the 8 pref resource Prf8:256
Definition: MacDrawProStyleManager.cxx:2966
MWAWGraphicStyle::Gradient::Type
Type
an enum used to define the gradient type
Definition: MWAWGraphicStyle.hxx:177
MacDrawProStyleManager::readPreferences6
bool readPreferences6(MWAWEntry const &entry)
try to read the spelling pref resource Prf6:256
Definition: MacDrawProStyleManager.cxx:2912
MacDrawProStyleManager::readBWPatterns
bool readBWPatterns(MWAWEntry const &entry)
tries to read the BW pattern bawP:256
Definition: MacDrawProStyleManager.cxx:1489
MacDrawProStyleManager::readDashs
bool readDashs(MWAWEntry const &entry, bool inRsrc=false)
tries to read the dash settings or the resource Dset:256
Definition: MacDrawProStyleManager.cxx:741
MacDrawProStyleManager::readArrows
bool readArrows(MWAWEntry const &entry, bool inRsrc=false)
tries to read the Arrow styles or the resource Aset:256
Definition: MacDrawProStyleManager.cxx:677
MacDrawProStyleManagerInternal::State
Internal: the state of a MacDrawProStyleManager.
Definition: MacDrawProStyleManager.cxx:138
MWAWVec2i
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
libmwaw::DebugStream
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
MWAWFont::setUnderlineStyle
void setUnderlineStyle(Line::Style style=Line::None, bool doReset=true)
sets the underline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:466
MWAWColor::colorFromCMYK
static MWAWColor colorFromCMYK(unsigned char c, unsigned char m, unsigned char y, unsigned char k)
return a color from a cmyk color ( basic)
Definition: libmwaw_internal.hxx:218
MacDrawProStyleManagerInternal::Gradient::m_type
MWAWGraphicStyle::Gradient::Type m_type
the gradient type
Definition: MacDrawProStyleManager.cxx:83
MacDrawProStyleManager::readGrid
bool readGrid(MWAWEntry const &entry)
try to read the Grid: resource, grid of palette position
Definition: MacDrawProStyleManager.cxx:2777
MWAWFont::setFlags
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325

Generated on Fri Sep 18 2020 18:14:52 for libmwaw by doxygen 1.8.20