MsWksGraph.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 Microsoft Works text document ( graphic part )
36  *
37  */
38 #ifndef MS_WKS_MWAW_GRAPH
39 # define MS_WKS_MWAW_GRAPH
40 
41 #include <list>
42 #include <string>
43 #include <vector>
44 
45 #include "MWAWPosition.hxx"
46 
47 #include "MWAWEntry.hxx"
48 #include "MWAWGraphicStyle.hxx"
49 #include "MWAWParser.hxx"
50 
51 namespace MsWksGraphInternal
52 {
53 struct GroupZone;
54 struct RBZone;
55 struct TextBox;
56 struct Zone;
57 
58 struct State;
59 
60 class SubDocument;
61 }
62 
63 class MsWksTable;
64 class MsWksDocument;
65 
66 class MsWksParser;
67 class MsWks4Zone;
68 class MsWksDBParser;
69 class MsWksDRParser;
70 class MsWksSSParser;
71 
74 {
75  friend class MsWksDocument;
76  friend class MsWksTable;
77 
78  friend class MsWksParser;
79  friend class MsWks4Zone;
80  friend class MsWksDBParser;
81  friend class MsWksDRParser;
82  friend class MsWksSSParser;
84 public:
85  struct Style;
86 
88  explicit MsWksGraph(MsWksDocument &document);
90  virtual ~MsWksGraph();
91 
93  void setPageLeftTop(MWAWVec2f const &leftTop);
94 
96  int version() const;
98  int numPages(int zoneId) const;
99 
104  void send(int id, MWAWPosition const &pos);
106  void sendAll(int zoneId, bool mainZone);
107 
109  struct SendData {
112  {
113  }
115  enum Type { RBDR, RBIL, ALL } m_type;
117  int m_id;
121  int m_page;
124  };
126  void sendObjects(SendData const &what);
127 
129  void computePositions(int zoneId, std::vector<int> &linesHeight, std::vector<int> &pagesHeight);
130 
131 protected:
133  void flushExtra();
134 
135  //
136  // Intermediate level
137  //
138 
142  bool readGradient(Style &style);
144  int getEntryPictureV1(int zoneId, MWAWEntry &zone, bool autoSend=true);
145 
147  int getEntryPicture(int zoneId, MWAWEntry &zone, bool autoSend=true, int order=-1000);
148 
155  bool readRB(MWAWInputStreamPtr input, MWAWEntry const &entry, int kind);
156 
157  // version 4 file
158 
160  bool readPictureV4(MWAWInputStreamPtr input, MWAWEntry const &entry);
161 
163  bool readText(MsWksGraphInternal::TextBox &textBox);
165  void sendTextBox(int zId, MWAWListenerPtr listener);
168 
169  // interface function
170 
172  bool getZoneGraphicStyle(int zoneId, MWAWGraphicStyle &style) const;
174  bool getZonePosition(int zoneId, MWAWPosition::AnchorTo anchor, MWAWPosition &pos) const;
175 
177  void sendFrameText(MWAWEntry const &entry, std::string const &frame);
178 
180  void sendTable(int id);
181 
183  void sendChart(int zoneId);
184 
185  //
186  // low level
187  //
189  shared_ptr<MsWksGraphInternal::GroupZone> readGroup(MsWksGraphInternal::Zone &group);
191  void sendGroup(int zoneId, MWAWPosition const &pos);
193  void sendGroupChild(int zoneId, MWAWPosition const &pos);
195  bool canCreateGraphic(MsWksGraphInternal::GroupZone const &group) const;
197  void sendGroup(MsWksGraphInternal::GroupZone const &group, MWAWGraphicListenerPtr &listener) const;
199  bool readFont(MWAWFont &font);
200 
201 public:
203  struct Style : public MWAWGraphicStyle {
206  {
207  m_fillRuleEvenOdd=true;
208  }
210  virtual ~Style();
212  friend std::ostream &operator<<(std::ostream &o, Style const &st)
213  {
214  o << static_cast<MWAWGraphicStyle const &>(st);
215  if (st.m_baseLineColor != st.m_lineColor)
216  o << "lineColor[base]=" << st.m_baseLineColor << ",";
217  if (st.m_baseSurfaceColor != st.m_surfaceColor)
218  o << "surfaceColor[base]=" << st.m_baseSurfaceColor << ",";
219 
220  return o;
221  }
222 
227  };
228 
229 private:
230  MsWksGraph(MsWksGraph const &orig);
232 
233 protected:
234  //
235  // data
236  //
239 
241  shared_ptr<MsWksGraphInternal::State> m_state;
242 
247 
249  shared_ptr<MsWksTable> m_tableParser;
250 };
251 #endif
252 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MsWksGraphInternal::Zone::m_zoneId
int m_zoneId
the zone id
Definition: MsWksGraph.cxx:177
MWAWEntry
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
MsWksGraphInternal::State::m_zonesList
std::vector< shared_ptr< Zone > > m_zonesList
the list of zone
Definition: MsWksGraph.cxx:754
MWAWPosition::CharBaseLine
@ CharBaseLine
Definition: MWAWPosition.hxx:51
MWAWField::Time
@ Time
Definition: libmwaw_internal.hxx:371
MWAWParagraph::m_justify
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:161
MWAWSubDocument::m_zone
MWAWEntry m_zone
if valid the zone to parse
Definition: MWAWSubDocument.hxx:79
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
MWAWGraphicStyle::Arrow::isEmpty
bool isEmpty() const
returns true if there is no arrow
Definition: MWAWGraphicStyle.hxx:116
MsWksGraphInternal::TextBoxv4::type
virtual Type type() const
return the type
Definition: MsWksGraph.cxx:654
MsWksDocument::getInput
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MsWksDocument.hxx:108
MWAWFont::set
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:293
MsWksGraphInternal::Zone::getPosition
MWAWPosition getPosition(MWAWPosition::AnchorTo rel) const
Definition: MsWksGraph.cxx:145
MsWksGraphInternal::TextBox::m_numPositions
int m_numPositions
the number of positions
Definition: MsWksGraph.cxx:594
MsWksGraphInternal::SubDocument::m_frame
std::string m_frame
the frame name: for textv4
Definition: MsWksGraph.cxx:895
MsWksGraphInternal::Table::m_tableId
int m_tableId
the table id
Definition: MsWksGraph.cxx:538
MWAWFont::setFont
void setFont(int newId)
sets the font id and resets size to the previous size for this font
Definition: MWAWFont.hxx:231
MsWksGraphInternal::OLEZone::m_dim
MWAWVec2i m_dim
the dimension
Definition: MsWksGraph.cxx:638
MsWksGraphInternal::TextBoxv4::TextBoxv4
TextBoxv4(Zone const &z)
constructor
Definition: MsWksGraph.cxx:649
MsWksGraphInternal::TextBox::type
virtual Type type() const
return the type
Definition: MsWksGraph.cxx:555
MsWksGraphInternal::TextBox::TextBox
TextBox(TextBox const &)
MsWksDocument
the main class to read/store generic data of a MsWorks document v1-v3
Definition: MsWksDocument.hxx:69
MsWksGraphInternal::DataBitmap::~DataBitmap
~DataBitmap()
destructor
Definition: MsWksGraph.cxx:518
MsWksGraphInternal::RBZone::RBZone
RBZone()
Definition: MsWksGraph.cxx:68
MsWksGraphInternal::Zone::needExtraBorderWidth
virtual float needExtraBorderWidth() const
return the extra border space ( if needed)
Definition: MsWksGraph.cxx:117
MsWksGraphInternal::Zone::operator<<
friend std::ostream & operator<<(std::ostream &o, Zone const &pict)
operator<<
Definition: MsWksGraph.cxx:98
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
MsWksGraph::readRB
bool readRB(MWAWInputStreamPtr input, MWAWEntry const &entry, int kind)
reads the RBDR or a RBIL zone: a zone which seems to regroup all pages pictures in v3-v4 document
Definition: MsWksGraph.cxx:1974
MsWksGraphInternal::SubDocument::RBILZone
@ RBILZone
Definition: MsWksGraph.cxx:862
MsWksGraphInternal::BasicShape::getStyle
MWAWGraphicStyle getStyle() const
return the shape type
Definition: MsWksGraph.cxx:351
MsWksGraphInternal::TextBox::fillFrame
virtual void fillFrame(MWAWGraphicStyle &style) const
add frame parameters to propList (if needed )
Definition: MsWksGraph.cxx:587
MWAWVec2f
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:785
MsWksGraphInternal::BasicShape::m_shape
MWAWGraphicShape m_shape
the basic shape
Definition: MsWksGraph.cxx:360
MWAWPictBitmapIndexed::setColors
void setColors(std::vector< MWAWColor > const &cols)
sets the array of indexed colors
Definition: MWAWPictBitmap.hxx:432
libmwaw::DebugFile::addDelimiter
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
MsWksGraph::canCreateGraphic
bool canCreateGraphic(MsWksGraphInternal::GroupZone const &group) const
returns true if we can create a graphic for the whole group
Definition: MsWksGraph.cxx:2362
MsWksGraphInternal::Zone::m_line
int m_line
the line position(v1)
Definition: MsWksGraph.cxx:195
MsWksGraph::Style::m_baseSurfaceColor
MWAWColor m_baseSurfaceColor
the 2D surface color
Definition: MsWksGraph.hxx:226
MWAWGraphicStyle::m_extra
std::string m_extra
extra data
Definition: MWAWGraphicStyle.hxx:442
MWAWGraphicStyle::setSurfaceColor
void setSurfaceColor(MWAWColor const &col, float opacity=1)
set the surface color
Definition: MWAWGraphicStyle.hxx:282
MsWksDRParser
the main class to read a Microsoft Works graphic file
Definition: MsWksDRParser.hxx:60
MsWksGraph::SendData::m_page
int m_page
the page ( used if anchor==page)
Definition: MsWksGraph.hxx:121
MsWksDocument::getPalette
std::vector< MWAWColor > const & getPalette(int vers)
returns a list of color corresponding to a version
Definition: MsWksDocument.cxx:557
MsWksGraphInternal::SubDocument::Table
@ Table
Definition: MsWksGraph.cxx:862
MWAWPosition::AnchorTo
AnchorTo
a list of enum used to defined the anchor
Definition: MWAWPosition.hxx:51
MsWksGraphInternal::SubDocument::operator!=
virtual bool operator!=(MWAWSubDocument const &doc) const
operator!=
Definition: MsWksGraph.cxx:949
MWAWPosition::setRelativePosition
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:221
MsWksGraphInternal::SubDocument::m_graphParser
MsWksGraph * m_graphParser
the graph parser
Definition: MsWksGraph.cxx:889
MsWksGraph::SendData::m_id
int m_id
the rbil id
Definition: MsWksGraph.hxx:117
MsWksGraph::Style
Internal: the graphic style of MsWksGraph.
Definition: MsWksGraph.hxx:203
MsWksGraph.hxx
MsWksGraphInternal::Patterns::get
bool get(int id, MWAWGraphicStyle::Pattern &pat) const
return the pattern corresponding to an id
Definition: MsWksGraph.cxx:704
MsWksGraphInternal::Chart
Internal: the table of a MsWksGraph.
Definition: MsWksGraph.cxx:372
MWAWGraphicShape::m_path
std::vector< PathData > m_path
the list of path component
Definition: MWAWGraphicShape.hxx:203
MWAWPosition::setPage
void setPage(int pg) const
sets the page
Definition: MWAWPosition.hxx:189
MWAWGraphicStyle::m_gradientType
GradientType m_gradientType
the gradient type
Definition: MWAWGraphicStyle.hxx:396
MWAWGraphicStyle::m_fillRuleEvenOdd
bool m_fillRuleEvenOdd
true if the fill rule is evenod
Definition: MWAWGraphicStyle.hxx:440
MWAWFont::Script::sub100
static Script sub100()
return a yposition which correspond to a basic subscript100
Definition: MWAWFont.hxx:117
MWAWGraphicStyle::Arrow::plain
static Arrow plain()
returns a basic plain arrow
Definition: MWAWGraphicStyle.hxx:69
MWAWFont::boldBit
@ boldBit
Definition: MWAWFont.hxx:182
MsWksGraphInternal::SubDocument::TextBoxv4
@ TextBoxv4
Definition: MsWksGraph.cxx:862
MWAWFont::setColor
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:320
MsWksGraphInternal::TextBox::m_text
std::string m_text
the text
Definition: MsWksGraph.cxx:602
MsWksGraphInternal::Zone::print
virtual void print(std::ostream &o) const
the virtual print function
Definition: MsWksGraph.cxx:208
MsWksGraph::operator=
MsWksGraph & operator=(MsWksGraph const &orig)
MWAWGraphicListener::startDocument
void startDocument()
starts a new document
Definition: MWAWGraphicListener.cxx:432
MWAWEntry::id
int id() const
returns the id
Definition: MWAWEntry.hxx:153
MWAWPosition::WBackground
@ WBackground
Definition: MWAWPosition.hxx:53
MWAWEntry.hxx
MWAWGraphicShape
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:46
MWAWFontConverter.hxx
MWAWColor
the class to store a color
Definition: libmwaw_internal.hxx:182
MsWksGraphInternal::TextBoxv4::print
virtual void print(std::ostream &o) const
operator<<
Definition: MsWksGraph.cxx:659
MsWksGraphInternal::State
Internal: the state of a MsWksGraph.
Definition: MsWksGraph.cxx:740
MWAWEmbeddedObject
small class use to define a embedded object
Definition: libmwaw_internal.hxx:425
MsWksGraphInternal::DataPict::DataPict
DataPict()
empty constructor
Definition: MsWksGraph.cxx:399
MsWksGraph::SendData::m_anchor
MWAWPosition::AnchorTo m_anchor
the anchor
Definition: MsWksGraph.hxx:119
MsWksGraphInternal::Zone::getBinaryData
virtual bool getBinaryData(MWAWInputStreamPtr, MWAWEmbeddedObject &picture) const
return a binary data (if known)
Definition: MsWksGraph.cxx:110
MWAWGraphicShape::line
static MWAWGraphicShape line(MWAWVec2f const &orign, MWAWVec2f const &dest)
static constructor to create a line
Definition: MWAWGraphicShape.cxx:227
MWAWEntry::type
std::string const & type() const
returns the type of the entry
Definition: MWAWEntry.hxx:126
MWAWGraphicStyle::setBackgroundColor
void setBackgroundColor(MWAWColor const &col, float opacity=1)
set the background color
Definition: MWAWGraphicStyle.hxx:314
MsWksDocument::getColor
bool getColor(int id, MWAWColor &col, int vers)
returns the color which correspond to an index
Definition: MsWksDocument.cxx:562
MWAWParagraph::JustificationFullAllLines
@ JustificationFullAllLines
Definition: MWAWParagraph.hxx:88
MWAWGraphicStyle::G_Rectangular
@ G_Rectangular
Definition: MWAWGraphicStyle.hxx:55
MsWksGraphInternal::Zone::m_box
MWAWBox2f m_box
local bdbox
Definition: MsWksGraph.cxx:193
MsWksParser
the main class to read a Microsoft Works file: v1-v4
Definition: MsWksParser.hxx:60
MsWksGraphInternal::State::State
State()
constructor
Definition: MsWksGraph.cxx:742
MsWksGraphInternal::SubDocument::~SubDocument
virtual ~SubDocument()
destructor
Definition: MsWksGraph.cxx:871
MWAWBox2::extend
void extend(T val)
extends the bdbox by (val, val) keeping the center
Definition: libmwaw_internal.hxx:1063
MsWksGraphInternal::TextBox::print
virtual void print(std::ostream &o) const
operator<<
Definition: MsWksGraph.cxx:560
MsWksGraphInternal::State::m_numPages
int m_numPages
the number of pages
Definition: MsWksGraph.cxx:764
MsWksGraphInternal::Zone::m_extra
std::string m_extra
extra data
Definition: MsWksGraph.cxx:201
MWAWParagraph
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
MsWksGraph
the main class to read the graphic of a Microsoft Works file
Definition: MsWksGraph.hxx:74
MsWksGraph::m_parserState
MWAWParserStatePtr m_parserState
the parser state
Definition: MsWksGraph.hxx:238
MWAWListener::Graphic
@ Graphic
Definition: MWAWListener.hxx:56
MsWksGraphInternal::DataBitmap::m_dataSize
long m_dataSize
the bitmap data size
Definition: MsWksGraph.cxx:485
MWAWGraphicListener::endDocument
void endDocument(bool delayed=true)
ends the actual document
Definition: MWAWGraphicListener.cxx:443
MsWksGraphInternal::Table::Table
Table(Zone const &z)
constructor
Definition: MsWksGraph.cxx:526
MWAWFont::Line::Simple
@ Simple
Definition: MWAWFont.hxx:49
MsWksGraph::getEntryPictureV1
int getEntryPictureV1(int zoneId, MWAWEntry &zone, bool autoSend=true)
checks if the next zone is a v1 picture and returns a zone id ( or -1).
Definition: MsWksGraph.cxx:1909
MsWksGraphInternal::Zone::m_isSent
bool m_isSent
true if the zone is send
Definition: MsWksGraph.cxx:205
MsWksGraphInternal::Zone::Type
Type
Definition: MsWksGraph.cxx:87
MsWksGraphInternal::BasicShape::print
virtual void print(std::ostream &o) const
operator<<
Definition: MsWksGraph.cxx:334
MsWksGraphInternal::OLEZone
Internal: the ole zone of a MsWksGraph ( v4)
Definition: MsWksGraph.cxx:616
MWAWParserStatePtr
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:509
MsWksGraphInternal::BasicShape::operator=
BasicShape & operator=(BasicShape const &)
MWAWEntry::setParsed
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:115
MsWksGraphInternal::SubDocument::m_id
int m_id
the subdocument id
Definition: MsWksGraph.cxx:893
libmwaw::DebugFile::addNote
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
MsWksGraphInternal::TextBox::m_justify
MWAWParagraph::Justification m_justify
the paragraph alignment
Definition: MsWksGraph.cxx:604
MWAWSubDocument
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
MsWksGraphInternal::State::m_leftTopPos
MWAWVec2f m_leftTopPos
the page left top position in points
Definition: MsWksGraph.cxx:752
MsWksGraph::Style::~Style
virtual ~Style()
destructor
Definition: MsWksGraph.cxx:2970
MsWksGraphInternal::BasicShape::needExtraBorderWidth
virtual float needExtraBorderWidth() const
return the extra border size
Definition: MsWksGraph.cxx:340
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
MsWksGraph::checkTextBoxLinks
void checkTextBoxLinks(MsWksGraphInternal::RBZone &rbZone)
check the text box link v4
Definition: MsWksGraph.cxx:2130
MWAWGraphicStyle::Pattern::m_data
std::vector< unsigned char > m_data
the pattern data: a sequence of data: p[0..7,0],p[8..15,0]...p[0..7,1],p[8..15,1],...
Definition: MWAWGraphicStyle.hxx:247
MsWksTable.hxx
MsWksGraphInternal::SubDocument::SubDocument
SubDocument(SubDocument const &orig)
MsWksGraphInternal::Zone::getLocalBox
MWAWBox2f getLocalBox(bool extendWithBord=true) const
return the box
Definition: MsWksGraph.cxx:126
MsWksGraphInternal::TextBox::m_fontsList
std::vector< MWAWFont > m_fontsList
the list of fonts
Definition: MsWksGraph.cxx:596
MsWksGraphInternal::TextBoxv4::~TextBoxv4
virtual ~TextBoxv4()
destructor
Definition: MsWksGraph.cxx:735
MsWksGraphInternal::Patterns
Internal the pattern ressource of a MsWksGraph.
Definition: MsWksGraph.cxx:679
MWAWPosition::setOrder
void setOrder(int ord) const
set background/foward order
Definition: MWAWPosition.hxx:248
MsWksGraphInternal::SubDocument::Group
@ Group
Definition: MsWksGraph.cxx:862
MWAWGraphicStyle::m_gradientStopList
std::vector< GradientStop > m_gradientStopList
the list of gradient limits
Definition: MWAWGraphicStyle.hxx:402
MWAWFont::Script::super100
static Script super100()
return a yposition which correspond to a basic superscript100
Definition: MWAWFont.hxx:127
MWAWFont::embossBit
@ embossBit
Definition: MWAWFont.hxx:182
MsWksGraph::send
void send(int id, MWAWPosition const &pos)
send a zone (textbox, ...).
Definition: MsWksGraph.cxx:2739
MsWksGraphInternal::State::m_font
MWAWFont m_font
the actual font
Definition: MsWksGraph.cxx:758
MWAWEntry::hasType
bool hasType(std::string const &typ) const
returns true if the type entry == type
Definition: MWAWEntry.hxx:131
MsWksGraphInternal::Patterns::m_percentList
std::vector< float > m_percentList
the pattern percent values
Definition: MsWksGraph.cxx:732
MsWksGraphInternal::GroupZone::m_childs
std::vector< int > m_childs
list of child id
Definition: MsWksGraph.cxx:312
MWAWField::Date
@ Date
Definition: libmwaw_internal.hxx:371
MsWksGraphInternal::Zone::TableZone
@ TableZone
Definition: MsWksGraph.cxx:87
MsWksGraphInternal::SubDocument::Chart
@ Chart
Definition: MsWksGraph.cxx:862
MsWksGraph::numPages
int numPages(int zoneId) const
returns the number of pages
Definition: MsWksGraph.cxx:989
MsWksGraphInternal::State::m_chartId
int m_chartId
an index used to store chart
Definition: MsWksGraph.cxx:760
MWAWGraphicStyle::Pattern
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:171
MWAWSubDocument.hxx
MsWksGraph::readGroup
shared_ptr< MsWksGraphInternal::GroupZone > readGroup(MsWksGraphInternal::Zone &group)
try to read the group data
Definition: MsWksGraph.cxx:2435
MsWksGraphInternal::Zone::m_doNotSend
bool m_doNotSend
a flag used to know if we need to send the data ( or if this is the part of a sub group)
Definition: MsWksGraph.cxx:203
MWAWPosition::size
MWAWVec2f const & size() const
returns the frame size
Definition: MWAWPosition.hxx:119
MsWksGraphInternal::TextBox::m_positions
std::vector< int > m_positions
the list of positions
Definition: MsWksGraph.cxx:598
MsWksGraphInternal::DataBitmap::m_numCols
int m_numCols
the number of columns
Definition: MsWksGraph.cxx:484
MWAWGraphicShape::polygon
static MWAWGraphicShape polygon(MWAWBox2f const &box)
static constructor to create a polygon
Definition: MWAWGraphicShape.hxx:140
MWAWColor::barycenter
static MWAWColor barycenter(float alpha, MWAWColor const &colA, float beta, MWAWColor const &colB)
return alpha*colA+beta*colB
Definition: libmwaw_internal.cxx:205
MsWksGraphInternal::State::initPatterns
void initPatterns(int vers)
init the pattern value
Definition: MsWksGraph.cxx:769
MsWksGraphInternal::State::m_rsrcPatternsMap
std::map< long, Patterns > m_rsrcPatternsMap
a map ressource id -> patterns
Definition: MsWksGraph.cxx:766
MWAWBox2::getUnion
MWAWBox2< T > getUnion(MWAWBox2< T > const &box) const
returns the union between this and box
Definition: libmwaw_internal.hxx:1070
MsWksGraphInternal::BasicShape::~BasicShape
~BasicShape()
destructor
Definition: MsWksGraph.cxx:366
MsWksGraphInternal::SubDocument::Empty
@ Empty
Definition: MsWksGraph.cxx:862
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
MsWksGraphInternal::OLEZone::type
virtual Type type() const
return the type
Definition: MsWksGraph.cxx:623
MWAWFont::m_extra
std::string m_extra
extra data
Definition: MWAWFont.hxx:552
MsWksGraph::sendGroup
void sendGroup(int zoneId, MWAWPosition const &pos)
try to send a group
Definition: MsWksGraph.cxx:2222
MWAWParagraph::JustificationCenter
@ JustificationCenter
Definition: MWAWParagraph.hxx:87
MsWksGraphInternal::Zone::ChartZone
@ ChartZone
Definition: MsWksGraph.cxx:87
MsWksGraphInternal::Chart::Chart
Chart()
empty constructor
Definition: MsWksGraph.cxx:378
MWAWParagraph::Justification
Justification
an enum used to defined the paragraph justification: left, center, right, full ...
Definition: MWAWParagraph.hxx:87
MsWksGraph::SendData::ALL
@ ALL
Definition: MsWksGraph.hxx:115
MWAWGraphicStyle::m_surfaceColor
MWAWColor m_surfaceColor
the surface color
Definition: MWAWGraphicStyle.hxx:385
MWAWFont::shadowBit
@ shadowBit
Definition: MWAWFont.hxx:183
MWAWEntry::setType
void setType(std::string const &newType)
sets the type of the entry: BTEP,FDPP, BTEC, FDPC, PLC , TEXT, ...
Definition: MWAWEntry.hxx:121
MWAWParagraph.hxx
libmwaw::DebugFile::skipZone
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:105
MWAWGraphicEncoder.hxx
MWAWFont::getDebugString
std::string getDebugString(shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
MsWksGraph::SendData::m_size
MWAWVec2i m_size
the size of the data ( used by rbil )
Definition: MsWksGraph.hxx:123
MWAWVec2::y
T y() const
second element
Definition: libmwaw_internal.hxx:620
MsWksGraphInternal::DataBitmap::m_numRows
int m_numRows
the number of rows
Definition: MsWksGraph.cxx:484
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
MWAWGraphicStyle::m_lineWidth
float m_lineWidth
the linewidth
Definition: MWAWGraphicStyle.hxx:375
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
MWAWParserState::Text
@ Text
Definition: MWAWParser.hxx:53
MsWksDocument::ascii
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MsWksDocument.hxx:127
MWAWVec2::x
T x() const
first element
Definition: libmwaw_internal.hxx:615
MsWksGraph::readGradient
bool readGradient(Style &style)
read the gradient structure ( v4)
Definition: MsWksGraph.cxx:1252
MsWksGraphInternal::OLEZone::~OLEZone
virtual ~OLEZone()
destructor
Definition: MsWksGraph.cxx:641
MsWksDocument::sendOLE
void sendOLE(int id, MWAWPosition const &pos, MWAWGraphicStyle const &style)
send an OLE zone
Definition: MsWksDocument.cxx:492
MWAWGraphicStyle::G_Radial
@ G_Radial
Definition: MWAWGraphicStyle.hxx:55
MsWksGraph::sendFrameText
void sendFrameText(MWAWEntry const &entry, std::string const &frame)
ask m_mainParser to send a frame text(v4)
Definition: MsWksGraph.cxx:1006
MsWksGraphInternal::Zone::m_order
int m_order
the picture order
Definition: MsWksGraph.cxx:199
MsWksGraphInternal::Zone::Group
@ Group
Definition: MsWksGraph.cxx:87
MWAWPosition
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
MsWksGraphInternal::TextBox::operator=
TextBox & operator=(TextBox const &)
MWAWEntry::name
std::string const & name() const
name of the entry
Definition: MWAWEntry.hxx:142
MsWksGraph::m_document
MsWksDocument & m_document
the main document
Definition: MsWksGraph.hxx:246
MsWksGraph::MsWksGraph
MsWksGraph(MsWksDocument &document)
constructor
Definition: MsWksGraph.cxx:966
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
MsWksGraph::getZonePosition
bool getZonePosition(int zoneId, MWAWPosition::AnchorTo anchor, MWAWPosition &pos) const
returns the position of the zone defined by zoneId
Definition: MsWksGraph.cxx:1036
MsWksGraph::SendData::RBIL
@ RBIL
Definition: MsWksGraph.hxx:115
MsWksGraphInternal::TextBoxv4::fillFrame
virtual void fillFrame(MWAWGraphicStyle &style) const
add frame parameters to propList (if needed )
Definition: MsWksGraph.cxx:666
MWAWGraphicStyle::Pattern::m_dim
MWAWVec2i m_dim
the dimension width x height
Definition: MWAWGraphicStyle.hxx:242
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
MWAWGraphicShape::m_type
Type m_type
the type
Definition: MWAWGraphicShape.hxx:191
MsWksGraphInternal::Table
Internal: the table of a MsWksGraph.
Definition: MsWksGraph.cxx:524
MWAWPict::MWAW_R_BAD
@ MWAW_R_BAD
Definition: MWAWPict.hxx:73
MWAWVec2< float >
MsWks4Zone
The class which parses the main zones of a mac MS Works document v4.
Definition: MsWks4Zone.hxx:74
MsWksGraphInternal::Zone::Textv4
@ Textv4
Definition: MsWksGraph.cxx:87
MWAWGraphicListener.hxx
MWAWPictMac.hxx
MWAWPictBitmapIndexed::setRow
void setRow(int j, U const *val)
sets all cell contents of a row
Definition: MWAWPictBitmap.hxx:416
MWAWGraphicShape.hxx
MsWksGraph::sendTextBox
void sendTextBox(int zId, MWAWListenerPtr listener)
try to send a text box zone v1-3
Definition: MsWksGraph.cxx:2671
MWAWPosition::setOrigin
void setOrigin(MWAWVec2f const &orig)
sets the frame origin
Definition: MWAWPosition.hxx:194
MsWksGraph::SendData::RBDR
@ RBDR
Definition: MsWksGraph.hxx:115
MWAWEntry::begin
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
MsWksDBParser
the main class to read a Microsoft Works database file and convert it in a spreadsheet file
Definition: MsWksDBParser.hxx:66
MsWksGraphInternal::DataBitmap::DataBitmap
DataBitmap()
empty constructor
Definition: MsWksGraph.cxx:464
MWAWGraphicStyle::m_arrows
Arrow m_arrows[2]
the two arrows corresponding to start and end extremity
Definition: MWAWGraphicStyle.hxx:430
MWAWGraphicStyle::setPattern
void setPattern(Pattern const &pat, float opacity=1)
set the pattern
Definition: MWAWGraphicStyle.hxx:293
MsWksGraph::~MsWksGraph
virtual ~MsWksGraph()
destructor
Definition: MsWksGraph.cxx:974
MsWksGraphInternal::Zone::Zone
Zone()
constructor
Definition: MsWksGraph.cxx:89
MsWksGraphInternal::DataPict::type
virtual Type type() const
return the type
Definition: MsWksGraph.cxx:402
MsWksGraph::m_mainParser
MWAWParser * m_mainParser
the main parser;
Definition: MsWksGraph.hxx:244
MsWksGraphInternal::Zone::m_style
MsWksGraph::Style m_style
the style
Definition: MsWksGraph.cxx:197
MWAWBox2f
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1134
MsWksGraph::m_state
shared_ptr< MsWksGraphInternal::State > m_state
the state
Definition: MsWksGraph.hxx:241
MsWksGraphInternal::State::m_RBsMap
std::map< int, RBZone > m_RBsMap
the RBIL zone id->list id
Definition: MsWksGraph.cxx:756
MsWksGraphInternal::BasicShape::BasicShape
BasicShape(BasicShape const &)
MsWksGraphInternal::GroupZone
Internal: the group of a MsWksGraph.
Definition: MsWksGraph.cxx:292
MsWksGraphInternal::SubDocument::parse
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type)
the parser function
Definition: MsWksGraph.cxx:898
MsWksGraphInternal::SubDocument
Internal: the subdocument of a MsWksGraph.
Definition: MsWksGraph.cxx:860
MsWksGraph::readText
bool readText(MsWksGraphInternal::TextBox &textBox)
try to read a text zone
Definition: MsWksGraph.cxx:2476
MsWksGraph::SendData::SendData
SendData()
constructor
Definition: MsWksGraph.hxx:111
MWAWGraphicStyle::G_Linear
@ G_Linear
Definition: MWAWGraphicStyle.hxx:55
MWAWField
a field
Definition: libmwaw_internal.hxx:369
MWAWField::PageNumber
@ PageNumber
Definition: libmwaw_internal.hxx:371
MsWksGraphInternal::Zone::fillFrame
virtual void fillFrame(MWAWGraphicStyle &) const
add frame parameters to propList (if needed )
Definition: MsWksGraph.cxx:123
MWAWGraphicStyle::GradientStop
a structure used to define the gradient limit in MWAWGraphicStyle
Definition: MWAWGraphicStyle.hxx:134
MsWksGraphInternal::DataBitmap::m_naturalBox
MWAWBox2f m_naturalBox
the pict box (if known )
Definition: MsWksGraph.cxx:487
MsWksGraph::SendData::Type
Type
the type
Definition: MsWksGraph.hxx:115
MWAWParagraph::JustificationLeft
@ JustificationLeft
Definition: MWAWParagraph.hxx:87
MsWksGraphInternal::TextBox::m_formats
std::vector< int > m_formats
the list of format
Definition: MsWksGraph.cxx:600
MsWksSSParser
the main class to read a Microsoft Works spreadsheet file
Definition: MsWksSSParser.hxx:66
MWAWGraphicShape::m_cornerWidth
MWAWVec2f m_cornerWidth
the rectangle round corner
Definition: MWAWGraphicShape.hxx:197
MsWksGraphInternal::SubDocument::TextBox
@ TextBox
Definition: MsWksGraph.cxx:862
MWAWPosition::Char
@ Char
Definition: MWAWPosition.hxx:51
MsWksGraphInternal::SubDocument::SubDocument
SubDocument(MsWksGraph &pars, MWAWInputStreamPtr input, Type type, MWAWEntry const &entry, std::string frame=std::string(""))
Definition: MsWksGraph.cxx:866
MsWksGraph::sendAll
void sendAll(int zoneId, bool mainZone)
send all the picture corresponding to a zone
Definition: MsWksGraph.cxx:2864
MsWksGraph::flushExtra
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: MsWksGraph.cxx:2956
MWAWGraphicShape::arc
static MWAWGraphicShape arc(MWAWBox2f const &box, MWAWBox2f const &circleBox, MWAWVec2f const &angles)
static constructor to create a arc
Definition: MWAWGraphicShape.hxx:120
MsWksGraph::MsWksTable
friend class MsWksTable
Definition: MsWksGraph.hxx:76
MsWksGraphInternal::TextBox::~TextBox
virtual ~TextBox()
destructor
Definition: MsWksGraph.cxx:610
MsWksGraphInternal::Zone::m_dataPos
long m_dataPos
the data begin position
Definition: MsWksGraph.cxx:181
MWAWGraphicStyle::Pattern::m_colors
MWAWColor m_colors[2]
the two indexed colors
Definition: MWAWGraphicStyle.hxx:245
MWAWParser::getParserState
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
MsWksGraphInternal::RBZone::getId
int getId() const
returns a unique id
Definition: MsWksGraph.cxx:70
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
MsWksGraphInternal::Table::~Table
~Table()
destructor
Definition: MsWksGraph.cxx:541
MWAWFont::setSize
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:254
MsWksGraphInternal::RBZone::m_idList
std::vector< int > m_idList
the list of rb
Definition: MsWksGraph.cxx:79
MWAWGraphicStyle::m_lineColor
MWAWColor m_lineColor
the line color
Definition: MWAWGraphicStyle.hxx:383
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
MsWksGraph::sendObjects
void sendObjects(SendData const &what)
sends all the object of a page, frame, ...
Definition: MsWksGraph.cxx:2878
MsWksGraphInternal
Internal: the structures of a MsWksGraph.
Definition: MsWksGraph.cxx:64
MWAWGraphicShape::Line
@ Line
Definition: MWAWGraphicShape.hxx:49
MsWksGraphInternal::Chart::m_chartId
int m_chartId
the chart id
Definition: MsWksGraph.cxx:386
MsWksGraph::SendData
small struct used which picture need to be send
Definition: MsWksGraph.hxx:109
MsWksGraphInternal::SubDocument::operator=
SubDocument & operator=(SubDocument const &orig)
MsWksGraphInternal::OLEZone::print
virtual void print(std::ostream &o) const
operator<<
Definition: MsWksGraph.cxx:628
MsWksGraphInternal::State::m_tableId
int m_tableId
an index used to store table
Definition: MsWksGraph.cxx:762
MsWksGraphInternal::TextBox::TextBox
TextBox(Zone const &z)
constructor
Definition: MsWksGraph.cxx:549
MsWksGraphInternal::Patterns::m_num
int m_num
the number of patterns
Definition: MsWksGraph.cxx:728
MsWksGraphInternal::GroupZone::GroupZone
GroupZone(Zone const &z)
constructor
Definition: MsWksGraph.cxx:294
MWAWParser
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:100
MWAWGraphicStyle.hxx
MWAWFont::italicBit
@ italicBit
Definition: MWAWFont.hxx:182
MsWksGraphInternal::Chart::Chart
Chart(Zone const &z)
constructor
Definition: MsWksGraph.cxx:374
MsWksGraphInternal::DataPict::m_dataEndPos
long m_dataEndPos
the end of data (only defined when different to m_pos.end())
Definition: MsWksGraph.cxx:415
MsWksGraphInternal::DataPict::m_naturalBox
MWAWBox2f m_naturalBox
the pict box (if known )
Definition: MsWksGraph.cxx:417
MsWksGraphInternal::BasicShape
Internal: the simple form of a MsWksGraph ( line, rect, ...)
Definition: MsWksGraph.cxx:321
MsWksDocument.hxx
MWAWPictBitmapIndexed
a bitmap of int to store indexed bitmap
Definition: MWAWPictBitmap.hxx:348
MWAWGraphicShape::path
static MWAWGraphicShape path(MWAWBox2f const &box)
static constructor to create a path
Definition: MWAWGraphicShape.hxx:148
MWAWGraphicStyle::m_frameNextName
std::string m_frameNextName
the frame next name (if there is a link)
Definition: MWAWGraphicStyle.hxx:427
MsWksGraphInternal::DataBitmap::getPictureData
bool getPictureData(MWAWInputStreamPtr ip, MWAWEmbeddedObject &picture, std::vector< MWAWColor > const &palette) const
return a binary data (if known)
Definition: MsWksGraph.cxx:490
MsWksGraphInternal::Zone::m_ids
long m_ids[3]
the zones id (main, previous, next)
Definition: MsWksGraph.cxx:185
MWAWPosition::Page
@ Page
Definition: MWAWPosition.hxx:51
MsWksGraphInternal::State::getPattern
bool getPattern(MWAWGraphicStyle::Pattern &pat, int id, long rsid=-1)
return the pattern corresponding to an id
Definition: MsWksGraph.cxx:846
MWAWParagraph::JustificationFull
@ JustificationFull
Definition: MWAWParagraph.hxx:87
MsWksGraph::readPictureV4
bool readPictureV4(MWAWInputStreamPtr input, MWAWEntry const &entry)
reads a Pict zone: a zone which seems to code in v4 : header/footer picture
Definition: MsWksGraph.cxx:2190
MWAWParagraph::JustificationRight
@ JustificationRight
Definition: MWAWParagraph.hxx:88
MsWksGraphInternal::State::m_version
int m_version
the version
Definition: MsWksGraph.cxx:750
MsWksGraphInternal::DataPict
Internal: the picture of a MsWksGraph.
Definition: MsWksGraph.cxx:395
MsWksGraphInternal::DataPict::print
virtual void print(std::ostream &o) const
operator<<
Definition: MsWksGraph.cxx:410
MsWksGraphInternal::SubDocument::Type
Type
Definition: MsWksGraph.cxx:862
MsWksGraphInternal::Patterns::getPercent
float getPercent(int id) const
return the percentage corresponding to a pattern
Definition: MsWksGraph.cxx:718
MsWksGraphInternal::BasicShape::type
virtual Type type() const
return the type
Definition: MsWksGraph.cxx:329
MWAWBox2::min
MWAWVec2< T > const & min() const
the minimum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:980
MsWksGraph::m_tableParser
shared_ptr< MsWksTable > m_tableParser
the table manager
Definition: MsWksGraph.hxx:249
MsWksGraphInternal::Zone::type
virtual Type type() const
return the type
Definition: MsWksGraph.cxx:104
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
MsWksGraphInternal::Zone::Unknown
@ Unknown
Definition: MsWksGraph.cxx:87
MsWksGraph::sendGroupChild
void sendGroupChild(int zoneId, MWAWPosition const &pos)
try to send a group elements by elemenys
Definition: MsWksGraph.cxx:2260
MWAWPosition::origin
MWAWVec2f const & origin() const
return the frame origin
Definition: MWAWPosition.hxx:114
MsWksGraph::readPictHeader
bool readPictHeader(MsWksGraphInternal::Zone &pict)
read the picture header
Definition: MsWksGraph.cxx:1046
MsWksGraphInternal::Table::type
virtual Type type() const
return the type
Definition: MsWksGraph.cxx:533
MWAWEntry::valid
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
MWAWGraphicStyle::m_gradientPercentCenter
MWAWVec2f m_gradientPercentCenter
the gradient center
Definition: MWAWGraphicStyle.hxx:408
MWAWPosition::YTop
@ YTop
Definition: MWAWPosition.hxx:57
MsWksGraph::sendTable
void sendTable(int id)
try to a table zone
Definition: MsWksGraph.cxx:1016
MsWksGraph::MsWksGraph
MsWksGraph(MsWksGraph const &orig)
MWAWListener.hxx
MsWksGraphInternal::TextBoxv4::m_text
MWAWEntry m_text
the text of positions (0-0: means no text)
Definition: MsWksGraph.cxx:673
MsWksGraphInternal::Zone::OLE
@ OLE
Definition: MsWksGraph.cxx:87
MsWksGraphInternal::DataBitmap::type
virtual Type type() const
return the type
Definition: MsWksGraph.cxx:467
MsWksGraphInternal::TextBoxv4
Internal: the textbox of a MsWksGraph ( v4)
Definition: MsWksGraph.cxx:647
MWAWBox2::size
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1008
MWAWPosition::Frame
@ Frame
Definition: MWAWPosition.hxx:51
MsWksGraph::setPageLeftTop
void setPageLeftTop(MWAWVec2f const &leftTop)
define the page left top dimension in point
Definition: MsWksGraph.cxx:977
MsWksGraphInternal::SubDocument::SubDocument
SubDocument(MsWksGraph &pars, MWAWInputStreamPtr input, Type type, int zoneId)
Definition: MsWksGraph.cxx:863
MsWksGraphInternal::SubDocument::m_type
Type m_type
the type
Definition: MsWksGraph.cxx:891
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
MsWksGraph::getZoneGraphicStyle
bool getZoneGraphicStyle(int zoneId, MWAWGraphicStyle &style) const
returns the graphic style of the zone defined by zoneId
Definition: MsWksGraph.cxx:1026
MsWksGraphInternal::RBZone::m_frame
std::string m_frame
the frame name ( if it exist )
Definition: MsWksGraph.cxx:81
MWAWParserState::Spreadsheet
@ Spreadsheet
Definition: MWAWParser.hxx:53
MsWksGraphInternal::Zone
Internal: the generic pict.
Definition: MsWksGraph.cxx:86
MsWksGraphInternal::Zone::m_decal
MWAWBox2f m_decal
the local position
Definition: MsWksGraph.cxx:189
MWAWFont::Script
a small struct to define the script position in MWAWFont
Definition: MWAWFont.hxx:100
MsWksGraphInternal::Chart::~Chart
virtual ~Chart()
destructor
Definition: MsWksGraph.cxx:389
MWAWPosition::XLeft
@ XLeft
Definition: MWAWPosition.hxx:55
MWAWPosition::Paragraph
@ Paragraph
Definition: MWAWPosition.hxx:51
MWAWGraphicStyle::m_gradientAngle
float m_gradientAngle
the gradient angle
Definition: MWAWGraphicStyle.hxx:404
MsWksGraph::sendChart
void sendChart(int zoneId)
try to send a chart
Definition: MsWksGraph.cxx:1011
MsWksGraphInternal::OLEZone::m_oleId
int m_oleId
the ole id
Definition: MsWksGraph.cxx:636
MsWksGraphInternal::Zone::m_page
int m_page
the page
Definition: MsWksGraph.cxx:187
MsWksGraphInternal::RBZone
Internal: a list of zones ( for v4)
Definition: MsWksGraph.cxx:67
MsWksGraphInternal::TextBoxv4::m_frame
std::string m_frame
the frame name
Definition: MsWksGraph.cxx:675
MWAWGraphicShape::Circle
@ Circle
Definition: MWAWGraphicShape.hxx:49
MWAWParserState::Graphic
@ Graphic
Definition: MWAWParser.hxx:53
MsWksGraphInternal::Table::Table
Table()
empty constructor
Definition: MsWksGraph.cxx:530
MWAWColor::isWhite
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:270
MsWksGraphInternal::RBZone::m_id
int m_id
the zone id
Definition: MsWksGraph.cxx:77
MWAWFont.hxx
MWAWPosition::m_anchorTo
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:254
MsWksGraphInternal::Zone::m_finalDecal
MWAWVec2f m_finalDecal
the final local position
Definition: MsWksGraph.cxx:191
MsWksGraph::getEntryPicture
int getEntryPicture(int zoneId, MWAWEntry &zone, bool autoSend=true, int order=-1000)
checks if the next zone is a v2 picture and returns a zone id ( or -1)
Definition: MsWksGraph.cxx:1351
MWAWPictBitmap.hxx
MsWksGraphInternal::OLEZone::OLEZone
OLEZone(Zone const &z)
constructor
Definition: MsWksGraph.cxx:618
MsWksGraphInternal::DataBitmap::DataBitmap
DataBitmap(Zone const &z)
constructor
Definition: MsWksGraph.cxx:459
MsWksGraphInternal::Zone::~Zone
virtual ~Zone()
destructor
Definition: MsWksGraph.cxx:95
MsWksGraphInternal::Zone::Pict
@ Pict
Definition: MsWksGraph.cxx:87
MWAWBox2< float >
MsWksGraphInternal::Patterns::m_valuesList
std::vector< unsigned char > m_valuesList
the pattern values (8 data by pattern)
Definition: MsWksGraph.cxx:730
MWAWGraphicListener::insertTextBox
void insertTextBox(MWAWPosition const &pos, MWAWSubDocumentPtr subDocument, MWAWGraphicStyle const &style)
adds a textbox in given position
Definition: MWAWGraphicListener.cxx:1074
MWAWFont
Class to store font.
Definition: MWAWFont.hxx:44
MsWksGraphInternal::Patterns::Patterns
Patterns(int num, uint16_t const *data)
constructor ( 4 int by patterns )
Definition: MsWksGraph.cxx:681
MsWksGraphInternal::Zone::Bitmap
@ Bitmap
Definition: MsWksGraph.cxx:87
MsWksGraph::Style::operator<<
friend std::ostream & operator<<(std::ostream &o, Style const &st)
operator<<
Definition: MsWksGraph.hxx:212
MsWksGraphInternal::Zone::m_pos
MWAWEntry m_pos
the file position
Definition: MsWksGraph.cxx:179
MsWksGraphInternal::Chart::type
virtual Type type() const
return the type
Definition: MsWksGraph.cxx:381
MsWksGraphInternal::BasicShape::BasicShape
BasicShape(Zone const &z)
constructor
Definition: MsWksGraph.cxx:323
MWAWBox2::max
MWAWVec2< T > const & max() const
the maximum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:985
MWAWGraphicShape::PathData
a simple path component
Definition: MWAWGraphicShape.hxx:53
MsWksGraph::version
int version() const
returns the file version
Definition: MsWksGraph.cxx:982
MsWksGraphInternal::State::getPatternPercent
float getPatternPercent(int id, long rsid=-1)
return the percentage corresponding to a pattern
Definition: MsWksGraph.cxx:835
MWAWField::Title
@ Title
Definition: libmwaw_internal.hxx:371
MsWksGraphInternal::DataBitmap
Internal: the bitmap of a MsWksGraph.
Definition: MsWksGraph.cxx:457
MsWksGraphInternal::DataBitmap::print
virtual void print(std::ostream &o) const
operator<<
Definition: MsWksGraph.cxx:475
MsWksGraphInternal::Zone::Text
@ Text
Definition: MsWksGraph.cxx:87
MsWksGraph::SendData::m_type
enum MsWksGraph::SendData::Type m_type
MsWksGraph::readFont
bool readFont(MWAWFont &font)
reads the textbox font
Definition: MsWksGraph.cxx:2623
MsWksGraphInternal::GroupZone::type
virtual Type type() const
return the type
Definition: MsWksGraph.cxx:298
MsWksDocument::sendTextbox
void sendTextbox(MWAWEntry const &entry, std::string const &frame)
send a textbox
Definition: MsWksDocument.cxx:518
MWAWVec2i
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:781
MsWksGraphInternal::DataPict::getBinaryData
virtual bool getBinaryData(MWAWInputStreamPtr ip, MWAWEmbeddedObject &picture) const
return a binary data (if known)
Definition: MsWksGraph.cxx:420
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
MsWksGraphInternal::Zone::m_fileId
int m_fileId
the file id
Definition: MsWksGraph.cxx:183
MWAWPictData::get
static MWAWPictData * get(MWAWInputStreamPtr input, int size)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:108
MsWksGraphInternal::GroupZone::print
virtual void print(std::ostream &o) const
operator<<
Definition: MsWksGraph.cxx:303
MsWksGraphInternal::GroupZone::~GroupZone
virtual ~GroupZone()
destructor
Definition: MsWksGraph.cxx:315
MWAWFont::setUnderlineStyle
void setUnderlineStyle(Line::Style style=Line::None, bool doReset=true)
sets the underline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:445
MWAWSubDocument::m_input
shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
MsWksGraphInternal::Zone::Shape
@ Shape
Definition: MsWksGraph.cxx:87
MsWksGraphInternal::TextBox
Internal: the textbox of a MsWksGraph ( v2-v3)
Definition: MsWksGraph.cxx:547
MWAWGraphicListener
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:60
MsWksGraphInternal::RBZone::m_isMain
bool m_isMain
the zone type: rbdr(true) or rbil
Definition: MsWksGraph.cxx:75
MWAWGraphicStyle::G_Axial
@ G_Axial
Definition: MWAWGraphicStyle.hxx:55
MWAWGraphicShape::m_formBox
MWAWBox2f m_formBox
the internal shape bdbox ( used for arc, circle to store the circle bdbox )
Definition: MWAWGraphicShape.hxx:195
MsWksGraphInternal::SubDocument::operator==
virtual bool operator==(MWAWSubDocument const &doc) const
operator!==
Definition: MsWksGraph.cxx:876
MsWksGraphInternal::DataPict::DataPict
DataPict(Zone const &z)
constructor
Definition: MsWksGraph.cxx:397
MWAWFont::setFlags
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:304
MsWksGraph::computePositions
void computePositions(int zoneId, std::vector< int > &linesHeight, std::vector< int > &pagesHeight)
try to update positions knowing pages and lines height
Definition: MsWksGraph.cxx:1874
MWAWGraphicStyle::Arrow
a structure used to define an arrow
Definition: MWAWGraphicStyle.hxx:58
MsWksGraphInternal::Zone::m_subType
int m_subType
the type
Definition: MsWksGraph.cxx:175
MsWksTable
the main class to read the table ( or a chart ) of a Microsoft Works file
Definition: MsWksTable.hxx:59
MsWksGraph::Style::Style
Style()
constructor
Definition: MsWksGraph.hxx:205
MsWksGraph::Style::m_baseLineColor
MWAWColor m_baseLineColor
the line color
Definition: MsWksGraph.hxx:224

Generated on Wed Jun 17 2020 06:30:11 for libmwaw by doxygen 1.8.18