Go to the documentation of this file.
30 #include <librevenge-stream/librevenge-stream.h>
91 bool readChart(std::shared_ptr<WPSStream> stream);
98 bool readMacHeader(std::shared_ptr<WPSStream> stream,
long endPos,
int &chartId);
102 bool readMacLegend(std::shared_ptr<WPSStream> stream,
long endPos);
106 bool readMacAxis(std::shared_ptr<WPSStream> stream,
long endPos);
108 bool readMacSerie(std::shared_ptr<WPSStream> stream,
long endPos);
110 bool readMacFloor(std::shared_ptr<WPSStream> stream,
long endPos);
115 bool readPlotArea(std::shared_ptr<WPSStream> stream,
long endPos);
117 bool readSerie(std::shared_ptr<WPSStream> stream,
long endPos);
119 bool readSerieName(std::shared_ptr<WPSStream> stream,
long endPos);
121 bool readSerieWidth(std::shared_ptr<WPSStream> stream,
long endPos);
123 bool readFontsStyle(std::shared_ptr<WPSStream> stream,
long endPos);
138 std::shared_ptr<LotusChartInternal::State>
m_state;
ContentType m_contentType
the content type
Definition: WKSChart.h:266
int m_chartId
the current chart id(wps3Mac)
Definition: LotusChart.cpp:162
bool readSerieWidth(std::shared_ptr< WPSStream > stream, long endPos)
reads a serie width style: 2a33
Definition: LotusChart.cpp:1537
Definition: WKSChart.h:162
static WPSColor white()
return the white color
Definition: libwps_internal.h:311
SerieFormat m_serieFormats[6]
the series format
Definition: LotusChart.cpp:100
Definition: WKSChart.h:91
std::shared_ptr< WKSContentListener > m_listener
Definition: LotusChart.h:132
static float getScaleFactor(librevenge::RVNGUnit orig, librevenge::RVNGUnit dest)
returns a float which can be used to convert between to unit
Definition: WPSPosition.h:136
WPSFont m_font
the zone format
Definition: WKSChart.h:276
static std::string str()
Definition: WPSDebug.h:200
std::shared_ptr< LotusStyleManager > m_styleManager
the style manager
Definition: LotusChart.h:136
Definition: WKSChart.h:166
static void addPos(long)
Definition: WPSDebug.h:220
State()
constructor
Definition: LotusChart.cpp:132
This class parses Microsoft Works chart file.
Definition: LotusChart.h:53
librevenge::RVNGString getSheetName(int id) const
returns the name of the id's spreadsheet
Definition: Lotus.cpp:318
Definition: WKSChart.h:166
Position m_titleRange
the title cell range
Definition: WKSChart.h:118
AnchorTo m_anchorTo
anchor position
Definition: WPSPosition.h:239
LotusParser & m_mainParser
the listener (if set)
Definition: LotusChart.h:134
bool readMacSerie(std::shared_ptr< WPSStream > stream, long endPos)
reads a serie style(wk3mac): 27e2
Definition: LotusChart.cpp:816
int m_fileType
the chart type
Definition: LotusChart.cpp:70
bool m_show
show or not the legend
Definition: WKSChart.h:146
int version() const
return the file version
Definition: LotusChart.cpp:240
the chart of a Lotus Pro Dos
Definition: LotusChart.cpp:54
Definition: WKSChart.h:234
Definition: WKSChart.h:169
Definition: WKSChart.h:167
int m_version
the file version
Definition: LotusChart.cpp:158
bool m_fileSerieStyles
a flag to know if we have seen some serie style
Definition: LotusChart.cpp:74
Definition: WKSChart.h:168
std::vector< WPSEntry > m_textEntryList
the text entry (or the list of text entry)
Definition: WKSChart.h:274
Type
the text type
Definition: WKSChart.h:234
bool readMacFloor(std::shared_ptr< WPSStream > stream, long endPos)
reads a 3D floor style(wk3mac): 2846
Definition: LotusChart.cpp:1043
WPSVec3i m_cells[2]
the cell positions
Definition: Lotus.h:101
std::map< int, std::shared_ptr< Chart > > m_idChartMap
list of chart
Definition: LotusChart.cpp:160
This class parses the Lotus style.
Definition: LotusStyleManager.h:47
libwps_tools_win::Font::Type getDefaultFontType() const
returns the default font type, ie.
Definition: Lotus.cpp:273
bool isWhite() const
return true if the color is white
Definition: libwps_internal.h:350
Definition: WKSChart.h:166
std::shared_ptr< LotusChartInternal::State > m_state
the internal state
Definition: LotusChart.h:138
bool sendText(std::shared_ptr< WPSStream > stream, WPSEntry const &entry)
try to send the text
Definition: LotusChart.cpp:2120
std::shared_ptr< Chart > getChart(int id, LotusChart &parser, std::shared_ptr< WPSStream > stream)
returns a chart corresponding to an id, create it if needed.
Definition: LotusChart.cpp:143
~LotusChart()
destructor
Definition: LotusChart.cpp:176
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 readFramesStyle(std::shared_ptr< WPSStream > stream, long endPos)
reads a some frame styles: 2a35
Definition: LotusChart.cpp:1739
Definition: WKSChart.h:168
bool readDouble10(RVNGInputStreamPtr &input, double &res, bool &isNaN)
read a double store with 10 bytes: mantisse 8 bytes, exponent 2 bytes
Definition: libwps_internal.cpp:224
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
std::vector< Link > getLinksList(int lId) const
returns a list of links corresponding to an id
Definition: Lotus.cpp:291
int getNumCharts() const
return the number of chart
Definition: LotusChart.cpp:235
Vec2< float > Vec2f
Vec2 of float.
Definition: libwps_internal.h:704
bool getAverageColor(WPSColor &col) const
return the average color
Definition: WPSGraphicStyle.cpp:61
Definition: WKSChart.h:168
bool readPlotArea(std::shared_ptr< WPSStream > stream, long endPos)
reads a plot area style: 2a30 (unsure)
Definition: LotusChart.cpp:1572
bool readMacPlacement(std::shared_ptr< WPSStream > stream, long endPos)
reads a placement position(wk3mac): 2774
Definition: LotusChart.cpp:990
Definition: WKSChart.h:162
LotusChart & operator=(LotusChart const &orig)=delete
bool sendChart(int cId, WPSPosition const &pos, WPSGraphicStyle const &style)
try to send a chart
Definition: LotusChart.cpp:2165
a class used to store a chart associated to a spreadsheet ....
Definition: WKSChart.h:45
Definition: WKSChart.h:162
#define WPS_DEBUG_MSG(M)
Definition: libwps_internal.h:134
Definition: WKSChart.h:166
This class parses a wk3,wk4,123 Lotus spreadsheet.
Definition: Lotus.h:72
static WPSGraphicStyle emptyStyle()
returns an empty style.
Definition: WPSGraphicStyle.h:237
int version() const
return the file version
Definition: Lotus.cpp:265
void setBegin(long off)
sets the begin offset
Definition: WPSEntry.h:55
std::shared_ptr< WKSContentListener > WKSContentListenerPtr
shared pointer to WKSContentListener
Definition: libwps_internal.h:114
Definition: WKSChart.h:162
Definition: WKSChart.h:162
void updateChart(LotusChartInternal::Chart &chart, int id)
update a chart, so that it can be send
Definition: LotusChart.cpp:1937
bool readSerie(std::shared_ptr< WPSStream > stream, long endPos)
reads a serie style: 2a31
Definition: LotusChart.cpp:1221
Definition: libwps_internal.h:401
a structure used to define a picture style
Definition: WPSGraphicStyle.h:37
Definition: WKSChart.h:168
bool sendCharts()
try to send the charts(for Windows .wk3 file)
Definition: LotusChart.cpp:2135
static void addNote(char const *)
Definition: WPSDebug.h:221
long begin() const
returns the begin offset
Definition: WPSEntry.h:71
bool m_autoPosition
automatic position
Definition: WKSChart.h:148
int8_t read8(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:59
Definition: WKSChart.h:91
LotusChart(LotusParser &parser)
constructor
Definition: LotusChart.cpp:168
bool readMacPlotArea(std::shared_ptr< WPSStream > stream, long endPos)
reads a plot area position(wk3mac): 2788
Definition: LotusChart.cpp:1140
bool readMacPosition(std::shared_ptr< WPSStream > stream, long endPos)
reads a manual position(wk3mac): 2904
Definition: LotusChart.cpp:1185
TextZone * getTextZone(TextZone::Type type, bool create=false)
returns a textzone content
Definition: WKSChart.cpp:166
librevenge::RVNGUnit unit() const
returns the unit
Definition: WPSPosition.h:131
Definition: WKSChart.h:162
long length() const
returns the length of the zone
Definition: WPSEntry.h:81
const std::map< int, Serie > & getIdSerieMap() const
returns the list of defined series
Definition: WKSChart.h:314
Definition: WKSChart.h:234
std::shared_ptr< WPSStream > m_stream
the input stream
Definition: LotusChart.cpp:105
Definition: WPSDebug.h:191
bool readChartName(std::shared_ptr< WPSStream > stream)
reads the chart name or title: 12
Definition: LotusChart.cpp:635
uint8_t readU8(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:40
Definition: LotusChart.cpp:49
bool readSerieName(std::shared_ptr< WPSStream > stream, long endPos)
reads a serie name: 2a32 (serie 6-...)
Definition: LotusChart.cpp:1489
Definition: WKSChart.h:169
int m_relativePosition
the automatic position libwps::LeftBit|...
Definition: WKSChart.h:150
void setSurfaceColor(WPSColor const &col, float opacity=1)
set the surface color
Definition: WPSGraphicStyle.h:251
bool m_hasLegend
a flag to know if we have some legend
Definition: LotusChart.cpp:72
Definition: WPSPosition.h:43
void setEnd(long e)
sets the end offset
Definition: WPSEntry.h:65
Position m_ranges[2]
the data range
Definition: WKSChart.h:214
uint16_t readU16(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:64
Definition: WKSChart.h:166
WPSColor m_lineColor
the line color
Definition: WPSGraphicStyle.h:352
bool readMacLegend(std::shared_ptr< WPSStream > stream, long endPos)
reads a legend position(wk3mac): 277e
Definition: LotusChart.cpp:1093
Chart(LotusChart &parser, std::shared_ptr< WPSStream > const &stream)
constructor
Definition: LotusChart.cpp:58
bool readMacHeader(std::shared_ptr< WPSStream > stream, long endPos, int &chartId)
reads a chart data: 2710 (wk3mac)
Definition: LotusChart.cpp:732
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:87
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: WPSPosition.h:39
const Vec2f & size() const
returns the frame size
Definition: WPSPosition.h:121
static void addDelimiter(long, char)
Definition: WPSDebug.h:222
Definition: WKSChart.h:234
Definition: WKSChart.h:167
int16_t read16(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:71
bool readChart(std::shared_ptr< WPSStream > stream)
reads a structure which define a chart: 11
Definition: LotusChart.cpp:254
Serie::Type m_type
the chart type (if no series)
Definition: WKSChart.h:329
bool readMacAxis(std::shared_ptr< WPSStream > stream, long endPos)
reads an axis style(wk3mac): 27d8
Definition: LotusChart.cpp:776
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: LotusChart.h:68
Position m_labelRanges[2]
the label range if defined
Definition: WKSChart.h:113
LotusChart & m_parser
the parser
Definition: LotusChart.cpp:103
a text zone a chart
Definition: WKSChart.h:231
std::map< std::string, int > getNameToChartIdMap() const
returns a map chart name to chart id map
Definition: LotusChart.cpp:185
Definition: WPSDebug.h:207
Definition: WKSChart.h:162
Definition: WKSChart.h:236
float m_lineWidth
the linewidth
Definition: WPSGraphicStyle.h:342
the state of LotusChart
Definition: LotusChart.cpp:129
const Legend & getLegend() const
returns the legend
Definition: WKSChart.h:301
basic struct used to store link
Definition: Lotus.h:92
bool convert(LotusParser::Link const &link, WKSChart::Position(&positions)[2]) const
convert a link zone in a chart position(if possible)
Definition: LotusChart.cpp:1926
void sendContent(TextZone const &zone, WPSListenerPtr &listener) const final
send the zone content (called when the zone is of text type)
Definition: LotusChart.cpp:108
bool getUniqueColor(WPSColor &col) const
check if the pattern has only one color; if so returns true...
Definition: WPSGraphicStyle.cpp:45
bool readFontsStyle(std::shared_ptr< WPSStream > stream, long endPos)
reads a list of font style: 2a34
Definition: LotusChart.cpp:1697
void setPattern(Pattern const &pat)
set the pattern
Definition: WPSGraphicStyle.h:262
static WPSColor black()
return the back color
Definition: libwps_internal.h:306
void updateState()
update internal state (must be called one time before sending data)
Definition: LotusChart.cpp:197
bool isBlack() const
return true if the color is black
Definition: libwps_internal.h:345
Definition: WKSChart.h:168
void cleanState()
clean internal state
Definition: LotusChart.cpp:180
Generated on Sat Oct 6 2018 17:10:15 for libwps by
doxygen 1.8.16