MacDraft5StyleManager.hxx Source File documentation

MacDraft5StyleManager.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 MACDRAFT5_STYLE_MANAGER
35 # define MACDRAFT5_STYLE_MANAGER
36
37 #include <string>
38 #include <vector>
39
40 #include <librevenge/librevenge.h>
41
42 #include "MWAWDebug.hxx"
43 #include "MWAWInputStream.hxx"
44
45 #include "MWAWParser.hxx"
46
47 namespace MacDraft5StyleManagerInternal
48 {
49 struct State;
50 }
51
52 class MacDraft5Parser;
53
57 class MacDraft5StyleManager
58 {
59 friend class MacDraft5Parser;
60 public:
62 explicit MacDraft5StyleManager(MacDraft5Parser &parser);
64 virtual ~MacDraft5StyleManager();
65
66 protected:
67
69 bool readResources();
71 bool readBitmapZones();
73 long getEndDataPosition() const;
75 std::string updateLineStyle(int type, int id, int dashId, MWAWGraphicStyle &style);
77 std::string updateSurfaceStyle(int type, int id, MWAWGraphicStyle &style);
79 std::string updateArrows(int startId, int endId, MWAWGraphicStyle &style);
81 bool getColor(int cId, MWAWColor &color) const;
83 bool getBitmap(int bId, MWAWEmbeddedObject &picture) const;
84
85 //
86 // read resource
87 //
88
90 bool getPixmap(int pId, MWAWEmbeddedObject &picture, MWAWVec2i &pictSize, MWAWColor &avColor) const;
92 void updatePatterns();
93
95 bool readResource(MWAWEntry &entry, bool inRsrc);
96
98 bool readBitmap(MWAWEntry const &entry);
100 bool readColors(MWAWEntry const &entry, bool inRsrc);
102 bool readDashes(MWAWEntry const &entry, bool inRsrc);
104 bool readFonts(MWAWEntry const &entry, bool inRsrc);
106 bool readPatterns(MWAWEntry const &entry, bool inRsrc);
108 bool readPixPat(MWAWEntry const &entry, bool inRsrc);
110 bool readVersion(MWAWEntry &entry);
111
113 bool readRSRCList(MWAWEntry const &entry, bool inRsrc);
114
116 bool readBitmapList(MWAWEntry const &entry, bool inRsrc);
118 bool readOpcd(MWAWEntry const &entry, bool inRsrc);
119
120 //
121 // data
122 //
123
124 protected:
126 MacDraft5Parser &m_parser;
128 MWAWParserStatePtr m_parserState;
130 std::shared_ptr<MacDraft5StyleManagerInternal::State> m_state;
131 };
132 #endif
133 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWEntry
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
MWAWInputStreamPtr
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
MWAWRSRCParser::Version::m_majorVersion
int m_majorVersion
the major number
Definition: MWAWRSRCParser.hxx:146
MacDraft5StyleManagerInternal::State::getColor
bool getColor(int id, MWAWColor &col)
returns a color if possible
Definition: MacDraft5StyleManager.cxx:345
MWAWRSRCParser::Version
a public structure used to return the version
Definition: MWAWRSRCParser.hxx:133
MWAWRSRCParser::Version::m_string
std::string m_string
the major string
Definition: MWAWRSRCParser.hxx:150
MacDraft5StyleManager::readResource
bool readResource(MWAWEntry &entry, bool inRsrc)
try to read a resource
Definition: MacDraft5StyleManager.cxx:965
MacDraft5StyleManagerInternal::Pixmap::operator<<
friend std::ostream & operator<<(std::ostream &o, Pixmap const &f)
operator<< for Pixmap
Definition: MacDraft5StyleManager.cxx:88
MacDraft5StyleManager::MacDraft5StyleManager
MacDraft5StyleManager(MacDraft5Parser &parser)
constructor
Definition: MacDraft5StyleManager.cxx:586
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MacDraft5StyleManagerInternal::State::m_pixIdToPixmapMap
std::map< int, std::shared_ptr< Pixmap > > m_pixIdToPixmapMap
a map pixmapId to pixmap map
Definition: MacDraft5StyleManager.cxx:404
MWAWPictBitmapIndexed::setColors
void setColors(std::vector< MWAWColor > const &cols)
sets the array of indexed colors
Definition: MWAWPictBitmap.hxx:446
MWAWGraphicStyle::setSurfaceColor
void setSurfaceColor(MWAWColor const &col, float opacity=1)
set the surface color
Definition: MWAWGraphicStyle.hxx:415
MacDraft5StyleManagerInternal::Pixmap::m_version
int m_version
the pixmap version
Definition: MacDraft5StyleManager.cxx:296
MacDraft5StyleManagerInternal::Pixmap::readPixmapData
bool readPixmapData(MWAWInputStream &input)
parses the pixmap data zone
Definition: MacDraft5StyleManager.cxx:96
MWAWPictBitmapIndexed::set
void set(int i, int j, int v)
sets a cell contents
Definition: MWAWPictBitmap.hxx:425
MacDraft5StyleManager::readPatterns
bool readPatterns(MWAWEntry const &entry, bool inRsrc)
try to read a list of patterns/gradient? : PLDT 128
Definition: MacDraft5StyleManager.cxx:1228
MacDraft5Parser::readPICTList
bool readPICTList(MWAWEntry const &entry, bool inRsrc)
try to read the PICT unknown entry: pnot:0
Definition: MacDraft5Parser.cxx:2547
MWAWInputStream
Internal class used to read the file stream Internal class used to read the file stream,...
Definition: MWAWInputStream.hxx:54
MacDraft5StyleManagerInternal::Pixmap::Pixmap
Pixmap()
Definition: MacDraft5StyleManager.cxx:68
MWAWGraphicStyle::m_surfaceOpacity
float m_surfaceOpacity
true if the surface has some color
Definition: MWAWGraphicStyle.hxx:520
MacDraft5StyleManager::~MacDraft5StyleManager
virtual ~MacDraft5StyleManager()
destructor
Definition: MacDraft5StyleManager.cxx:593
MWAWEmbeddedObject::m_dataList
std::vector< librevenge::RVNGBinaryData > m_dataList
the picture content: one data by representation
Definition: libmwaw_internal.hxx:512
MWAWColor::white
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:250
MacDraft5StyleManagerInternal::State::getPattern
bool getPattern(int id, MWAWGraphicStyle::Pattern &pat)
returns a pattern if possible
Definition: MacDraft5StyleManager.cxx:357
MWAWEntry::id
int id() const
returns the id
Definition: MWAWEntry.hxx:164
MacDraft5StyleManagerInternal::Pixmap::get
bool get(MWAWEmbeddedObject &picture, MWAWVec2i &pictSize, MWAWColor &avColor) const
returns the pixmap
Definition: MacDraft5StyleManager.cxx:211
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
MWAWEntry::type
std::string const & type() const
returns the type of the entry
Definition: MWAWEntry.hxx:137
MacDraft5StyleManagerInternal::Pixmap::m_pixelType
int m_pixelType
format of pixel image
Definition: MacDraft5StyleManager.cxx:300
MacDraft5StyleManagerInternal::State::State
State()
constructor
Definition: MacDraft5StyleManager.cxx:320
MWAWGraphicStyle::Pattern::getAverageColor
bool getAverageColor(MWAWColor &col) const
return the average color
Definition: MWAWGraphicStyle.cxx:101
MWAWPrinter.hxx
MacDraft5StyleManagerInternal::State::m_arrowList
std::vector< MWAWGraphicStyle::Arrow > m_arrowList
the arrow list
Definition: MacDraft5StyleManager.cxx:392
MacDraft5StyleManagerInternal::Pixmap::m_resolution
int m_resolution[2]
horizontal/vertical definition
Definition: MacDraft5StyleManager.cxx:299
MacDraft5StyleManager::readRSRCList
bool readRSRCList(MWAWEntry const &entry, bool inRsrc)
try to read a resource list: PATL:128 or Opac:128+xxx
Definition: MacDraft5StyleManager.cxx:1641
MacDraft5StyleManager::readFonts
bool readFonts(MWAWEntry const &entry, bool inRsrc)
try to read FNUS:1 resource
Definition: MacDraft5StyleManager.cxx:1075
MacDraft5StyleManager::readColors
bool readColors(MWAWEntry const &entry, bool inRsrc)
try to read a list of colors : pltt 128
Definition: MacDraft5StyleManager.cxx:1125
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
MacDraft5StyleManager::m_parserState
MWAWParserStatePtr m_parserState
the parser state
Definition: MacDraft5StyleManager.hxx:128
MacDraft5StyleManager
class to read/store MacDraft5 v4-v5 styles
Definition: MacDraft5StyleManager.hxx:58
libmwaw::DebugFile::addNote
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
MacDraft5StyleManager::readBitmapList
bool readBitmapList(MWAWEntry const &entry, bool inRsrc)
try to read BITList:0 resource
Definition: MacDraft5StyleManager.cxx:1552
MacDraft5StyleManagerInternal::Pixmap::m_indices
std::vector< int > m_indices
the pixmap indices
Definition: MacDraft5StyleManager.cxx:309
MWAWGraphicStyle
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
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
MWAWPictBitmapColor::set
void set(int i, int j, MWAWColor const &v)
sets a cell contents
Definition: MWAWPictBitmap.hxx:529
MacDraft5StyleManagerInternal::Pixmap::m_pixelSize
int m_pixelSize
physical bit by image
Definition: MacDraft5StyleManager.cxx:301
MacDraft5StyleManagerInternal::State
Internal: the state of a MacDraft5StyleManager.
Definition: MacDraft5StyleManager.cxx:318
MacDraft5Parser::readLayoutDefinitions
bool readLayoutDefinitions(MWAWEntry const &entry, bool inRsrc)
try to read a LAYI:0 resource
Definition: MacDraft5Parser.cxx:2587
MWAWGraphicStyle::m_lineOpacity
float m_lineOpacity
the line opacity: 0=transparent
Definition: MWAWGraphicStyle.hxx:514
MWAWPictBitmapColor::valid
bool valid() const final
returns true if the picture is valid
Definition: MWAWPictBitmap.hxx:489
MacDraft5StyleManagerInternal::State::initArrows
void initArrows()
init the arrow list
Definition: MacDraft5StyleManager.cxx:409
MWAWRSRCParser::Version::m_minorVersion
int m_minorVersion
the minor number
Definition: MWAWRSRCParser.hxx:148
MacDraft5StyleManagerInternal::Pixmap::m_colorTable
std::vector< MWAWColor > m_colorTable
the color table
Definition: MacDraft5StyleManager.cxx:307
MWAWGraphicStyle::Pattern
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:277
MWAWSubDocument.hxx
MacDraft5StyleManager::updateLineStyle
std::string updateLineStyle(int type, int id, int dashId, MWAWGraphicStyle &style)
update the line style ( using line type and col/pat id and the dashId).
Definition: MacDraft5StyleManager.cxx:630
MacDraft5StyleManagerInternal::Pixmap::m_colors
std::vector< MWAWColor > m_colors
the colors
Definition: MacDraft5StyleManager.cxx:311
MWAWEntry::setType
void setType(std::string const &newType)
sets the type of the entry: BTEP,FDPP, BTEC, FDPC, PLC , TEXT, ...
Definition: MWAWEntry.hxx:132
MWAWRSRCParser::Version::m_versionString
std::string m_versionString
the version string
Definition: MWAWRSRCParser.hxx:152
MacDraft5StyleManagerInternal::Pixmap::m_packSize
long m_packSize
size of data in the packed state
Definition: MacDraft5StyleManager.cxx:298
MWAWParagraph.hxx
libmwaw::DebugFile::skipZone
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:113
MacDraft5StyleManagerInternal::Pixmap::m_rowBytes
int m_rowBytes
the num of bytes used to store a row
Definition: MacDraft5StyleManager.cxx:294
MacDraft5StyleManagerInternal::State::initDashs
void initDashs()
init the dashs list
Definition: MacDraft5StyleManager.cxx:504
MWAWRSRCParser.hxx
MWAWVec2::y
T y() const
second element
Definition: libmwaw_internal.hxx:673
MacDraft5StyleManager::getEndDataPosition
long getEndDataPosition() const
returns the end of data position (before the bitmap zones) if known or -1
Definition: MacDraft5StyleManager.cxx:597
libmwaw::Debug::dumpFile
bool dumpFile(librevenge::RVNGBinaryData &data, char const *fileName)
a debug function to store in a datafile in the current directory WARNING: this function erase the fil...
Definition: MWAWDebug.cxx:193
MWAWGraphicStyle::m_lineWidth
float m_lineWidth
the linewidth
Definition: MWAWGraphicStyle.hxx:508
MWAWPosition.hxx
MWAWVec2::x
T x() const
first element
Definition: libmwaw_internal.hxx:668
MacDraft5StyleManager::m_state
std::shared_ptr< MacDraft5StyleManagerInternal::State > m_state
the state
Definition: MacDraft5StyleManager.hxx:130
MacDraft5StyleManagerInternal::State::initColors
void initColors()
init the color list
Definition: MacDraft5StyleManager.cxx:444
MWAWColor::getBlue
unsigned char getBlue() const
returns the green value
Definition: libmwaw_internal.hxx:269
MacDraft5StyleManager::updateSurfaceStyle
std::string updateSurfaceStyle(int type, int id, MWAWGraphicStyle &style)
update the surface graphic style ( using surface type and id ).
Definition: MacDraft5StyleManager.cxx:686
MacDraft5Parser::readViews
bool readViews(MWAWEntry const &entry, bool inRsrc)
try to read a list of views : VIEW:1
Definition: MacDraft5Parser.cxx:2471
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
MWAWColor::isBlack
bool isBlack() const
return true if the color is black
Definition: libmwaw_internal.hxx:284
MacDraft5StyleManagerInternal::State::m_dataEnd
long m_dataEnd
the end of the main data zone
Definition: MacDraft5StyleManager.cxx:388
MacDraft5StyleManagerInternal::Pixmap::m_compCount
int m_compCount
logical components per pixels
Definition: MacDraft5StyleManager.cxx:302
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
MacDraft5StyleManagerInternal::Pixmap::m_planeBytes
long m_planeBytes
offset to the next plane
Definition: MacDraft5StyleManager.cxx:304
MWAWPictData.hxx
MWAWVec2< int >
MacDraft5StyleManager::readBitmapZones
bool readBitmapZones()
try to read the bitmap zones: end file(v4) or the zone before the rsrc part (v5)
Definition: MacDraft5StyleManager.cxx:811
MWAWGraphicListener.hxx
MWAWGraphicShape.hxx
MWAWDebug.hxx
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
MacDraft5StyleManager::getPixmap
bool getPixmap(int pId, MWAWEmbeddedObject &picture, MWAWVec2i &pictSize, MWAWColor &avColor) const
try to get a pixpat pattern
Definition: MacDraft5StyleManager.cxx:757
MacDraft5StyleManager::getColor
bool getColor(int cId, MWAWColor &color) const
tries to return the color corresponding to an id
Definition: MacDraft5StyleManager.cxx:602
MWAWGraphicStyle::m_arrows
Arrow m_arrows[2]
the two arrows corresponding to start and end extremity
Definition: MWAWGraphicStyle.hxx:553
MWAWGraphicStyle::setPattern
void setPattern(Pattern const &pat, float opacity=1)
set the pattern
Definition: MWAWGraphicStyle.hxx:426
MacDraft5StyleManagerInternal::State::m_dashList
std::vector< std::vector< float > > m_dashList
the list of dash
Definition: MacDraft5StyleManager.cxx:398
MacDraft5StyleManager.hxx
MWAWColor::black
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:245
MacDraft5Parser
the main class to read a MacDraft5 v4-v5 file
Definition: MacDraft5Parser.hxx:62
MacDraft5StyleManager::readBitmap
bool readBitmap(MWAWEntry const &entry)
try to a bitmap
Definition: MacDraft5StyleManager.cxx:1300
MWAWEntry::setId
void setId(int newId)
sets the id
Definition: MWAWEntry.hxx:169
MacDraft5StyleManagerInternal
Internal: the structures of a MacDraft5StyleManager.
Definition: MacDraft5StyleManager.cxx:61
MacDraft5StyleManagerInternal::State::getArrow
bool getArrow(int id, MWAWGraphicStyle::Arrow &arrow)
returns an arrow if possible
Definition: MacDraft5StyleManager.cxx:334
MacDraft5StyleManager::m_parser
MacDraft5Parser & m_parser
the main parser
Definition: MacDraft5StyleManager.hxx:126
MWAWGraphicStyle::Pattern::m_colors
MWAWColor m_colors[2]
the two indexed colors
Definition: MWAWGraphicStyle.hxx:361
MWAWGraphicStyle::Arrow::m_width
float m_width
the arrow width in point
Definition: MWAWGraphicStyle.hxx:133
MacDraft5StyleManager::readPixPat
bool readPixPat(MWAWEntry const &entry, bool inRsrc)
try to read a ppat resource
Definition: MacDraft5StyleManager.cxx:1378
MWAWHeader.hxx
Defines MWAWHeader (document's type, version, kind)
MacDraft5StyleManagerInternal::State::m_pixIdToPatternIdMap
std::map< int, size_t > m_pixIdToPatternIdMap
a map pixmapId to patternId map
Definition: MacDraft5StyleManager.cxx:406
MWAWEntry::end
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
MWAWGraphicStyle::m_lineColor
MWAWColor m_lineColor
the line color
Definition: MWAWGraphicStyle.hxx:516
MacDraft5StyleManagerInternal::State::initPatterns
void initPatterns()
init the patterns list
Definition: MacDraft5StyleManager.cxx:465
MacDraft5StyleManagerInternal::Pixmap::m_rect
MWAWBox2i m_rect
the pixmap rectangle
Definition: MacDraft5StyleManager.cxx:295
MacDraft5StyleManager::readDashes
bool readDashes(MWAWEntry const &entry, bool inRsrc)
try to read a list of dashs : DASH 128
Definition: MacDraft5StyleManager.cxx:1181
MWAWBox2i
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1191
MWAWRSRCParser::Version::m_extra
std::string m_extra
extra data
Definition: MWAWRSRCParser.hxx:154
MWAWGraphicStyle.hxx
MWAWPictBitmapIndexed::valid
bool valid() const final
returns true if the picture is valid
Definition: MWAWPictBitmap.hxx:385
MacDraft5Parser.hxx
MWAWPictBitmapIndexed
a bitmap of int to store indexed bitmap
Definition: MWAWPictBitmap.hxx:357
MacDraft5StyleManager::updateArrows
std::string updateArrows(int startId, int endId, MWAWGraphicStyle &style)
update the arrow style
Definition: MacDraft5StyleManager.cxx:607
MWAWColor::getRed
unsigned char getRed() const
returns the red value
Definition: libmwaw_internal.hxx:274
MacDraft5StyleManagerInternal::Pixmap
Internal and low level: a class used to read pack/unpack color pixmap of a MacDraf5StyleManager.
Definition: MacDraft5StyleManager.cxx:67
MWAWParserStatePtr
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
MacDraft5StyleManagerInternal::State::m_bitmapIdToPixmapMap
std::map< int, std::shared_ptr< Pixmap > > m_bitmapIdToPixmapMap
a map bitmapId to pixmap map
Definition: MacDraft5StyleManager.cxx:402
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
MWAWGraphicStyle::m_lineDashWidth
std::vector< float > m_lineDashWidth
the dash array: a sequence of (fullsize, emptysize)
Definition: MWAWGraphicStyle.hxx:506
MacDraft5StyleManagerInternal::State::m_colorList
std::vector< MWAWColor > m_colorList
the color list
Definition: MacDraft5StyleManager.cxx:394
MWAWEntry::valid
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
MacDraft5Parser::readPICT
bool readPICT(MWAWEntry const &entry, librevenge::RVNGBinaryData &pict)
try to read a PICT entry (in data fork)
Definition: MacDraft5Parser.cxx:2441
MWAWBox2::size
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1067
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
MacDraft5StyleManagerInternal::Pixmap::m_compSize
int m_compSize
logical bits by components
Definition: MacDraft5StyleManager.cxx:303
MWAWInputStream.hxx
MWAWColor::isWhite
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:289
MWAWRSRCParser::Version::m_countryCode
int m_countryCode
the country code
Definition: MWAWRSRCParser.hxx:156
MWAWPictBitmap.hxx
MacDraft5StyleManagerInternal::State::m_beginToBitmapEntryMap
std::map< long, MWAWEntry > m_beginToBitmapEntryMap
a map file position to entry ( used to stored intermediar zones )
Definition: MacDraft5StyleManager.cxx:400
MacDraft5StyleManager::getBitmap
bool getBitmap(int bId, MWAWEmbeddedObject &picture) const
try to get a bitmap
Definition: MacDraft5StyleManager.cxx:736
MWAWBox2< int >
MWAWPictBitmapColor
a bitmap of MWAWColor to store true color bitmap
Definition: MWAWPictBitmap.hxx:469
MacDraft5Parser::readLinks
bool readLinks(MWAWEntry const &entry, bool inRsrc)
try to read Link:128 resource
Definition: MacDraft5Parser.cxx:2674
MacDraft5StyleManagerInternal::State::getDash
bool getDash(int id, std::vector< float > &dash)
returns the dash
Definition: MacDraft5StyleManager.cxx:368
MWAWColor::getGreen
unsigned char getGreen() const
returns the green value
Definition: libmwaw_internal.hxx:279
MacDraft5StyleManagerInternal::State::m_patternList
std::vector< MWAWGraphicStyle::Pattern > m_patternList
the patterns list
Definition: MacDraft5StyleManager.cxx:396
MacDraft5StyleManager::readResources
bool readResources()
try to read the resource block: either the resource fork(v4) or last file's part (v5)
Definition: MacDraft5StyleManager.cxx:845
MacDraft5StyleManager::readOpcd
bool readOpcd(MWAWEntry const &entry, bool inRsrc)
try to read Opcd:131 resource (unknown)
Definition: MacDraft5StyleManager.cxx:1680
MacDraft5StyleManager::updatePatterns
void updatePatterns()
try to update the pattern list
Definition: MacDraft5StyleManager.cxx:776
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
MWAWParser.hxx
MWAWInputStream::read
const uint8_t * read(size_t numBytes, unsigned long &numBytesRead)
! reads numbytes data, WITHOUT using any endian or section consideration
Definition: MWAWInputStream.cxx:140
MacDraft5StyleManagerInternal::Pixmap::m_mode
int m_mode
the encoding mode ?
Definition: MacDraft5StyleManager.cxx:313
MacDraft5StyleManagerInternal::Pixmap::m_packType
int m_packType
the packing format
Definition: MacDraft5StyleManager.cxx:297
MacDraft5StyleManager::readVersion
bool readVersion(MWAWEntry &entry)
try to read a version (in data fork)
Definition: MacDraft5StyleManager.cxx:1508
MacDraft5StyleManagerInternal::State::m_rsrcBegin
long m_rsrcBegin
the begin of the rsrc data
Definition: MacDraft5StyleManager.cxx:390
MWAWGraphicStyle::Arrow
a structure used to define an arrow
Definition: MWAWGraphicStyle.hxx:56