22 #ifndef QUATTRO_GRAPH_H 23 #define QUATTRO_GRAPH_H 29 #include <librevenge-stream/librevenge-stream.h> 46 class QuattroStyleManager;
77 void storeObjects(std::map<librevenge::RVNGString,WPSEmbeddedObject>
const &nameToObjectMap);
92 bool readBeginEnd(std::shared_ptr<WPSStream> stream,
int sheetId);
96 bool readImage(std::shared_ptr<WPSStream> stream);
98 bool readBitmap(std::shared_ptr<WPSStream> stream);
100 bool readChart(std::shared_ptr<WPSStream> stream);
102 bool readFrame(std::shared_ptr<WPSStream> stream);
104 bool readButton(std::shared_ptr<WPSStream> stream);
106 bool readOLEData(std::shared_ptr<WPSStream> stream);
114 bool readDialog(std::shared_ptr<WPSStream> stream);
128 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:322
bool readBitmap(std::shared_ptr< WPSStream > stream)
read a bitmap zone: zone 383(wb2)
Definition: QuattroGraph.cpp:739
bool readFrameOLE(std::shared_ptr< WPSStream > stream)
read a new OLE frame zone: zone 381(wb2)
Definition: QuattroGraph.cpp:443
bool readImage(std::shared_ptr< WPSStream > stream)
read a image zone: zone 382(wb2)
Definition: QuattroGraph.cpp:679
bool readFrame(std::shared_ptr< WPSStream > stream)
read an frame: zone 385
Definition: QuattroGraph.cpp:384
int version() const
return the file version
Definition: QuattroGraph.cpp:291
bool readButton(std::shared_ptr< WPSStream > stream)
read a button: zone 386
Definition: QuattroGraph.cpp:575
bool sendGraphic(QuattroGraphInternal::Graph const &graph) const
send a graphic
Definition: QuattroGraph.cpp:1088
std::vector< Vec2i > getGraphicCellsInSheet(int sheetId) const
return the list of cells containing some graphics in a sheet
Definition: QuattroGraph.cpp:303
QuattroParser & m_mainParser
the listener (if set)
Definition: QuattroGraph.h:126
void setListener(WKSContentListenerPtr &listen)
sets the listener
Definition: QuattroGraph.h:63
bool readDialog(std::shared_ptr< WPSStream > stream)
read a dialog zone: 35e
Definition: QuattroGraph.cpp:900
a graph
Definition: QuattroGraph.cpp:99
QuattroGraph & operator=(QuattroGraph const &orig)=delete
void storeObjects(std::map< librevenge::RVNGString, WPSEmbeddedObject > const &nameToObjectMap)
stores the OLE objets
Definition: QuattroGraph.cpp:298
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:1065
bool readBeginEnd(std::shared_ptr< WPSStream > stream, int sheetId)
read the begin/end graph zone: 321/322
Definition: QuattroGraph.cpp:345
void cleanState()
clean internal state
Definition: QuattroGraph.cpp:282
WKSParser * parser() const
returns the parser
Definition: WKSSubDocument.h:44
std::shared_ptr< QuattroGraphInternal::State > m_state
the internal state
Definition: QuattroGraph.h:128
This class parses Quattro Pro spreadsheet: .wq1 and wq2.
Definition: Quattro.h:51
~QuattroGraph()
destructor
Definition: QuattroGraph.cpp:278
This class parses QuattroPro graph file.
Definition: QuattroGraph.h:52
bool readOLEData(std::shared_ptr< WPSStream > stream)
read a OLE data: zone 38b
Definition: QuattroGraph.cpp:503
QuattroGraph(QuattroParser &parser)
constructor
Definition: QuattroGraph.cpp:271
bool readDialogUnknown(std::shared_ptr< WPSStream > stream)
read a unknown dialog zone: 335,343,345
Definition: QuattroGraph.cpp:988
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:287
std::shared_ptr< WKSContentListener > m_listener
Definition: QuattroGraph.h:124
Internal: the subdocument of a LotusGraphc.
Definition: QuattroGraph.cpp:219
bool readChart(std::shared_ptr< WPSStream > stream)
read a chart zone: zone 384
Definition: QuattroGraph.cpp:807
Definition: QuattroGraph.cpp:52