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