ClarisWksGraph.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
2 
3 /* libmwaw
4 * Version: MPL 2.0 / LGPLv2+
5 *
6 * The contents of this file are subject to the Mozilla Public License Version
7 * 2.0 (the "License"); you may not use this file except in compliance with
8 * the License or as specified alternatively below. You may obtain a copy of
9 * the License at http://www.mozilla.org/MPL/
10 *
11 * Software distributed under the License is distributed on an "AS IS" basis,
12 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 * for the specific language governing rights and limitations under the
14 * License.
15 *
16 * Major Contributor(s):
17 * Copyright (C) 2002 William Lachance (wrlach@gmail.com)
18 * Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)
19 * Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
20 * Copyright (C) 2006, 2007 Andrew Ziem
21 * Copyright (C) 2011, 2012 Alonso Laurent (alonso@loria.fr)
22 *
23 *
24 * All Rights Reserved.
25 *
26 * For minor contributions see the git repository.
27 *
28 * Alternatively, the contents of this file may be used under the terms of
29 * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
30 * in which case the provisions of the LGPLv2+ are applicable
31 * instead of those above.
32 */
33 
34 /*
35  * Parser to Claris Works text document ( graphic part )
36  *
37  */
38 #ifndef CLARIS_WKS_GRAPH
39 # define CLARIS_WKS_GRAPH
40 
41 #include <string>
42 #include <vector>
43 
44 #include <librevenge/librevenge.h>
45 
46 #include "libmwaw_internal.hxx"
47 
48 #include "MWAWDebug.hxx"
49 #include "MWAWInputStream.hxx"
50 #include "MWAWPosition.hxx"
51 
52 #include "ClarisWksStruct.hxx"
53 
54 namespace ClarisWksGraphInternal
55 {
56 struct Group;
57 struct State;
58 struct Style;
59 struct Zone;
60 struct Chart;
61 struct ZoneShape;
62 struct Bitmap;
63 struct ZonePict;
64 
65 class SubDocument;
66 }
67 
68 class ClarisWksDocument;
69 class ClarisWksParser;
70 class MWAWParser;
71 
78 {
80  friend class ClarisWksDocument;
81  friend class ClarisWksParser;
82 
83 public:
85  explicit ClarisWksGraph(ClarisWksDocument &document);
87  virtual ~ClarisWksGraph();
88 
90  int version() const;
91 
93  int numPages() const;
94 
96  bool getPageDimension(MWAWVec2f &dim) const;
97 
99  void computePositions() const;
100 
102  void findMasterPage() const;
103 
105  shared_ptr<ClarisWksStruct::DSET> readGroupZone
106  (ClarisWksStruct::DSET const &zone, MWAWEntry const &entry, bool &complete);
107 
109  shared_ptr<ClarisWksStruct::DSET> readBitmapZone
110  (ClarisWksStruct::DSET const &zone, MWAWEntry const &entry, bool &complete);
111 
113  bool getSurfaceColor(ClarisWksGraphInternal::Style const &style, MWAWColor &col) const;
114 protected:
116  bool canSendGroupAsGraphic(int number) const;
118  bool sendPageGraphics(int groupId);
120  bool sendMaster(int pg);
122  bool sendGroup(int number, MWAWListenerPtr listener, MWAWPosition const &pos=MWAWPosition());
124  bool canSendBitmapAsGraphic(int number) const;
126  bool sendBitmap(int number, MWAWListenerPtr listener, MWAWPosition const &pos=MWAWPosition());
127 
129  void flushExtra();
130 
131  // interface with main parser
132 
134  void askToSend(int number, MWAWListenerPtr listener, MWAWPosition const &pos=MWAWPosition());
135 
136  //
137  // Intermediate level
138  //
139 
141  void updateGroup(ClarisWksGraphInternal::Group &group) const;
145  bool sendGroup(ClarisWksGraphInternal::Group &group, MWAWPosition const &position);
147  bool sendGroupChild(std::vector<shared_ptr<ClarisWksGraphInternal::Zone> > const &lChild, MWAWListenerPtr listener, MWAWVec2f const &leftTop);
149  bool sendGroupChild(shared_ptr<ClarisWksGraphInternal::Zone> zone, MWAWPosition position);
152  /* read a simple group */
153  shared_ptr<ClarisWksGraphInternal::Zone> readGroupDef(MWAWEntry const &entry);
154  /* read the group data.
155 
156  \note \a beginGroupPos is only used to help debugging */
157  bool readGroupData(ClarisWksGraphInternal::Group &group, long beginGroupPos);
158 
159  /* read a simple graphic zone */
160  bool readShape(MWAWEntry const &entry,
162 
163  /* try to read the chart data */
164  bool readChartData(shared_ptr<ClarisWksGraphInternal::Zone> zone);
165 
166  /* try to read a pict data zone */
167  bool readPictData(shared_ptr<ClarisWksGraphInternal::Zone> zone);
168 
169  /* try to read the polygon data */
170  bool readPolygonData(shared_ptr<ClarisWksGraphInternal::Zone> zone);
171 
172  /* read a picture */
174 
175  /* read a postcript zone */
177 
178  /* read a ole document zone */
180 
182  /* try to read the qtime data zone */
183  bool readQTimeData(shared_ptr<ClarisWksGraphInternal::Zone> zone);
184 
185  /* read a named picture */
187 
189  /* try to read a bitmap zone */
190  bool readBitmapColorMap(std::vector<MWAWColor> &cMap);
191 
192  /* try to read the bitmap */
194  //
195  // low level
196  //
197 
198  /* read the first zone of a group type */
200 
201  /* read some unknown data in first zone */
202  bool readGroupUnknown(ClarisWksGraphInternal::Group &group, int zoneSz, int id);
203 
206 
209 
212 
213 private:
216 
217 protected:
218  //
219  // data
220  //
223 
226 
228  shared_ptr<ClarisWksGraphInternal::State> m_state;
229 
232 };
233 #endif
234 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
ClarisWksGraph::readBitmapData
bool readBitmapData(ClarisWksGraphInternal::Bitmap &zone)
Definition: ClarisWksGraph.cxx:2409
MWAWEntry
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
ClarisWksGraphInternal::CurvePoint::m_type
int m_type
the point type
Definition: ClarisWksGraph.cxx:106
ClarisWksGraphInternal::State::m_groupMap
std::map< int, shared_ptr< Group > > m_groupMap
a map zoneId -> group
Definition: ClarisWksGraph.cxx:722
MWAWPosition::CharBaseLine
@ CharBaseLine
Definition: MWAWPosition.hxx:51
ClarisWksStruct::DSET::m_id
int m_id
the zone identificator
Definition: ClarisWksStruct.hxx:156
MWAWGraphicStyle::Pattern::getUniqueColor
bool getUniqueColor(MWAWColor &col) const
check if the pattern has only one color; if so returns true...
Definition: MWAWGraphicStyle.cxx:86
ClarisWksGraphInternal::ZoneZone::~ZoneZone
~ZoneZone()
destructor
Definition: ClarisWksGraph.cxx:534
ClarisWksGraphInternal::SubDocument::~SubDocument
virtual ~SubDocument()
destructor
Definition: ClarisWksGraph.cxx:742
MWAWPict::ReadResult
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
ClarisWksGraphInternal::State::m_ordering
int m_ordering
the last ordering used
Definition: ClarisWksGraph.cxx:730
ClarisWksGraphInternal::ZoneUnknown::getType
virtual Type getType() const
return the main type
Definition: ClarisWksGraph.cxx:618
MWAWGraphicStyle::hasSurfaceColor
bool hasSurfaceColor() const
returns true if the surface is defined
Definition: MWAWGraphicStyle.hxx:288
ClarisWksGraphInternal::ZoneUnknown::print
virtual void print(std::ostream &o) const
print the zone
Definition: ClarisWksGraph.cxx:589
ClarisWksGraphInternal::Zone::T_DataBox
@ T_DataBox
Definition: ClarisWksGraph.cxx:173
ClarisWksGraph::readChartData
bool readChartData(shared_ptr< ClarisWksGraphInternal::Zone > zone)
Definition: ClarisWksGraph.cxx:2028
MWAWPosition::setPagePos
void setPagePos(int pg, MWAWVec2f const &newOrig) const
sets/resets the page and the origin
Definition: MWAWPosition.hxx:214
ClarisWksGraphInternal::Group
Internal: class which stores a group of graphics, ...
Definition: ClarisWksGraph.cxx:652
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
ClarisWksGraph::readPS
bool readPS(ClarisWksGraphInternal::ZonePict &zone)
Definition: ClarisWksGraph.cxx:2188
MWAWListener::insertPicture
virtual void insertPicture(MWAWPosition const &pos, MWAWEmbeddedObject const &picture, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())=0
adds a picture with various representationin given position.
ClarisWksGraphInternal::ZoneUnknown::~ZoneUnknown
~ZoneUnknown()
destructor
Definition: ClarisWksGraph.cxx:647
ClarisWksGraphInternal::ZoneZone::getZoneId
virtual int getZoneId() const
returns the id of the reference zone
Definition: ClarisWksGraph.cxx:478
MWAWVec2f
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:785
ClarisWksStruct.hxx
ClarisWksStruct::DSET::P_Table
@ P_Table
Definition: ClarisWksStruct.hxx:62
MWAWPictBitmapIndexed::setColors
void setColors(std::vector< MWAWColor > const &cols)
sets the array of indexed colors
Definition: MWAWPictBitmap.hxx:432
ClarisWksGraphInternal::SubDocument::m_position
MWAWPosition m_position
the position if known
Definition: ClarisWksGraph.cxx:769
libmwaw::DebugFile::addDelimiter
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
MWAWGraphicStyle::setSurfaceColor
void setSurfaceColor(MWAWColor const &col, float opacity=1)
set the surface color
Definition: MWAWGraphicStyle.hxx:282
ClarisWksGraphInternal::Chart
Internal: structure used to store a chart zone of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:539
ClarisWksGraphInternal::State::m_masterId
int m_masterId
the master group id ( in a draw file )
Definition: ClarisWksGraph.cxx:720
ClarisWksGraphInternal::State::m_bitmapMap
std::map< int, shared_ptr< Bitmap > > m_bitmapMap
a map zoneId -> group
Definition: ClarisWksGraph.cxx:724
ClarisWksGraphInternal::ZoneShape::~ZoneShape
~ZoneShape()
destructor
Definition: ClarisWksGraph.cxx:319
MWAWPosition::AnchorTo
AnchorTo
a list of enum used to defined the anchor
Definition: MWAWPosition.hxx:51
MWAWPosition::setRelativePosition
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:221
MWAWDocument::MWAW_K_PAINT
@ MWAW_K_PAINT
bitmap graphic
Definition: MWAWDocument.hxx:84
ClarisWksGraph::sendPageChild
bool sendPageChild(ClarisWksGraphInternal::Group &group)
send the child element corresponding to some page
Definition: ClarisWksGraph.cxx:2602
ClarisWksGraph::readNamedPict
bool readNamedPict(ClarisWksGraphInternal::ZonePict &zone)
Definition: ClarisWksGraph.cxx:2312
ClarisWksGraphInternal::Zone::T_Zone
@ T_Zone
Definition: ClarisWksGraph.cxx:173
ClarisWksGraph::sendBitmap
bool sendBitmap(int number, MWAWListenerPtr listener, MWAWPosition const &pos=MWAWPosition())
sends the bitmap data to the listener (if it exists )
Definition: ClarisWksGraph.cxx:3002
ClarisWksGraphInternal::Zone::T_Shape
@ T_Shape
Definition: ClarisWksGraph.cxx:173
ClarisWksGraph::sendMaster
bool sendMaster(int pg)
sends the master zone (ie. the background zone in a graphic document)
Definition: ClarisWksGraph.cxx:3220
ClarisWksGraphInternal::ZoneShape::ZoneShape
ZoneShape(Zone const &z, Type type)
constructor
Definition: ClarisWksGraph.cxx:275
MWAWGraphicShape::pie
static MWAWGraphicShape pie(MWAWBox2f const &box, MWAWBox2f const &circleBox, MWAWVec2f const &angles)
static constructor to create a pie
Definition: MWAWGraphicShape.hxx:130
MWAWGraphicShape::translate
void translate(MWAWVec2f const &delta)
translate all the coordinate by delta
Definition: MWAWGraphicShape.cxx:351
ClarisWksGraphInternal::ZoneZone::m_subId
int m_subId
the zoneSubId: can be page/column/frame linked number
Definition: ClarisWksGraph.cxx:519
ClarisWksGraphInternal::Bitmap::m_bitmapSize
MWAWVec2i m_bitmapSize
the bitmap size
Definition: ClarisWksGraph.cxx:419
MWAWGraphicShape::m_path
std::vector< PathData > m_path
the list of path component
Definition: MWAWGraphicShape.hxx:203
MWAWPictBitmapIndexed::set
void set(int i, int j, int v)
sets a cell contents
Definition: MWAWPictBitmap.hxx:411
libmwaw::DOC_COMMENT_ANNOTATION
@ DOC_COMMENT_ANNOTATION
Definition: libmwaw_internal.hxx:178
ClarisWksDocument::checkOrdering
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
ClarisWksStruct::DSET::Child::m_type
ChildType m_type
the type
Definition: ClarisWksStruct.hxx:229
MWAWPosition::setPage
void setPage(int pg) const
sets the page
Definition: MWAWPosition.hxx:189
ClarisWksGraphInternal::ZonePict::getNumData
virtual int getNumData(int) const
return the number of data in a file
Definition: ClarisWksGraph.cxx:375
ClarisWksGraphInternal::ZoneZone
Internal: structure to store a link to a zone of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:433
ClarisWksGraph::ClarisWksGraph
ClarisWksGraph(ClarisWksGraph const &orig)
MWAWGraphicStyle::Arrow::plain
static Arrow plain()
returns a basic plain arrow
Definition: MWAWGraphicStyle.hxx:69
ClarisWksGraph::canSendBitmapAsGraphic
bool canSendBitmapAsGraphic(int number) const
check if we can send a group as graphic
Definition: ClarisWksGraph.cxx:2989
MWAWGraphicStyle::m_surfaceOpacity
float m_surfaceOpacity
true if the surface has some color
Definition: MWAWGraphicStyle.hxx:387
ClarisWksGraphInternal::ZoneShape::getChild
virtual ClarisWksStruct::DSET::Child getChild() const
return a child corresponding to this zone
Definition: ClarisWksGraph.cxx:303
ClarisWksGraphInternal::ZoneShape
Internal: small class to store a basic graphic zone of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:273
ClarisWksGraphInternal::Chart::~Chart
~Chart()
destructor
Definition: ClarisWksGraph.cxx:576
ClarisWksGraphInternal::ZoneZone::m_frameSubId
int m_frameSubId
the frame sub id (for a linked frame)
Definition: ClarisWksGraph.cxx:523
libmwaw::DOC_CHART
@ DOC_CHART
Definition: libmwaw_internal.hxx:178
libmwaw::DOC_CHART_ZONE
@ DOC_CHART_ZONE
Definition: libmwaw_internal.hxx:178
ClarisWksGraph::sendGroup
bool sendGroup(int number, MWAWListenerPtr listener, MWAWPosition const &pos=MWAWPosition())
sends the zone data to the listener (if it exists )
Definition: ClarisWksGraph.cxx:3261
ClarisWksStruct::DSET::Child::m_id
int m_id
the identificator
Definition: ClarisWksStruct.hxx:231
MWAWGraphicListener::startDocument
void startDocument()
starts a new document
Definition: MWAWGraphicListener.cxx:432
ClarisWksGraphInternal::Chart::print
virtual void print(std::ostream &o) const
print the zone
Definition: ClarisWksGraph.cxx:547
MWAWPosition::WBackground
@ WBackground
Definition: MWAWPosition.hxx:53
ClarisWksGraphInternal::Zone::canBeSendAsGraphic
virtual bool canBeSendAsGraphic() const
returns true if the zone can be send using a graphic listener (partial check)
Definition: ClarisWksGraph.cxx:250
ClarisWksGraphInternal::Group::removeChild
virtual void removeChild(int cId, bool normalChild)
remove a child from a list.
Definition: ClarisWksGraph.cxx:672
MWAWGraphicShape
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:46
MWAWColor
the class to store a color
Definition: libmwaw_internal.hxx:182
ClarisWksGraphInternal::Chart::getType
virtual Type getType() const
return the main type
Definition: ClarisWksGraph.cxx:552
MWAWEmbeddedObject
small class use to define a embedded object
Definition: libmwaw_internal.hxx:425
MWAWListener::Presentation
@ Presentation
Definition: MWAWListener.hxx:56
ClarisWksGraphInternal::Chart::Chart
Chart(Zone const &z)
construtor
Definition: ClarisWksGraph.cxx:541
MWAWGraphicShape::line
static MWAWGraphicShape line(MWAWVec2f const &orign, MWAWVec2f const &dest)
static constructor to create a line
Definition: MWAWGraphicShape.cxx:227
ClarisWksGraphInternal::ZoneZone::m_wrappingSep
int m_wrappingSep
the wrapping separator
Definition: ClarisWksGraph.cxx:529
MWAWGraphicStyle::setBackgroundColor
void setBackgroundColor(MWAWColor const &col, float opacity=1)
set the background color
Definition: MWAWGraphicStyle.hxx:314
ClarisWksGraphInternal::CurvePoint
Internal: the structure used to a point of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:71
MWAWPosition::setUnit
void setUnit(librevenge::RVNGUnit newUnit)
sets the dimension unit
Definition: MWAWPosition.hxx:209
ClarisWksGraphInternal::Style::operator<<
friend std::ostream & operator<<(std::ostream &o, Style const &st)
operator<<
Definition: ClarisWksGraph.cxx:132
ClarisWksGraph::canSendAsGraphic
bool canSendAsGraphic(ClarisWksGraphInternal::Group &group) const
check if we can send a group as graphic
Definition: ClarisWksGraph.cxx:3200
ClarisWksStruct::DSET::Child
structure used to define the child of a DSET structure
Definition: ClarisWksStruct.hxx:182
ClarisWksDocument::getStyleManager
shared_ptr< ClarisWksStyleManager > getStyleManager()
returns the style manager
Definition: ClarisWksDocument.hxx:132
ClarisWksGraphInternal::CurvePoint::m_pos
MWAWVec2f m_pos
the main position
Definition: ClarisWksGraph.cxx:102
MWAWGraphicStyle::Pattern::getAverageColor
bool getAverageColor(MWAWColor &col) const
return the average color
Definition: MWAWGraphicStyle.cxx:101
MWAWSpreadsheetListener::endDocument
void endDocument(bool sendDelayedSubDoc=true)
ends the document
Definition: MWAWSpreadsheetListener.cxx:515
MWAWDocument::MWAW_K_DRAW
@ MWAW_K_DRAW
vectorized grphic
Definition: MWAWDocument.hxx:83
ClarisWksGraphInternal::ZonePict::getSubType
virtual Type getSubType() const
return the sub type
Definition: ClarisWksGraph.cxx:370
ClarisWksDocument::sendZone
bool sendZone(int zoneId, MWAWListenerPtr listener=MWAWListenerPtr(), MWAWPosition pos=MWAWPosition())
try to send a zone
Definition: ClarisWksDocument.cxx:433
ClarisWksDocument::getPageLeftTop
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: ClarisWksDocument.cxx:297
MWAWPosition::WDynamic
@ WDynamic
Definition: MWAWPosition.hxx:53
ClarisWksGraphInternal::ZonePict::ZonePict
ZonePict(Zone const &z, Type type)
constructor
Definition: ClarisWksGraph.cxx:326
MWAWListener::Graphic
@ Graphic
Definition: MWAWListener.hxx:56
ClarisWksGraphInternal::Zone::m_page
int m_page
the page (checkme: or frame linked )
Definition: ClarisWksGraph.cxx:260
MWAWGraphicListener::endDocument
void endDocument(bool delayed=true)
ends the actual document
Definition: MWAWGraphicListener.cxx:443
ClarisWksGraphInternal::State::getOrdering
int getOrdering() const
returns a new ordering.
Definition: ClarisWksGraph.cxx:711
ClarisWksGraphInternal::Chart::getChild
virtual ClarisWksStruct::DSET::Child getChild() const
return a child corresponding to this zone
Definition: ClarisWksGraph.cxx:567
ClarisWksGraphInternal::Chart::getNumData
virtual int getNumData(int version) const
return the number of data
Definition: ClarisWksGraph.cxx:562
ClarisWksGraph::m_mainParser
MWAWParser * m_mainParser
the main parser;
Definition: ClarisWksGraph.hxx:231
ClarisWksGraphInternal::ZoneShape::getSubType
virtual Type getSubType() const
return the sub type
Definition: ClarisWksGraph.cxx:292
MWAWParserStatePtr
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:509
ClarisWksDocument
main document information used to create a ClarisWorks file
Definition: ClarisWksDocument.hxx:74
ClarisWksGraphInternal::ZonePict
Internal: the structure used to store a PICT or a MOVIE.
Definition: ClarisWksGraph.cxx:324
ClarisWksGraphInternal::ZoneShape::m_type
Type m_type
the sub type
Definition: ClarisWksGraph.cxx:312
MWAWPosition::Wrapping
Wrapping
an enum used to define the wrapping: none, ...
Definition: MWAWPosition.hxx:53
ClarisWksGraphInternal::Zone::getBdBox
MWAWBox2f getBdBox() const
return the zone bdbox
Definition: ClarisWksGraph.cxx:209
libmwaw::DebugFile::addNote
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
MWAWSubDocument
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
MWAWGraphicStyle
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
MWAWGraphicShape::m_bdBox
MWAWBox2f m_bdBox
the shape bdbox
Definition: MWAWGraphicShape.hxx:193
MWAWGraphicStyle::hasLine
bool hasLine() const
returns true if the border is defined
Definition: MWAWGraphicStyle.hxx:277
MWAWSpreadsheetListener::startDocument
void startDocument()
starts the document
Definition: MWAWSpreadsheetListener.cxx:502
ClarisWksGraphInternal::ZonePict::m_entries
MWAWEntry m_entries[2]
the picture entry followed by a ps entry or ole entry ( if defined)
Definition: ClarisWksGraph.cxx:391
ClarisWksGraphInternal::ZoneZone::getNumData
virtual int getNumData(int) const
return the number of data to define this zone in the file
Definition: ClarisWksGraph.cxx:468
ClarisWksStruct
namespace to store the main structure which appears in a ClarisDraw/ClarisWorks file
Definition: ClarisWksStruct.cxx:51
MWAWPictBitmapColor::set
void set(int i, int j, MWAWColor const &v)
sets a cell contents
Definition: MWAWPictBitmap.hxx:510
ClarisWksGraphInternal::ZonePict::print
virtual void print(std::ostream &o) const
print the data
Definition: ClarisWksGraph.cxx:332
MWAWPosition::setOrder
void setOrder(int ord) const
set background/foward order
Definition: MWAWPosition.hxx:248
ClarisWksGraphInternal::Zone::T_Picture
@ T_Picture
Definition: ClarisWksGraph.cxx:173
ClarisWksGraphInternal::ZoneShape::getNumData
virtual int getNumData(int) const
return the number of data
Definition: ClarisWksGraph.cxx:297
MWAWPosition::Unknown
@ Unknown
Definition: MWAWPosition.hxx:51
ClarisWksGraphInternal::ZoneUnknown::getNumData
virtual int getNumData(int) const
return the number of data
Definition: ClarisWksGraph.cxx:628
MWAWGraphicStyle::m_lineOpacity
float m_lineOpacity
the line opacity: 0=transparent
Definition: MWAWGraphicStyle.hxx:381
ClarisWksGraphInternal::Zone::operator<<
friend std::ostream & operator<<(std::ostream &o, Zone const &zone)
operator<<
Definition: ClarisWksGraph.cxx:184
ClarisWksGraphInternal::State::State
State()
constructor
Definition: ClarisWksGraph.cxx:706
ClarisWksGraphInternal::Bitmap::Bitmap
Bitmap(ClarisWksStruct::DSET const &dset=ClarisWksStruct::DSET())
constructor
Definition: ClarisWksGraph.cxx:401
ClarisWksGraphInternal::ZoneZone::print
virtual void print(std::ostream &o) const
print the zone
Definition: ClarisWksGraph.cxx:443
ClarisWksStruct::DSET::P_Frame
@ P_Frame
Definition: ClarisWksStruct.hxx:62
ClarisWksGraph::canSendGroupAsGraphic
bool canSendGroupAsGraphic(int number) const
check if we can send a group as graphic
Definition: ClarisWksGraph.cxx:3191
ClarisWksGraphInternal::CurvePoint::operator<<
friend std::ostream & operator<<(std::ostream &o, CurvePoint const &pt)
operator<<
Definition: ClarisWksGraph.cxx:77
MWAWPresentationListener.hxx
ClarisWksGraphInternal::Style::~Style
virtual ~Style()
destructor
Definition: ClarisWksGraph.cxx:166
ClarisWksGraphInternal::State::m_positionsComputed
bool m_positionsComputed
true if the ClarisWksGraph::computePositions was called
Definition: ClarisWksGraph.cxx:728
ClarisWksGraphInternal::Zone::print
virtual void print(std::ostream &) const
print the data contains
Definition: ClarisWksGraph.cxx:236
ClarisWksGraphInternal::ZonePict::getChild
virtual ClarisWksStruct::DSET::Child getChild() const
return a child corresponding to this zone
Definition: ClarisWksGraph.cxx:380
ClarisWksGraphInternal::Zone::T_Poly
@ T_Poly
Definition: ClarisWksGraph.cxx:175
MWAWGraphicStyle::Pattern
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:171
MWAWSubDocument.hxx
MWAWPosition::size
MWAWVec2f const & size() const
returns the frame size
Definition: MWAWPosition.hxx:119
MWAWGraphicShape::Polygon
@ Polygon
Definition: MWAWGraphicShape.hxx:49
MWAWGraphicStyle::hasPattern
bool hasPattern() const
returns true if the pattern is defined
Definition: MWAWGraphicStyle.hxx:299
ClarisWksGraphInternal::ZoneUnknown::ZoneUnknown
ZoneUnknown(Zone const &z)
construtor
Definition: ClarisWksGraph.cxx:583
MWAWBox2::getUnion
MWAWBox2< T > getUnion(MWAWBox2< T > const &box) const
returns the union between this and box
Definition: libmwaw_internal.hxx:1070
MWAWParser::getPageWidth
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWParser.hxx:185
ClarisWksGraphInternal::SubDocument::SubDocument
SubDocument(ClarisWksGraph &pars, MWAWInputStreamPtr input, int zoneId, MWAWPosition pos=MWAWPosition())
Definition: ClarisWksGraph.cxx:738
MWAWGraphicShape::Rectangle
@ Rectangle
Definition: MWAWGraphicShape.hxx:49
MWAWPictData::check
static ReadResult check(MWAWInputStreamPtr input, int size, MWAWBox2f &box)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:100
libmwaw::SubDocumentType
SubDocumentType
Definition: libmwaw_internal.hxx:178
ClarisWksGraphInternal::Zone::T_Arc
@ T_Arc
Definition: ClarisWksGraph.cxx:175
ClarisWksGraph::readBitmapColorMap
bool readBitmapColorMap(std::vector< MWAWColor > &cMap)
Definition: ClarisWksGraph.cxx:2362
ClarisWksGraph::readPolygonData
bool readPolygonData(shared_ptr< ClarisWksGraphInternal::Zone > zone)
Definition: ClarisWksGraph.cxx:1925
MWAWDocument::MWAW_K_PRESENTATION
@ MWAW_K_PRESENTATION
presentation graphic
Definition: MWAWDocument.hxx:85
ClarisWksStruct::DSET::Child::m_box
MWAWBox2f m_box
the bdbox
Definition: ClarisWksStruct.hxx:237
ClarisWksGraphInternal::Group::m_hasMainZone
bool m_hasMainZone
a flag to know if this zone contains or no the call to zone 1
Definition: ClarisWksGraph.cxx:693
ClarisWksGraphInternal::Bitmap::m_bitmapRowSize
int m_bitmapRowSize
the bitmap row size in the file ( with potential alignment)
Definition: ClarisWksGraph.cxx:421
ClarisWksGraphInternal::Zone::T_Oval
@ T_Oval
Definition: ClarisWksGraph.cxx:175
ClarisWksGraphInternal::ZoneUnknown::getSubType
virtual Type getSubType() const
return the sub type
Definition: ClarisWksGraph.cxx:623
ClarisWksGraphInternal::SubDocument::operator==
virtual bool operator==(MWAWSubDocument const &doc) const
operator!==
Definition: ClarisWksGraph.cxx:756
ClarisWksGraphInternal::SubDocument
Internal: the subdocument of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:736
ClarisWksGraphInternal::ZoneZone::ZoneZone
ZoneZone(Zone const &z, Type fileType)
constructor
Definition: ClarisWksGraph.cxx:435
ClarisWksGraph::version
int version() const
returns the file version
Definition: ClarisWksGraph.cxx:804
MWAWGraphicStyle::emptyStyle
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:268
ClarisWksGraphInternal::Zone::m_ordering
int m_ordering
the ordering
Definition: ClarisWksGraph.cxx:264
ClarisWksStruct::DSET::m_parsed
bool m_parsed
a flag to know if the entry is sent or not to the listener
Definition: ClarisWksStruct.hxx:177
ClarisWksStruct::DSET::m_childs
std::vector< Child > m_childs
the list of child zone
Definition: ClarisWksStruct.hxx:172
MWAWGraphicStyle::m_surfaceColor
MWAWColor m_surfaceColor
the surface color
Definition: MWAWGraphicStyle.hxx:385
MWAWEntry::setType
void setType(std::string const &newType)
sets the type of the entry: BTEP,FDPP, BTEC, FDPC, PLC , TEXT, ...
Definition: MWAWEntry.hxx:121
ClarisWksGraphInternal::SubDocument::operator=
SubDocument & operator=(SubDocument const &orig)
MWAWSpreadsheetListener
This class contents the main functions needed to create a spreadsheet processing Document.
Definition: MWAWSpreadsheetListener.hxx:66
libmwaw::DebugFile::skipZone
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:105
MWAWGraphicEncoder.hxx
ClarisWksGraphInternal::ZonePict::~ZonePict
~ZonePict()
destructor
Definition: ClarisWksGraph.cxx:394
ClarisWksGraphInternal::ZoneZone::m_frameLast
bool m_frameLast
true if this is the last frame of a frame zone
Definition: ClarisWksGraph.cxx:525
ClarisWksStyleManager.hxx
MWAWGraphicListenerPtr
shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:501
libmwaw::Debug::dumpFile
bool dumpFile(librevenge::RVNGBinaryData &data, char const *fileName)
a debug function to store in a datafile in the current directory WARNING: this function erase the fil...
Definition: MWAWDebug.cxx:197
libmwaw_internal.hxx
MWAWListener
This class contains a virtual interface to all listener.
Definition: MWAWListener.hxx:50
ClarisWksGraphInternal::State
Internal: the state of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:704
MWAWGraphicStyle::m_lineWidth
float m_lineWidth
the linewidth
Definition: MWAWGraphicStyle.hxx:375
ClarisWksGraphInternal::ZoneShape::print
virtual void print(std::ostream &o) const
print the data
Definition: ClarisWksGraph.cxx:281
ClarisWksGraphInternal::Zone::getNumData
virtual int getNumData(int) const
return the number of data to define this zone in the file
Definition: ClarisWksGraph.cxx:231
MWAWPosition.hxx
MWAWPosition::setSize
void setSize(MWAWVec2f const &sz)
sets the frame size
Definition: MWAWPosition.hxx:199
MWAWEntry::setEnd
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:66
ClarisWksGraphInternal::Zone::T_Zone2
@ T_Zone2
Definition: ClarisWksGraph.cxx:173
MWAWParser::getFormLength
double getFormLength() const
returns the form length
Definition: MWAWParser.hxx:170
ClarisWksGraphInternal::ZoneZone::isLinked
bool isLinked() const
check if we need to send the frame is linked to another frmae
Definition: ClarisWksGraph.cxx:483
ClarisWksGraphInternal::ZoneZone::canBeSendAsGraphic
virtual bool canBeSendAsGraphic() const
returns true if the zone can be send using a graphic listener (partial check)
Definition: ClarisWksGraph.cxx:473
MWAWPosition
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
MWAWBorder
a border
Definition: libmwaw_internal.hxx:314
ClarisWksStruct::DSET::m_fileType
int m_fileType
the type ( 0: text, -1: graphic, ...)
Definition: ClarisWksStruct.hxx:146
ClarisWksGraphInternal::ZoneZone::m_subType
Type m_subType
the file type ( zone or zone2 )
Definition: ClarisWksGraph.cxx:515
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:56
MWAWGraphicShape::m_vertices
std::vector< MWAWVec2f > m_vertices
the list of vertices for lines or polygons
Definition: MWAWGraphicShape.hxx:201
MWAWSpreadsheetEncoder::getBinaryResult
bool getBinaryResult(MWAWEmbeddedObject &object)
return the final spreadsheet
Definition: MWAWSpreadsheetEncoder.cxx:74
ClarisWksGraphInternal::ZoneUnknown::getChild
virtual ClarisWksStruct::DSET::Child getChild() const
return a child corresponding to this zone
Definition: ClarisWksGraph.cxx:633
ClarisWksDocument.hxx
ClarisWksGraphInternal::Zone::Zone
Zone()
constructor
Definition: ClarisWksGraph.cxx:180
M_PI
#define M_PI
Definition: libmwaw_internal.hxx:49
MWAWGraphicEncoder::getBinaryResult
bool getBinaryResult(MWAWEmbeddedObject &result)
return the final graphic
Definition: MWAWGraphicEncoder.cxx:74
MWAWPosition::m_wrapping
Wrapping m_wrapping
Wrapping.
Definition: MWAWPosition.hxx:262
MWAWEntry::length
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:82
ClarisWksGraphInternal::Chart::getSubType
virtual Type getSubType() const
return the sub type
Definition: ClarisWksGraph.cxx:557
ClarisWksGraphInternal::ZoneZone::m_flags
int m_flags[9]
flag
Definition: ClarisWksGraph.cxx:531
libmwaw::DOC_HEADER_FOOTER
@ DOC_HEADER_FOOTER
Definition: libmwaw_internal.hxx:178
MWAWGraphicStyle::setBorders
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWGraphicStyle.cxx:172
MWAWGraphicShape::Path
@ Path
Definition: MWAWGraphicShape.hxx:49
ClarisWksGraphInternal::Group::m_zonesToSend
std::vector< shared_ptr< Zone > > m_zonesToSend
the list of block to send
Definition: ClarisWksGraph.cxx:695
ClarisWksGraphInternal::Zone::T_Chart
@ T_Chart
Definition: ClarisWksGraph.cxx:173
libmwaw::DOC_GRAPHIC_GROUP
@ DOC_GRAPHIC_GROUP
Definition: libmwaw_internal.hxx:178
MWAWGraphicShape::m_type
Type m_type
the type
Definition: MWAWGraphicShape.hxx:191
MWAWPict::MWAW_R_BAD
@ MWAW_R_BAD
Definition: MWAWPict.hxx:73
MWAWVec2< float >
ClarisWksGraphInternal::ZonePict::getType
virtual Type getType() const
return the main type T_Picture
Definition: ClarisWksGraph.cxx:365
ClarisWksStruct::DSET::isHeaderFooter
bool isHeaderFooter() const
test if the zone is an header/footer
Definition: ClarisWksStruct.hxx:83
ClarisWksStruct::DSET::C_Graphic
@ C_Graphic
Definition: ClarisWksStruct.hxx:67
MWAWGraphicListener.hxx
MWAWInputStream::readULong
unsigned long readULong(int num)
returns a uint8, uint16, uint32 readed from actualPos
Definition: MWAWInputStream.hxx:137
MWAWPictMac.hxx
MWAWGraphicShape.hxx
MWAWDebug.hxx
ClarisWksGraphInternal::CurvePoint::CurvePoint
CurvePoint(MWAWVec2f point=MWAWVec2f())
Definition: ClarisWksGraph.cxx:72
ClarisWksGraph::sendShape
bool sendShape(ClarisWksGraphInternal::ZoneShape &pict, MWAWPosition pos)
sends a basic graphic zone
Definition: ClarisWksGraph.cxx:2973
MWAWPosition::setOrigin
void setOrigin(MWAWVec2f const &orig)
sets the frame origin
Definition: MWAWPosition.hxx:194
MWAWEntry::begin
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
ClarisWksGraphInternal::ZoneZone::getType
virtual Type getType() const
return the main type Zone
Definition: ClarisWksGraph.cxx:458
MWAWEntry::setLength
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:61
MWAWGraphicShape::rotate
MWAWGraphicShape rotate(float angle, MWAWVec2f const &center) const
return a new shape corresponding to a rotation from center.
Definition: MWAWGraphicShape.cxx:377
MWAWGraphicStyle::m_arrows
Arrow m_arrows[2]
the two arrows corresponding to start and end extremity
Definition: MWAWGraphicStyle.hxx:430
ClarisWksGraph::ClarisWksGraph
ClarisWksGraph(ClarisWksDocument &document)
constructor
Definition: ClarisWksGraph.cxx:795
ClarisWksGraph::numPages
int numPages() const
returns the number of pages
Definition: ClarisWksGraph.cxx:821
ClarisWksStruct::DSET::m_position
Position m_position
the zone type
Definition: ClarisWksStruct.hxx:144
MWAWGraphicStyle::setPattern
void setPattern(Pattern const &pat, float opacity=1)
set the pattern
Definition: MWAWGraphicStyle.hxx:293
ClarisWksGraphInternal::Group::~Group
virtual ~Group()
destructor
Definition: ClarisWksGraph.cxx:698
ClarisWksGraphInternal::Zone::T_Pict
@ T_Pict
Definition: ClarisWksGraph.cxx:177
ClarisWksStruct::DSET::P_GraphicMaster
@ P_GraphicMaster
Definition: ClarisWksStruct.hxx:63
ClarisWksGraphInternal::SubDocument::operator!=
virtual bool operator!=(MWAWSubDocument const &doc) const
operator!=
Definition: ClarisWksGraph.cxx:745
ClarisWksStruct::DSET::m_page
int m_page
the page (if known)
Definition: ClarisWksStruct.hxx:149
MWAWBox2f
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1134
ClarisWksGraphInternal::State::m_numPages
int m_numPages
the number of pages
Definition: ClarisWksGraph.cxx:716
ClarisWksStruct::DSET
main structure which correspond to a document part
Definition: ClarisWksStruct.hxx:58
ClarisWksGraph.hxx
ClarisWksStruct::DSET::m_box
MWAWBox2f m_box
the bounding box (if known)
Definition: ClarisWksStruct.hxx:151
ClarisWksGraphInternal::Group::m_zones
std::vector< shared_ptr< Zone > > m_zones
the list of child zones
Definition: ClarisWksGraph.cxx:690
ClarisWksGraphInternal::Style::Style
Style()
constructor
Definition: ClarisWksGraph.cxx:112
ClarisWksGraph::m_document
ClarisWksDocument & m_document
the document
Definition: ClarisWksGraph.hxx:222
ClarisWksGraph::sendPicture
bool sendPicture(ClarisWksGraphInternal::ZonePict &pict, MWAWPosition pos)
sends a picture zone
Definition: ClarisWksGraph.cxx:3114
libmwaw::DOC_SHEET
@ DOC_SHEET
Definition: libmwaw_internal.hxx:178
ClarisWksGraphInternal::SubDocument::m_graphParser
ClarisWksGraph * m_graphParser
the graph parser
Definition: ClarisWksGraph.cxx:763
ClarisWksGraphInternal::SubDocument::m_id
int m_id
the subdocument id
Definition: ClarisWksGraph.cxx:767
ClarisWksGraphInternal::ZoneZone::addFrameName
bool addFrameName(MWAWGraphicStyle &style) const
add the frame name if needed
Definition: ClarisWksGraph.cxx:488
ClarisWksGraphInternal::ZoneUnknown::m_typeId
int m_typeId
type number
Definition: ClarisWksGraph.cxx:644
MWAWGraphicShape::m_cornerWidth
MWAWVec2f m_cornerWidth
the rectangle round corner
Definition: MWAWGraphicShape.hxx:197
ClarisWksStruct::readIntZone
bool readIntZone(MWAWParserState &parserState, char const *zoneName, bool hasEntete, int intSz, std::vector< int > &res)
try to read a int structured zone where fSz to the int size: 1(int8), 2(int16), 4(int32)
Definition: ClarisWksStruct.cxx:53
ClarisWksGraphInternal::ZoneShape::getType
virtual Type getType() const
return the main type
Definition: ClarisWksGraph.cxx:287
MWAWPosition::Char
@ Char
Definition: MWAWPosition.hxx:51
ClarisWksGraphInternal::Zone::T_RectOval
@ T_RectOval
Definition: ClarisWksGraph.cxx:175
ClarisWksGraph::readGroupUnknown
bool readGroupUnknown(ClarisWksGraphInternal::Group &group, int zoneSz, int id)
Definition: ClarisWksGraph.cxx:1862
ClarisWksGraph
the main class to read the graphic part of Claris Works file
Definition: ClarisWksGraph.hxx:78
ClarisWksStruct::DSET::DSET
DSET()
constructor
Definition: ClarisWksStruct.hxx:70
ClarisWksGraph::m_state
shared_ptr< ClarisWksGraphInternal::State > m_state
the state
Definition: ClarisWksGraph.hxx:228
MWAWGraphicStyle::Pattern::m_colors
MWAWColor m_colors[2]
the two indexed colors
Definition: MWAWGraphicStyle.hxx:245
libmwaw::DOC_TABLE
@ DOC_TABLE
Definition: libmwaw_internal.hxx:178
ClarisWksGraphInternal::CurvePoint::m_controlPoints
MWAWVec2f m_controlPoints[2]
the control point: previous, next
Definition: ClarisWksGraph.cxx:104
ClarisWksGraphInternal::Style::m_surfacePatternType
int m_surfacePatternType
the surface pattern type
Definition: ClarisWksGraph.cxx:163
ClarisWksGraphInternal::Zone::getZoneId
virtual int getZoneId() const
returns the id of the reference zone
Definition: ClarisWksGraph.cxx:245
MWAWGraphicStyle::m_backgroundOpacity
float m_backgroundOpacity
true if the background has some color
Definition: MWAWGraphicStyle.hxx:419
ClarisWksGraphInternal::Group::Group
Group(ClarisWksStruct::DSET const &dset=ClarisWksStruct::DSET())
constructor
Definition: ClarisWksGraph.cxx:654
MWAWInputStreamPtr
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
MWAWEntry::end
long end() const
returns the end offset
Definition: MWAWEntry.hxx:77
libmwaw::DOC_TEXT_BOX
@ DOC_TEXT_BOX
Definition: libmwaw_internal.hxx:178
MWAWGraphicStyle::m_lineColor
MWAWColor m_lineColor
the line color
Definition: MWAWGraphicStyle.hxx:383
ClarisWksGraphInternal
Internal: the structures of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:69
MWAWGraphicEncoder
main class used to define store librevenge::RVNGDrawingInterface lists of command in a librevenge::RV...
Definition: MWAWGraphicEncoder.hxx:56
MWAWGraphicStyle::m_frameName
std::string m_frameName
the frame name
Definition: MWAWGraphicStyle.hxx:425
ClarisWksGraph::readPICT
bool readPICT(ClarisWksGraphInternal::ZonePict &zone)
Definition: ClarisWksGraph.cxx:2153
ClarisWksGraph::computePositions
void computePositions() const
compute the pages position
Definition: ClarisWksGraph.cxx:809
ClarisWksGraphInternal::ZoneZone::m_styleId
int m_styleId
the style id
Definition: ClarisWksGraph.cxx:527
libmwaw::DOC_NOTE
@ DOC_NOTE
Definition: libmwaw_internal.hxx:178
MWAWGraphicShape::Line
@ Line
Definition: MWAWGraphicShape.hxx:49
ClarisWksStruct::DSET::Position
Position
the zone position
Definition: ClarisWksStruct.hxx:62
ClarisWksGraphInternal::Group::operator<<
friend std::ostream & operator<<(std::ostream &o, Group const &doc)
operator<<
Definition: ClarisWksGraph.cxx:663
MWAWSpreadsheetEncoder.hxx
MWAWParser
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:100
ClarisWksGraphInternal::Zone::getSubType
virtual Type getSubType() const
return the subtype
Definition: ClarisWksGraph.cxx:226
MWAWBox2::center
MWAWVec2< T > center() const
the box center
Definition: libmwaw_internal.hxx:1013
MWAWGraphicStyle.hxx
ClarisWksParser
the main class to read a Claris Works file
Definition: ClarisWksParser.hxx:68
ClarisWksGraphInternal::Zone::T_QTim
@ T_QTim
Definition: ClarisWksGraph.cxx:177
MWAWPictBitmapIndexed
a bitmap of int to store indexed bitmap
Definition: MWAWPictBitmap.hxx:348
ClarisWksStruct::DSET::m_numData
long m_numData
the number of header
Definition: ClarisWksStruct.hxx:137
MWAWPresentationListener
This class contains code needed to write a presention document.
Definition: MWAWPresentationListener.hxx:60
ClarisWksGraphInternal::ZonePict::m_type
Type m_type
the sub type
Definition: ClarisWksGraph.cxx:389
ClarisWksGraphInternal::Zone::m_style
Style m_style
the style
Definition: ClarisWksGraph.cxx:266
MWAWGraphicStyle::m_frameNextName
std::string m_frameNextName
the frame next name (if there is a link)
Definition: MWAWGraphicStyle.hxx:427
ClarisWksGraphInternal::Zone::getChild
virtual ClarisWksStruct::DSET::Child getChild() const
return a child corresponding to this zone
Definition: ClarisWksGraph.cxx:238
ClarisWksDocument::getZone
shared_ptr< ClarisWksStruct::DSET > getZone(int zId) const
return the zone corresponding to an id ( low level)
Definition: ClarisWksDocument.cxx:395
ClarisWksStruct::DSET::m_dataSz
long m_dataSz
the data size
Definition: ClarisWksStruct.hxx:139
ClarisWksGraphInternal::ZoneUnknown::m_type
Type m_type
the sub type
Definition: ClarisWksGraph.cxx:642
ClarisWksGraphInternal::Zone::m_zoneType
int m_zoneType
the zone type
Definition: ClarisWksGraph.cxx:258
MWAWPosition::Page
@ Page
Definition: MWAWPosition.hxx:51
ClarisWksStruct::DSET::C_Zone
@ C_Zone
Definition: ClarisWksStruct.hxx:67
MWAWPosition::WForeground
@ WForeground
Definition: MWAWPosition.hxx:53
ClarisWksStruct::DSET::isSlide
bool isSlide() const
test if the zone is a slide
Definition: ClarisWksStruct.hxx:89
ClarisWksGraphInternal::ZoneZone::getSubType
virtual Type getSubType() const
return the sub type Zone
Definition: ClarisWksGraph.cxx:463
MWAWGraphicStyle::hasGradient
bool hasGradient(bool complex=false) const
returns true if the gradient is defined
Definition: MWAWGraphicStyle.hxx:304
ClarisWksGraphInternal::Bitmap::operator<<
friend std::ostream & operator<<(std::ostream &o, Bitmap const &bt)
operator<<
Definition: ClarisWksGraph.cxx:408
MWAWParser::getPageLength
double getPageLength() const
returns the page length (form length without margin )
Definition: MWAWParser.hxx:180
ClarisWksGraph::flushExtra
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: ClarisWksGraph.cxx:3282
MWAWSpreadsheetEncoder
main class used to define store librevenge::RVNGSpreadsheetInterface lists of command in a librevenge...
Definition: MWAWSpreadsheetEncoder.hxx:56
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
ClarisWksGraphInternal::State::m_frameId
int m_frameId
a int used to defined linked frame
Definition: ClarisWksGraph.cxx:726
ClarisWksDocument::canSendZoneAsGraphic
bool canSendZoneAsGraphic(int number) const
check if we can send a zone as a graphic
Definition: ClarisWksDocument.cxx:403
ClarisWksGraphInternal::Bitmap::m_numBytesPerPixel
int m_numBytesPerPixel
the number of bite by pixel
Definition: ClarisWksGraph.cxx:417
MWAWPosition::origin
MWAWVec2f const & origin() const
return the frame origin
Definition: MWAWPosition.hxx:114
MWAWEntry::valid
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
ClarisWksStruct::DSET::P_Main
@ P_Main
Definition: ClarisWksStruct.hxx:62
ClarisWksGraph::readGroupHeader
bool readGroupHeader(ClarisWksGraphInternal::Group &group)
Definition: ClarisWksGraph.cxx:1750
MWAWListener.hxx
MWAWSpreadsheetListener.hxx
ClarisWksGraphInternal::Bitmap::m_entry
MWAWEntry m_entry
the bitmap entry
Definition: ClarisWksGraph.cxx:423
ClarisWksGraphInternal::Style
Internal: the structure used to store a style of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:110
ClarisWksGraphInternal::Zone::getType
virtual Type getType() const
return the main type
Definition: ClarisWksGraph.cxx:221
ClarisWksGraph::readGroupZone
shared_ptr< ClarisWksStruct::DSET > readGroupZone(ClarisWksStruct::DSET const &zone, MWAWEntry const &entry, bool &complete)
reads the zone Group DSET
Definition: ClarisWksGraph.cxx:864
MWAWBox2::size
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1008
ClarisWksGraphInternal::Zone::T_Unknown
@ T_Unknown
Definition: ClarisWksGraph.cxx:173
ClarisWksGraphInternal::Zone::T_Line
@ T_Line
Definition: ClarisWksGraph.cxx:175
MWAWPosition::Frame
@ Frame
Definition: MWAWPosition.hxx:51
ClarisWksGraphInternal::ZoneZone::getChild
virtual ClarisWksStruct::DSET::Child getChild() const
return a child corresponding to this zone
Definition: ClarisWksGraph.cxx:505
ClarisWksGraph::readShape
bool readShape(MWAWEntry const &entry, ClarisWksGraphInternal::ZoneShape &zone)
Definition: ClarisWksGraph.cxx:1609
ClarisWksGraphInternal::Bitmap
Internal: structure to store a bitmap of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:399
libmwaw::DebugFile
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
ClarisWksDocument::readStringList
bool readStringList(char const *zoneName, bool hasEntete, std::vector< std::string > &res)
Definition: ClarisWksDocument.cxx:2073
ClarisWksGraph::readPictData
bool readPictData(shared_ptr< ClarisWksGraphInternal::Zone > zone)
Definition: ClarisWksGraph.cxx:2090
ClarisWksGraph::readBitmapZone
shared_ptr< ClarisWksStruct::DSET > readBitmapZone(ClarisWksStruct::DSET const &zone, MWAWEntry const &entry, bool &complete)
reads the zone Bitmap DSET
Definition: ClarisWksGraph.cxx:962
ClarisWksStruct::DSET::P_Unknown
@ P_Unknown
Definition: ClarisWksStruct.hxx:64
ClarisWksGraph::readQTimeData
bool readQTimeData(shared_ptr< ClarisWksGraphInternal::Zone > zone)
Definition: ClarisWksGraph.cxx:2276
ClarisWksGraph::~ClarisWksGraph
virtual ~ClarisWksGraph()
destructor
Definition: ClarisWksGraph.cxx:801
ClarisWksGraphInternal::ZoneShape::m_shape
MWAWGraphicShape m_shape
the shape
Definition: ClarisWksGraph.cxx:314
MWAWPosition::Paragraph
@ Paragraph
Definition: MWAWPosition.hxx:51
ClarisWksGraphInternal::ZoneShape::m_rotate
int m_rotate
the rotation
Definition: ClarisWksGraph.cxx:316
ClarisWksGraphInternal::Zone::~Zone
virtual ~Zone()
destructor
Definition: ClarisWksGraph.cxx:269
MWAWInputStream.hxx
MWAWGraphicShape::Circle
@ Circle
Definition: MWAWGraphicShape.hxx:49
ClarisWksGraphInternal::State::m_pageDimensions
MWAWVec2f m_pageDimensions
the page dimension if known (in point)
Definition: ClarisWksGraph.cxx:718
ClarisWksGraphInternal::SubDocument::parse
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type)
the parser function
Definition: ClarisWksGraph.cxx:775
ClarisWksStruct::DSET::m_pageDimension
MWAWVec2f m_pageDimension
the page dimension (if know)
Definition: ClarisWksStruct.hxx:153
ClarisWksGraph::m_parserState
MWAWParserStatePtr m_parserState
the parser state
Definition: ClarisWksGraph.hxx:225
MWAWPosition::WNone
@ WNone
Definition: MWAWPosition.hxx:53
MWAWFont.hxx
MWAWPosition::m_anchorTo
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:254
MWAWPictBitmap.hxx
ClarisWksGraph::getPageDimension
bool getPageDimension(MWAWVec2f &dim) const
returns the page dimension if known (in point)
Definition: ClarisWksGraph.cxx:838
ClarisWksGraphInternal::ZoneUnknown
Internal: structure used to store an unknown zone of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:581
ClarisWksStruct::DSET::P_SlideMaster
@ P_SlideMaster
Definition: ClarisWksStruct.hxx:64
ClarisWksGraphInternal::Bitmap::~Bitmap
virtual ~Bitmap()
destructor
Definition: ClarisWksGraph.cxx:428
ClarisWksGraph::readGroupDef
shared_ptr< ClarisWksGraphInternal::Zone > readGroupDef(MWAWEntry const &entry)
Definition: ClarisWksGraph.cxx:1127
ClarisWksGraphInternal::SubDocument::SubDocument
SubDocument(SubDocument const &orig)
MWAWSubDocumentPtr
shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:517
MWAWBox2< float >
MWAWPictBitmapColor
a bitmap of MWAWColor to store true color bitmap
Definition: MWAWPictBitmap.hxx:455
MWAWGraphicListener::insertTextBox
void insertTextBox(MWAWPosition const &pos, MWAWSubDocumentPtr subDocument, MWAWGraphicStyle const &style)
adds a textbox in given position
Definition: MWAWGraphicListener.cxx:1074
ClarisWksGraphInternal::ZoneZone::m_id
int m_id
the zoneId
Definition: ClarisWksGraph.cxx:517
ClarisWksGraphInternal::Zone
Internal: the generic structure used to store a zone of a ClarisWksGraph.
Definition: ClarisWksGraph.cxx:171
MWAWGraphicShape::PathData
a simple path component
Definition: MWAWGraphicShape.hxx:53
ClarisWksGraphInternal::Bitmap::m_colorMap
std::vector< MWAWColor > m_colorMap
the color map
Definition: ClarisWksGraph.cxx:425
ClarisWksGraph::sendGroupChild
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
libmwaw::DOC_NONE
@ DOC_NONE
Definition: libmwaw_internal.hxx:178
ClarisWksStruct::DSET::m_headerSz
long m_headerSz
the header size
Definition: ClarisWksStruct.hxx:141
ClarisWksGraphInternal::Style::getWrapping
MWAWPosition::Wrapping getWrapping() const
returns the wrapping
Definition: ClarisWksGraph.cxx:118
ClarisWksGraph::updateGroup
void updateGroup(ClarisWksGraphInternal::Group &group) const
update the group information to choose how to send the group data
Definition: ClarisWksGraph.cxx:2476
ClarisWksGraphInternal::ZoneZone::m_frameId
int m_frameId
the frame id (for a linked frame)
Definition: ClarisWksGraph.cxx:521
ClarisWksGraphInternal::Zone::m_box
MWAWBox2f m_box
the bdbox
Definition: ClarisWksGraph.cxx:262
ClarisWksGraph::sendPageGraphics
bool sendPageGraphics(int groupId)
sends the page element
Definition: ClarisWksGraph.cxx:3248
MWAWBorder::m_color
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:363
ClarisWksGraph::getSurfaceColor
bool getSurfaceColor(ClarisWksGraphInternal::Style const &style, MWAWColor &col) const
return the surface color which corresponds to some ids (if possible)
Definition: ClarisWksGraph.cxx:852
ClarisWksGraph::askToSend
void askToSend(int number, MWAWListenerPtr listener, MWAWPosition const &pos=MWAWPosition())
ask the main parser to send a zone
Definition: ClarisWksGraph.cxx:844
MWAWVec2i
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:781
ClarisWksGraph::readGroupData
bool readGroupData(ClarisWksGraphInternal::Group &group, long beginGroupPos)
Definition: ClarisWksGraph.cxx:1415
libmwaw::DebugStream
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
MWAWListenerPtr
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:505
MWAWParser.hxx
MWAWPictData::get
static MWAWPictData * get(MWAWInputStreamPtr input, int size)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:108
ClarisWksGraphInternal::Zone::Type
Type
the list of types
Definition: ClarisWksGraph.cxx:173
ClarisWksGraphInternal::Zone::T_Rect
@ T_Rect
Definition: ClarisWksGraph.cxx:175
MWAWSubDocument::m_input
shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
ClarisWksGraphInternal::Zone::T_Movie
@ T_Movie
Definition: ClarisWksGraph.cxx:177
ClarisWksGraph::readOLE
bool readOLE(ClarisWksGraphInternal::ZonePict &zone)
Definition: ClarisWksGraph.cxx:2228
MWAWGraphicShape::m_extra
std::string m_extra
extra data
Definition: MWAWGraphicShape.hxx:205
MWAWGraphicListener
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:60
ClarisWksGraphInternal::Style::m_wrapping
int m_wrapping
the wrap type
Definition: ClarisWksGraph.cxx:161
MWAWGraphicShape::m_formBox
MWAWBox2f m_formBox
the internal shape bdbox ( used for arc, circle to store the circle bdbox )
Definition: MWAWGraphicShape.hxx:195
ClarisWksGraph::operator=
ClarisWksGraph & operator=(ClarisWksGraph const &orig)
MWAWGraphicStyle::Arrow
a structure used to define an arrow
Definition: MWAWGraphicStyle.hxx:58
ClarisWksGraph::findMasterPage
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