Go to the documentation of this file.
38 #ifndef CLARIS_WKS_GRAPH
39 # define CLARIS_WKS_GRAPH
44 #include <librevenge/librevenge.h>
164 bool readChartData(shared_ptr<ClarisWksGraphInternal::Zone> zone);
167 bool readPictData(shared_ptr<ClarisWksGraphInternal::Zone> zone);
183 bool readQTimeData(shared_ptr<ClarisWksGraphInternal::Zone> zone);
228 shared_ptr<ClarisWksGraphInternal::State>
m_state;
bool readBitmapData(ClarisWksGraphInternal::Bitmap &zone)
Definition: ClarisWksGraph.cxx:2409
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
int m_type
the point type
Definition: ClarisWksGraph.cxx:106
std::map< int, shared_ptr< Group > > m_groupMap
a map zoneId -> group
Definition: ClarisWksGraph.cxx:722
@ CharBaseLine
Definition: MWAWPosition.hxx:51
int m_id
the zone identificator
Definition: ClarisWksStruct.hxx:156
bool getUniqueColor(MWAWColor &col) const
check if the pattern has only one color; if so returns true...
Definition: MWAWGraphicStyle.cxx:86
~ZoneZone()
destructor
Definition: ClarisWksGraph.cxx:534
virtual ~SubDocument()
destructor
Definition: ClarisWksGraph.cxx:742
ReadResult
an enum to defined the result of a parsing use by some picture's classes which can read their data
Definition: MWAWPict.hxx:73
int m_ordering
the last ordering used
Definition: ClarisWksGraph.cxx:730
virtual Type getType() const
return the main type
Definition: ClarisWksGraph.cxx:618
bool hasSurfaceColor() const
returns true if the surface is defined
Definition: MWAWGraphicStyle.hxx:288
virtual void print(std::ostream &o) const
print the zone
Definition: ClarisWksGraph.cxx:589
@ T_DataBox
Definition: ClarisWksGraph.cxx:173
bool readChartData(shared_ptr< ClarisWksGraphInternal::Zone > zone)
Definition: ClarisWksGraph.cxx:2028
void setPagePos(int pg, MWAWVec2f const &newOrig) const
sets/resets the page and the origin
Definition: MWAWPosition.hxx:214
Internal: class which stores a group of graphics, ...
Definition: ClarisWksGraph.cxx:652
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
bool readPS(ClarisWksGraphInternal::ZonePict &zone)
Definition: ClarisWksGraph.cxx:2188
virtual void insertPicture(MWAWPosition const &pos, MWAWEmbeddedObject const &picture, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())=0
adds a picture with various representationin given position.
~ZoneUnknown()
destructor
Definition: ClarisWksGraph.cxx:647
virtual int getZoneId() const
returns the id of the reference zone
Definition: ClarisWksGraph.cxx:478
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:785
@ P_Table
Definition: ClarisWksStruct.hxx:62
void setColors(std::vector< MWAWColor > const &cols)
sets the array of indexed colors
Definition: MWAWPictBitmap.hxx:432
MWAWPosition m_position
the position if known
Definition: ClarisWksGraph.cxx:769
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
void setSurfaceColor(MWAWColor const &col, float opacity=1)
set the surface color
Definition: MWAWGraphicStyle.hxx:282
Internal: structure used to store a chart zone of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:539
int m_masterId
the master group id ( in a draw file )
Definition: ClarisWksGraph.cxx:720
std::map< int, shared_ptr< Bitmap > > m_bitmapMap
a map zoneId -> group
Definition: ClarisWksGraph.cxx:724
~ZoneShape()
destructor
Definition: ClarisWksGraph.cxx:319
AnchorTo
a list of enum used to defined the anchor
Definition: MWAWPosition.hxx:51
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:221
@ MWAW_K_PAINT
bitmap graphic
Definition: MWAWDocument.hxx:84
bool sendPageChild(ClarisWksGraphInternal::Group &group)
send the child element corresponding to some page
Definition: ClarisWksGraph.cxx:2602
bool readNamedPict(ClarisWksGraphInternal::ZonePict &zone)
Definition: ClarisWksGraph.cxx:2312
@ T_Zone
Definition: ClarisWksGraph.cxx:173
bool sendBitmap(int number, MWAWListenerPtr listener, MWAWPosition const &pos=MWAWPosition())
sends the bitmap data to the listener (if it exists )
Definition: ClarisWksGraph.cxx:3002
@ T_Shape
Definition: ClarisWksGraph.cxx:173
bool sendMaster(int pg)
sends the master zone (ie. the background zone in a graphic document)
Definition: ClarisWksGraph.cxx:3220
ZoneShape(Zone const &z, Type type)
constructor
Definition: ClarisWksGraph.cxx:275
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
int m_subId
the zoneSubId: can be page/column/frame linked number
Definition: ClarisWksGraph.cxx:519
MWAWVec2i m_bitmapSize
the bitmap size
Definition: ClarisWksGraph.cxx:419
std::vector< PathData > m_path
the list of path component
Definition: MWAWGraphicShape.hxx:203
void set(int i, int j, int v)
sets a cell contents
Definition: MWAWPictBitmap.hxx:411
@ DOC_COMMENT_ANNOTATION
Definition: libmwaw_internal.hxx:178
void checkOrdering(std::vector< int16_t > &vec16, std::vector< int32_t > &vec32) const
small fonction used to check unusual endian ordering of a list of int16_t, int32_t
Definition: ClarisWksDocument.cxx:356
ChildType m_type
the type
Definition: ClarisWksStruct.hxx:229
void setPage(int pg) const
sets the page
Definition: MWAWPosition.hxx:189
virtual int getNumData(int) const
return the number of data in a file
Definition: ClarisWksGraph.cxx:375
Internal: structure to store a link to a zone of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:433
ClarisWksGraph(ClarisWksGraph const &orig)
static Arrow plain()
returns a basic plain arrow
Definition: MWAWGraphicStyle.hxx:69
bool canSendBitmapAsGraphic(int number) const
check if we can send a group as graphic
Definition: ClarisWksGraph.cxx:2989
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: ClarisWksGraph.cxx:303
Internal: small class to store a basic graphic zone of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:273
~Chart()
destructor
Definition: ClarisWksGraph.cxx:576
int m_frameSubId
the frame sub id (for a linked frame)
Definition: ClarisWksGraph.cxx:523
@ DOC_CHART
Definition: libmwaw_internal.hxx:178
@ DOC_CHART_ZONE
Definition: libmwaw_internal.hxx:178
bool sendGroup(int number, MWAWListenerPtr listener, MWAWPosition const &pos=MWAWPosition())
sends the zone data to the listener (if it exists )
Definition: ClarisWksGraph.cxx:3261
int m_id
the identificator
Definition: ClarisWksStruct.hxx:231
void startDocument()
starts a new document
Definition: MWAWGraphicListener.cxx:432
virtual void print(std::ostream &o) const
print the zone
Definition: ClarisWksGraph.cxx:547
@ WBackground
Definition: MWAWPosition.hxx:53
virtual bool canBeSendAsGraphic() const
returns true if the zone can be send using a graphic listener (partial check)
Definition: ClarisWksGraph.cxx:250
virtual void removeChild(int cId, bool normalChild)
remove a child from a list.
Definition: ClarisWksGraph.cxx:672
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:46
the class to store a color
Definition: libmwaw_internal.hxx:182
virtual Type getType() const
return the main type
Definition: ClarisWksGraph.cxx:552
small class use to define a embedded object
Definition: libmwaw_internal.hxx:425
@ Presentation
Definition: MWAWListener.hxx:56
Chart(Zone const &z)
construtor
Definition: ClarisWksGraph.cxx:541
static MWAWGraphicShape line(MWAWVec2f const &orign, MWAWVec2f const &dest)
static constructor to create a line
Definition: MWAWGraphicShape.cxx:227
int m_wrappingSep
the wrapping separator
Definition: ClarisWksGraph.cxx:529
void setBackgroundColor(MWAWColor const &col, float opacity=1)
set the background color
Definition: MWAWGraphicStyle.hxx:314
Internal: the structure used to a point of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:71
void setUnit(librevenge::RVNGUnit newUnit)
sets the dimension unit
Definition: MWAWPosition.hxx:209
friend std::ostream & operator<<(std::ostream &o, Style const &st)
operator<<
Definition: ClarisWksGraph.cxx:132
bool canSendAsGraphic(ClarisWksGraphInternal::Group &group) const
check if we can send a group as graphic
Definition: ClarisWksGraph.cxx:3200
structure used to define the child of a DSET structure
Definition: ClarisWksStruct.hxx:182
shared_ptr< ClarisWksStyleManager > getStyleManager()
returns the style manager
Definition: ClarisWksDocument.hxx:132
MWAWVec2f m_pos
the main position
Definition: ClarisWksGraph.cxx:102
bool getAverageColor(MWAWColor &col) const
return the average color
Definition: MWAWGraphicStyle.cxx:101
void endDocument(bool sendDelayedSubDoc=true)
ends the document
Definition: MWAWSpreadsheetListener.cxx:515
@ MWAW_K_DRAW
vectorized grphic
Definition: MWAWDocument.hxx:83
virtual Type getSubType() const
return the sub type
Definition: ClarisWksGraph.cxx:370
bool sendZone(int zoneId, MWAWListenerPtr listener=MWAWListenerPtr(), MWAWPosition pos=MWAWPosition())
try to send a zone
Definition: ClarisWksDocument.cxx:433
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: ClarisWksDocument.cxx:297
@ WDynamic
Definition: MWAWPosition.hxx:53
ZonePict(Zone const &z, Type type)
constructor
Definition: ClarisWksGraph.cxx:326
@ Graphic
Definition: MWAWListener.hxx:56
int m_page
the page (checkme: or frame linked )
Definition: ClarisWksGraph.cxx:260
void endDocument(bool delayed=true)
ends the actual document
Definition: MWAWGraphicListener.cxx:443
int getOrdering() const
returns a new ordering.
Definition: ClarisWksGraph.cxx:711
virtual ClarisWksStruct::DSET::Child getChild() const
return a child corresponding to this zone
Definition: ClarisWksGraph.cxx:567
virtual int getNumData(int version) const
return the number of data
Definition: ClarisWksGraph.cxx:562
MWAWParser * m_mainParser
the main parser;
Definition: ClarisWksGraph.hxx:231
virtual Type getSubType() const
return the sub type
Definition: ClarisWksGraph.cxx:292
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:509
main document information used to create a ClarisWorks file
Definition: ClarisWksDocument.hxx:74
Internal: the structure used to store a PICT or a MOVIE.
Definition: ClarisWksGraph.cxx:324
Type m_type
the sub type
Definition: ClarisWksGraph.cxx:312
Wrapping
an enum used to define the wrapping: none, ...
Definition: MWAWPosition.hxx:53
MWAWBox2f getBdBox() const
return the zone bdbox
Definition: ClarisWksGraph.cxx:209
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
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
bool hasLine() const
returns true if the border is defined
Definition: MWAWGraphicStyle.hxx:277
void startDocument()
starts the document
Definition: MWAWSpreadsheetListener.cxx:502
MWAWEntry m_entries[2]
the picture entry followed by a ps entry or ole entry ( if defined)
Definition: ClarisWksGraph.cxx:391
virtual int getNumData(int) const
return the number of data to define this zone in the file
Definition: ClarisWksGraph.cxx:468
namespace to store the main structure which appears in a ClarisDraw/ClarisWorks file
Definition: ClarisWksStruct.cxx:51
void set(int i, int j, MWAWColor const &v)
sets a cell contents
Definition: MWAWPictBitmap.hxx:510
virtual void print(std::ostream &o) const
print the data
Definition: ClarisWksGraph.cxx:332
void setOrder(int ord) const
set background/foward order
Definition: MWAWPosition.hxx:248
@ T_Picture
Definition: ClarisWksGraph.cxx:173
virtual int getNumData(int) const
return the number of data
Definition: ClarisWksGraph.cxx:297
@ Unknown
Definition: MWAWPosition.hxx:51
virtual int getNumData(int) const
return the number of data
Definition: ClarisWksGraph.cxx:628
float m_lineOpacity
the line opacity: 0=transparent
Definition: MWAWGraphicStyle.hxx:381
friend std::ostream & operator<<(std::ostream &o, Zone const &zone)
operator<<
Definition: ClarisWksGraph.cxx:184
State()
constructor
Definition: ClarisWksGraph.cxx:706
Bitmap(ClarisWksStruct::DSET const &dset=ClarisWksStruct::DSET())
constructor
Definition: ClarisWksGraph.cxx:401
virtual void print(std::ostream &o) const
print the zone
Definition: ClarisWksGraph.cxx:443
@ P_Frame
Definition: ClarisWksStruct.hxx:62
bool canSendGroupAsGraphic(int number) const
check if we can send a group as graphic
Definition: ClarisWksGraph.cxx:3191
friend std::ostream & operator<<(std::ostream &o, CurvePoint const &pt)
operator<<
Definition: ClarisWksGraph.cxx:77
virtual ~Style()
destructor
Definition: ClarisWksGraph.cxx:166
bool m_positionsComputed
true if the ClarisWksGraph::computePositions was called
Definition: ClarisWksGraph.cxx:728
virtual void print(std::ostream &) const
print the data contains
Definition: ClarisWksGraph.cxx:236
virtual ClarisWksStruct::DSET::Child getChild() const
return a child corresponding to this zone
Definition: ClarisWksGraph.cxx:380
@ T_Poly
Definition: ClarisWksGraph.cxx:175
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:171
MWAWVec2f const & size() const
returns the frame size
Definition: MWAWPosition.hxx:119
@ Polygon
Definition: MWAWGraphicShape.hxx:49
bool hasPattern() const
returns true if the pattern is defined
Definition: MWAWGraphicStyle.hxx:299
ZoneUnknown(Zone const &z)
construtor
Definition: ClarisWksGraph.cxx:583
MWAWBox2< T > getUnion(MWAWBox2< T > const &box) const
returns the union between this and box
Definition: libmwaw_internal.hxx:1070
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWParser.hxx:185
SubDocument(ClarisWksGraph &pars, MWAWInputStreamPtr input, int zoneId, MWAWPosition pos=MWAWPosition())
Definition: ClarisWksGraph.cxx:738
@ Rectangle
Definition: MWAWGraphicShape.hxx:49
static ReadResult check(MWAWInputStreamPtr input, int size, MWAWBox2f &box)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:100
SubDocumentType
Definition: libmwaw_internal.hxx:178
@ T_Arc
Definition: ClarisWksGraph.cxx:175
bool readBitmapColorMap(std::vector< MWAWColor > &cMap)
Definition: ClarisWksGraph.cxx:2362
bool readPolygonData(shared_ptr< ClarisWksGraphInternal::Zone > zone)
Definition: ClarisWksGraph.cxx:1925
@ MWAW_K_PRESENTATION
presentation graphic
Definition: MWAWDocument.hxx:85
MWAWBox2f m_box
the bdbox
Definition: ClarisWksStruct.hxx:237
bool m_hasMainZone
a flag to know if this zone contains or no the call to zone 1
Definition: ClarisWksGraph.cxx:693
int m_bitmapRowSize
the bitmap row size in the file ( with potential alignment)
Definition: ClarisWksGraph.cxx:421
@ T_Oval
Definition: ClarisWksGraph.cxx:175
virtual Type getSubType() const
return the sub type
Definition: ClarisWksGraph.cxx:623
virtual bool operator==(MWAWSubDocument const &doc) const
operator!==
Definition: ClarisWksGraph.cxx:756
Internal: the subdocument of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:736
ZoneZone(Zone const &z, Type fileType)
constructor
Definition: ClarisWksGraph.cxx:435
int version() const
returns the file version
Definition: ClarisWksGraph.cxx:804
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:268
int m_ordering
the ordering
Definition: ClarisWksGraph.cxx:264
bool m_parsed
a flag to know if the entry is sent or not to the listener
Definition: ClarisWksStruct.hxx:177
std::vector< Child > m_childs
the list of child zone
Definition: ClarisWksStruct.hxx:172
MWAWColor m_surfaceColor
the surface color
Definition: MWAWGraphicStyle.hxx:385
void setType(std::string const &newType)
sets the type of the entry: BTEP,FDPP, BTEC, FDPC, PLC , TEXT, ...
Definition: MWAWEntry.hxx:121
SubDocument & operator=(SubDocument const &orig)
This class contents the main functions needed to create a spreadsheet processing Document.
Definition: MWAWSpreadsheetListener.hxx:66
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:105
~ZonePict()
destructor
Definition: ClarisWksGraph.cxx:394
bool m_frameLast
true if this is the last frame of a frame zone
Definition: ClarisWksGraph.cxx:525
shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:501
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:197
This class contains a virtual interface to all listener.
Definition: MWAWListener.hxx:50
Internal: the state of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:704
float m_lineWidth
the linewidth
Definition: MWAWGraphicStyle.hxx:375
virtual void print(std::ostream &o) const
print the data
Definition: ClarisWksGraph.cxx:281
virtual int getNumData(int) const
return the number of data to define this zone in the file
Definition: ClarisWksGraph.cxx:231
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
@ T_Zone2
Definition: ClarisWksGraph.cxx:173
double getFormLength() const
returns the form length
Definition: MWAWParser.hxx:170
bool isLinked() const
check if we need to send the frame is linked to another frmae
Definition: ClarisWksGraph.cxx:483
virtual bool canBeSendAsGraphic() const
returns true if the zone can be send using a graphic listener (partial check)
Definition: ClarisWksGraph.cxx:473
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
a border
Definition: libmwaw_internal.hxx:314
int m_fileType
the type ( 0: text, -1: graphic, ...)
Definition: ClarisWksStruct.hxx:146
Type m_subType
the file type ( zone or zone2 )
Definition: ClarisWksGraph.cxx:515
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
bool getBinaryResult(MWAWEmbeddedObject &object)
return the final spreadsheet
Definition: MWAWSpreadsheetEncoder.cxx:74
virtual ClarisWksStruct::DSET::Child getChild() const
return a child corresponding to this zone
Definition: ClarisWksGraph.cxx:633
Zone()
constructor
Definition: ClarisWksGraph.cxx:180
#define M_PI
Definition: libmwaw_internal.hxx:49
bool getBinaryResult(MWAWEmbeddedObject &result)
return the final graphic
Definition: MWAWGraphicEncoder.cxx:74
Wrapping m_wrapping
Wrapping.
Definition: MWAWPosition.hxx:262
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:82
virtual Type getSubType() const
return the sub type
Definition: ClarisWksGraph.cxx:557
int m_flags[9]
flag
Definition: ClarisWksGraph.cxx:531
@ DOC_HEADER_FOOTER
Definition: libmwaw_internal.hxx:178
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWGraphicStyle.cxx:172
@ Path
Definition: MWAWGraphicShape.hxx:49
std::vector< shared_ptr< Zone > > m_zonesToSend
the list of block to send
Definition: ClarisWksGraph.cxx:695
@ T_Chart
Definition: ClarisWksGraph.cxx:173
@ DOC_GRAPHIC_GROUP
Definition: libmwaw_internal.hxx:178
Type m_type
the type
Definition: MWAWGraphicShape.hxx:191
@ MWAW_R_BAD
Definition: MWAWPict.hxx:73
virtual Type getType() const
return the main type T_Picture
Definition: ClarisWksGraph.cxx:365
bool isHeaderFooter() const
test if the zone is an header/footer
Definition: ClarisWksStruct.hxx:83
@ C_Graphic
Definition: ClarisWksStruct.hxx:67
CurvePoint(MWAWVec2f point=MWAWVec2f())
Definition: ClarisWksGraph.cxx:72
bool sendShape(ClarisWksGraphInternal::ZoneShape &pict, MWAWPosition pos)
sends a basic graphic zone
Definition: ClarisWksGraph.cxx:2973
void setOrigin(MWAWVec2f const &orig)
sets the frame origin
Definition: MWAWPosition.hxx:194
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
virtual Type getType() const
return the main type Zone
Definition: ClarisWksGraph.cxx:458
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
ClarisWksGraph(ClarisWksDocument &document)
constructor
Definition: ClarisWksGraph.cxx:795
int numPages() const
returns the number of pages
Definition: ClarisWksGraph.cxx:821
Position m_position
the zone type
Definition: ClarisWksStruct.hxx:144
void setPattern(Pattern const &pat, float opacity=1)
set the pattern
Definition: MWAWGraphicStyle.hxx:293
virtual ~Group()
destructor
Definition: ClarisWksGraph.cxx:698
@ T_Pict
Definition: ClarisWksGraph.cxx:177
@ P_GraphicMaster
Definition: ClarisWksStruct.hxx:63
virtual bool operator!=(MWAWSubDocument const &doc) const
operator!=
Definition: ClarisWksGraph.cxx:745
int m_page
the page (if known)
Definition: ClarisWksStruct.hxx:149
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1134
int m_numPages
the number of pages
Definition: ClarisWksGraph.cxx:716
main structure which correspond to a document part
Definition: ClarisWksStruct.hxx:58
MWAWBox2f m_box
the bounding box (if known)
Definition: ClarisWksStruct.hxx:151
std::vector< shared_ptr< Zone > > m_zones
the list of child zones
Definition: ClarisWksGraph.cxx:690
Style()
constructor
Definition: ClarisWksGraph.cxx:112
ClarisWksDocument & m_document
the document
Definition: ClarisWksGraph.hxx:222
bool sendPicture(ClarisWksGraphInternal::ZonePict &pict, MWAWPosition pos)
sends a picture zone
Definition: ClarisWksGraph.cxx:3114
@ DOC_SHEET
Definition: libmwaw_internal.hxx:178
ClarisWksGraph * m_graphParser
the graph parser
Definition: ClarisWksGraph.cxx:763
int m_id
the subdocument id
Definition: ClarisWksGraph.cxx:767
bool addFrameName(MWAWGraphicStyle &style) const
add the frame name if needed
Definition: ClarisWksGraph.cxx:488
int m_typeId
type number
Definition: ClarisWksGraph.cxx:644
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 Type getType() const
return the main type
Definition: ClarisWksGraph.cxx:287
@ Char
Definition: MWAWPosition.hxx:51
@ T_RectOval
Definition: ClarisWksGraph.cxx:175
bool readGroupUnknown(ClarisWksGraphInternal::Group &group, int zoneSz, int id)
Definition: ClarisWksGraph.cxx:1862
the main class to read the graphic part of Claris Works file
Definition: ClarisWksGraph.hxx:78
DSET()
constructor
Definition: ClarisWksStruct.hxx:70
shared_ptr< ClarisWksGraphInternal::State > m_state
the state
Definition: ClarisWksGraph.hxx:228
MWAWColor m_colors[2]
the two indexed colors
Definition: MWAWGraphicStyle.hxx:245
@ DOC_TABLE
Definition: libmwaw_internal.hxx:178
MWAWVec2f m_controlPoints[2]
the control point: previous, next
Definition: ClarisWksGraph.cxx:104
int m_surfacePatternType
the surface pattern type
Definition: ClarisWksGraph.cxx:163
virtual int getZoneId() const
returns the id of the reference zone
Definition: ClarisWksGraph.cxx:245
float m_backgroundOpacity
true if the background has some color
Definition: MWAWGraphicStyle.hxx:419
Group(ClarisWksStruct::DSET const &dset=ClarisWksStruct::DSET())
constructor
Definition: ClarisWksGraph.cxx:654
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
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
Internal: the structures of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:69
main class used to define store librevenge::RVNGDrawingInterface lists of command in a librevenge::RV...
Definition: MWAWGraphicEncoder.hxx:56
std::string m_frameName
the frame name
Definition: MWAWGraphicStyle.hxx:425
bool readPICT(ClarisWksGraphInternal::ZonePict &zone)
Definition: ClarisWksGraph.cxx:2153
void computePositions() const
compute the pages position
Definition: ClarisWksGraph.cxx:809
int m_styleId
the style id
Definition: ClarisWksGraph.cxx:527
@ DOC_NOTE
Definition: libmwaw_internal.hxx:178
@ Line
Definition: MWAWGraphicShape.hxx:49
Position
the zone position
Definition: ClarisWksStruct.hxx:62
friend std::ostream & operator<<(std::ostream &o, Group const &doc)
operator<<
Definition: ClarisWksGraph.cxx:663
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:100
virtual Type getSubType() const
return the subtype
Definition: ClarisWksGraph.cxx:226
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
@ T_QTim
Definition: ClarisWksGraph.cxx:177
a bitmap of int to store indexed bitmap
Definition: MWAWPictBitmap.hxx:348
long m_numData
the number of header
Definition: ClarisWksStruct.hxx:137
This class contains code needed to write a presention document.
Definition: MWAWPresentationListener.hxx:60
Type m_type
the sub type
Definition: ClarisWksGraph.cxx:389
Style m_style
the style
Definition: ClarisWksGraph.cxx:266
std::string m_frameNextName
the frame next name (if there is a link)
Definition: MWAWGraphicStyle.hxx:427
virtual ClarisWksStruct::DSET::Child getChild() const
return a child corresponding to this zone
Definition: ClarisWksGraph.cxx:238
shared_ptr< ClarisWksStruct::DSET > getZone(int zId) const
return the zone corresponding to an id ( low level)
Definition: ClarisWksDocument.cxx:395
long m_dataSz
the data size
Definition: ClarisWksStruct.hxx:139
Type m_type
the sub type
Definition: ClarisWksGraph.cxx:642
int m_zoneType
the zone type
Definition: ClarisWksGraph.cxx:258
@ Page
Definition: MWAWPosition.hxx:51
@ C_Zone
Definition: ClarisWksStruct.hxx:67
@ WForeground
Definition: MWAWPosition.hxx:53
bool isSlide() const
test if the zone is a slide
Definition: ClarisWksStruct.hxx:89
virtual Type getSubType() const
return the sub type Zone
Definition: ClarisWksGraph.cxx:463
bool hasGradient(bool complex=false) const
returns true if the gradient is defined
Definition: MWAWGraphicStyle.hxx:304
friend std::ostream & operator<<(std::ostream &o, Bitmap const &bt)
operator<<
Definition: ClarisWksGraph.cxx:408
double getPageLength() const
returns the page length (form length without margin )
Definition: MWAWParser.hxx:180
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: ClarisWksGraph.cxx:3282
main class used to define store librevenge::RVNGSpreadsheetInterface lists of command in a librevenge...
Definition: MWAWSpreadsheetEncoder.hxx:56
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
int m_frameId
a int used to defined linked frame
Definition: ClarisWksGraph.cxx:726
bool canSendZoneAsGraphic(int number) const
check if we can send a zone as a graphic
Definition: ClarisWksDocument.cxx:403
int m_numBytesPerPixel
the number of bite by pixel
Definition: ClarisWksGraph.cxx:417
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
@ P_Main
Definition: ClarisWksStruct.hxx:62
bool readGroupHeader(ClarisWksGraphInternal::Group &group)
Definition: ClarisWksGraph.cxx:1750
MWAWEntry m_entry
the bitmap entry
Definition: ClarisWksGraph.cxx:423
Internal: the structure used to store a style of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:110
virtual Type getType() const
return the main type
Definition: ClarisWksGraph.cxx:221
shared_ptr< ClarisWksStruct::DSET > readGroupZone(ClarisWksStruct::DSET const &zone, MWAWEntry const &entry, bool &complete)
reads the zone Group DSET
Definition: ClarisWksGraph.cxx:864
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1008
@ T_Unknown
Definition: ClarisWksGraph.cxx:173
@ T_Line
Definition: ClarisWksGraph.cxx:175
@ Frame
Definition: MWAWPosition.hxx:51
virtual ClarisWksStruct::DSET::Child getChild() const
return a child corresponding to this zone
Definition: ClarisWksGraph.cxx:505
bool readShape(MWAWEntry const &entry, ClarisWksGraphInternal::ZoneShape &zone)
Definition: ClarisWksGraph.cxx:1609
Internal: structure to store a bitmap of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:399
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
bool readStringList(char const *zoneName, bool hasEntete, std::vector< std::string > &res)
Definition: ClarisWksDocument.cxx:2073
bool readPictData(shared_ptr< ClarisWksGraphInternal::Zone > zone)
Definition: ClarisWksGraph.cxx:2090
shared_ptr< ClarisWksStruct::DSET > readBitmapZone(ClarisWksStruct::DSET const &zone, MWAWEntry const &entry, bool &complete)
reads the zone Bitmap DSET
Definition: ClarisWksGraph.cxx:962
@ P_Unknown
Definition: ClarisWksStruct.hxx:64
bool readQTimeData(shared_ptr< ClarisWksGraphInternal::Zone > zone)
Definition: ClarisWksGraph.cxx:2276
virtual ~ClarisWksGraph()
destructor
Definition: ClarisWksGraph.cxx:801
MWAWGraphicShape m_shape
the shape
Definition: ClarisWksGraph.cxx:314
@ Paragraph
Definition: MWAWPosition.hxx:51
int m_rotate
the rotation
Definition: ClarisWksGraph.cxx:316
virtual ~Zone()
destructor
Definition: ClarisWksGraph.cxx:269
@ Circle
Definition: MWAWGraphicShape.hxx:49
MWAWVec2f m_pageDimensions
the page dimension if known (in point)
Definition: ClarisWksGraph.cxx:718
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type)
the parser function
Definition: ClarisWksGraph.cxx:775
MWAWVec2f m_pageDimension
the page dimension (if know)
Definition: ClarisWksStruct.hxx:153
MWAWParserStatePtr m_parserState
the parser state
Definition: ClarisWksGraph.hxx:225
@ WNone
Definition: MWAWPosition.hxx:53
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:254
bool getPageDimension(MWAWVec2f &dim) const
returns the page dimension if known (in point)
Definition: ClarisWksGraph.cxx:838
Internal: structure used to store an unknown zone of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:581
@ P_SlideMaster
Definition: ClarisWksStruct.hxx:64
virtual ~Bitmap()
destructor
Definition: ClarisWksGraph.cxx:428
shared_ptr< ClarisWksGraphInternal::Zone > readGroupDef(MWAWEntry const &entry)
Definition: ClarisWksGraph.cxx:1127
SubDocument(SubDocument const &orig)
shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:517
a bitmap of MWAWColor to store true color bitmap
Definition: MWAWPictBitmap.hxx:455
void insertTextBox(MWAWPosition const &pos, MWAWSubDocumentPtr subDocument, MWAWGraphicStyle const &style)
adds a textbox in given position
Definition: MWAWGraphicListener.cxx:1074
int m_id
the zoneId
Definition: ClarisWksGraph.cxx:517
Internal: the generic structure used to store a zone of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:171
a simple path component
Definition: MWAWGraphicShape.hxx:53
std::vector< MWAWColor > m_colorMap
the color map
Definition: ClarisWksGraph.cxx:425
bool sendGroupChild(std::vector< shared_ptr< ClarisWksGraphInternal::Zone > > const &lChild, MWAWListenerPtr listener, MWAWVec2f const &leftTop)
send a child group as graphic or as presentation
Definition: ClarisWksGraph.cxx:2540
@ DOC_NONE
Definition: libmwaw_internal.hxx:178
long m_headerSz
the header size
Definition: ClarisWksStruct.hxx:141
MWAWPosition::Wrapping getWrapping() const
returns the wrapping
Definition: ClarisWksGraph.cxx:118
void updateGroup(ClarisWksGraphInternal::Group &group) const
update the group information to choose how to send the group data
Definition: ClarisWksGraph.cxx:2476
int m_frameId
the frame id (for a linked frame)
Definition: ClarisWksGraph.cxx:521
MWAWBox2f m_box
the bdbox
Definition: ClarisWksGraph.cxx:262
bool sendPageGraphics(int groupId)
sends the page element
Definition: ClarisWksGraph.cxx:3248
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:363
bool getSurfaceColor(ClarisWksGraphInternal::Style const &style, MWAWColor &col) const
return the surface color which corresponds to some ids (if possible)
Definition: ClarisWksGraph.cxx:852
void askToSend(int number, MWAWListenerPtr listener, MWAWPosition const &pos=MWAWPosition())
ask the main parser to send a zone
Definition: ClarisWksGraph.cxx:844
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:781
bool readGroupData(ClarisWksGraphInternal::Group &group, long beginGroupPos)
Definition: ClarisWksGraph.cxx:1415
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
Type
the list of types
Definition: ClarisWksGraph.cxx:173
@ T_Rect
Definition: ClarisWksGraph.cxx:175
shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
@ T_Movie
Definition: ClarisWksGraph.cxx:177
bool readOLE(ClarisWksGraphInternal::ZonePict &zone)
Definition: ClarisWksGraph.cxx:2228
std::string m_extra
extra data
Definition: MWAWGraphicShape.hxx:205
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:60
int m_wrapping
the wrap type
Definition: ClarisWksGraph.cxx:161
MWAWBox2f m_formBox
the internal shape bdbox ( used for arc, circle to store the circle bdbox )
Definition: MWAWGraphicShape.hxx:195
ClarisWksGraph & operator=(ClarisWksGraph const &orig)
a structure used to define an arrow
Definition: MWAWGraphicStyle.hxx:58
void findMasterPage() const
find the master zone to the content zones in a graphic document
Definition: ClarisWksGraph.cxx:1082
Generated on Wed Jun 17 2020 06:30:09 for libmwaw by
doxygen 1.8.18