22 #ifndef QUATTRO_GRAPH_H 23 #define QUATTRO_GRAPH_H 29 #include <librevenge-stream/librevenge-stream.h> 49 class QuattroStyleManager;
80 void storeObjects(std::map<librevenge::RVNGString,WPSEmbeddedObject>
const &nameToObjectMap);
96 std::shared_ptr<WPSStream> stream)
const;
104 bool readBeginEnd(std::shared_ptr<WPSStream> stream,
int sheetId);
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);
125 bool readShape(std::shared_ptr<WPSStream> stream);
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);
143 bool readDialog(std::shared_ptr<WPSStream> stream);
156 std::shared_ptr<QuattroGraphInternal::State>
m_state;
bool readHeader(QuattroGraphInternal::Graph &header, std::shared_ptr< WPSStream > stream, long endPos)
try to read a graph header
Definition: QuattroGraph.cpp:514
bool readBitmap(std::shared_ptr< WPSStream > stream)
read a bitmap zone: zone 383(wb2)
Definition: QuattroGraph.cpp:1176
bool readFrameOLE(std::shared_ptr< WPSStream > stream)
read a new OLE frame zone: zone 381(wb2)
Definition: QuattroGraph.cpp:882
bool readImage(std::shared_ptr< WPSStream > stream)
read a image zone: zone 382(wb2)
Definition: QuattroGraph.cpp:1115
bool send(QuattroGraphInternal::Textbox const &textbox, std::shared_ptr< WPSStream > stream) const
send the textbox content
Definition: QuattroGraph.cpp:2054
bool sendPageGraphics(int sheetId) const
send the page graphic corresponding to a sheet
Definition: QuattroGraph.cpp:1944
bool readFrame(std::shared_ptr< WPSStream > stream)
read an frame: zone 385
Definition: QuattroGraph.cpp:824
int version() const
return the file version
Definition: QuattroGraph.cpp:483
bool readButton(std::shared_ptr< WPSStream > stream)
read a button: zone 386
Definition: QuattroGraph.cpp:1012
bool readShape(std::shared_ptr< WPSStream > stream)
read a shape header: zone 4d3
Definition: QuattroGraph.cpp:1318
bool sendGraphic(QuattroGraphInternal::Graph const &graph) const
send a graphic
Definition: QuattroGraph.cpp:1958
std::vector< Vec2i > getGraphicCellsInSheet(int sheetId) const
return the list of cells containing some graphics in a sheet
Definition: QuattroGraph.cpp:495
QuattroParser & m_mainParser
the listener (if set)
Definition: QuattroGraph.h:154
bool sendTextbox(QuattroGraphInternal::Graph const &graph, int sheetId) const
send a textbox
Definition: QuattroGraph.cpp:2034
void setListener(WKSContentListenerPtr &listen)
sets the listener
Definition: QuattroGraph.h:66
bool readDialog(std::shared_ptr< WPSStream > stream)
read a dialog zone: 35e
Definition: QuattroGraph.cpp:1771
a structure used to define a picture style
Definition: WPSGraphicStyle.h:37
Internal: a graph of a QuattroGraph.
Definition: QuattroGraph.cpp:230
QuattroGraph & operator=(QuattroGraph const &orig)=delete
void storeObjects(std::map< librevenge::RVNGString, WPSEmbeddedObject > const &nameToObjectMap)
stores the OLE objets
Definition: QuattroGraph.cpp:490
bool readRect(std::shared_ptr< WPSStream > stream)
read a oval/rect/round rect data: zone 33e/364/379
Definition: QuattroGraph.cpp:1449
bool readLine(std::shared_ptr< WPSStream > stream)
read a line/arrow data: zone 35a/37b
Definition: QuattroGraph.cpp:1378
a dialog header
Definition: QuattroGraph.cpp:55
bool sendGraphics(int sheetId, Vec2i const &cell) const
send the graphic corresponding to a cell
Definition: QuattroGraph.cpp:1921
bool readPolygon(std::shared_ptr< WPSStream > stream)
read a polygon/polyline data: zone 35c/37c/35b/388
Definition: QuattroGraph.cpp:1506
bool readBeginEnd(std::shared_ptr< WPSStream > stream, int sheetId)
read the begin/end graph zone: 321/322
Definition: QuattroGraph.cpp:789
void cleanState()
clean internal state
Definition: QuattroGraph.cpp:474
WKSParser * parser() const
returns the parser
Definition: WKSSubDocument.h:44
std::shared_ptr< QuattroGraphInternal::State > m_state
the internal state
Definition: QuattroGraph.h:156
This class parses Quattro Pro spreadsheet: .wq1 and wq2.
Definition: Quattro.h:53
bool readShapeHeader(QuattroGraphInternal::ShapeHeader &shape, std::shared_ptr< WPSStream > stream, long endPos)
read a shape header
Definition: QuattroGraph.cpp:537
~QuattroGraph()
destructor
Definition: QuattroGraph.cpp:470
Internal: a shape of a QuattroGraph.
Definition: QuattroGraph.cpp:200
This class parses QuattroPro graph file.
Definition: QuattroGraph.h:55
bool readOLEData(std::shared_ptr< WPSStream > stream)
read a OLE data: zone 38b
Definition: QuattroGraph.cpp:941
QuattroGraph(QuattroParser &parser)
constructor
Definition: QuattroGraph.cpp:463
bool readDialogUnknown(std::shared_ptr< WPSStream > stream)
read a unknown dialog zone: 335,343,345
Definition: QuattroGraph.cpp:1859
bool readTextBox(std::shared_ptr< WPSStream > stream)
read a textbox data: zone 36f
Definition: QuattroGraph.cpp:1571
std::shared_ptr< WKSContentListener > WKSContentListenerPtr
shared pointer to WKSContentListener
Definition: libwps_internal.h:114
void updateState()
update the state (need to be called before sending data)
Definition: QuattroGraph.cpp:479
std::shared_ptr< WKSContentListener > m_listener
Definition: QuattroGraph.h:152
Internal: the subdocument of a LotusGraphc.
Definition: QuattroGraph.cpp:388
bool sendShape(QuattroGraphInternal::Graph const &graph, int sheetId) const
send a shape
Definition: QuattroGraph.cpp:2012
bool readChart(std::shared_ptr< WPSStream > stream)
read a chart zone: zone 384
Definition: QuattroGraph.cpp:1243
bool readFillData(WPSGraphicStyle &style, int fillType, std::shared_ptr< WPSStream > stream, long endPos)
Definition: QuattroGraph.cpp:714
Definition: QuattroGraph.cpp:52