Quattro9Graph.h Source File documentation

Quattro9Graph.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 QUATTRO9_GRAPH_H
23 #define QUATTRO9_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 #include "WPSGraphicStyle.h"
36
37 namespace Quattro9GraphInternal
38 {
39 struct Graph;
40 struct Shape;
41 struct State;
42
43 class SubDocument;
44 }
45
46 class Quattro9Parser;
47
52 class Quattro9Graph
53 {
54 public:
55 friend class Quattro9Parser;
56 friend class Quattro9GraphInternal::SubDocument;
57
59 explicit Quattro9Graph(Quattro9Parser &parser);
61 ~Quattro9Graph();
63 void setListener(WKSContentListenerPtr &listen)
64 {
65 m_listener = listen;
66 }
68 void cleanState();
70 void updateState();
71
73 bool getColor(int id, WPSColor &color) const;
75 bool getPattern(int id, WPSGraphicStyle::Pattern &pattern) const;
76 protected:
78 int version() const;
80 void storeObjects(std::map<librevenge::RVNGString,WPSEmbeddedObject> const &nameToObjectMap);
81
83 bool sendPageGraphics(int sheetId) const;
85 bool sendShape(Quattro9GraphInternal::Graph const &graph, int sheetId) const;
87 bool sendShape(Quattro9GraphInternal::Shape const &shape, WPSTransformation const &transf) const;
89 bool sendShape(WPSGraphicShape const &shape, WPSGraphicStyle const &style, WPSTransformation const &transf) const;
91 bool sendOLE(Quattro9GraphInternal::Graph const &graph, int sheetId) const;
93 bool sendTextbox(Quattro9GraphInternal::Graph const &graph, int sheetId) const;
94
95 //
96 // low level
97 //
98
100 bool readBeginEnd(std::shared_ptr<WPSStream> stream, int sheetId);
102 bool readBeginEndZone(std::shared_ptr<WPSStream> const &stream);
104 bool readGraphHeader(std::shared_ptr<WPSStream> const &stream);
106 static bool readFrameStyle(std::shared_ptr<WPSStream> const &stream);
108 static bool readFramePattern(std::shared_ptr<WPSStream> const &stream);
110 static bool readFrameHeader(std::shared_ptr<WPSStream> const &stream);
112 bool readOLEName(std::shared_ptr<WPSStream> const &stream);
114 bool readShape(std::shared_ptr<WPSStream> const &stream);
116 bool readShapeRec(std::shared_ptr<WPSStream> const &stream, long endPos, Quattro9GraphInternal::Shape &shape, WPSGraphicStyle const &actStyle);
117
119 bool readTextboxStyle(std::shared_ptr<WPSStream> const &stream);
121 bool readTextboxText(std::shared_ptr<WPSStream> const &stream);
122
123 private:
124 Quattro9Graph(Quattro9Graph const &orig) = delete;
125 Quattro9Graph &operator=(Quattro9Graph const &orig) = delete;
126 std::shared_ptr<WKSContentListener> m_listener;
127 Quattro9Parser &m_mainParser;
130 std::shared_ptr<Quattro9GraphInternal::State> m_state;
131 };
132
133 #endif /* QUATTRO9_GRAPH_H */
134 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
WPSGraphicShape::m_vertices
std::vector< Vec2f > m_vertices
the list of vertices for lines or polygons
Definition: WPSGraphicShape.h:211
Quattro9Graph::m_state
std::shared_ptr< Quattro9GraphInternal::State > m_state
the internal state
Definition: Quattro9Graph.h:130
WPSColor::white
static WPSColor white()
return the white color
Definition: libwps_internal.h:311
WPSParagraph.h
WKSSubDocument::parser
WKSParser * parser() const
returns the parser
Definition: WKSSubDocument.h:44
Quattro9Graph::readFrameStyle
static bool readFrameStyle(std::shared_ptr< WPSStream > const &stream)
try to read a frame style zone: 2131
Definition: Quattro9Graph.cpp:1311
Quattro9Graph::getPattern
bool getPattern(int id, WPSGraphicStyle::Pattern &pattern) const
returns the pattern corresponding to a pattern id between 0 and 24
Definition: Quattro9Graph.cpp:571
Quattro9GraphInternal::SubDocument::SubDocument
SubDocument(Quattro9Graph &graphParser, std::shared_ptr< Textbox > const &textbox, libwps_tools_win::Font::Type fontType)
constructor for a textbox document
Definition: Quattro9Graph.cpp:476
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
WPSOLEObject.h
WPS_STRIKEOUT_BIT
#define WPS_STRIKEOUT_BIT
Definition: libwps_internal.h:507
Quattro9GraphInternal::Graph
Internal: a graph of a QuattroGraph.
Definition: Quattro9Graph.cpp:135
Quattro9Graph::readOLEName
bool readOLEName(std::shared_ptr< WPSStream > const &stream)
try to read the OLE name zone: 21d1
Definition: Quattro9Graph.cpp:1498
libwps::DebugStream::str
static std::string str()
Definition: WPSDebug.h:200
WPSTransformation
a transformation which stored the first row of a 3x3 perspective matrix
Definition: libwps_internal.h:1131
WPS_BOLD_BIT
#define WPS_BOLD_BIT
Definition: libwps_internal.h:506
Quattro9Graph::readFramePattern
static bool readFramePattern(std::shared_ptr< WPSStream > const &stream)
try to read a frame style zone: 2141
Definition: Quattro9Graph.cpp:1276
libwps::DebugFile::addPos
static void addPos(long)
Definition: WPSDebug.h:220
Quattro9GraphInternal::Shape::m_listShapes
std::vector< std::pair< WPSGraphicShape, WPSGraphicStyle > > m_listShapes
the list of shape and style
Definition: Quattro9Graph.cpp:104
Quattro9Graph::readFrameHeader
static bool readFrameHeader(std::shared_ptr< WPSStream > const &stream)
try to read a frame header zone: 2171
Definition: Quattro9Graph.cpp:1232
WPSBox2f
WPSBox2< float > WPSBox2f
WPSBox2 of float.
Definition: libwps_internal.h:890
Quattro9GraphInternal::Textbox::m_stream
std::shared_ptr< WPSStream > m_stream
the text stream
Definition: Quattro9Graph.cpp:130
Quattro9Graph::readTextboxStyle
bool readTextboxStyle(std::shared_ptr< WPSStream > const &stream)
try to read a textbox style zone: 2371
Definition: Quattro9Graph.cpp:1365
WPSGraphicStyle::G_Linear
@ G_Linear
Definition: WPSGraphicStyle.h:45
WPSPosition::m_anchorTo
AnchorTo m_anchorTo
anchor position
Definition: WPSPosition.h:241
WPSGraphicStyle::m_lineJoin
LineJoin m_lineJoin
the line join
Definition: WPSGraphicStyle.h:351
WPSGraphicStyle::m_gradientAngle
float m_gradientAngle
the gradient angle
Definition: WPSGraphicStyle.h:378
WPSGraphicShape::PathData
a simple path component
Definition: WPSGraphicShape.h:43
libwps_tools_win::Font::Type
Type
enum Type
Definition: libwps_tools_win.h:46
WPS_SUBSCRIPT_BIT
#define WPS_SUBSCRIPT_BIT
Definition: libwps_internal.h:500
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:192
Quattro9GraphInternal::State::m_linkNameToObjectMap
std::map< librevenge::RVNGString, WPSEmbeddedObject > m_linkNameToObjectMap
a map link name to object
Definition: Quattro9Graph.cpp:235
Quattro9Parser::getDefaultFontType
libwps_tools_win::Font::Type getDefaultFontType() const
returns the default font type, ie.
Definition: Quattro9.cpp:422
Quattro9GraphInternal::State::m_zoneDepth
int m_zoneDepth
current zone begin/end depth
Definition: Quattro9Graph.cpp:223
Quattro9GraphInternal
Definition: Quattro9Graph.cpp:53
WPS_UNDERLINE_BIT
#define WPS_UNDERLINE_BIT
Definition: libwps_internal.h:508
Quattro9GraphInternal::State::m_colorsList
std::vector< WPSColor > m_colorsList
the color list
Definition: Quattro9Graph.cpp:229
Quattro9Graph::sendTextbox
bool sendTextbox(Quattro9GraphInternal::Graph const &graph, int sheetId) const
send a textbox
Definition: Quattro9Graph.cpp:1697
WKSSubDocument.h
Quattro9GraphInternal::State::m_actualSheet
int m_actualSheet
the actual sheet id
Definition: Quattro9Graph.cpp:221
Quattro9GraphInternal::Graph::Textbox
@ Textbox
Definition: Quattro9Graph.cpp:137
WPSGraphicStyle::m_gradientPercentCenter
Vec2f m_gradientPercentCenter
the gradient center
Definition: WPSGraphicStyle.h:382
WPS_SUPERSCRIPT_BIT
#define WPS_SUPERSCRIPT_BIT
Definition: libwps_internal.h:499
Quattro9GraphInternal::Graph::Graph
Graph(std::shared_ptr< WPSStream > const &stream, Type type=Unknown)
constructor
Definition: Quattro9Graph.cpp:139
Quattro9GraphInternal::State::m_actualGraphDepth
int m_actualGraphDepth
the depth which correspond to the creation of the graph
Definition: Quattro9Graph.cpp:227
Quattro9GraphInternal::Graph::Frame
@ Frame
Definition: Quattro9Graph.cpp:137
WPSGraphicStyle::J_Round
@ J_Round
Definition: WPSGraphicStyle.h:43
Quattro9GraphInternal::operator<<
std::ostream & operator<<(std::ostream &o, Graph const &gr)
Definition: Quattro9Graph.cpp:171
WPSGraphicStyle::G_Radial
@ G_Radial
Definition: WPSGraphicStyle.h:45
WPSGraphicShape::circle
static WPSGraphicShape circle(WPSBox2f const &box)
static constructor to create a circle
Definition: WPSGraphicShape.h:118
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
WPS_OUTLINE_BIT
#define WPS_OUTLINE_BIT
Definition: libwps_internal.h:501
WPSColor::isWhite
bool isWhite() const
return true if the color is white
Definition: libwps_internal.h:350
Quattro9Parser
This class parses Quattro Pro WP spreadsheet: .qpw.
Definition: Quattro9.h:90
Quattro9Graph::Quattro9Graph
Quattro9Graph(Quattro9Parser &parser)
constructor
Definition: Quattro9Graph.cpp:535
Quattro9GraphInternal::Graph::Shape
@ Shape
Definition: Quattro9Graph.cpp:137
WPS_DOUBLE_UNDERLINE_BIT
#define WPS_DOUBLE_UNDERLINE_BIT
Definition: libwps_internal.h:505
WPSFont
define the font properties
Definition: WPSFont.h:37
WPSGraphicStyle::setBackgroundColor
void setBackgroundColor(WPSColor const &col, float opacity=1)
set the background color
Definition: WPSGraphicStyle.h:285
Quattro9GraphInternal::Graph::Chart
@ Chart
Definition: Quattro9Graph.cpp:137
WPSGraphicStyle::m_lineDashWidth
std::vector< float > m_lineDashWidth
the dash array: a sequence of (fullsize, emptysize)
Definition: WPSGraphicStyle.h:347
WPS_ITALICS_BIT
#define WPS_ITALICS_BIT
Definition: libwps_internal.h:502
WPSGraphicStyle::m_gradientType
GradientType m_gradientType
the gradient type
Definition: WPSGraphicStyle.h:374
Vec2i
Vec2< int > Vec2i
Vec2 of int.
Definition: libwps_internal.h:702
WPSGraphicStyle::Pattern::m_dim
Vec2i m_dim
the dimension width x height
Definition: WPSGraphicStyle.h:187
Quattro9Graph::m_listener
std::shared_ptr< WKSContentListener > m_listener
Definition: Quattro9Graph.h:126
WPSTransformation::translation
static WPSTransformation translation(Vec2f const &trans)
returns a translation transformation
Definition: libwps_internal.h:1251
Quattro9Graph::readBeginEndZone
bool readBeginEndZone(std::shared_ptr< WPSStream > const &stream)
try to read a begin/end zone: 2051
Definition: Quattro9Graph.cpp:617
Quattro9GraphInternal::Graph::m_shape
std::shared_ptr< Quattro9GraphInternal::Shape > m_shape
the graphic shape
Definition: Quattro9Graph.cpp:163
WPSGraphicShape
a structure used to define a picture shape
Definition: WPSGraphicShape.h:35
Quattro9GraphInternal::Shape::m_child
std::shared_ptr< Shape > m_child
the child (if this is a group)
Definition: Quattro9Graph.cpp:106
WPSGraphicStyle::Pattern::m_colors
WPSColor m_colors[2]
the two indexed colors
Definition: WPSGraphicStyle.h:190
Quattro9.h
Vec2f
Vec2< float > Vec2f
Vec2 of float.
Definition: libwps_internal.h:704
Quattro9GraphInternal::SubDocument::m_textbox
std::shared_ptr< Textbox > m_textbox
the textbox data
Definition: Quattro9Graph.cpp:497
Quattro9Graph::readGraphHeader
bool readGraphHeader(std::shared_ptr< WPSStream > const &stream)
try to read a graph header zone: 2051
Definition: Quattro9Graph.cpp:659
Vec2< float >
WPS_DEBUG_MSG
#define WPS_DEBUG_MSG(M)
Definition: libwps_internal.h:134
libwps::readU32
uint32_t readU32(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:76
WPSFont::m_color
WPSColor m_color
the font color
Definition: WPSFont.h:91
WPSGraphicStyle::emptyStyle
static WPSGraphicStyle emptyStyle()
returns an empty style.
Definition: WPSGraphicStyle.h:240
WPSParagraph
class to store the paragraph properties
Definition: WPSParagraph.h:58
WPSGraphicStyle::J_Bevel
@ J_Bevel
Definition: WPSGraphicStyle.h:43
WPSTransformation::scale
static WPSTransformation scale(Vec2f const &trans)
returns a scaling transformation
Definition: libwps_internal.h:1256
WKSContentListenerPtr
std::shared_ptr< WKSContentListener > WKSContentListenerPtr
shared pointer to WKSContentListener
Definition: libwps_internal.h:114
Quattro9GraphInternal::State::storeGraph
void storeGraph(std::shared_ptr< Graph > graph)
store a graph
Definition: Quattro9Graph.cpp:196
Quattro9GraphInternal::Graph::m_textbox
std::shared_ptr< Quattro9GraphInternal::Textbox > m_textbox
the textbox shape
Definition: Quattro9Graph.cpp:165
Quattro9ParserInternal::TextEntry
Definition: Quattro9.h:43
Quattro9GraphInternal::Shape
Internal: a shape of a Quattro9Graph.
Definition: Quattro9Graph.cpp:56
Quattro9GraphInternal::Graph::m_stream
std::shared_ptr< WPSStream > m_stream
the main stream
Definition: Quattro9Graph.cpp:168
libwps_tools_win::Font::UNKNOWN
@ UNKNOWN
Definition: libwps_tools_win.h:63
libwps::read32
int32_t read32(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:85
Quattro9GraphInternal::Textbox::m_text
Quattro9ParserInternal::TextEntry m_text
the text
Definition: Quattro9Graph.cpp:128
libwps::SubDocumentType
SubDocumentType
Definition: libwps_internal.h:248
WPSGraphicStyle::G_Axial
@ G_Axial
Definition: WPSGraphicStyle.h:45
WPSFont.h
Quattro9GraphInternal::State::m_sheetIdToGraphMap
std::multimap< int, std::shared_ptr< Graph > > m_sheetIdToGraphMap
a multimap sheetId to graph
Definition: Quattro9Graph.cpp:233
WPSGraphicShape::polyline
static WPSGraphicShape polyline(WPSBox2f const &box)
static constructor to create a polyline
Definition: WPSGraphicShape.h:154
Quattro9Graph::sendPageGraphics
bool sendPageGraphics(int sheetId) const
send the page graphic corresponding to a sheet
Definition: Quattro9Graph.cpp:1716
Quattro9Graph::readTextboxText
bool readTextboxText(std::shared_ptr< WPSStream > const &stream)
try to read a textbox text zone: 2372
Definition: Quattro9Graph.cpp:1554
WPSEntry.h
WPSGraphicStyle
a structure used to define a picture style
Definition: WPSGraphicStyle.h:38
WPSFont::m_attributes
uint32_t m_attributes
the font attributes defined as a set of bits
Definition: WPSFont.h:87
libwps::DebugFile::addNote
static void addNote(char const *)
Definition: WPSDebug.h:221
Quattro9GraphInternal::SubDocument::operator==
bool operator==(std::shared_ptr< WPSSubDocument > const &doc) const final
operator==
Definition: Quattro9Graph.cpp:485
Quattro9GraphInternal::State::getColor
bool getColor(int id, WPSColor &color) const
returns the color corresponding to an id
Definition: Quattro9Graph.cpp:238
Quattro9Graph::sendShape
bool sendShape(Quattro9GraphInternal::Graph const &graph, int sheetId) const
send a shape
Definition: Quattro9Graph.cpp:1610
Quattro9GraphInternal::SubDocument::~SubDocument
~SubDocument() final
destructor
Definition: Quattro9Graph.cpp:482
Quattro9GraphInternal::Graph::m_type
Type m_type
the type
Definition: Quattro9Graph.cpp:153
Quattro9Graph::Quattro9Graph
Quattro9Graph(Quattro9Graph const &orig)=delete
WPSFont::m_size
double m_size
font size
Definition: WPSFont.h:85
Quattro9Graph::updateState
void updateState()
update the state (need to be called before sending data)
Definition: Quattro9Graph.cpp:551
WPSGraphicStyle::m_gradientStopList
std::vector< GradientStop > m_gradientStopList
the list of gradient limits
Definition: WPSGraphicStyle.h:376
Quattro9Graph::sendOLE
bool sendOLE(Quattro9GraphInternal::Graph const &graph, int sheetId) const
send a OLE
Definition: Quattro9Graph.cpp:1673
Quattro9ParserInternal::TextEntry::getDebugString
std::string getDebugString(std::shared_ptr< WPSStream > const &stream) const
internal: returns a debug string
Definition: Quattro9.cpp:313
WKSSubDocument
Basic class used to store a spreadsheet sub document.
Definition: WKSSubDocument.h:36
libwps::DebugStream
Definition: WPSDebug.h:192
libwps::readU8
uint8_t readU8(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:40
WPSGraphicStyle::GradientStop
a structure used to define the gradient limit
Definition: WPSGraphicStyle.h:49
Quattro9Parser::getCellPosition
Vec2f getCellPosition(int sheetId, Vec2i const &cell) const
returns the beginning position of a cell
Definition: Quattro9.cpp:520
Quattro9GraphInternal::Textbox::m_paragraph
WPSParagraph m_paragraph
the paragraph
Definition: Quattro9Graph.cpp:124
Quattro9GraphInternal::SubDocument::parse
void parse(std::shared_ptr< WKSContentListener > &listener, libwps::SubDocumentType subDocumentType) final
the parser function
Definition: Quattro9Graph.cpp:502
libwps_tools_win.h
Quattro9GraphInternal::Textbox
Internal: a shape of a Quattro9Graph.
Definition: Quattro9Graph.cpp:111
Quattro9Graph.h
Quattro9GraphInternal::Graph::Button
@ Button
Definition: Quattro9Graph.cpp:137
WPSGraphicShape::line
static WPSGraphicShape line(Vec2f const &orign, Vec2f const &dest)
static constructor to create a line
Definition: WPSGraphicShape.cpp:212
Quattro9Graph::readShapeRec
bool readShapeRec(std::shared_ptr< WPSStream > const &stream, long endPos, Quattro9GraphInternal::Shape &shape, WPSGraphicStyle const &actStyle)
try to read a shape sub zone: 2221, 23d1
Definition: Quattro9Graph.cpp:744
WPSGraphicStyle::setSurfaceColor
void setSurfaceColor(WPSColor const &col, float opacity=1)
set the surface color
Definition: WPSGraphicStyle.h:254
WPSPosition::Page
@ Page
Definition: WPSPosition.h:43
WPSGraphicShape::getBdBox
WPSBox2f getBdBox() const
returns the basic bdbox
Definition: WPSGraphicShape.h:186
Quattro9Graph::getColor
bool getColor(int id, WPSColor &color) const
returns the color corresponding to an id
Definition: Quattro9Graph.cpp:567
Quattro9GraphInternal::Textbox::Textbox
Textbox()
constructor
Definition: Quattro9Graph.cpp:113
Quattro9GraphInternal::Textbox::m_font
WPSFont m_font
the font
Definition: Quattro9Graph.cpp:122
Quattro9Parser::readPString
bool readPString(std::shared_ptr< WPSStream > const &stream, long endPos, Quattro9ParserInternal::TextEntry &entry)
try to read a string: length[2bytes], unknow[bytes] followed by the string
Definition: Quattro9.cpp:1258
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
WPSGraphicShape::m_path
std::vector< PathData > m_path
the list of path component
Definition: WPSGraphicShape.h:213
Quattro9GraphInternal::Shape::Shape
Shape()
constructor
Definition: Quattro9Graph.cpp:58
WPSGraphicStyle::m_lineColor
WPSColor m_lineColor
the line color
Definition: WPSGraphicStyle.h:355
WPSPosition.h
Quattro9Graph::~Quattro9Graph
~Quattro9Graph()
destructor
Definition: Quattro9Graph.cpp:542
RVNGInputStreamPtr
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:87
Quattro9GraphInternal::Shape::empty
bool empty() const
returns true if the shape is empty
Definition: Quattro9Graph.cpp:65
WPSPosition
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: WPSPosition.h:40
WPSDebug.h
WPSGraphicShape::transform
WPSGraphicShape transform(WPSTransformation const &matrix) const
returns a new shape corresponding to a matrix transformation
Definition: WPSGraphicShape.cpp:364
libwps::DebugFile::addDelimiter
static void addDelimiter(long, char)
Definition: WPSDebug.h:222
WPSBox2::size
Vec2< T > size() const
the box size
Definition: libwps_internal.h:754
Quattro9GraphInternal::Graph::m_cellBoxDecal
WPSBox2f m_cellBoxDecal
the decal position(LT, RB)
Definition: Quattro9Graph.cpp:159
Quattro9GraphInternal::Graph::Image
@ Image
Definition: Quattro9Graph.cpp:137
WPSGraphicStyle::G_Square
@ G_Square
Definition: WPSGraphicStyle.h:45
Quattro9GraphInternal::SubDocument
Internal: the subdocument of a Quattro9GraphInternal.
Definition: Quattro9Graph.cpp:473
Quattro9GraphInternal::Graph::m_size
Vec2f m_size
the size
Definition: Quattro9Graph.cpp:155
libwps::read16
int16_t read16(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:71
libwps_internal.h
Quattro9Graph::readShape
bool readShape(std::shared_ptr< WPSStream > const &stream)
try to read a shape zone: 2221, 23d1
Definition: Quattro9Graph.cpp:708
Quattro9GraphInternal::Textbox::m_style
WPSGraphicStyle m_style
the textbox style
Definition: Quattro9Graph.cpp:126
WKSContentListener.h
WPSGraphicStyle::Pattern
a basic pattern used in a WPSGraphicStyle:
Definition: WPSGraphicStyle.h:89
WPSColor
the class to store a color
Definition: libwps_internal.h:281
Quattro9GraphInternal::State::State
State()
constructor
Definition: Quattro9Graph.cpp:183
Quattro9Graph::m_mainParser
Quattro9Parser & m_mainParser
the listener (if set)
Definition: Quattro9Graph.h:128
WPSBox2i
WPSBox2< int > WPSBox2i
WPSBox2 of int.
Definition: libwps_internal.h:888
Quattro9Parser::version
int version() const
return the file version
Definition: Quattro9.cpp:417
WPSGraphicShape.h
Quattro9GraphInternal::SubDocument::m_fontType
libwps_tools_win::Font::Type m_fontType
the font type
Definition: Quattro9Graph.cpp:499
Quattro9Graph::setListener
void setListener(WKSContentListenerPtr &listen)
sets the listener
Definition: Quattro9Graph.h:63
Quattro9Graph
This class parses Quattro9Pro graph file.
Definition: Quattro9Graph.h:53
Quattro9GraphInternal::Graph::OLE
@ OLE
Definition: Quattro9Graph.cpp:137
WPSTransformation::multiplyDirection
Vec2f multiplyDirection(Vec2f const &dir) const
operator* for direction
Definition: libwps_internal.h:1169
WPSBox2< float >
WPS_SHADOW_BIT
#define WPS_SHADOW_BIT
Definition: libwps_internal.h:503
WPSBox2::getUnion
WPSBox2< T > getUnion(WPSBox2< T > const &box) const
returns the union between this and box
Definition: libwps_internal.h:813
libwps_tools_win::Font::getFontType
static Type getFontType(librevenge::RVNGString &name)
returns the type of the font using the fontName
Definition: libwps_tools_win.cpp:39
WPSStream.h
WKSContentListener
Definition: WKSContentListener.h:54
Quattro9GraphInternal::Graph::operator<<
friend std::ostream & operator<<(std::ostream &o, Graph const &gr)
operator<<
Definition: Quattro9Graph.cpp:171
libwps::JustificationCenter
@ JustificationCenter
Definition: libwps_internal.h:249
Quattro9GraphInternal::Shape::m_box
WPSBox2f m_box
the box(if this is a group)
Definition: Quattro9Graph.cpp:102
Quattro9GraphInternal::Graph::m_OLEName
librevenge::RVNGString m_OLEName
the OLE name
Definition: Quattro9Graph.cpp:161
Quattro9GraphInternal::State::getPattern32
bool getPattern32(int id, WPSGraphicStyle::Pattern &pattern)
returns the pattern corresponding to a pattern id between 0 and 32
Definition: Quattro9Graph.cpp:366
libwps::DebugFile
Definition: WPSDebug.h:208
Quattro9GraphInternal::Shape::getBdBox
WPSBox2f getBdBox() const
returns true if the bounding box
Definition: Quattro9Graph.cpp:70
libwps::JustificationRight
@ JustificationRight
Definition: libwps_internal.h:250
WPSGraphicStyle.h
Quattro9Graph::cleanState
void cleanState()
clean internal state
Definition: Quattro9Graph.cpp:546
WPSGraphicStyle::m_lineWidth
float m_lineWidth
the linewidth
Definition: WPSGraphicStyle.h:345
Quattro9GraphInternal::State::m_actualGraph
std::shared_ptr< Graph > m_actualGraph
the actual graph
Definition: Quattro9Graph.cpp:225
WPSGraphicShape::path
static WPSGraphicShape path(WPSBox2f const &box)
static constructor to create a path
Definition: WPSGraphicShape.h:162
Quattro9GraphInternal::State::m_version
int m_version
the file version
Definition: Quattro9Graph.cpp:219
Quattro9Graph::operator=
Quattro9Graph & operator=(Quattro9Graph const &orig)=delete
Quattro9GraphInternal::State::getPattern24
static bool getPattern24(int id, WPSGraphicStyle::Pattern &pattern)
returns the pattern corresponding to a pattern id between 0 and 24
Definition: Quattro9Graph.cpp:337
WPSGraphicShape::polygon
static WPSGraphicShape polygon(WPSBox2f const &box)
static constructor to create a polygon
Definition: WPSGraphicShape.h:146
WPSGraphicStyle::Pattern::getUniqueColor
bool getUniqueColor(WPSColor &col) const
check if the pattern has only one color; if so returns true...
Definition: WPSGraphicStyle.cpp:45
Quattro9Graph::readBeginEnd
bool readBeginEnd(std::shared_ptr< WPSStream > stream, int sheetId)
read the begin/end graph zone: 1401/1402
Definition: Quattro9Graph.cpp:582
Quattro9GraphInternal::State
the state of Quattro9Graph
Definition: Quattro9Graph.cpp:181
WPSGraphicStyle::setPattern
void setPattern(Pattern const &pat)
set the pattern
Definition: WPSGraphicStyle.h:265
WPSColor::black
static WPSColor black()
return the back color
Definition: libwps_internal.h:306
Quattro9GraphInternal::State::m_patterns32List
std::vector< WPSGraphicStyle::Pattern > m_patterns32List
the pattern 32 list
Definition: Quattro9Graph.cpp:231
WPSColor::isBlack
bool isBlack() const
return true if the color is black
Definition: libwps_internal.h:345
Quattro9Graph::version
int version() const
return the file version
Definition: Quattro9Graph.cpp:555
WPSFont::m_name
librevenge::RVNGString m_name
font name
Definition: WPSFont.h:83
Quattro9GraphInternal::Graph::m_cellBox
WPSBox2i m_cellBox
the cell's position
Definition: Quattro9Graph.cpp:157
Quattro9Graph::storeObjects
void storeObjects(std::map< librevenge::RVNGString, WPSEmbeddedObject > const &nameToObjectMap)
stores the OLE objets
Definition: Quattro9Graph.cpp:562
Quattro9GraphInternal::Graph::Type
Type
the posible type
Definition: Quattro9Graph.cpp:137
WPSGraphicStyle::m_arrows
bool m_arrows[2]
two bool to indicated if extremity has arrow or not
Definition: WPSGraphicStyle.h:387
Quattro9GraphInternal::Graph::Unknown
@ Unknown
Definition: Quattro9Graph.cpp:137