Go to the documentation of this file.
38 #ifndef CLARIS_WKS_GRAPH
39 # define CLARIS_WKS_GRAPH
44 #include <librevenge/librevenge.h>
169 bool readChartData(std::shared_ptr<ClarisWksGraphInternal::Zone> zone);
172 bool readPictData(std::shared_ptr<ClarisWksGraphInternal::Zone> zone);
175 bool readPolygonData(std::shared_ptr<ClarisWksGraphInternal::Zone> zone);
188 bool readQTimeData(std::shared_ptr<ClarisWksGraphInternal::Zone> zone);
233 std::shared_ptr<ClarisWksGraphInternal::State>
m_state;
bool readBitmapData(ClarisWksGraphInternal::Bitmap &zone)
Definition: ClarisWksGraph.cxx:2566
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
int m_type
the point type
Definition: ClarisWksGraph.cxx:108
@ CharBaseLine
Definition: MWAWPosition.hxx:51
int m_id
the zone identificator
Definition: ClarisWksStruct.hxx:199
bool getUniqueColor(MWAWColor &col) const
check if the pattern has only one color; if so returns true...
Definition: MWAWGraphicStyle.cxx:86
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
int m_ordering
the last ordering used
Definition: ClarisWksGraph.cxx:770
ClarisWksStruct::DSET::Child getChild() const final
return a child corresponding to this zone
Definition: ClarisWksGraph.cxx:593
bool hasSurfaceColor() const
returns true if the surface is defined
Definition: MWAWGraphicStyle.hxx:421
~ZoneUnknown() final
destructor
Definition: ClarisWksGraph.cxx:676
@ T_DataBox
Definition: ClarisWksGraph.cxx:179
std::shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:549
void setPagePos(int pg, MWAWVec2f const &newOrig) const
sets/resets the page and the origin
Definition: MWAWPosition.hxx:230
Internal: class which stores a group of graphics, ...
Definition: ClarisWksGraph.cxx:681
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
bool readPS(ClarisWksGraphInternal::ZonePict &zone)
Definition: ClarisWksGraph.cxx:2346
virtual void insertPicture(MWAWPosition const &pos, MWAWEmbeddedObject const &picture, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())=0
adds a picture with various representationin given position.
Type getType() const final
return the main type
Definition: ClarisWksGraph.cxx:647
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
@ P_Table
Definition: ClarisWksStruct.hxx:91
void setColors(std::vector< MWAWColor > const &cols)
sets the array of indexed colors
Definition: MWAWPictBitmap.hxx:446
MWAWPosition m_position
the position if known
Definition: ClarisWksGraph.cxx:807
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
Internal: structure used to store a chart zone of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:565
int m_masterId
the master group id ( in a draw file )
Definition: ClarisWksGraph.cxx:758
ClarisWksStruct::DSET::Child getChild() const final
return a child corresponding to this zone
Definition: ClarisWksGraph.cxx:531
bool readStructZone(MWAWParserState &parserState, char const *zoneName, bool hasEntete)
try to read a structured zone with unknown content
Definition: ClarisWksStruct.cxx:162
AnchorTo
a list of enum used to defined the anchor
Definition: MWAWPosition.hxx:51
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: ClarisWksGraph.cxx:813
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:237
@ 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:2754
bool readNamedPict(ClarisWksGraphInternal::ZonePict &zone)
Definition: ClarisWksGraph.cxx:2469
@ T_Zone
Definition: ClarisWksGraph.cxx:179
bool sendBitmap(int number, MWAWListenerPtr listener, MWAWPosition const &pos=MWAWPosition())
sends the bitmap data to the listener (if it exists )
Definition: ClarisWksGraph.cxx:3167
@ T_Shape
Definition: ClarisWksGraph.cxx:179
bool sendMaster(int pg)
sends the master zone (ie. the background zone in a graphic document)
Definition: ClarisWksGraph.cxx:3382
ZoneShape(Zone const &z, Type type)
constructor
Definition: ClarisWksGraph.cxx:287
static MWAWGraphicShape pie(MWAWBox2f const &box, MWAWBox2f const &circleBox, MWAWVec2f const &angles)
static constructor to create a pie
Definition: MWAWGraphicShape.hxx:147
void translate(MWAWVec2f const &delta)
translate all the coordinate by delta
Definition: MWAWGraphicShape.cxx:356
int m_subId
the zoneSubId: can be page/column/frame linked number
Definition: ClarisWksGraph.cxx:545
MWAWVec2i m_bitmapSize
the bitmap size
Definition: ClarisWksGraph.cxx:437
std::vector< PathData > m_path
the list of path component
Definition: MWAWGraphicShape.hxx:228
void set(int i, int j, int v)
sets a cell contents
Definition: MWAWPictBitmap.hxx:425
@ DOC_COMMENT_ANNOTATION
Definition: libmwaw_internal.hxx:188
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:376
ChildType m_type
the type
Definition: ClarisWksStruct.hxx:277
void setPage(int pg) const
sets the page
Definition: MWAWPosition.hxx:205
std::shared_ptr< ClarisWksStruct::DSET > getZone(int zId) const
return the zone corresponding to an id ( low level)
Definition: ClarisWksDocument.cxx:415
Internal: structure to store a link to a zone of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:451
static Arrow plain()
returns a basic plain arrow
Definition: MWAWGraphicStyle.hxx:74
bool canSendBitmapAsGraphic(int number) const
check if we can send a group as graphic
Definition: ClarisWksGraph.cxx:3139
bool readPolygonData(std::shared_ptr< ClarisWksGraphInternal::Zone > zone)
Definition: ClarisWksGraph.cxx:2114
Internal: small class to store a basic graphic zone of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:285
int m_frameSubId
the frame sub id (for a linked frame)
Definition: ClarisWksGraph.cxx:549
@ DOC_CHART
Definition: libmwaw_internal.hxx:188
ClarisWksGraph(ClarisWksGraph const &orig)=delete
@ DOC_CHART_ZONE
Definition: libmwaw_internal.hxx:188
bool sendGroup(int number, MWAWListenerPtr listener, MWAWPosition const &pos=MWAWPosition())
sends the zone data to the listener (if it exists )
Definition: ClarisWksGraph.cxx:3423
int m_id
the identificator
Definition: ClarisWksStruct.hxx:279
@ 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:262
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:46
the class to store a color
Definition: libmwaw_internal.hxx:192
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
SubDocument(SubDocument const &orig)=default
@ Presentation
Definition: MWAWListener.hxx:56
SubDocument & operator=(SubDocument const &orig)=default
Chart(Zone const &z)
construtor
Definition: ClarisWksGraph.cxx:567
std::shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:565
static MWAWGraphicShape line(MWAWVec2f const &orign, MWAWVec2f const &dest)
static constructor to create a line
Definition: MWAWGraphicShape.cxx:228
int m_wrappingSep
the wrapping separator
Definition: ClarisWksGraph.cxx:555
void setBackgroundColor(MWAWColor const &col, float opacity=1)
set the background color
Definition: MWAWGraphicStyle.hxx:447
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:225
friend std::ostream & operator<<(std::ostream &o, Style const &st)
operator<<
Definition: ClarisWksGraph.cxx:138
bool canSendAsGraphic(ClarisWksGraphInternal::Group &group) const
check if we can send a group as graphic
Definition: ClarisWksGraph.cxx:3362
Style(Style const &)=default
structure used to define the child of a DSET structure
Definition: ClarisWksStruct.hxx:225
MWAWVec2f m_pos
the main position
Definition: ClarisWksGraph.cxx:104
bool getAverageColor(MWAWColor &col) const
return the average color
Definition: MWAWGraphicStyle.cxx:101
bool sendGroupChild(std::vector< std::shared_ptr< ClarisWksGraphInternal::Zone > > const &lChild, MWAWListenerPtr listener, MWAWVec2f const &leftTop)
send a child group as graphic or as presentation
Definition: ClarisWksGraph.cxx:2695
@ MWAW_K_DRAW
vectorized grphic
Definition: MWAWDocument.hxx:83
bool sendZone(int zoneId, MWAWListenerPtr listener=MWAWListenerPtr(), MWAWPosition pos=MWAWPosition())
try to send a zone
Definition: ClarisWksDocument.cxx:453
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: ClarisWksDocument.cxx:317
@ WDynamic
Definition: MWAWPosition.hxx:53
ZonePict(Zone const &z, Type type)
constructor
Definition: ClarisWksGraph.cxx:342
@ Graphic
Definition: MWAWListener.hxx:56
int m_page
the page (checkme: or frame linked )
Definition: ClarisWksGraph.cxx:272
int getOrdering() const
returns a new ordering.
Definition: ClarisWksGraph.cxx:749
static MWAWPictData * get(MWAWInputStreamPtr const &input, int size)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:108
ClarisWksStruct::DSET::Child getChild() const final
return a child corresponding to this zone
Definition: ClarisWksGraph.cxx:398
MWAWParser * m_mainParser
the main parser;
Definition: ClarisWksGraph.hxx:236
main document information used to create a ClarisWorks file
Definition: ClarisWksDocument.hxx:74
~Style() final
destructor
Definition: ClarisWksGraph.cxx:172
Internal: the structure used to store a PICT or a MOVIE.
Definition: ClarisWksGraph.cxx:340
Type m_type
the sub type
Definition: ClarisWksGraph.cxx:328
void print(std::ostream &o) const final
print the data
Definition: ClarisWksGraph.cxx:297
MWAWBox2f getBdBox() const
return the zone bdbox
Definition: ClarisWksGraph.cxx:221
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:218
MWAWEntry m_entries[2]
the picture entry followed by a ps entry or ole entry ( if defined)
Definition: ClarisWksGraph.cxx:409
namespace to store the main structure which appears in a ClarisDraw/ClarisWorks file
Definition: ClarisWksStruct.cxx:50
void set(int i, int j, MWAWColor const &v)
sets a cell contents
Definition: MWAWPictBitmap.hxx:529
void setOrder(int ord) const
set background/foward order
Definition: MWAWPosition.hxx:264
@ T_Picture
Definition: ClarisWksGraph.cxx:179
bool readChartData(std::shared_ptr< ClarisWksGraphInternal::Zone > zone)
Definition: ClarisWksGraph.cxx:2202
Type getSubType() const final
return the sub type
Definition: ClarisWksGraph.cxx:583
@ Unknown
Definition: MWAWPosition.hxx:51
friend std::ostream & operator<<(std::ostream &o, Zone const &zone)
operator<<
Definition: ClarisWksGraph.cxx:196
~ZoneZone() final
destructor
Definition: ClarisWksGraph.cxx:560
State()
constructor
Definition: ClarisWksGraph.cxx:735
Bitmap(ClarisWksStruct::DSET const &dset=ClarisWksStruct::DSET())
constructor
Definition: ClarisWksGraph.cxx:419
int getNumData(int) const final
return the number of data to define this zone in the file
Definition: ClarisWksGraph.cxx:494
@ P_Frame
Definition: ClarisWksStruct.hxx:91
bool canSendGroupAsGraphic(int number) const
check if we can send a group as graphic
Definition: ClarisWksGraph.cxx:3354
friend std::ostream & operator<<(std::ostream &o, CurvePoint const &pt)
operator<<
Definition: ClarisWksGraph.cxx:79
bool readDatabasePictZone()
try to read a database picture zone, v5-v6
Definition: ClarisWksGraph.cxx:1115
bool m_positionsComputed
true if the ClarisWksGraph::computePositions was called
Definition: ClarisWksGraph.cxx:768
std::map< int, std::shared_ptr< Bitmap > > m_bitmapMap
a map zoneId -> group
Definition: ClarisWksGraph.cxx:762
virtual void print(std::ostream &) const
print the data contains
Definition: ClarisWksGraph.cxx:248
@ T_Poly
Definition: ClarisWksGraph.cxx:181
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:277
void print(std::ostream &o) const final
print the data
Definition: ClarisWksGraph.cxx:350
MWAWVec2f const & size() const
returns the frame size
Definition: MWAWPosition.hxx:135
@ Polygon
Definition: MWAWGraphicShape.hxx:49
ZoneUnknown(Zone const &z)
construtor
Definition: ClarisWksGraph.cxx:609
MWAWBox2< T > getUnion(MWAWBox2< T > const &box) const
returns the union between this and box
Definition: libmwaw_internal.hxx:1129
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWParser.hxx:185
@ Rectangle
Definition: MWAWGraphicShape.hxx:49
SubDocumentType
Definition: libmwaw_internal.hxx:188
@ T_Arc
Definition: ClarisWksGraph.cxx:181
~ZonePict() final
destructor
Definition: ClarisWksGraph.cxx:412
bool readBitmapColorMap(std::vector< MWAWColor > &cMap)
Definition: ClarisWksGraph.cxx:2519
std::shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
@ MWAW_K_PRESENTATION
presentation graphic
Definition: MWAWDocument.hxx:85
MWAWBox2f m_box
the bdbox
Definition: ClarisWksStruct.hxx:285
bool m_hasMainZone
a flag to know if this zone contains or no the call to zone 1
Definition: ClarisWksGraph.cxx:722
int m_bitmapRowSize
the bitmap row size in the file ( with potential alignment)
Definition: ClarisWksGraph.cxx:439
Type getType() const final
return the main type Zone
Definition: ClarisWksGraph.cxx:484
@ T_Oval
Definition: ClarisWksGraph.cxx:181
Internal: the subdocument of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:776
ZoneZone(Zone const &z, Type fileType)
constructor
Definition: ClarisWksGraph.cxx:453
int version() const
returns the file version
Definition: ClarisWksGraph.cxx:844
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:401
int m_ordering
the ordering
Definition: ClarisWksGraph.cxx:276
bool m_parsed
a flag to know if the entry is sent or not to the listener
Definition: ClarisWksStruct.hxx:220
~Bitmap() final
destructor
Definition: ClarisWksGraph.cxx:446
std::vector< Child > m_childs
the list of child zone
Definition: ClarisWksStruct.hxx:215
MWAWColor m_surfaceColor
the surface color
Definition: MWAWGraphicStyle.hxx:518
void setType(std::string const &newType)
sets the type of the entry: BTEP,FDPP, BTEC, FDPC, PLC , TEXT, ...
Definition: MWAWEntry.hxx:132
This class contents the main functions needed to create a spreadsheet processing Document.
Definition: MWAWSpreadsheetListener.hxx:66
Zone(Zone const &)=default
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:113
bool m_frameLast
true if this is the last frame of a frame zone
Definition: ClarisWksGraph.cxx:551
int getNumData(int) const final
return the number of data in a file
Definition: ClarisWksGraph.cxx:393
std::vector< std::shared_ptr< Zone > > m_zones
the list of child zones
Definition: ClarisWksGraph.cxx:719
std::shared_ptr< ClarisWksStruct::DSET > readGroupZone(ClarisWksStruct::DSET const &zone, MWAWEntry const &entry, bool &complete)
reads the zone Group DSET
Definition: ClarisWksGraph.cxx:902
bool dumpFile(librevenge::RVNGBinaryData &data, char const *fileName)
a debug function to store in a datafile in the current directory WARNING: this function erase the fil...
Definition: MWAWDebug.cxx:193
bool readPictData(std::shared_ptr< ClarisWksGraphInternal::Zone > zone)
Definition: ClarisWksGraph.cxx:2249
This class contains a virtual interface to all listener.
Definition: MWAWListener.hxx:50
Internal: the state of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:733
void endDocument(bool delayed=true) final
ends the actual document
Definition: MWAWGraphicListener.cxx:481
virtual int getNumData(int) const
return the number of data to define this zone in the file
Definition: ClarisWksGraph.cxx:243
void setSize(MWAWVec2f const &sz)
sets the frame size
Definition: MWAWPosition.hxx:215
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:77
@ T_Zone2
Definition: ClarisWksGraph.cxx:179
double getFormLength() const
returns the form length
Definition: MWAWParser.hxx:170
ClarisWksStruct::DSET::Child getChild() const final
return a child corresponding to this zone
Definition: ClarisWksGraph.cxx:662
std::shared_ptr< ClarisWksGraphInternal::State > m_state
the state
Definition: ClarisWksGraph.hxx:233
bool isLinked() const
check if we need to send the frame is linked to another frame
Definition: ClarisWksGraph.cxx:509
int getNumData(int) const final
return the number of data
Definition: ClarisWksGraph.cxx:657
~ZoneShape() final
destructor
Definition: ClarisWksGraph.cxx:335
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
a border
Definition: libmwaw_internal.hxx:333
int m_fileType
the type ( 0: text, -1: graphic, ...)
Definition: ClarisWksStruct.hxx:189
Type m_subType
the file type ( zone or zone2 )
Definition: ClarisWksGraph.cxx:541
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
std::vector< MWAWVec2f > m_vertices
the list of vertices for lines or polygons
Definition: MWAWGraphicShape.hxx:226
bool getBinaryResult(MWAWEmbeddedObject &object)
return the final spreadsheet
Definition: MWAWSpreadsheetEncoder.cxx:77
Zone()
constructor
Definition: ClarisWksGraph.cxx:186
#define M_PI
Definition: libmwaw_internal.hxx:52
bool getBinaryResult(MWAWEmbeddedObject &result)
return the final graphic
Definition: MWAWGraphicEncoder.cxx:77
Wrapping m_wrapping
Wrapping.
Definition: MWAWPosition.hxx:278
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
int m_flags[9]
flag
Definition: ClarisWksGraph.cxx:557
@ DOC_HEADER_FOOTER
Definition: libmwaw_internal.hxx:188
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWGraphicStyle.cxx:232
@ Path
Definition: MWAWGraphicShape.hxx:49
@ T_Chart
Definition: ClarisWksGraph.cxx:179
@ DOC_GRAPHIC_GROUP
Definition: libmwaw_internal.hxx:188
std::shared_ptr< ClarisWksGraphInternal::Zone > readGroupDef(MWAWEntry const &entry)
Definition: ClarisWksGraph.cxx:1338
Type m_type
the type
Definition: MWAWGraphicShape.hxx:216
bool readHeader(MWAWInputStreamPtr input, bool strict=false)
try to read the header
Definition: ClarisWksStruct.cxx:72
@ MWAW_R_BAD
Definition: MWAWPict.hxx:73
bool isHeaderFooter() const
test if the zone is an header/footer
Definition: ClarisWksStruct.hxx:126
@ C_Graphic
Definition: ClarisWksStruct.hxx:96
CurvePoint(MWAWVec2f point=MWAWVec2f())
Definition: ClarisWksGraph.cxx:72
bool sendShape(ClarisWksGraphInternal::ZoneShape &pict, MWAWPosition pos)
sends a basic graphic zone
Definition: ClarisWksGraph.cxx:3123
void setOrigin(MWAWVec2f const &orig)
sets the frame origin
Definition: MWAWPosition.hxx:210
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:72
MWAWGraphicShape rotate(float angle, MWAWVec2f const ¢er) const
return a new shape corresponding to a rotation from center.
Definition: MWAWGraphicShape.cxx:381
Arrow m_arrows[2]
the two arrows corresponding to start and end extremity
Definition: MWAWGraphicStyle.hxx:553
ClarisWksGraph(ClarisWksDocument &document)
constructor
Definition: ClarisWksGraph.cxx:833
int numPages() const
returns the number of pages
Definition: ClarisWksGraph.cxx:860
Position m_position
the zone type
Definition: ClarisWksStruct.hxx:187
ClarisWksGraph & operator=(ClarisWksGraph const &orig)=delete
@ T_Pict
Definition: ClarisWksGraph.cxx:183
@ P_GraphicMaster
Definition: ClarisWksStruct.hxx:92
int m_page
the page (if known)
Definition: ClarisWksStruct.hxx:192
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1193
int m_numPages
the number of pages
Definition: ClarisWksGraph.cxx:754
main structure which correspond to a document part
Definition: ClarisWksStruct.hxx:87
MWAWBox2f m_box
the bounding box (if known)
Definition: ClarisWksStruct.hxx:194
Style()
constructor
Definition: ClarisWksGraph.cxx:114
ClarisWksDocument & m_document
the document
Definition: ClarisWksGraph.hxx:227
bool sendPicture(ClarisWksGraphInternal::ZonePict &pict, MWAWPosition pos)
sends a picture zone
Definition: ClarisWksGraph.cxx:3278
~Group() final
destructor
Definition: ClarisWksGraph.cxx:727
std::map< int, std::shared_ptr< Group > > m_groupMap
a map zoneId -> group
Definition: ClarisWksGraph.cxx:760
@ DOC_SHEET
Definition: libmwaw_internal.hxx:188
ClarisWksGraph * m_graphParser
the graph parser
Definition: ClarisWksGraph.cxx:801
int m_id
the subdocument id
Definition: ClarisWksGraph.cxx:805
bool addFrameName(MWAWGraphicStyle &style) const
add the frame name if needed
Definition: ClarisWksGraph.cxx:514
void insertTextBox(MWAWPosition const &pos, MWAWSubDocumentPtr const &subDocument, MWAWGraphicStyle const &style) final
adds a textbox in given position
Definition: MWAWGraphicListener.cxx:1111
Type getType() const final
return the main type
Definition: ClarisWksGraph.cxx:578
std::shared_ptr< ClarisWksStyleManager > getStyleManager()
returns the style manager
Definition: ClarisWksDocument.hxx:134
int m_typeId
type number
Definition: ClarisWksGraph.cxx:673
MWAWVec2f m_cornerWidth
the rectangle round corner
Definition: MWAWGraphicShape.hxx:222
void print(std::ostream &o) const final
print the zone
Definition: ClarisWksGraph.cxx:618
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:99
@ Char
Definition: MWAWPosition.hxx:51
@ T_RectOval
Definition: ClarisWksGraph.cxx:181
bool readGroupUnknown(ClarisWksGraphInternal::Group &group, int zoneSz, int id)
Definition: ClarisWksGraph.cxx:2051
the main class to read the graphic part of Claris Works file
Definition: ClarisWksGraph.hxx:78
DSET()
constructor
Definition: ClarisWksStruct.hxx:99
MWAWColor m_colors[2]
the two indexed colors
Definition: MWAWGraphicStyle.hxx:361
@ DOC_TABLE
Definition: libmwaw_internal.hxx:188
MWAWVec2f m_controlPoints[2]
the control point: previous, next
Definition: ClarisWksGraph.cxx:106
int m_surfacePatternType
the surface pattern type
Definition: ClarisWksGraph.cxx:169
virtual int getZoneId() const
returns the id of the reference zone
Definition: ClarisWksGraph.cxx:257
float m_backgroundOpacity
true if the background has some color
Definition: MWAWGraphicStyle.hxx:542
Group(ClarisWksStruct::DSET const &dset=ClarisWksStruct::DSET())
constructor
Definition: ClarisWksGraph.cxx:683
static ReadResult check(MWAWInputStreamPtr const &input, int size, MWAWBox2f &box)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:100
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
@ DOC_TEXT_BOX
Definition: libmwaw_internal.hxx:188
Internal: the structures of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:69
Type getSubType() const final
return the sub type
Definition: ClarisWksGraph.cxx:388
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:548
bool readPICT(ClarisWksGraphInternal::ZonePict &zone)
Definition: ClarisWksGraph.cxx:2311
void computePositions() const
compute the pages position
Definition: ClarisWksGraph.cxx:849
int m_styleId
the style id
Definition: ClarisWksGraph.cxx:553
@ DOC_NOTE
Definition: libmwaw_internal.hxx:188
@ Line
Definition: MWAWGraphicShape.hxx:49
long m_size
the size of the DSET header
Definition: ClarisWksStruct.hxx:69
void removeChild(int cId, bool normalChild) final
remove a child from a list.
Definition: ClarisWksGraph.cxx:703
int getZoneId() const final
returns the id of the reference zone
Definition: ClarisWksGraph.cxx:504
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:238
MWAWVec2< T > center() const
the box center
Definition: libmwaw_internal.hxx:1072
the main class to read a Claris Works file
Definition: ClarisWksParser.hxx:68
@ T_QTim
Definition: ClarisWksGraph.cxx:183
void startDocument() final
starts a new document
Definition: MWAWGraphicListener.cxx:470
Type getSubType() const final
return the sub type
Definition: ClarisWksGraph.cxx:308
a bitmap of int to store indexed bitmap
Definition: MWAWPictBitmap.hxx:357
long m_numData
the number of header
Definition: ClarisWksStruct.hxx:180
This class contains code needed to write a presention document.
Definition: MWAWPresentationListener.hxx:60
Type m_type
the sub type
Definition: ClarisWksGraph.cxx:407
Style m_style
the style
Definition: ClarisWksGraph.cxx:278
std::string m_frameNextName
the frame next name (if there is a link)
Definition: MWAWGraphicStyle.hxx:550
virtual ClarisWksStruct::DSET::Child getChild() const
return a child corresponding to this zone
Definition: ClarisWksGraph.cxx:250
long m_dataSz
the data size
Definition: ClarisWksStruct.hxx:182
Type m_type
the sub type
Definition: ClarisWksGraph.cxx:671
int m_zoneType
the zone type
Definition: ClarisWksGraph.cxx:270
int getNumData(int) const final
return the number of data
Definition: ClarisWksGraph.cxx:313
@ Page
Definition: MWAWPosition.hxx:51
@ C_Zone
Definition: ClarisWksStruct.hxx:96
@ WForeground
Definition: MWAWPosition.hxx:53
std::vector< std::shared_ptr< Zone > > m_zonesToSend
the list of block to send
Definition: ClarisWksGraph.cxx:724
std::shared_ptr< ClarisWksStruct::DSET > readBitmapZone(ClarisWksStruct::DSET const &zone, MWAWEntry const &entry, bool &complete)
reads the zone Bitmap DSET
Definition: ClarisWksGraph.cxx:1000
bool sendDatabasePictZone(int pictId, MWAWListenerPtr listener, MWAWPosition const &pos=MWAWPosition())
sends the database zone if known
Definition: ClarisWksGraph.cxx:3151
bool isSlide() const
test if the zone is a slide
Definition: ClarisWksStruct.hxx:132
Type getSubType() const final
return the sub type
Definition: ClarisWksGraph.cxx:652
Type getType() const final
return the main type
Definition: ClarisWksGraph.cxx:303
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
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:3443
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
long m_dataSize
the data size
Definition: ClarisWksStruct.hxx:73
int m_frameId
a int used to defined linked frame
Definition: ClarisWksGraph.cxx:766
bool canSendZoneAsGraphic(int number) const
check if we can send a zone as a graphic
Definition: ClarisWksDocument.cxx:423
int m_numBytesPerPixel
the number of bite by pixel
Definition: ClarisWksGraph.cxx:435
MWAWVec2f const & origin() const
return the frame origin
Definition: MWAWPosition.hxx:130
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
@ P_Main
Definition: ClarisWksStruct.hxx:91
bool readGroupHeader(ClarisWksGraphInternal::Group &group)
Definition: ClarisWksGraph.cxx:1958
Defines MWAWSpreadsheetListener: the libmwaw spreadsheet processor listener.
MWAWEntry m_entry
the bitmap entry
Definition: ClarisWksGraph.cxx:441
Internal: the structure used to store a style of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:112
virtual Type getType() const
return the main type
Definition: ClarisWksGraph.cxx:233
SubDocument(ClarisWksGraph &pars, MWAWInputStreamPtr const &input, int zoneId, MWAWPosition const &pos=MWAWPosition())
Definition: ClarisWksGraph.cxx:778
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1067
@ T_Unknown
Definition: ClarisWksGraph.cxx:179
@ T_Line
Definition: ClarisWksGraph.cxx:181
@ Frame
Definition: MWAWPosition.hxx:51
~Chart() final
destructor
Definition: ClarisWksGraph.cxx:602
bool readShape(MWAWEntry const &entry, ClarisWksGraphInternal::ZoneShape &zone)
Definition: ClarisWksGraph.cxx:1818
Internal: structure to store a bitmap of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:417
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:2095
@ P_Unknown
Definition: ClarisWksStruct.hxx:93
bool canBeSendAsGraphic() const final
returns true if the zone can be send using a graphic listener (partial check)
Definition: ClarisWksGraph.cxx:499
Type getSubType() const final
return the sub type Zone
Definition: ClarisWksGraph.cxx:489
Type getType() const final
return the main type T_Picture
Definition: ClarisWksGraph.cxx:383
virtual ~ClarisWksGraph()
destructor
Definition: ClarisWksGraph.cxx:841
MWAWGraphicShape m_shape
the shape
Definition: ClarisWksGraph.cxx:330
@ Paragraph
Definition: MWAWPosition.hxx:51
a basic structure
Definition: ClarisWksStruct.hxx:53
int m_rotate
the rotation
Definition: ClarisWksGraph.cxx:332
ClarisWksStruct::DSET::Child getChild() const final
return a child corresponding to this zone
Definition: ClarisWksGraph.cxx:319
virtual ~Zone()
destructor
Definition: ClarisWksGraph.cxx:281
@ Circle
Definition: MWAWGraphicShape.hxx:49
MWAWVec2f m_pageDimensions
the page dimension if known (in point)
Definition: ClarisWksGraph.cxx:756
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
MWAWVec2f m_pageDimension
the page dimension (if know)
Definition: ClarisWksStruct.hxx:196
MWAWParserStatePtr m_parserState
the parser state
Definition: ClarisWksGraph.hxx:230
@ WNone
Definition: MWAWPosition.hxx:53
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:270
bool getPageDimension(MWAWVec2f &dim) const
returns the page dimension if known (in point)
Definition: ClarisWksGraph.cxx:876
Internal: structure used to store an unknown zone of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:607
@ P_SlideMaster
Definition: ClarisWksStruct.hxx:93
std::map< int, std::shared_ptr< ZonePict > > m_databaseMap
a map zoneId -> zone
Definition: ClarisWksGraph.cxx:764
void print(std::ostream &o) const final
print the zone
Definition: ClarisWksGraph.cxx:469
a bitmap of MWAWColor to store true color bitmap
Definition: MWAWPictBitmap.hxx:469
int m_id
the zoneId
Definition: ClarisWksGraph.cxx:543
Internal: the generic structure used to store a zone of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:177
a simple path component
Definition: MWAWGraphicShape.hxx:53
std::vector< MWAWColor > m_colorMap
the color map
Definition: ClarisWksGraph.cxx:443
@ DOC_NONE
Definition: libmwaw_internal.hxx:188
long m_headerSz
the header size
Definition: ClarisWksStruct.hxx:184
MWAWPosition::Wrapping getWrapping() const
returns the wrapping
Definition: ClarisWksGraph.cxx:124
void updateGroup(ClarisWksGraphInternal::Group &group) const
update the group information to choose how to send the group data
Definition: ClarisWksGraph.cxx:2634
int m_frameId
the frame id (for a linked frame)
Definition: ClarisWksGraph.cxx:547
MWAWBox2f m_box
the bdbox
Definition: ClarisWksGraph.cxx:274
bool sendPageGraphics(int groupId)
sends the page element
Definition: ClarisWksGraph.cxx:3410
~SubDocument() final
destructor
Definition: ClarisWksGraph.cxx:785
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:393
bool getSurfaceColor(ClarisWksGraphInternal::Style const &style, MWAWColor &col) const
return the surface color which corresponds to some ids (if possible)
Definition: ClarisWksGraph.cxx:890
void askToSend(int number, MWAWListenerPtr listener, MWAWPosition const &pos=MWAWPosition())
ask the main parser to send a zone
Definition: ClarisWksGraph.cxx:882
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
bool readGroupData(ClarisWksGraphInternal::Group &group, long beginGroupPos)
Definition: ClarisWksGraph.cxx:1626
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: ClarisWksGraph.cxx:788
Type
the list of types
Definition: ClarisWksGraph.cxx:179
@ T_Rect
Definition: ClarisWksGraph.cxx:181
@ T_Movie
Definition: ClarisWksGraph.cxx:183
bool readOLE(ClarisWksGraphInternal::ZonePict &zone)
Definition: ClarisWksGraph.cxx:2386
int getNumData(int version) const final
return the number of data
Definition: ClarisWksGraph.cxx:588
std::string m_extra
extra data
Definition: MWAWGraphicShape.hxx:230
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:60
int m_wrapping
the wrap type
Definition: ClarisWksGraph.cxx:167
MWAWBox2f m_formBox
the internal shape bdbox ( used for arc, circle to store the circle bdbox )
Definition: MWAWGraphicShape.hxx:220
a structure used to define an arrow
Definition: MWAWGraphicStyle.hxx:56
void print(std::ostream &o) const final
print the zone
Definition: ClarisWksGraph.cxx:573
bool readQTimeData(std::shared_ptr< ClarisWksGraphInternal::Zone > zone)
Definition: ClarisWksGraph.cxx:2433
void findMasterPage() const
find the master zone to the content zones in a graphic document
Definition: ClarisWksGraph.cxx:1293
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20