Go to the documentation of this file.
29 #include <librevenge-stream/librevenge-stream.h>
128 std::shared_ptr<WKS4ChartInternal::State>
m_state;
std::map< int, WPSColor > m_idToColorMap
a map id -> color
Definition: WKS4Chart.cpp:150
int m_fileType
the chart type
Definition: WKS4Chart.cpp:78
@ S_Line
Definition: WKSChart.h:162
static WPSColor white()
return the white color
Definition: libwps_internal.h:311
#define WPS_N_ELEMENTS(m)
Definition: libwps_internal.h:124
@ A_Logarithmic
Definition: WKSChart.h:91
bool readChart()
reads a structure which define a chart: 2d(default), 2e(name + value)
Definition: WKS4Chart.cpp:435
std::shared_ptr< WKS4ChartInternal::State > m_state
the internal state
Definition: WKS4Chart.h:128
WPSFont m_font
the zone format
Definition: WKSChart.h:276
WKS4Chart(WKS4Parser &parser)
constructor
Definition: WKS4Chart.cpp:223
bool getColor(int id, WPSColor &color) const
returns a color corresponding to an id
Definition: WKS4Chart.cpp:155
static std::string str()
Definition: WPSDebug.h:200
a serie in a chart
Definition: WKSChart.h:159
Type
the series type
Definition: WKSChart.h:162
std::shared_ptr< WKSContentListener > m_listener
Definition: WKS4Chart.h:124
@ P_Diamond
Definition: WKSChart.h:166
static void addPos(long)
Definition: WPSDebug.h:220
Chart(WKS4Chart &parser, RVNGInputStreamPtr const &input)
constructor
Definition: WKS4Chart.cpp:55
@ P_Automatic
Definition: WKSChart.h:166
int version() const
return the file version
Definition: WKS4Chart.cpp:252
SerieData m_seriesData[6]
the serie local data
Definition: WKS4Chart.cpp:102
AnchorTo m_anchorTo
anchor position
Definition: WPSPosition.h:239
bool getPattern(int id, WPSGraphicStyle::Pattern &pattern) const
returns the pattern corresponding to a pattern id between 0 and 15
Definition: WKS4Chart.cpp:190
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
WKS4Parser & m_mainParser
the listener (if set)
Definition: WKS4Chart.h:126
@ T_SubTitle
Definition: WKSChart.h:234
bool readChart2Font()
reads a structure which seems to define four chart font (only present in windows file): 84
Definition: WKS4Chart.cpp:900
long m_eof
the last file position
Definition: WKS4Chart.cpp:146
the chart of a WKS4 Pro Dos
Definition: WKS4Chart.cpp:51
void resetInput(RVNGInputStreamPtr const &input)
reset the main input
Definition: WKS4Chart.cpp:247
@ P_Plus
Definition: WKSChart.h:168
std::vector< WPSEntry > m_textEntryList
the text entry (or the list of text entry)
Definition: WKSChart.h:274
int getNumCharts() const
return the number of chart
Definition: WKS4Chart.cpp:236
small struct used to defined the serie data
Definition: WKS4Chart.cpp:87
bool m_dataStacked
a flag to know if the data are stacked or not
Definition: WKSChart.h:331
bool readChart3D()
reads a structure which stores zfront, zfar: 44
Definition: WKS4Chart.cpp:861
WKS4Chart & operator=(WKS4Chart const &orig)=delete
bool readChartAxis()
reads the axis(or second yaxis) data: zone 0x14
Definition: WKS4Chart.cpp:971
bool readChartSeriesColorMap()
reads the chart's series color map: zone 0x31
Definition: WKS4Chart.cpp:1358
libwps_tools_win::Font::Type getDefaultFontType() const
returns the default font type, ie.
Definition: WKS4.cpp:287
bool valid(bool checkId=false) const
returns true if the zone length is positive
Definition: WPSEntry.h:87
Axis & getAxis(int coord)
return an axis (corresponding to a coord)
Definition: WKSChart.cpp:136
basic class to store an entry in a file This contained :
Definition: WPSEntry.h:38
Vec2< int > Vec2i
Vec2 of int.
Definition: libwps_internal.h:702
Serie * getSerie(int id, bool create)
return a serie
Definition: WKSChart.cpp:156
bool sendText(WPSEntry const &entry)
try to send the text
Definition: WKS4Chart.cpp:415
State()
constructor
Definition: WKS4Chart.cpp:134
Vec2i m_dim
the dimension width x height
Definition: WPSGraphicStyle.h:186
bool m_axisZoneFound
flag to know if we have found the axis zone
Definition: WKS4Chart.cpp:80
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:189
Vec2< float > Vec2f
Vec2 of float.
Definition: libwps_internal.h:704
@ P_Asterisk
Definition: WKSChart.h:168
void sendContent(TextZone const &zone, WPSListenerPtr &listener) const final
send the zone content (called when the zone is of text type)
Definition: WKS4Chart.cpp:110
PointType
the point type
Definition: WKSChart.h:164
@ S_Area
Definition: WKSChart.h:162
a class used to store a chart associated to a spreadsheet ....
Definition: WKSChart.h:45
@ S_Bar
Definition: WKSChart.h:162
#define WPS_DEBUG_MSG(M)
Definition: libwps_internal.h:134
@ P_Square
Definition: WKSChart.h:166
void setBegin(long off)
sets the begin offset
Definition: WPSEntry.h:55
~WKS4Chart()
destructor
Definition: WKS4Chart.cpp:232
std::shared_ptr< WKSContentListener > WKSContentListenerPtr
shared pointer to WKSContentListener
Definition: libwps_internal.h:114
bool readChartName()
reads the chart name or title: 41
Definition: WKS4Chart.cpp:700
libwps::DebugFile & m_asciiFile
the ascii file
Definition: WKS4Chart.h:130
@ S_Circle
Definition: WKSChart.h:162
@ S_Radar
Definition: WKSChart.h:162
@ RightBit
Definition: libwps_internal.h:401
static void addNote(char const *)
Definition: WPSDebug.h:221
std::vector< std::shared_ptr< Chart > > m_chartList
list of chart
Definition: WKS4Chart.cpp:152
long begin() const
returns the begin offset
Definition: WPSEntry.h:71
This class parses Microsoft Works chart file.
Definition: WKS4Chart.h:49
bool readChartSeriesStyles()
reads the series style: zone 0x16
Definition: WKS4Chart.cpp:1287
int m_type
the serie secondary type(used to swap line<->bar)
Definition: WKS4Chart.cpp:96
@ A_Numeric
Definition: WKSChart.h:91
bool readCString(librevenge::RVNGString &string, long maxSize)
try to read a basic C string, knowing the maximum size
Definition: WKS4.cpp:1388
Definition: WKS4Chart.cpp:46
bool readChartSeries()
reads a list of series definition: zone 0x15
Definition: WKS4Chart.cpp:1224
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
@ S_Scatter
Definition: WKSChart.h:162
long length() const
returns the length of the zone
Definition: WPSEntry.h:81
bool sendCharts()
try to send the charts
Definition: WKS4Chart.cpp:384
bool m_use2D
flag to know if we print line/surface data
Definition: WKS4Chart.cpp:82
@ T_Title
Definition: WKSChart.h:234
Position m_legendRange
the legend range if defined
Definition: WKSChart.h:222
Definition: WPSDebug.h:191
uint8_t readU8(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:40
bool empty() const
check if the chart has no serie
Definition: WKS4Chart.cpp:68
Type m_type
the sequence type
Definition: WKSChart.h:103
@ P_Horizontal_Bar
Definition: WKSChart.h:169
bool m_seriesStylesZoneFound
flag to know if we have found the series zone
Definition: WKS4Chart.cpp:84
librevenge::RVNGString getSheetName(int id) const
returns the name of the id's spreadsheet
Definition: WKS4.cpp:318
RVNGInputStreamPtr m_input
the input
Definition: WKS4Chart.h:123
@ Page
Definition: WPSPosition.h:43
void setEnd(long e)
sets the end offset
Definition: WPSEntry.h:65
uint16_t readU16(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:64
@ P_None
Definition: WKSChart.h:166
libwps::DebugFile & ascii()
returns the debug file
Definition: WKS4Chart.h:118
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:87
bool readChartLimit()
reads end/begin of chart (only present in windows file): 80,81
Definition: WKS4Chart.cpp:948
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: WPSPosition.h:39
static void addDelimiter(long, char)
Definition: WPSDebug.h:222
void updateChart(WKS4ChartInternal::Chart &chart)
update a chart, so that it can be send
Definition: WKS4Chart.cpp:271
int m_ids[3]
the serie color
Definition: WKS4Chart.cpp:98
SerieData()
constructor
Definition: WKS4Chart.cpp:90
int16_t read16(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:71
Serie::Type m_type
the chart type (if no series)
Definition: WKSChart.h:329
a basic pattern used in a WPSGraphicStyle:
Definition: WPSGraphicStyle.h:88
the class to store a color
Definition: libwps_internal.h:280
a cell position
Definition: WKSChart.h:50
void setListener(WKSContentListenerPtr &listen)
sets the listener
Definition: WKS4Chart.h:60
int m_version
the file version
Definition: WKS4Chart.cpp:148
bool m_dataVertical
a flag to know if the data are vertical (for bar)
Definition: WKSChart.h:335
RVNGInputStreamPtr m_input
the input
Definition: WKS4Chart.cpp:107
libwps::WPSCreator creator() const
return the file creator
Definition: WKS4.cpp:261
a text zone a chart
Definition: WKSChart.h:231
int version() const
return the file version
Definition: WKS4.cpp:256
This class parses Microsoft Works spreadsheet or a database file.
Definition: WKS4.h:48
Definition: WPSDebug.h:207
@ S_Stock
Definition: WKSChart.h:162
@ WPS_MSWORKS
Microsoft Works documents (all wps, wks and wdb)
Definition: WPSDocument.h:48
@ C_Text
Definition: WKSChart.h:236
WKS4Chart & m_parser
the parser
Definition: WKS4Chart.cpp:105
bool getUniqueColor(WPSColor &col) const
check if the pattern has only one color; if so returns true...
Definition: WPSGraphicStyle.cpp:45
bool readChartDim()
reads a structure which seems to define some dimension (only present in windows file): 35
Definition: WKS4Chart.cpp:740
bool readChartFont()
reads a structure which seems to define two chart font (only present in windows file): 40
Definition: WKS4Chart.cpp:808
@ P_Circle
Definition: WKSChart.h:168
bool checkFilePosition(long pos)
return true if the pos is in the file, update the file size if need
Definition: WKS4Chart.cpp:259
the state of WKS4Chart
Definition: WKS4Chart.cpp:131
Type m_type
the type
Definition: WKSChart.h:212
Generated on Thu Jan 23 2020 13:34:46 for libwps by
doxygen 1.8.17