QuattroGraph.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2 /* libwps
3  * Version: MPL 2.0 / LGPLv2.1+
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * Major Contributor(s):
10  * Copyright (C) 2006, 2007 Andrew Ziem
11  * Copyright (C) 2003-2005 William Lachance (william.lachance@sympatico.ca)
12  * Copyright (C) 2003 Marc Maurer (uwog@uwog.net)
13  *
14  * For minor contributions see the git repository.
15  *
16  * Alternatively, the contents of this file may be used under the terms
17  * of the GNU Lesser General Public License Version 2.1 or later
18  * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
19  * applicable instead of those above.
20  */
21 
22 #ifndef QUATTRO_GRAPH_H
23 #define QUATTRO_GRAPH_H
24 
25 #include <ostream>
26 #include <map>
27 #include <vector>
28 
29 #include <librevenge-stream/librevenge-stream.h>
30 
31 #include "libwps_internal.h"
32 
33 #include "WPSDebug.h"
34 #include "WKSContentListener.h"
35 
36 namespace QuattroGraphInternal
37 {
38 struct Dialog;
39 struct Graph;
40 struct ShapeHeader;
41 struct Textbox;
42 
43 struct State;
44 
45 class SubDocument;
46 }
47 
48 class QuattroParser;
49 class QuattroStyleManager;
50 
56 {
57 public:
58  friend class QuattroParser;
60 
64  ~QuattroGraph();
67  {
68  m_listener = listen;
69  }
71  void cleanState();
73  void updateState();
74 
75 protected:
77  int version() const;
78 
80  void storeObjects(std::map<librevenge::RVNGString,WPSEmbeddedObject> const &nameToObjectMap);
82  std::vector<Vec2i> getGraphicCellsInSheet(int sheetId) const;
84  bool sendGraphics(int sheetId, Vec2i const &cell) const;
86  bool sendPageGraphics(int sheetId) const;
87 
89  bool sendGraphic(QuattroGraphInternal::Graph const &graph) const;
91  bool sendShape(QuattroGraphInternal::Graph const &graph, int sheetId) const;
93  bool sendTextbox(QuattroGraphInternal::Graph const &graph, int sheetId) const;
95  bool send(QuattroGraphInternal::Textbox const &textbox,
96  std::shared_ptr<WPSStream> stream) const;
97  //
98  // low level
99  //
100 
101  // ////////////////////// zone //////////////////////////////
102 
104  bool readBeginEnd(std::shared_ptr<WPSStream> stream, int sheetId);
106  bool readFrameOLE(std::shared_ptr<WPSStream> stream);
108  bool readImage(std::shared_ptr<WPSStream> stream);
110  bool readBitmap(std::shared_ptr<WPSStream> stream);
112  bool readChart(std::shared_ptr<WPSStream> stream);
114  bool readFrame(std::shared_ptr<WPSStream> stream);
116  bool readButton(std::shared_ptr<WPSStream> stream);
118  bool readOLEData(std::shared_ptr<WPSStream> stream);
120  bool readHeader(QuattroGraphInternal::Graph &header, std::shared_ptr<WPSStream> stream, long endPos);
121 
122  // ////////////////////// shape //////////////////////////////
123 
125  bool readShape(std::shared_ptr<WPSStream> stream);
128  bool readShapeHeader(QuattroGraphInternal::ShapeHeader &shape, std::shared_ptr<WPSStream> stream, long endPos);
130  bool readLine(std::shared_ptr<WPSStream> stream);
132  bool readRect(std::shared_ptr<WPSStream> stream);
134  bool readPolygon(std::shared_ptr<WPSStream> stream);
136  bool readTextBox(std::shared_ptr<WPSStream> stream);
137 
138  // ////////////////////// dialog zone //////////////////////////////
139 
141  bool readHeader(QuattroGraphInternal::Dialog &header, std::shared_ptr<WPSStream> stream, long endPos);
143  bool readDialog(std::shared_ptr<WPSStream> stream);
145  bool readDialogUnknown(std::shared_ptr<WPSStream> stream);
146 
147  // ////////////////////// style //////////////////////////////
148  bool readFillData(WPSGraphicStyle &style, int fillType, std::shared_ptr<WPSStream> stream, long endPos);
149 private:
150  QuattroGraph(QuattroGraph const &orig) = delete;
151  QuattroGraph &operator=(QuattroGraph const &orig) = delete;
152  std::shared_ptr<WKSContentListener> m_listener;
156  std::shared_ptr<QuattroGraphInternal::State> m_state;
157 };
158 
159 #endif /* QUATTRO_GRAPH_H */
160 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
QuattroGraphInternal::ShapeHeader::m_flags
int m_flags[14]
some flags
Definition: QuattroGraph.cpp:133
QuattroGraphInternal::State::m_actualGraph
std::shared_ptr< Graph > m_actualGraph
the actual graph
Definition: QuattroGraph.cpp:353
QuattroGraphInternal::SubDocument::m_graphParser
QuattroGraph & m_graphParser
the graph parser
Definition: QuattroGraph.cpp:424
WPSParagraph.h
QuattroGraphInternal::State::m_sheetIdToGraphMap
std::multimap< int, std::shared_ptr< Graph > > m_sheetIdToGraphMap
a multimap sheetId to graph
Definition: QuattroGraph.cpp:351
WKSSubDocument::parser
WKSParser * parser() const
returns the parser
Definition: WKSSubDocument.h:44
QuattroGraphInternal::State::storeGraph
void storeGraph(std::shared_ptr< Graph > graph)
store a graph
Definition: QuattroGraph.cpp:329
WPSGraphicShape::rectangle
static WPSGraphicShape rectangle(WPSBox2f const &box, Vec2f const &corners=Vec2f(0, 0))
static constructor to create a rectangle
Definition: WPSGraphicShape.h:109
WPSParagraph::m_justify
libwps::Justification m_justify
the justification
Definition: WPSParagraph.h:116
QuattroGraphInternal::Graph::m_flags1
int m_flags1[4]
some flags
Definition: QuattroGraph.cpp:262
WPSOLEObject.h
WPS_STRIKEOUT_BIT
#define WPS_STRIKEOUT_BIT
Definition: libwps_internal.h:507
QuattroGraphInternal::ShapeHeader::m_id
int m_id
an id?
Definition: QuattroGraph.cpp:127
QuattroGraphInternal::Graph::m_flags2
int m_flags2[7]
final flag
Definition: QuattroGraph.cpp:264
QuattroGraphInternal::State
the state of QuattroGraph
Definition: QuattroGraph.cpp:318
libwps::DebugStream::str
static std::string str()
Definition: WPSDebug.h:200
QuattroGraph::m_listener
std::shared_ptr< WKSContentListener > m_listener
Definition: QuattroGraph.h:152
WPS_BOLD_BIT
#define WPS_BOLD_BIT
Definition: libwps_internal.h:506
QuattroParser::getCellPosition
Vec2f getCellPosition(int sheetId, Vec2i const &cell) const
returns the beginning position of a cell
Definition: Quattro.cpp:571
QuattroGraphInternal::Graph
Internal: a graph of a QuattroGraph.
Definition: QuattroGraph.cpp:231
libwps::DebugFile::addPos
static void addPos(long)
Definition: WPSDebug.h:220
QuattroGraph::readShapeHeader
bool readShapeHeader(QuattroGraphInternal::ShapeHeader &shape, std::shared_ptr< WPSStream > stream, long endPos)
read a shape header
Definition: QuattroGraph.cpp:537
QuattroGraphInternal::Dialog::m_flags2
int m_flags2[9]
final flag
Definition: QuattroGraph.cpp:71
WPSBox2f
WPSBox2< float > WPSBox2f
WPSBox2 of float.
Definition: libwps_internal.h:890
QuattroGraphInternal::Graph::Chart
@ Chart
Definition: QuattroGraph.cpp:233
QuattroGraphInternal::ShapeHeader::m_type
int m_type
the type
Definition: QuattroGraph.cpp:123
QuattroGraphInternal::SubDocument::operator==
bool operator==(std::shared_ptr< WPSSubDocument > const &doc) const final
operator==
Definition: QuattroGraph.cpp:409
QuattroGraphInternal::Graph::Graph
Graph(std::shared_ptr< WPSStream > const &stream, Type type=Unknown)
constructor
Definition: QuattroGraph.cpp:235
QuattroGraph::m_mainParser
QuattroParser & m_mainParser
the listener (if set)
Definition: QuattroGraph.h:154
WPSGraphicStyle::G_Linear
@ G_Linear
Definition: WPSGraphicStyle.h:45
WPSPosition::m_anchorTo
AnchorTo m_anchorTo
anchor position
Definition: WPSPosition.h:239
WPSGraphicStyle::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: WPSGraphicStyle.h:191
QuattroGraph::sendTextbox
bool sendTextbox(QuattroGraphInternal::Graph const &graph, int sheetId) const
send a textbox
Definition: QuattroGraph.cpp:2034
QuattroGraphInternal::Graph::Button
@ Button
Definition: QuattroGraph.cpp:233
WPS_UNDERLINE_BIT
#define WPS_UNDERLINE_BIT
Definition: libwps_internal.h:508
QuattroGraphInternal::Graph::m_cellBox
WPSBox2i m_cellBox
the cell's position
Definition: QuattroGraph.cpp:258
QuattroGraphInternal::ShapeHeader::isTextbox
virtual bool isTextbox() const
returns true if the shape is a textbox
Definition: QuattroGraph.cpp:116
QuattroGraphInternal::ShapeHeader::m_values2
int m_values2[4]
style values
Definition: QuattroGraph.cpp:140
WKSSubDocument.h
QuattroGraphInternal::ShapeHeader::m_extra
std::string m_extra
error message
Definition: QuattroGraph.cpp:142
QuattroGraphInternal::Shape
Internal: a shape of a QuattroGraph.
Definition: QuattroGraph.cpp:182
QuattroGraphInternal::Dialog::Dialog
Dialog()
constructor
Definition: QuattroGraph.cpp:58
QuattroGraph.h
QuattroGraphInternal::Graph::Frame
@ Frame
Definition: QuattroGraph.cpp:233
QuattroGraph::readOLEData
bool readOLEData(std::shared_ptr< WPSStream > stream)
read a OLE data: zone 38b
Definition: QuattroGraph.cpp:941
QuattroGraphInternal::Dialog::m_flags1
int m_flags1[5]
some flags
Definition: QuattroGraph.cpp:69
WPSGraphicShape::circle
static WPSGraphicShape circle(WPSBox2f const &box)
static constructor to create a circle
Definition: WPSGraphicShape.h:118
QuattroGraphInternal::Dialog::m_cellBox
WPSBox2i m_cellBox
the cell's position
Definition: QuattroGraph.cpp:67
libwps_tools_win::Font::unicodeString
static librevenge::RVNGString unicodeString(const unsigned char *p, unsigned long size, Type type, bool skipUnknown=true)
converts a list of character in unicode
Definition: libwps_tools_win.cpp:7283
QuattroGraphInternal::Graph::Type
Type
the posible type
Definition: QuattroGraph.cpp:233
QuattroGraph::operator=
QuattroGraph & operator=(QuattroGraph const &orig)=delete
WPSPosition::m_anchorCellName
librevenge::RVNGString m_anchorCellName
the anchor cell name
Definition: WPSPosition.h:241
QuattroGraph::readDialogUnknown
bool readDialogUnknown(std::shared_ptr< WPSStream > stream)
read a unknown dialog zone: 335,343,345
Definition: QuattroGraph.cpp:1859
WPSFont
define the font properties
Definition: WPSFont.h:37
QuattroGraph::readLine
bool readLine(std::shared_ptr< WPSStream > stream)
read a line/arrow data: zone 35a/37b
Definition: QuattroGraph.cpp:1378
WPSColor::barycenter
static WPSColor barycenter(float alpha, WPSColor const &colA, float beta, WPSColor const &colB)
return alpha*colA+beta*colB
Definition: libwps_internal.cpp:386
WPSGraphicStyle::setBackgroundColor
void setBackgroundColor(WPSColor const &col, float opacity=1)
set the background color
Definition: WPSGraphicStyle.h:282
QuattroGraph::cleanState
void cleanState()
clean internal state
Definition: QuattroGraph.cpp:474
WPSEntry::valid
bool valid(bool checkId=false) const
returns true if the zone length is positive
Definition: WPSEntry.h:87
QuattroGraph::readButton
bool readButton(std::shared_ptr< WPSStream > stream)
read a button: zone 386
Definition: QuattroGraph.cpp:1012
QuattroGraphInternal::Graph::m_size
Vec2f m_size
the size
Definition: QuattroGraph.cpp:256
WPS_ITALICS_BIT
#define WPS_ITALICS_BIT
Definition: libwps_internal.h:502
QuattroGraphInternal::Graph::OLE
@ OLE
Definition: QuattroGraph.cpp:233
QuattroGraphInternal::Textbox::m_paragraph
WPSParagraph m_paragraph
the paragraph style
Definition: QuattroGraph.cpp:222
WPSEntry
basic class to store an entry in a file This contained :
Definition: WPSEntry.h:39
Vec2i
Vec2< int > Vec2i
Vec2 of int.
Definition: libwps_internal.h:702
QuattroGraphInternal::State::getPattern
bool getPattern(int id, WPSGraphicStyle::Pattern &pattern) const
returns the pattern corresponding to a pattern id between 0 and 24
Definition: QuattroGraph.cpp:358
WPSGraphicStyle::Pattern::m_dim
Vec2i m_dim
the dimension width x height
Definition: WPSGraphicStyle.h:186
QuattroGraph::m_state
std::shared_ptr< QuattroGraphInternal::State > m_state
the internal state
Definition: QuattroGraph.h:156
QuattroGraph::QuattroGraph
QuattroGraph(QuattroParser &parser)
constructor
Definition: QuattroGraph.cpp:463
QuattroGraphInternal::Graph::m_linkName
librevenge::RVNGString m_linkName
the OLE's link name
Definition: QuattroGraph.cpp:274
WPSGraphicShape
a structure used to define a picture shape
Definition: WPSGraphicShape.h:35
WPSGraphicStyle::Pattern::m_colors
WPSColor m_colors[2]
the two indexed colors
Definition: WPSGraphicStyle.h:189
QuattroGraph::readFillData
bool readFillData(WPSGraphicStyle &style, int fillType, std::shared_ptr< WPSStream > stream, long endPos)
Definition: QuattroGraph.cpp:714
Quattro.h
QuattroGraphInternal
Definition: QuattroGraph.cpp:53
Vec2f
Vec2< float > Vec2f
Vec2 of float.
Definition: libwps_internal.h:704
WPSGraphicStyle::Pattern::getAverageColor
bool getAverageColor(WPSColor &col) const
return the average color
Definition: WPSGraphicStyle.cpp:61
QuattroGraphInternal::Graph::m_cellBoxDecal
WPSBox2f m_cellBoxDecal
the decal position(LT, RB)
Definition: QuattroGraph.cpp:260
QuattroGraph::updateState
void updateState()
update the state (need to be called before sending data)
Definition: QuattroGraph.cpp:479
Vec2< float >
QuattroGraphInternal::Graph::m_values
int m_values[5]
some values
Definition: QuattroGraph.cpp:266
WPS_DEBUG_MSG
#define WPS_DEBUG_MSG(M)
Definition: libwps_internal.h:134
QuattroGraph::readChart
bool readChart(std::shared_ptr< WPSStream > stream)
read a chart zone: zone 384
Definition: QuattroGraph.cpp:1243
WPSParagraph
class to store the paragraph properties
Definition: WPSParagraph.h:58
QuattroGraphInternal::SubDocument::m_text
librevenge::RVNGString m_text
the main text
Definition: QuattroGraph.cpp:430
QuattroGraphInternal::Textbox
Internal: a shape of a QuattroGraph.
Definition: QuattroGraph.cpp:201
WKSContentListenerPtr
std::shared_ptr< WKSContentListener > WKSContentListenerPtr
shared pointer to WKSContentListener
Definition: libwps_internal.h:114
WPSOLEObject::readOLE
static bool readOLE(std::shared_ptr< WPSStream > stream, WPSEmbeddedObject &object, long endPos=-1)
try to read a OLE: 0x0105 ...
Definition: WPSOLEObject.cpp:139
QuattroGraph::readBitmap
bool readBitmap(std::shared_ptr< WPSStream > stream)
read a bitmap zone: zone 383(wb2)
Definition: QuattroGraph.cpp:1176
libwps::read32
int32_t read32(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:85
libwps::SubDocumentType
SubDocumentType
Definition: libwps_internal.h:248
WPSGraphicStyle::G_Axial
@ G_Axial
Definition: WPSGraphicStyle.h:45
QuattroGraphInternal::SubDocument::SubDocument
SubDocument(QuattroGraph &graphParser, librevenge::RVNGString const &text)
constructor for a text entry
Definition: QuattroGraph.cpp:399
QuattroParser::readCString
bool readCString(std::shared_ptr< WPSStream > stream, librevenge::RVNGString &string, long maxSize)
try to read a basic C string, knowing the maximum size
Definition: Quattro.cpp:1699
WPSFont.h
QuattroGraph::readHeader
bool readHeader(QuattroGraphInternal::Graph &header, std::shared_ptr< WPSStream > stream, long endPos)
try to read a graph header
Definition: QuattroGraph.cpp:514
QuattroParser::version
int version() const
return the file version
Definition: Quattro.cpp:485
WPSGraphicShape::polyline
static WPSGraphicShape polyline(WPSBox2f const &box)
static constructor to create a polyline
Definition: WPSGraphicShape.h:154
QuattroGraphInternal::ShapeHeader
a shape header of a QuattroGraph
Definition: QuattroGraph.cpp:100
QuattroGraph::sendPageGraphics
bool sendPageGraphics(int sheetId) const
send the page graphic corresponding to a sheet
Definition: QuattroGraph.cpp:1944
WPSEntry.h
QuattroGraphInternal::ShapeHeader::m_style
WPSGraphicStyle m_style
the graphic style
Definition: QuattroGraph.cpp:129
WPSGraphicStyle
a structure used to define a picture style
Definition: WPSGraphicStyle.h:38
QuattroGraphInternal::Graph::m_shape
std::shared_ptr< QuattroGraphInternal::Shape > m_shape
the graphic shape
Definition: QuattroGraph.cpp:277
QuattroGraphInternal::Shape::~Shape
~Shape() final
destructor
Definition: QuattroGraph.cpp:195
libwps::DebugFile::addNote
static void addNote(char const *)
Definition: WPSDebug.h:221
WPSEntry::begin
long begin() const
returns the begin offset
Definition: WPSEntry.h:71
QuattroGraphInternal::ShapeHeader::ShapeHeader
ShapeHeader()
constructor
Definition: QuattroGraph.cpp:102
QuattroGraphInternal::operator<<
std::ostream & operator<<(std::ostream &o, Dialog const &dlg)
Definition: QuattroGraph.cpp:74
QuattroGraph::send
bool send(QuattroGraphInternal::Textbox const &textbox, std::shared_ptr< WPSStream > stream) const
send the textbox content
Definition: QuattroGraph.cpp:2054
libwps::read8
int8_t read8(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:59
WPSEmbeddedObject::isEmpty
bool isEmpty() const
return true if the picture contains no data
Definition: libwps_internal.h:1095
QuattroGraph::setListener
void setListener(WKSContentListenerPtr &listen)
sets the listener
Definition: QuattroGraph.h:66
WPSOLEObject::readWMF
static bool readWMF(std::shared_ptr< WPSStream > stream, WPSEmbeddedObject &object, long endPos=-1)
try to read a wmf file: 0x0[12]00 0xXX00(with XX>=9)
Definition: WPSOLEObject.cpp:102
QuattroGraphInternal::Graph::m_label
librevenge::RVNGString m_label
the label(button)
Definition: QuattroGraph.cpp:269
WPSEmbeddedObject
small class use to define a embedded object
Definition: libwps_internal.h:1077
QuattroGraphInternal::Textbox::~Textbox
~Textbox() final
destructor
Definition: QuattroGraph.cpp:225
QuattroGraph::storeObjects
void storeObjects(std::map< librevenge::RVNGString, WPSEmbeddedObject > const &nameToObjectMap)
stores the OLE objets
Definition: QuattroGraph.cpp:490
QuattroGraphInternal::Graph::m_type
Type m_type
the type
Definition: QuattroGraph.cpp:254
QuattroGraph::readShape
bool readShape(std::shared_ptr< WPSStream > stream)
read a shape header: zone 4d3
Definition: QuattroGraph.cpp:1318
WPSEntry::length
long length() const
returns the length of the zone
Definition: WPSEntry.h:81
QuattroGraphInternal::Graph::m_stream
std::shared_ptr< WPSStream > m_stream
the main stream
Definition: QuattroGraph.cpp:282
QuattroGraph::sendGraphic
bool sendGraphic(QuattroGraphInternal::Graph const &graph) const
send a graphic
Definition: QuattroGraph.cpp:1958
QuattroGraph
This class parses QuattroPro graph file.
Definition: QuattroGraph.h:56
WKSSubDocument
Basic class used to store a spreadsheet sub document.
Definition: WKSSubDocument.h:36
QuattroGraphInternal::ShapeHeader::m_box
WPSBox2i m_box
the bdbox
Definition: QuattroGraph.cpp:125
libwps::DebugStream
Definition: WPSDebug.h:192
QuattroGraph::readPolygon
bool readPolygon(std::shared_ptr< WPSStream > stream)
read a polygon/polyline data: zone 35c/37c/35b/388
Definition: QuattroGraph.cpp:1506
libwps::readU8
uint8_t readU8(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:40
QuattroGraph::version
int version() const
return the file version
Definition: QuattroGraph.cpp:483
WPSGraphicStyle::GradientStop
a structure used to define the gradient limit
Definition: WPSGraphicStyle.h:49
QuattroGraphInternal::SubDocument::m_textbox
std::shared_ptr< Textbox > m_textbox
the textbox data
Definition: QuattroGraph.cpp:426
QuattroGraphInternal::State::State
State()
constructor
Definition: QuattroGraph.cpp:320
QuattroParser
This class parses Quattro Pro spreadsheet: .wb1, ..., .wb3.
Definition: Quattro.h:54
QuattroGraphInternal::SubDocument::SubDocument
SubDocument(QuattroGraph &graphParser, std::shared_ptr< Textbox > const &textbox, std::shared_ptr< WPSStream > const &stream)
constructor for a textbox document
Definition: QuattroGraph.cpp:392
WPSPosition::Cell
@ Cell
Definition: WPSPosition.h:43
libwps_tools_win.h
QuattroGraph::readFrame
bool readFrame(std::shared_ptr< WPSStream > stream)
read an frame: zone 385
Definition: QuattroGraph.cpp:824
QuattroGraphInternal::Dialog
a dialog header
Definition: QuattroGraph.cpp:56
QuattroGraphInternal::Textbox::m_font
WPSFont m_font
the font
Definition: QuattroGraph.cpp:220
WPSGraphicShape::line
static WPSGraphicShape line(Vec2f const &orign, Vec2f const &dest)
static constructor to create a line
Definition: WPSGraphicShape.cpp:212
QuattroGraph::sendShape
bool sendShape(QuattroGraphInternal::Graph const &graph, int sheetId) const
send a shape
Definition: QuattroGraph.cpp:2012
WPSPosition::Page
@ Page
Definition: WPSPosition.h:43
QuattroGraph::readBeginEnd
bool readBeginEnd(std::shared_ptr< WPSStream > stream, int sheetId)
read the begin/end graph zone: 321/322
Definition: QuattroGraph.cpp:789
QuattroGraph::getGraphicCellsInSheet
std::vector< Vec2i > getGraphicCellsInSheet(int sheetId) const
return the list of cells containing some graphics in a sheet
Definition: QuattroGraph.cpp:495
libwps::readU16
uint16_t readU16(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:64
libwps_tools_win::Language::name
std::string name(long id)
returns the name given Windows© id
Definition: libwps_tools_win.cpp:7332
QuattroParser::getDefaultFontType
libwps_tools_win::Font::Type getDefaultFontType() const
returns the default font type, ie.
Definition: Quattro.cpp:490
WPSPosition.h
RVNGInputStreamPtr
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:87
QuattroGraphInternal::Graph::m_textbox
std::shared_ptr< QuattroGraphInternal::Textbox > m_textbox
the textbox
Definition: QuattroGraph.cpp:279
WPSPosition
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: WPSPosition.h:40
QuattroGraphInternal::ShapeHeader::m_values
int m_values[5]
optional values
Definition: QuattroGraph.cpp:131
WPSDebug.h
libwps::DebugFile::addDelimiter
static void addDelimiter(long, char)
Definition: WPSDebug.h:222
QuattroGraphInternal::ShapeHeader::operator<<
friend std::ostream & operator<<(std::ostream &o, ShapeHeader const &sh)
operator<<
Definition: QuattroGraph.cpp:149
QuattroGraphInternal::State::m_actualSheet
int m_actualSheet
the actual sheet id
Definition: QuattroGraph.cpp:349
QuattroGraphInternal::SubDocument
Internal: the subdocument of a QuattroGraphInternal.
Definition: QuattroGraph.cpp:389
QuattroGraphInternal::Graph::Shape
@ Shape
Definition: QuattroGraph.cpp:233
libwps::read16
int16_t read16(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:71
QuattroGraphInternal::SubDocument::m_stream
std::shared_ptr< WPSStream > m_stream
the file stream
Definition: QuattroGraph.cpp:428
libwps_internal.h
QuattroGraphInternal::State::m_version
int m_version
the file version
Definition: QuattroGraph.cpp:347
WKSContentListener.h
WPSGraphicStyle::Pattern
a basic pattern used in a WPSGraphicStyle:
Definition: WPSGraphicStyle.h:89
QuattroGraphInternal::Graph::m_ole
WPSEmbeddedObject m_ole
the OLE's data
Definition: QuattroGraph.cpp:272
QuattroGraph::~QuattroGraph
~QuattroGraph()
destructor
Definition: QuattroGraph.cpp:470
WPSColor
the class to store a color
Definition: libwps_internal.h:281
WPSBox2i
WPSBox2< int > WPSBox2i
WPSBox2 of int.
Definition: libwps_internal.h:888
QuattroGraphInternal::ShapeHeader::~ShapeHeader
virtual ~ShapeHeader()
destructor
Definition: QuattroGraph.cpp:145
QuattroGraphInternal::Shape::Shape
Shape()
constructor
Definition: QuattroGraph.cpp:184
WPSGraphicShape.h
QuattroGraphInternal::Textbox::m_entry
WPSEntry m_entry
the text entry
Definition: QuattroGraph.cpp:218
QuattroGraphInternal::Graph::Textbox
@ Textbox
Definition: QuattroGraph.cpp:233
WPSBox2< int >
QuattroGraphInternal::Shape::m_shape
WPSGraphicShape m_shape
the graphic shape
Definition: QuattroGraph.cpp:192
WPSStream.h
QuattroGraphInternal::State::m_linkNameToObjectMap
std::map< librevenge::RVNGString, WPSEmbeddedObject > m_linkNameToObjectMap
a map link name to object
Definition: QuattroGraph.cpp:355
WKSContentListener
Definition: WKSContentListener.h:54
QuattroGraphInternal::Dialog::operator<<
friend std::ostream & operator<<(std::ostream &o, Dialog const &gr)
operator<<
Definition: QuattroGraph.cpp:74
QuattroGraph::QuattroGraph
QuattroGraph(QuattroGraph const &orig)=delete
QuattroGraph::readImage
bool readImage(std::shared_ptr< WPSStream > stream)
read a image zone: zone 382(wb2)
Definition: QuattroGraph.cpp:1115
libwps::JustificationCenter
@ JustificationCenter
Definition: libwps_internal.h:249
libwps::DebugFile
Definition: WPSDebug.h:208
libwps::JustificationRight
@ JustificationRight
Definition: libwps_internal.h:250
WPSGraphicStyle.h
WPS4TextInternal::Unknown
@ Unknown
Definition: WPS4Text.cpp:433
QuattroGraphInternal::Graph::Image
@ Image
Definition: QuattroGraph.cpp:233
QuattroGraph::readFrameOLE
bool readFrameOLE(std::shared_ptr< WPSStream > stream)
read a new OLE frame zone: zone 381(wb2)
Definition: QuattroGraph.cpp:882
QuattroGraph::readRect
bool readRect(std::shared_ptr< WPSStream > stream)
read a oval/rect/round rect data: zone 33e/364/379
Definition: QuattroGraph.cpp:1449
QuattroGraphInternal::SubDocument::parse
void parse(std::shared_ptr< WKSContentListener > &listener, libwps::SubDocumentType subDocumentType) final
the parser function
Definition: QuattroGraph.cpp:433
WPSGraphicShape::polygon
static WPSGraphicShape polygon(WPSBox2f const &box)
static constructor to create a polygon
Definition: WPSGraphicShape.h:146
QuattroGraphInternal::Textbox::Textbox
Textbox()
constructor
Definition: QuattroGraph.cpp:203
QuattroGraphInternal::SubDocument::~SubDocument
~SubDocument() final
destructor
Definition: QuattroGraph.cpp:406
libwps::getCellName
std::string getCellName(Vec2i const &cellPos, Vec2b const &relative)
returns the cell name corresponding to a cell's position
Definition: libwps_internal.cpp:953
QuattroGraph::readDialog
bool readDialog(std::shared_ptr< WPSStream > stream)
read a dialog zone: 35e
Definition: QuattroGraph.cpp:1771
QuattroGraph::sendGraphics
bool sendGraphics(int sheetId, Vec2i const &cell) const
send the graphic corresponding to a cell
Definition: QuattroGraph.cpp:1921
QuattroGraph::readTextBox
bool readTextBox(std::shared_ptr< WPSStream > stream)
read a textbox data: zone 36f
Definition: QuattroGraph.cpp:1571

Generated on Sun Dec 8 2024 07:45:01 for libwps by doxygen 1.8.20