Go to the documentation of this file.
22 #ifndef QUATTRO_DOS_CHART_H
23 #define QUATTRO_DOS_CHART_H
29 #include <librevenge-stream/librevenge-stream.h>
99 std::shared_ptr<QuattroDosChartInternal::State>
m_state;
std::shared_ptr< WKSContentListener > m_listener
Definition: QuattroDosChart.h:95
@ S_Line
Definition: WKSChart.h:162
Position m_ranges[2]
the chart range
Definition: QuattroDosChart.cpp:67
static WPSColor white()
return the white color
Definition: libwps_internal.h:311
long m_eof
the last file position
Definition: QuattroDosChart.cpp:112
@ A_Logarithmic
Definition: WKSChart.h:91
int m_version
the file version
Definition: QuattroDosChart.cpp:114
WPSFont m_font
the zone format
Definition: WKSChart.h:278
QuattroDosParser & m_mainParser
the listener (if set)
Definition: QuattroDosChart.h:97
static std::string str()
Definition: WPSDebug.h:200
Type
the series type
Definition: WKSChart.h:162
static void addPos(long)
Definition: WPSDebug.h:220
WPSBox2< float > WPSBox2f
WPSBox2 of float.
Definition: libwps_internal.h:890
@ P_Automatic
Definition: WKSChart.h:166
AnchorTo m_anchorTo
anchor position
Definition: WPSPosition.h:241
QuattroDosChart & m_parser
the parser
Definition: QuattroDosChart.cpp:72
bool sendText(WPSEntry const &entry)
try to send the text
Definition: QuattroDosChart.cpp:237
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
std::shared_ptr< QuattroDosChartInternal::State > m_state
the internal state
Definition: QuattroDosChart.h:99
bool readChartSetType()
reads the chart type: b8(3d) or ca(bubble)
Definition: QuattroDosChart.cpp:264
@ T_SubTitle
Definition: WKSChart.h:236
State()
constructor
Definition: QuattroDosChart.cpp:101
libwps_tools_win::Font::Type getDefaultFontType() const
returns the default font type, ie.
Definition: QuattroDos.cpp:241
Chart(QuattroDosChart &parser, RVNGInputStreamPtr const &input)
constructor
Definition: QuattroDosChart.cpp:56
std::vector< WPSEntry > m_textEntryList
the text entry (or the list of text entry)
Definition: WKSChart.h:276
librevenge::RVNGString getSheetName(int id) const
returns the name of the id's spreadsheet
Definition: QuattroDos.cpp:257
QuattroDosChart & operator=(QuattroDosChart const &orig)=delete
int getNumSpreadsheets() const
returns the number of spreadsheet
Definition: QuattroDosChart.cpp:182
librevenge::RVNGString m_anchorCellName
the anchor cell name
Definition: WPSPosition.h:243
RVNGInputStreamPtr m_input
the input
Definition: QuattroDosChart.cpp:74
define the font properties
Definition: WPSFont.h:37
bool readChart()
reads a structure which define a chart: 2d(default), 2e(name + value)
Definition: QuattroDosChart.cpp:325
bool valid(bool checkId=false) const
returns true if the zone length is positive
Definition: WPSEntry.h:89
basic class to store an entry in a file This contained :
Definition: WPSEntry.h:39
Vec2< int > Vec2i
Vec2 of int.
Definition: libwps_internal.h:702
Vec2i m_dim
the dimension width x height
Definition: WPSGraphicStyle.h:187
the chart of a Quattro Pro Dos
Definition: QuattroDosChart.cpp:53
std::shared_ptr< WPSListener > WPSListenerPtr
shared pointer to WPSListener
Definition: libwps_internal.h:105
WPSColor m_colors[2]
the two indexed colors
Definition: WPSGraphicStyle.h:190
void getChartPositionMap(int sheetId, std::map< Vec2i, Vec2i > &cellMap) const
returns the list of cell's begin to end corresponding to a chart
Definition: QuattroDosChart.cpp:196
Vec2< float > Vec2f
Vec2 of float.
Definition: libwps_internal.h:704
@ S_Area
Definition: WKSChart.h:162
int version() const
return the file version
Definition: QuattroDos.cpp:223
QuattroDosChart(QuattroDosChart const &orig)=delete
a class used to store a chart associated to a spreadsheet ....
Definition: WKSChart.h:46
@ S_Bar
Definition: WKSChart.h:162
#define WPS_DEBUG_MSG(M)
Definition: libwps_internal.h:134
libwps::DebugFile & ascii()
returns the debug file
Definition: QuattroDosChart.h:89
void setBegin(long off)
sets the begin offset
Definition: WPSEntry.h:57
bool readPString(librevenge::RVNGString &string, long maxSize)
try to read a basic pascal string, knowing the maximum size(excluding string size)
Definition: QuattroDos.cpp:867
std::shared_ptr< WKSContentListener > WKSContentListenerPtr
shared pointer to WKSContentListener
Definition: libwps_internal.h:114
libwps::DebugFile & m_asciiFile
the ascii file
Definition: QuattroDosChart.h:101
@ S_Circle
Definition: WKSChart.h:162
static bool getPattern(int id, WPSGraphicStyle::Pattern &pattern)
returns the pattern corresponding to a pattern id between 0 and 15
Definition: QuattroDosChart.cpp:122
@ RightBit
Definition: libwps_internal.h:401
static void addNote(char const *)
Definition: WPSDebug.h:221
void setListener(WKSContentListenerPtr &listen)
sets the listener
Definition: QuattroDosChart.h:60
long begin() const
returns the begin offset
Definition: WPSEntry.h:73
Definition: QuattroDosChart.cpp:47
bool checkFilePosition(long pos)
return true if the pos is in the file, update the file size if need
Definition: QuattroDosChart.cpp:170
@ A_Numeric
Definition: WKSChart.h:91
bool readFont(WPSFont &font, libwps_tools_win::Font::Type &type)
try to read a font
Definition: QuattroDos.cpp:938
bool readDouble8(RVNGInputStreamPtr &input, double &res, bool &isNaN)
read a double store with 8 bytes: mantisse 6.5 bytes, exponent 1.5 bytes
Definition: libwps_internal.cpp:173
the state of QuattroDosChart
Definition: QuattroDosChart.cpp:99
bool sendChart(int sheetId, Vec2i const &cell, Vec2f const &chartSize)
try to send the chart corresponding to sheetId and a position
Definition: QuattroDosChart.cpp:208
@ S_Scatter
Definition: WKSChart.h:162
long length() const
returns the length of the zone
Definition: WPSEntry.h:83
@ T_Title
Definition: WKSChart.h:236
Definition: WPSDebug.h:192
uint8_t readU8(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:40
@ S_Bubble
Definition: WKSChart.h:162
int m_spreadsheetId
the sheet id
Definition: QuattroDosChart.cpp:69
@ Cell
Definition: WPSPosition.h:43
void setEnd(long e)
sets the end offset
Definition: WPSEntry.h:67
This class parses Quattro Pro spreadsheet: .wq1 and wq2.
Definition: QuattroDos.h:49
bool readChartName()
reads the chart name: b9
Definition: QuattroDosChart.cpp:293
uint16_t readU16(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:64
@ P_None
Definition: WKSChart.h:166
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:87
int m_chartType
the chart type
Definition: QuattroDosChart.cpp:116
RVNGInputStreamPtr m_input
the input
Definition: QuattroDosChart.h:94
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: WPSPosition.h:40
static void addDelimiter(long, char)
Definition: WPSDebug.h:222
int version() const
return the file version
Definition: QuattroDosChart.cpp:163
int16_t read16(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:71
a basic pattern used in a WPSGraphicStyle:
Definition: WPSGraphicStyle.h:89
the class to store a color
Definition: libwps_internal.h:281
a cell position
Definition: WKSChart.h:51
WPSBox2< int > WPSBox2i
WPSBox2 of int.
Definition: libwps_internal.h:888
std::multimap< int, std::shared_ptr< Chart > > m_idToChartMap
map sheet id to chart
Definition: QuattroDosChart.cpp:118
void sendContent(TextZone const &zone, WPSListenerPtr &listener) const final
send the zone content (called when the zone is of text type)
Definition: QuattroDosChart.cpp:77
QuattroDosChart(QuattroDosParser &parser)
constructor
Definition: QuattroDosChart.cpp:150
a text zone a chart
Definition: WKSChart.h:234
Definition: WPSDebug.h:208
@ S_Stock
Definition: WKSChart.h:162
@ C_Text
Definition: WKSChart.h:238
bool getColor(int id, WPSColor &color) const
returns the color corresponding to an id
Definition: QuattroDos.cpp:262
static WPSColor black()
return the back color
Definition: libwps_internal.h:306
~QuattroDosChart()
destructor
Definition: QuattroDosChart.cpp:159
This class parses Quattro Pro DOS chart file.
Definition: QuattroDosChart.h:50
Generated on Sat Sep 12 2020 08:41:48 for libwps by
doxygen 1.8.18