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