ClarisDrawGraph.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 /*
35  * Parser to Claris Works text document ( graphic part )
36  *
37  */
38 #ifndef CLARIS_WKS_GRAPH
39 # define CLARIS_WKS_GRAPH
40 
41 #include <string>
42 #include <vector>
43 
44 #include <librevenge/librevenge.h>
45 
46 #include "libmwaw_internal.hxx"
47 
48 #include "MWAWDebug.hxx"
49 #include "MWAWInputStream.hxx"
50 #include "MWAWPosition.hxx"
51 
52 #include "ClarisWksStruct.hxx"
53 
55 {
56 struct Group;
57 struct State;
58 struct Style;
59 struct Zone;
60 struct ZoneShape;
61 struct Bitmap;
62 
63 class SubDocument;
64 }
65 
66 class ClarisDrawParser;
67 
74 {
76  friend class ClarisDrawParser;
77  friend class ClarisWksParser;
78 
79 public:
81  explicit ClarisDrawGraph(ClarisDrawParser &parser);
83  virtual ~ClarisDrawGraph();
84 
86  int version() const;
88  void resetState();
90  int numPages() const;
91 
93  shared_ptr<ClarisWksStruct::DSET> readGroupZone
94  (ClarisWksStruct::DSET const &zone, MWAWEntry const &entry, bool isLibHeader=false);
96  shared_ptr<ClarisWksStruct::DSET> readBitmapZone(ClarisWksStruct::DSET const &zone, MWAWEntry const &entry);
98  bool readTransformations();
100  void updateGroup(bool isLibrary);
102  bool isEmptyGroup(int gId) const;
103 
105  bool getSurfaceColor(ClarisDrawGraphInternal::Style const &style, MWAWColor &col) const;
106 protected:
108  bool sendBitmap(int number, MWAWPosition const &pos=MWAWPosition());
110  bool sendGroup(int number, MWAWPosition const &pos=MWAWPosition());
112  bool sendMainGroupChild(int childId, MWAWPosition const &pos=MWAWPosition());
114  void flushExtra();
115 
116  // interface with main parser
117 
119  bool sendTextZone(int number, int subZone=-1);
120 
121  //
122  // Intermediate level
123  //
124 
125  /* read a simple group */
126  shared_ptr<ClarisDrawGraphInternal::Zone> readGroupDef(MWAWEntry const &entry);
127  /* read the group data.
128 
129  \note \a beginGroupPos is only used to help debugging */
130  bool readGroupData(ClarisDrawGraphInternal::Group &group, long beginGroupPos, bool isLibHeader);
131 
132  /* read a simple graphic zone */
133  bool readShape(MWAWEntry const &entry,
135 
136  /* try to read the polygon data */
137  bool readPolygonData(shared_ptr<ClarisDrawGraphInternal::Zone> zone);
138 
140  /* try to read a bitmap zone */
141  bool readBitmapColorMap(std::vector<MWAWColor> &cMap);
142 
143  /* try to read the bitmap */
145 
146  //
147  // low level
148  //
149 
150  /* read the first zone of a group type */
152 
153  /* read some unknown data in first zone */
154  bool readGroupUnknown(ClarisDrawGraphInternal::Group &group, int zoneSz, int id);
155 
158 
161 
162 private:
165 
166 protected:
167  //
168  // data
169  //
172 
174  shared_ptr<ClarisDrawGraphInternal::State> m_state;
175 
179  shared_ptr<ClarisDrawStyleManager> m_styleManager;
180 };
181 #endif
182 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
ClarisDrawGraphInternal::ZoneUnknown::print
virtual void print(std::ostream &o) const
print the zone
Definition: ClarisDrawGraph.cxx:533
ClarisDrawParser::getFileType
int getFileType(int zoneId) const
returns the file type corresponding to a zone id
Definition: ClarisDrawParser.cxx:145
MWAWEntry
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
ClarisDrawGraphInternal::Zone::Type
Type
the list of types
Definition: ClarisDrawGraph.cxx:198
ClarisDrawGraphInternal::SubDocument::m_subId
int m_subId
the subdocument sub id
Definition: ClarisDrawGraph.cxx:702
ClarisDrawGraphInternal::Zone::~Zone
virtual ~Zone()
destructor
Definition: ClarisDrawGraph.cxx:287
ClarisDrawGraphInternal::Zone::T_Unknown
@ T_Unknown
Definition: ClarisDrawGraph.cxx:198
MWAWParagraph::m_justify
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:161
ClarisDrawGraphInternal::ZoneZone::print
virtual void print(std::ostream &o) const
print the zone
Definition: ClarisDrawGraph.cxx:459
MWAWGraphicStyle::Pattern::getUniqueColor
bool getUniqueColor(MWAWColor &col) const
check if the pattern has only one color; if so returns true...
Definition: MWAWGraphicStyle.cxx:86
ClarisDrawGraph::readPolygonData
bool readPolygonData(shared_ptr< ClarisDrawGraphInternal::Zone > zone)
Definition: ClarisDrawGraph.cxx:1942
ClarisDrawGraph::isEmptyGroup
bool isEmptyGroup(int gId) const
returns true if a group does not exist or is empty
Definition: ClarisDrawGraph.cxx:782
ClarisDrawGraph::ClarisDrawGraph
ClarisDrawGraph(ClarisDrawGraph const &orig)
MWAWGraphicStyle::hasSurfaceColor
bool hasSurfaceColor() const
returns true if the surface is defined
Definition: MWAWGraphicStyle.hxx:288
ClarisDrawGraphInternal::Group::~Group
virtual ~Group()
destructor
Definition: ClarisDrawGraph.cxx:625
ClarisDrawGraphInternal::ZonePict::ZonePict
ZonePict(Zone const &z)
constructor
Definition: ClarisDrawGraph.cxx:343
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
ClarisDrawGraphInternal::CurvePoint::m_controlPoints
MWAWVec2f m_controlPoints[2]
the control point: previous, next
Definition: ClarisDrawGraph.cxx:103
ClarisDrawGraphInternal::ZoneUnknown::ZoneUnknown
ZoneUnknown(Zone const &z)
construtor
Definition: ClarisDrawGraph.cxx:527
MWAWVec2f
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:785
ClarisDrawGraph::~ClarisDrawGraph
virtual ~ClarisDrawGraph()
destructor
Definition: ClarisDrawGraph.cxx:748
ClarisDrawGraphInternal::Zone::Zone
Zone()
constructor
Definition: ClarisDrawGraph.cxx:203
ClarisWksStruct.hxx
MWAWPictBitmapIndexed::setColors
void setColors(std::vector< MWAWColor > const &cols)
sets the array of indexed colors
Definition: MWAWPictBitmap.hxx:432
libmwaw::DebugFile::addDelimiter
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
ClarisDrawGraphInternal::Zone::getZoneId
virtual int getZoneId() const
returns the id of the reference zone
Definition: ClarisDrawGraph.cxx:269
ClarisDrawGraphInternal::Style::~Style
virtual ~Style()
destructor
Definition: ClarisDrawGraph.cxx:191
MWAWParser::getGraphicListener
MWAWGraphicListenerPtr & getGraphicListener()
returns the graphic listener
Definition: MWAWParser.hxx:130
MWAWGraphicStyle::setSurfaceColor
void setSurfaceColor(MWAWColor const &col, float opacity=1)
set the surface color
Definition: MWAWGraphicStyle.hxx:282
ClarisDrawGraphInternal::Style
Internal: the structure used to store a style of a ClarisDrawGraph.
Definition: ClarisDrawGraph.cxx:135
ClarisDrawGraphInternal::SubDocument::operator=
SubDocument & operator=(SubDocument const &orig)
ClarisDrawGraph::readGroupUnknown
bool readGroupUnknown(ClarisDrawGraphInternal::Group &group, int zoneSz, int id)
Definition: ClarisDrawGraph.cxx:1881
ClarisWksStruct::readStructZone
bool readStructZone(MWAWParserState &parserState, char const *zoneName, bool hasEntete)
try to read a structured zone with unknown content
Definition: ClarisWksStruct.cxx:129
MWAWGraphicStyle::setShadowColor
void setShadowColor(MWAWColor const &col, float opacity=1)
set the shadow color
Definition: MWAWGraphicStyle.hxx:325
MWAWPosition::setRelativePosition
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:221
ClarisDrawGraphInternal::ZoneZone::getType
virtual Type getType() const
return the main type Zone
Definition: ClarisDrawGraph.cxx:470
ClarisDrawGraph::m_mainParser
ClarisDrawParser * m_mainParser
the main parser;
Definition: ClarisDrawGraph.hxx:177
MWAWGraphicShape::pie
static MWAWGraphicShape pie(MWAWBox2f const &box, MWAWBox2f const &circleBox, MWAWVec2f const &angles)
static constructor to create a pie
Definition: MWAWGraphicShape.hxx:130
MWAWGraphicShape::translate
void translate(MWAWVec2f const &delta)
translate all the coordinate by delta
Definition: MWAWGraphicShape.cxx:351
MWAWGraphicShape::m_path
std::vector< PathData > m_path
the list of path component
Definition: MWAWGraphicShape.hxx:203
ClarisDrawGraphInternal::ZonePict
Internal: the structure used to store a PICT.
Definition: ClarisDrawGraph.cxx:341
MWAWPictBitmapIndexed::set
void set(int i, int j, int v)
sets a cell contents
Definition: MWAWPictBitmap.hxx:411
ClarisWksStruct::DSET::Child::m_type
ChildType m_type
the type
Definition: ClarisWksStruct.hxx:229
ClarisDrawGraph::readBitmapZone
shared_ptr< ClarisWksStruct::DSET > readBitmapZone(ClarisWksStruct::DSET const &zone, MWAWEntry const &entry)
reads the zone Bitmap DSET
Definition: ClarisDrawGraph.cxx:1050
MWAWGraphicStyle::Arrow::plain
static Arrow plain()
returns a basic plain arrow
Definition: MWAWGraphicStyle.hxx:69
ClarisDrawParser.hxx
ClarisDrawGraphInternal::Transformation::operator<<
friend std::ostream & operator<<(std::ostream &o, Transformation const &trans)
Definition: ClarisDrawGraph.cxx:115
MWAWPosition::order
int order() const
returns background/foward order
Definition: MWAWPosition.hxx:243
MWAWGraphicStyle::m_surfaceOpacity
float m_surfaceOpacity
true if the surface has some color
Definition: MWAWGraphicStyle.hxx:387
ClarisDrawGraphInternal::ZoneZone::getChild
virtual ClarisWksStruct::DSET::Child getChild() const
return a child corresponding to this zone
Definition: ClarisDrawGraph.cxx:491
ClarisDrawGraph::m_state
shared_ptr< ClarisDrawGraphInternal::State > m_state
the state
Definition: ClarisDrawGraph.hxx:174
ClarisDrawGraphInternal::Group::isEmpty
bool isEmpty() const
returns true if the group is empty
Definition: ClarisDrawGraph.cxx:585
MWAWColor::white
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:231
ClarisDrawGraphInternal::ZoneZone::m_subId
int m_subId
the zoneSubId: can be page/column/frame linked number
Definition: ClarisDrawGraph.cxx:505
ClarisDrawGraphInternal::ZoneShape::m_type
Type m_type
the sub type
Definition: ClarisDrawGraph.cxx:329
ClarisDrawGraphInternal::Group::m_zones
std::vector< shared_ptr< Zone > > m_zones
the list of child zones
Definition: ClarisDrawGraph.cxx:617
libmwaw::BottomBit
@ BottomBit
Definition: libmwaw_internal.hxx:168
ClarisDrawGraphInternal::ZoneZone::m_frameLast
bool m_frameLast
true if this is the last frame of a frame zone
Definition: ClarisDrawGraph.cxx:511
ClarisDrawGraphInternal::Transformation::m_originalSize
MWAWVec2f m_originalSize
the original size
Definition: ClarisDrawGraph.cxx:130
ClarisWksStruct::DSET::Child::m_id
int m_id
the identificator
Definition: ClarisWksStruct.hxx:231
MWAWPosition::WBackground
@ WBackground
Definition: MWAWPosition.hxx:53
ClarisDrawGraphInternal::SubDocument::parse
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type)
the parser function
Definition: ClarisDrawGraph.cxx:710
ClarisDrawGraphInternal::ZonePict::print
virtual void print(std::ostream &o) const
print the data
Definition: ClarisDrawGraph.cxx:349
MWAWGraphicShape
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:46
ClarisDrawGraphInternal::Zone::T_Connector
@ T_Connector
Definition: ClarisDrawGraph.cxx:200
MWAWColor
the class to store a color
Definition: libmwaw_internal.hxx:182
MWAWEmbeddedObject
small class use to define a embedded object
Definition: libmwaw_internal.hxx:425
ClarisDrawGraphInternal::Group::m_zonesToSend
std::vector< shared_ptr< Zone > > m_zonesToSend
the list of block to send
Definition: ClarisDrawGraph.cxx:622
MWAWGraphicShape::line
static MWAWGraphicShape line(MWAWVec2f const &orign, MWAWVec2f const &dest)
static constructor to create a line
Definition: MWAWGraphicShape.cxx:227
ClarisDrawGraphInternal::Bitmap::m_bitmapSize
MWAWVec2i m_bitmapSize
the bitmap size
Definition: ClarisDrawGraph.cxx:408
ClarisDrawGraphInternal::Bitmap::m_bitmapRowSize
int m_bitmapRowSize
the bitmap row size in the file ( with potential alignment)
Definition: ClarisDrawGraph.cxx:410
ClarisWksStruct::DSET::Child
structure used to define the child of a DSET structure
Definition: ClarisWksStruct.hxx:182
MWAWGraphicStyle::Pattern::getAverageColor
bool getAverageColor(MWAWColor &col) const
return the average color
Definition: MWAWGraphicStyle.cxx:101
ClarisDrawGraphInternal::ZoneZone::m_wrappingSep
int m_wrappingSep
the wrapping separator
Definition: ClarisDrawGraph.cxx:515
ClarisDrawGraphInternal::CurvePoint::m_pos
MWAWVec2f m_pos
the main position
Definition: ClarisDrawGraph.cxx:101
ClarisDrawGraphInternal::ZoneUnknown::getType
virtual Type getType() const
return the main type
Definition: ClarisDrawGraph.cxx:538
MWAWParagraph
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
ClarisDrawGraphInternal::Bitmap::Bitmap
Bitmap(ClarisWksStruct::DSET const &dset=ClarisWksStruct::DSET())
constructor
Definition: ClarisDrawGraph.cxx:390
ClarisDrawGraphInternal::ZoneZone::getZoneId
virtual int getZoneId() const
returns the id of the reference zone
Definition: ClarisDrawGraph.cxx:485
ClarisDrawGraphInternal::ZoneUnknown::~ZoneUnknown
~ZoneUnknown()
destructor
Definition: ClarisDrawGraph.cxx:567
ClarisDrawGraphInternal::ZoneShape::print
virtual void print(std::ostream &o) const
print the data
Definition: ClarisDrawGraph.cxx:299
MWAWPosition::WDynamic
@ WDynamic
Definition: MWAWPosition.hxx:53
ClarisDrawGraphInternal::ZoneShape::ZoneShape
ZoneShape(Zone const &z, Type type)
constructor
Definition: ClarisDrawGraph.cxx:293
ClarisDrawGraphInternal::Transformation
Internal: the structure used to store a transformation ClarisDrawGraph.
Definition: ClarisDrawGraph.cxx:109
ClarisDrawGraphInternal::SubDocument::operator==
virtual bool operator==(MWAWSubDocument const &doc) const
operator!==
Definition: ClarisDrawGraph.cxx:689
ClarisDrawParser::sendTextZone
bool sendTextZone(int number, int subZone=-1)
sends a text zone
Definition: ClarisDrawParser.cxx:154
MWAWBorder::m_width
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:357
ClarisDrawGraphInternal::ZoneShape::getSubType
virtual Type getSubType() const
return the sub type
Definition: ClarisDrawGraph.cxx:310
ClarisDrawGraphInternal::Style::operator<<
friend std::ostream & operator<<(std::ostream &o, Style const &st)
operator<<
Definition: ClarisDrawGraph.cxx:157
ClarisDrawGraph::resetState
void resetState()
resets the current state
Definition: ClarisDrawGraph.cxx:756
MWAWParserStatePtr
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:509
ClarisDrawGraph::readBitmapData
bool readBitmapData(ClarisDrawGraphInternal::Bitmap &zone)
Definition: ClarisDrawGraph.cxx:2090
ClarisDrawGraphInternal::Zone::m_style
Style m_style
the style
Definition: ClarisDrawGraph.cxx:284
ClarisDrawGraph::readGroupData
bool readGroupData(ClarisDrawGraphInternal::Group &group, long beginGroupPos, bool isLibHeader)
Definition: ClarisDrawGraph.cxx:1364
ClarisDrawGraphInternal::ZoneUnknown::m_type
Type m_type
the sub type
Definition: ClarisDrawGraph.cxx:562
ClarisDrawGraphInternal::Zone::m_box
MWAWBox2f m_box
the bdbox
Definition: ClarisDrawGraph.cxx:280
MWAWPosition::Wrapping
Wrapping
an enum used to define the wrapping: none, ...
Definition: MWAWPosition.hxx:53
ClarisDrawGraph::sendGroup
bool sendGroup(int number, MWAWPosition const &pos=MWAWPosition())
sends the zone data to the listener (if it exists )
Definition: ClarisDrawGraph.cxx:2253
ClarisDrawGraphInternal::Zone::m_flag
int m_flag
the zone main flag
Definition: ClarisDrawGraph.cxx:276
libmwaw::DebugFile::addNote
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
ClarisDrawGraphInternal::Zone::T_Oval
@ T_Oval
Definition: ClarisDrawGraph.cxx:200
ClarisDrawGraphInternal::Style::m_surfacePatternType
int m_surfacePatternType
the surface pattern type
Definition: ClarisDrawGraph.cxx:188
MWAWSubDocument
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
MWAWGraphicStyle
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
MWAWGraphicShape::m_bdBox
MWAWBox2f m_bdBox
the shape bdbox
Definition: MWAWGraphicShape.hxx:193
ClarisDrawGraphInternal::State::State
State()
constructor
Definition: ClarisDrawGraph.cxx:633
ClarisDrawGraphInternal::ZoneZone
Internal: structure to store a link to a zone of a ClarisDrawGraph.
Definition: ClarisDrawGraph.cxx:422
ClarisWksStruct
namespace to store the main structure which appears in a ClarisDraw/ClarisWorks file
Definition: ClarisWksStruct.cxx:51
ClarisDrawGraphInternal::Group::operator<<
friend std::ostream & operator<<(std::ostream &o, Group const &doc)
operator<<
Definition: ClarisDrawGraph.cxx:590
MWAWPictBitmapColor::set
void set(int i, int j, MWAWColor const &v)
sets a cell contents
Definition: MWAWPictBitmap.hxx:510
ClarisDrawGraphInternal::Zone::operator<<
friend std::ostream & operator<<(std::ostream &o, Zone const &zone)
operator<<
Definition: ClarisDrawGraph.cxx:207
ClarisDrawGraphInternal::SubDocument::SubDocument
SubDocument(ClarisDrawGraph &pars, MWAWInputStreamPtr input, std::string const &measure)
constructor for measure
Definition: ClarisDrawGraph.cxx:669
MWAWPosition::setOrder
void setOrder(int ord) const
set background/foward order
Definition: MWAWPosition.hxx:248
MWAWPosition::Unknown
@ Unknown
Definition: MWAWPosition.hxx:51
ClarisDrawGraph::readBitmapColorMap
bool readBitmapColorMap(std::vector< MWAWColor > &cMap)
Definition: ClarisDrawGraph.cxx:2043
ClarisDrawGraph::readTransformations
bool readTransformations()
read the transformations
Definition: ClarisDrawGraph.cxx:874
MWAWGraphicStyle::m_lineOpacity
float m_lineOpacity
the line opacity: 0=transparent
Definition: MWAWGraphicStyle.hxx:381
ClarisDrawGraphInternal::Zone::m_page
int m_page
the page (checkme: or frame linked )
Definition: ClarisDrawGraph.cxx:278
ClarisDrawGraphInternal::State::m_numPages
int m_numPages
the number of pages
Definition: ClarisDrawGraph.cxx:641
ClarisDrawGraphInternal::Transformation::m_rotate
float m_rotate
the rotation
Definition: ClarisDrawGraph.cxx:128
ClarisDrawGraphInternal::Zone::T_Arc
@ T_Arc
Definition: ClarisDrawGraph.cxx:200
ClarisDrawGraphInternal::State::m_masterId
int m_masterId
the master group id ( in a draw file )
Definition: ClarisDrawGraph.cxx:645
ClarisDrawGraphInternal::Zone::m_ordering
int m_ordering
the ordering
Definition: ClarisDrawGraph.cxx:282
MWAWGraphicStyle::Pattern
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:171
MWAWSubDocument.hxx
ClarisDrawGraph.hxx
MWAWPosition::size
MWAWVec2f const & size() const
returns the frame size
Definition: MWAWPosition.hxx:119
ClarisDrawGraphInternal::ZonePict::m_type
Type m_type
the sub type
Definition: ClarisDrawGraph.cxx:378
MWAWGraphicShape::Polygon
@ Polygon
Definition: MWAWGraphicShape.hxx:49
ClarisDrawGraphInternal::Zone::T_Zone
@ T_Zone
Definition: ClarisDrawGraph.cxx:198
ClarisDrawGraphInternal::ZoneZone::m_subType
Type m_subType
the file type ( zone or zone2 )
Definition: ClarisDrawGraph.cxx:501
ClarisDrawGraphInternal::ZoneZone::ZoneZone
ZoneZone(Zone const &z, Type fileType)
constructor
Definition: ClarisDrawGraph.cxx:424
ClarisDrawGraphInternal::ZonePict::getNumData
virtual int getNumData() const
return the number of data in a file
Definition: ClarisDrawGraph.cxx:364
MWAWGraphicShape::Rectangle
@ Rectangle
Definition: MWAWGraphicShape.hxx:49
ClarisDrawGraphInternal::Transformation::m_values
float m_values[2]
other values
Definition: ClarisDrawGraph.cxx:132
libmwaw::SubDocumentType
SubDocumentType
Definition: libmwaw_internal.hxx:178
ClarisWksStruct::DSET::Child::m_box
MWAWBox2f m_box
the bdbox
Definition: ClarisWksStruct.hxx:237
ClarisDrawStyleManager.hxx
ClarisDrawGraphInternal::ZoneZone::m_frameSubId
int m_frameSubId
the frame sub id (for a linked frame)
Definition: ClarisDrawGraph.cxx:509
ClarisDrawGraphInternal::ZoneZone::m_id
int m_id
the zoneId
Definition: ClarisDrawGraph.cxx:503
ClarisDrawGraph::readGroupHeader
bool readGroupHeader(ClarisDrawGraphInternal::Group &group)
Definition: ClarisDrawGraph.cxx:1776
MWAWParagraph::JustificationCenter
@ JustificationCenter
Definition: MWAWParagraph.hxx:87
ClarisDrawGraphInternal::Zone::T_Shape
@ T_Shape
Definition: ClarisDrawGraph.cxx:198
ClarisWksStruct::DSET::m_parsed
bool m_parsed
a flag to know if the entry is sent or not to the listener
Definition: ClarisWksStruct.hxx:177
ClarisDrawGraphInternal::Bitmap::operator<<
friend std::ostream & operator<<(std::ostream &o, Bitmap const &bt)
operator<<
Definition: ClarisDrawGraph.cxx:397
ClarisDrawGraphInternal::Zone::T_Rect
@ T_Rect
Definition: ClarisDrawGraph.cxx:200
MWAWGraphicStyle::m_surfaceColor
MWAWColor m_surfaceColor
the surface color
Definition: MWAWGraphicStyle.hxx:385
ClarisDrawGraphInternal::Bitmap
Internal: structure to store a bitmap of a ClarisDrawGraph.
Definition: ClarisDrawGraph.cxx:388
MWAWParagraph.hxx
libmwaw::DebugFile::skipZone
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:105
ClarisDrawGraphInternal::ZoneShape::m_shape
MWAWGraphicShape m_shape
the shape
Definition: ClarisDrawGraph.cxx:331
MWAWGraphicListenerPtr
shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:501
ClarisDrawGraphInternal::Style::m_wrapping
int m_wrapping
the wrap type
Definition: ClarisDrawGraph.cxx:186
ClarisDrawGraphInternal::Transformation::Transformation
Transformation()
constructor
Definition: ClarisDrawGraph.cxx:111
libmwaw_internal.hxx
MWAWGraphicStyle::m_lineWidth
float m_lineWidth
the linewidth
Definition: MWAWGraphicStyle.hxx:375
ClarisDrawGraphInternal::Zone::getBdBox
MWAWBox2f getBdBox() const
return the zone bdbox
Definition: ClarisDrawGraph.cxx:233
MWAWPosition.hxx
MWAWPosition::setSize
void setSize(MWAWVec2f const &sz)
sets the frame size
Definition: MWAWPosition.hxx:199
MWAWEntry::setEnd
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:66
ClarisDrawGraphInternal::ZonePict::getChild
virtual ClarisWksStruct::DSET::Child getChild() const
return a child corresponding to this zone
Definition: ClarisDrawGraph.cxx:369
ClarisDrawGraphInternal::State::m_frameId
int m_frameId
the actuel frame id
Definition: ClarisDrawGraph.cxx:655
MWAWPosition
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
ClarisDrawGraph::version
int version() const
returns the file version
Definition: ClarisDrawGraph.cxx:751
MWAWBorder
a border
Definition: libmwaw_internal.hxx:314
ClarisWksStruct::DSET::m_fileType
int m_fileType
the type ( 0: text, -1: graphic, ...)
Definition: ClarisWksStruct.hxx:146
ClarisDrawGraph::sendMainGroupChild
bool sendMainGroupChild(int childId, MWAWPosition const &pos=MWAWPosition())
sends the ith child of the root (if it exists )
Definition: ClarisDrawGraph.cxx:2162
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:56
MWAWGraphicShape::m_vertices
std::vector< MWAWVec2f > m_vertices
the list of vertices for lines or polygons
Definition: MWAWGraphicShape.hxx:201
ClarisDrawGraphInternal::CurvePoint::m_type
int m_type
the point type
Definition: ClarisDrawGraph.cxx:105
ClarisDrawGraphInternal::ZoneUnknown
Internal: structure used to store an unknown zone of a ClarisDrawGraph.
Definition: ClarisDrawGraph.cxx:525
ClarisDrawGraphInternal::ZoneShape::getNumData
virtual int getNumData() const
return the number of data
Definition: ClarisDrawGraph.cxx:315
ClarisDrawGraphInternal::Zone::T_RectOval
@ T_RectOval
Definition: ClarisDrawGraph.cxx:200
ClarisDrawGraphInternal::ZoneZone::m_flags
int m_flags[9]
flag
Definition: ClarisDrawGraph.cxx:517
M_PI
#define M_PI
Definition: libmwaw_internal.hxx:49
MWAWPosition::m_wrapping
Wrapping m_wrapping
Wrapping.
Definition: MWAWPosition.hxx:262
MWAWEntry::length
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:82
MWAWGraphicStyle::setBorders
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWGraphicStyle.cxx:172
MWAWGraphicShape::Path
@ Path
Definition: MWAWGraphicShape.hxx:49
MWAWGraphicShape::m_type
Type m_type
the type
Definition: MWAWGraphicShape.hxx:191
libmwaw::RightBit
@ RightBit
Definition: libmwaw_internal.hxx:168
ClarisDrawGraphInternal::ZoneZone::isLinked
bool isLinked() const
check if we need to send the frame is linked to another frmae
Definition: ClarisDrawGraph.cxx:437
ClarisDrawGraphInternal::State::isEmptyGroup
bool isEmptyGroup(int gId) const
returns true if a group does not exist or is empty
Definition: ClarisDrawGraph.cxx:636
MWAWVec2< float >
ClarisWksStruct::DSET::C_Graphic
@ C_Graphic
Definition: ClarisWksStruct.hxx:67
ClarisDrawGraphInternal::Zone::T_Pict
@ T_Pict
Definition: ClarisDrawGraph.cxx:198
MWAWGraphicListener.hxx
ClarisDrawGraphInternal::ZoneUnknown::getNumData
virtual int getNumData() const
return the number of data
Definition: ClarisDrawGraph.cxx:548
MWAWPictMac.hxx
MWAWGraphicShape.hxx
MWAWDebug.hxx
ClarisDrawGraphInternal::SubDocument::operator!=
virtual bool operator!=(MWAWSubDocument const &doc) const
operator!=
Definition: ClarisDrawGraph.cxx:676
MWAWPosition::setOrigin
void setOrigin(MWAWVec2f const &orig)
sets the frame origin
Definition: MWAWPosition.hxx:194
MWAWEntry::begin
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
MWAWEntry::setLength
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:61
MWAWGraphicShape::rotate
MWAWGraphicShape rotate(float angle, MWAWVec2f const &center) const
return a new shape corresponding to a rotation from center.
Definition: MWAWGraphicShape.cxx:377
MWAWGraphicStyle::m_arrows
Arrow m_arrows[2]
the two arrows corresponding to start and end extremity
Definition: MWAWGraphicStyle.hxx:430
MWAWGraphicStyle::setPattern
void setPattern(Pattern const &pat, float opacity=1)
set the pattern
Definition: MWAWGraphicStyle.hxx:293
ClarisWksStruct::DSET::m_page
int m_page
the page (if known)
Definition: ClarisWksStruct.hxx:149
MWAWColor::black
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:226
MWAWBox2f
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1134
ClarisWksStruct::DSET
main structure which correspond to a document part
Definition: ClarisWksStruct.hxx:58
ClarisDrawGraphInternal::State::m_groupSet
std::set< int > m_groupSet
stack of send group(used avoid infinite loop-
Definition: ClarisDrawGraph.cxx:657
ClarisDrawGraphInternal::Zone::T_Poly
@ T_Poly
Definition: ClarisDrawGraph.cxx:200
ClarisDrawGraphInternal::ZoneZone::m_frameId
int m_frameId
the frame id (for a linked frame)
Definition: ClarisDrawGraph.cxx:507
MWAWGraphicShape::Pie
@ Pie
Definition: MWAWGraphicShape.hxx:49
MWAWGraphicShape::m_cornerWidth
MWAWVec2f m_cornerWidth
the rectangle round corner
Definition: MWAWGraphicShape.hxx:197
ClarisWksStruct::readIntZone
bool readIntZone(MWAWParserState &parserState, char const *zoneName, bool hasEntete, int intSz, std::vector< int > &res)
try to read a int structured zone where fSz to the int size: 1(int8), 2(int16), 4(int32)
Definition: ClarisWksStruct.cxx:53
ClarisDrawGraphInternal::Zone::getNumData
virtual int getNumData() const
return the number of data to define this zone in the file
Definition: ClarisDrawGraph.cxx:255
MWAWPosition::Char
@ Char
Definition: MWAWPosition.hxx:51
ClarisDrawGraphInternal::Zone::print
virtual void print(std::ostream &) const
print the data contains
Definition: ClarisDrawGraph.cxx:260
ClarisDrawGraphInternal::CurvePoint::operator<<
friend std::ostream & operator<<(std::ostream &o, CurvePoint const &pt)
operator<<
Definition: ClarisDrawGraph.cxx:76
ClarisDrawGraphInternal::Group::removeChild
virtual void removeChild(int cId, bool normalChild)
remove a child from a list.
Definition: ClarisDrawGraph.cxx:599
ClarisWksStruct::DSET::DSET
DSET()
constructor
Definition: ClarisWksStruct.hxx:70
MWAWGraphicStyle::Pattern::m_colors
MWAWColor m_colors[2]
the two indexed colors
Definition: MWAWGraphicStyle.hxx:245
ClarisDrawGraphInternal::Zone::getSubType
virtual Type getSubType() const
return the subtype
Definition: ClarisDrawGraph.cxx:250
ClarisDrawGraphInternal::ZonePict::~ZonePict
virtual ~ZonePict()
destructor
Definition: ClarisDrawGraph.cxx:383
ClarisDrawGraph::readGroupDef
shared_ptr< ClarisDrawGraphInternal::Zone > readGroupDef(MWAWEntry const &entry)
Definition: ClarisDrawGraph.cxx:1168
ClarisDrawGraph::sendTextZone
bool sendTextZone(int number, int subZone=-1)
sends a text box content (via the main parser )
Definition: ClarisDrawGraph.cxx:777
MWAWInputStreamPtr
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
ClarisDrawGraphInternal::SubDocument::~SubDocument
virtual ~SubDocument()
destructor
Definition: ClarisDrawGraph.cxx:673
MWAWEntry::end
long end() const
returns the end offset
Definition: MWAWEntry.hxx:77
libmwaw::DOC_TEXT_BOX
@ DOC_TEXT_BOX
Definition: libmwaw_internal.hxx:178
MWAWGraphicStyle::m_lineColor
MWAWColor m_lineColor
the line color
Definition: MWAWGraphicStyle.hxx:383
ClarisDrawGraphInternal::ZoneZone::getSubType
virtual Type getSubType() const
return the sub type Zone
Definition: ClarisDrawGraph.cxx:475
ClarisDrawGraph::numPages
int numPages() const
returns the number of pages
Definition: ClarisDrawGraph.cxx:761
ClarisDrawGraphInternal::ZoneUnknown::getChild
virtual ClarisWksStruct::DSET::Child getChild() const
return a child corresponding to this zone
Definition: ClarisDrawGraph.cxx:553
MWAWGraphicStyle::m_frameName
std::string m_frameName
the frame name
Definition: MWAWGraphicStyle.hxx:425
ClarisDrawGraphInternal
Internal: the structures of a ClarisDrawGraph.
Definition: ClarisDrawGraph.cxx:68
MWAWGraphicShape::Line
@ Line
Definition: MWAWGraphicShape.hxx:49
libmwaw::LeftBit
@ LeftBit
Definition: libmwaw_internal.hxx:168
ClarisDrawGraphInternal::Zone::T_Line
@ T_Line
Definition: ClarisDrawGraph.cxx:200
ClarisDrawGraphInternal::ZoneShape::getChild
virtual ClarisWksStruct::DSET::Child getChild() const
return a child corresponding to this zone
Definition: ClarisDrawGraph.cxx:320
ClarisDrawGraphInternal::State::m_pageDimensions
MWAWVec2f m_pageDimensions
the page dimension if known (in point)
Definition: ClarisDrawGraph.cxx:643
MWAWBox2::center
MWAWVec2< T > center() const
the box center
Definition: libmwaw_internal.hxx:1013
MWAWGraphicStyle.hxx
ClarisWksParser
the main class to read a Claris Works file
Definition: ClarisWksParser.hxx:68
ClarisDrawGraphInternal::ZonePict::getSubType
virtual Type getSubType() const
return the sub type
Definition: ClarisDrawGraph.cxx:359
MWAWPictBitmapIndexed
a bitmap of int to store indexed bitmap
Definition: MWAWPictBitmap.hxx:348
ClarisWksStruct::DSET::m_numData
long m_numData
the number of header
Definition: ClarisWksStruct.hxx:137
ClarisDrawGraphInternal::ZoneShape::getType
virtual Type getType() const
return the main type
Definition: ClarisDrawGraph.cxx:305
ClarisDrawGraph
the main class to read the graphic part of Claris Works file
Definition: ClarisDrawGraph.hxx:74
MWAWGraphicStyle::m_frameNextName
std::string m_frameNextName
the frame next name (if there is a link)
Definition: MWAWGraphicStyle.hxx:427
ClarisDrawGraphInternal::Bitmap::m_numBytesPerPixel
int m_numBytesPerPixel
the number of bite by pixel
Definition: ClarisDrawGraph.cxx:406
ClarisDrawGraphInternal::Zone::getType
virtual Type getType() const
return the main type
Definition: ClarisDrawGraph.cxx:245
ClarisWksStruct::DSET::m_dataSz
long m_dataSz
the data size
Definition: ClarisWksStruct.hxx:139
ClarisDrawGraph::readGroupZone
shared_ptr< ClarisWksStruct::DSET > readGroupZone(ClarisWksStruct::DSET const &zone, MWAWEntry const &entry, bool isLibHeader=false)
reads the zone Group DSET
Definition: ClarisDrawGraph.cxx:959
ClarisDrawGraphInternal::State
Internal: the state of a ClarisDrawGraph.
Definition: ClarisDrawGraph.cxx:631
ClarisDrawGraphInternal::ZoneShape
Internal: small class to store a basic graphic zone of a ClarisDrawGraph.
Definition: ClarisDrawGraph.cxx:291
MWAWPosition::Page
@ Page
Definition: MWAWPosition.hxx:51
ClarisWksStruct::DSET::C_Zone
@ C_Zone
Definition: ClarisWksStruct.hxx:67
ClarisDrawGraphInternal::ZonePict::m_entries
MWAWEntry m_entries[2]
the picture entry followed by a ps entry or ole entry ( if defined)
Definition: ClarisDrawGraph.cxx:380
ClarisDrawGraph::readShape
bool readShape(MWAWEntry const &entry, ClarisDrawGraphInternal::ZoneShape &zone)
Definition: ClarisDrawGraph.cxx:1565
ClarisDrawGraphInternal::SubDocument::m_measure
std::string m_measure
the measure
Definition: ClarisDrawGraph.cxx:704
libmwaw::TopBit
@ TopBit
Definition: libmwaw_internal.hxx:168
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:373
MWAWBox2::resizeFromCenter
void resizeFromCenter(MWAWVec2< T > const &sz)
resize the box keeping the center
Definition: libmwaw_internal.hxx:1047
MWAWPosition::origin
MWAWVec2f const & origin() const
return the frame origin
Definition: MWAWPosition.hxx:114
MWAWEntry::valid
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
ClarisDrawGraphInternal::ZoneZone::isANote
bool isANote() const
return true if the zone is a note
Definition: ClarisDrawGraph.cxx:432
ClarisDrawGraphInternal::SubDocument::m_graphParser
ClarisDrawGraph * m_graphParser
the graph parser
Definition: ClarisDrawGraph.cxx:696
ClarisDrawGraphInternal::ZoneUnknown::getSubType
virtual Type getSubType() const
return the sub type
Definition: ClarisDrawGraph.cxx:543
MWAWListener.hxx
ClarisDrawGraph::operator=
ClarisDrawGraph & operator=(ClarisDrawGraph const &orig)
MWAWBox2::size
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1008
MWAWGraphicShape::Arc
@ Arc
Definition: MWAWGraphicShape.hxx:49
ClarisDrawGraphInternal::State::m_bitmapMap
std::map< int, shared_ptr< Bitmap > > m_bitmapMap
a map zoneId -> group
Definition: ClarisDrawGraph.cxx:651
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
ClarisDrawGraphInternal::Zone::m_zoneType
int m_zoneType
the zone type
Definition: ClarisDrawGraph.cxx:274
ClarisDrawGraph::m_styleManager
shared_ptr< ClarisDrawStyleManager > m_styleManager
the style manager
Definition: ClarisDrawGraph.hxx:179
ClarisDrawGraphInternal::Group::Group
Group(ClarisWksStruct::DSET const &dset=ClarisWksStruct::DSET())
constructor
Definition: ClarisDrawGraph.cxx:575
ClarisDrawGraphInternal::Group::m_hasMainZone
bool m_hasMainZone
a flag to know if this zone contains or no the call to zone 1
Definition: ClarisDrawGraph.cxx:620
MWAWInputStream.hxx
MWAWGraphicShape::Circle
@ Circle
Definition: MWAWGraphicShape.hxx:49
MWAWColor::isWhite
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:270
ClarisWksStruct::DSET::m_pageDimension
MWAWVec2f m_pageDimension
the page dimension (if know)
Definition: ClarisWksStruct.hxx:153
ClarisDrawParser
the main class to read a ClarisDraw v1 file
Definition: ClarisDrawParser.hxx:64
ClarisDrawGraph::m_parserState
MWAWParserStatePtr m_parserState
the parser state
Definition: ClarisDrawGraph.hxx:171
MWAWPosition::WNone
@ WNone
Definition: MWAWPosition.hxx:53
MWAWFont.hxx
MWAWPosition::m_anchorTo
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:254
ClarisDrawGraphInternal::SubDocument
Internal: the subdocument of a ClarisDrawGraph.
Definition: ClarisDrawGraph.cxx:663
MWAWGraphicStyle::m_rotate
float m_rotate
the rotation
Definition: MWAWGraphicStyle.hxx:421
ClarisDrawParser::getPageLeftTop
MWAWVec2f getPageLeftTop()
returns the page left top point ( in inches)
Definition: ClarisDrawParser.cxx:159
MWAWPictBitmap.hxx
ClarisDrawGraphInternal::SubDocument::SubDocument
SubDocument(SubDocument const &orig)
ClarisDrawGraphInternal::CurvePoint::CurvePoint
CurvePoint(MWAWVec2f point=MWAWVec2f())
Definition: ClarisDrawGraph.cxx:71
ClarisDrawGraphInternal::ZoneZone::m_transformationId
int m_transformationId
the transformation id
Definition: ClarisDrawGraph.cxx:513
ClarisDrawGraphInternal::ZoneZone::~ZoneZone
virtual ~ZoneZone()
destructor
Definition: ClarisDrawGraph.cxx:520
ClarisDrawGraph::ClarisDrawGraph
ClarisDrawGraph(ClarisDrawParser &parser)
constructor
Definition: ClarisDrawGraph.cxx:742
ClarisDrawGraphInternal::ZoneZone::addFrameName
bool addFrameName(MWAWGraphicStyle &style) const
add the frame name if needed
Definition: ClarisDrawGraph.cxx:442
MWAWBox2< float >
ClarisDrawGraphInternal::Zone::getChild
virtual ClarisWksStruct::DSET::Child getChild() const
return a child corresponding to this zone
Definition: ClarisDrawGraph.cxx:262
MWAWPictBitmapColor
a bitmap of MWAWColor to store true color bitmap
Definition: MWAWPictBitmap.hxx:455
ClarisDrawGraphInternal::ZoneShape::~ZoneShape
virtual ~ZoneShape()
destructor
Definition: ClarisDrawGraph.cxx:336
MWAWFont
Class to store font.
Definition: MWAWFont.hxx:44
ClarisDrawGraphInternal::Style::Style
Style()
constructor
Definition: ClarisDrawGraph.cxx:137
ClarisDrawGraphInternal::Bitmap::m_colorMap
std::vector< MWAWColor > m_colorMap
the color map
Definition: ClarisDrawGraph.cxx:414
ClarisDrawGraph::sendBitmap
bool sendBitmap(int number, MWAWPosition const &pos=MWAWPosition())
sends the bitmap data to the listener (if it exists )
Definition: ClarisDrawGraph.cxx:2394
MWAWGraphicShape::PathData
a simple path component
Definition: MWAWGraphicShape.hxx:53
ClarisDrawGraphInternal::State::m_positionsComputed
bool m_positionsComputed
true if the ClarisDrawGraph::computePositions was called
Definition: ClarisDrawGraph.cxx:653
MWAWGraphicStyle::m_shadowOffset
MWAWVec2f m_shadowOffset
the shadow offset
Definition: MWAWGraphicStyle.hxx:394
ClarisWksStruct::DSET::m_headerSz
long m_headerSz
the header size
Definition: ClarisWksStruct.hxx:141
ClarisDrawGraphInternal::SubDocument::m_id
int m_id
the subdocument id
Definition: ClarisDrawGraph.cxx:700
ClarisDrawGraphInternal::CurvePoint
Internal: the structure used to a point of a ClarisDrawGraph.
Definition: ClarisDrawGraph.cxx:70
ClarisDrawGraph::updateGroup
void updateGroup(bool isLibrary)
update the group: ie. remove empty group child
Definition: ClarisDrawGraph.cxx:790
ClarisDrawGraph::sendShape
bool sendShape(ClarisDrawGraphInternal::ZoneShape &pict, MWAWPosition pos)
sends a basic graphic zone
Definition: ClarisDrawGraph.cxx:2362
MWAWBorder::m_color
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:363
ClarisDrawGraphInternal::Bitmap::~Bitmap
virtual ~Bitmap()
destructor
Definition: ClarisDrawGraph.cxx:417
ClarisDrawGraphInternal::ZoneUnknown::m_typeId
int m_typeId
type number
Definition: ClarisDrawGraph.cxx:564
ClarisDrawGraphInternal::ZoneShape::m_autosize
bool m_autosize
true if autosize is set
Definition: ClarisDrawGraph.cxx:333
ClarisDrawGraphInternal::State::m_groupMap
std::map< int, shared_ptr< Group > > m_groupMap
a map zoneId -> group
Definition: ClarisDrawGraph.cxx:649
MWAWVec2i
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:781
ClarisDrawGraphInternal::ZonePict::getType
virtual Type getType() const
return the main type T_Picture
Definition: ClarisDrawGraph.cxx:354
libmwaw::DebugStream
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
MWAWListenerPtr
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:505
MWAWParser.hxx
MWAWPictData::get
static MWAWPictData * get(MWAWInputStreamPtr input, int size)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:108
ClarisDrawGraphInternal::State::m_transformations
std::vector< Transformation > m_transformations
the list of transformation
Definition: ClarisDrawGraph.cxx:647
ClarisDrawGraphInternal::ZoneZone::getNumData
virtual int getNumData() const
return the number of data to define this zone in the file
Definition: ClarisDrawGraph.cxx:480
MWAWSubDocument::m_input
shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
ClarisDrawGraphInternal::Style::getWrapping
MWAWPosition::Wrapping getWrapping() const
returns the wrapping
Definition: ClarisDrawGraph.cxx:143
MWAWGraphicShape::m_extra
std::string m_extra
extra data
Definition: MWAWGraphicShape.hxx:205
ClarisDrawGraphInternal::Bitmap::m_entry
MWAWEntry m_entry
the bitmap entry
Definition: ClarisDrawGraph.cxx:412
ClarisDrawGraph::getSurfaceColor
bool getSurfaceColor(ClarisDrawGraphInternal::Style const &style, MWAWColor &col) const
return the surface color which corresponds to some ids (if possible)
Definition: ClarisDrawGraph.cxx:866
MWAWGraphicShape::m_formBox
MWAWBox2f m_formBox
the internal shape bdbox ( used for arc, circle to store the circle bdbox )
Definition: MWAWGraphicShape.hxx:195
ClarisDrawGraph::flushExtra
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: ClarisDrawGraph.cxx:2504
MWAWGraphicStyle::Arrow
a structure used to define an arrow
Definition: MWAWGraphicStyle.hxx:58
ClarisDrawGraphInternal::Group
Internal: class which stores a group of graphics, ...
Definition: ClarisDrawGraph.cxx:573
ClarisDrawGraphInternal::Zone
Internal: the generic structure used to store a zone of a ClarisDrawGraph.
Definition: ClarisDrawGraph.cxx:196
ClarisDrawGraphInternal::SubDocument::SubDocument
SubDocument(ClarisDrawGraph &pars, MWAWInputStreamPtr input, int zoneId, int subId)
constructor for zone
Definition: ClarisDrawGraph.cxx:666

Generated on Wed Jun 17 2020 06:30:09 for libmwaw by doxygen 1.8.18