This class parses QuattroPro graph file. More...
#include <QuattroGraph.h>
| Public Member Functions | |
| QuattroGraph (QuattroParser &parser) | |
| constructor | |
| ~QuattroGraph () | |
| destructor | |
| void | setListener (WKSContentListenerPtr &listen) | 
| sets the listener | |
| void | cleanState () | 
| clean internal state | |
| void | updateState () | 
| update the state (need to be called before sending data) | |
| Protected Member Functions | |
| int | version () const | 
| return the file version | |
| void | storeObjects (std::map< librevenge::RVNGString, WPSEmbeddedObject > const &nameToObjectMap) | 
| stores the OLE objets | |
| std::vector< Vec2i > | getGraphicCellsInSheet (int sheetId) const | 
| return the list of cells containing some graphics in a sheet | |
| bool | sendGraphics (int sheetId, Vec2i const &cell) const | 
| send the graphic corresponding to a cell | |
| bool | sendPageGraphics (int sheetId) const | 
| send the page graphic corresponding to a sheet | |
| bool | sendGraphic (QuattroGraphInternal::Graph const &graph) const | 
| send a graphic | |
| bool | sendShape (QuattroGraphInternal::Graph const &graph, int sheetId) const | 
| send a shape | |
| bool | sendTextbox (QuattroGraphInternal::Graph const &graph, int sheetId) const | 
| send a textbox | |
| bool | send (QuattroGraphInternal::Textbox const &textbox, std::shared_ptr< WPSStream > stream) const | 
| send the textbox content | |
| bool | readBeginEnd (std::shared_ptr< WPSStream > stream, int sheetId) | 
| read the begin/end graph zone: 321/322 | |
| bool | readFrameOLE (std::shared_ptr< WPSStream > stream) | 
| read a new OLE frame zone: zone 381(wb2) | |
| bool | readImage (std::shared_ptr< WPSStream > stream) | 
| read a image zone: zone 382(wb2) | |
| bool | readBitmap (std::shared_ptr< WPSStream > stream) | 
| read a bitmap zone: zone 383(wb2) | |
| bool | readChart (std::shared_ptr< WPSStream > stream) | 
| read a chart zone: zone 384 | |
| bool | readFrame (std::shared_ptr< WPSStream > stream) | 
| read an frame: zone 385 | |
| bool | readButton (std::shared_ptr< WPSStream > stream) | 
| read a button: zone 386 | |
| bool | readOLEData (std::shared_ptr< WPSStream > stream) | 
| read a OLE data: zone 38b | |
| bool | readShape (std::shared_ptr< WPSStream > stream) | 
| read a shape header: zone 4d3 | |
| bool | readShapeHeader (QuattroGraphInternal::ShapeHeader &shape, std::shared_ptr< WPSStream > stream, long endPos) | 
| read a shape header | |
| bool | readLine (std::shared_ptr< WPSStream > stream) | 
| read a line/arrow data: zone 35a/37b | |
| bool | readRect (std::shared_ptr< WPSStream > stream) | 
| read a oval/rect/round rect data: zone 33e/364/379 | |
| bool | readPolygon (std::shared_ptr< WPSStream > stream) | 
| read a polygon/polyline data: zone 35c/37c/35b/388 | |
| bool | readTextBox (std::shared_ptr< WPSStream > stream) | 
| read a textbox data: zone 36f | |
| bool | readDialog (std::shared_ptr< WPSStream > stream) | 
| read a dialog zone: 35e | |
| bool | readFillData (WPSGraphicStyle &style, int fillType, std::shared_ptr< WPSStream > stream, long endPos) | 
| Static Protected Member Functions | |
| static bool | readHeader (QuattroGraphInternal::Graph &header, std::shared_ptr< WPSStream > stream, long endPos) | 
| try to read a graph header | |
| static bool | readHeader (QuattroGraphInternal::Dialog &header, std::shared_ptr< WPSStream > stream, long endPos) | 
| try to read a dialog header | |
| static bool | readDialogUnknown (std::shared_ptr< WPSStream > stream) | 
| read a unknown dialog zone: 335,343,345 | |
| Private Member Functions | |
| QuattroGraph (QuattroGraph const &orig)=delete | |
| QuattroGraph & | operator= (QuattroGraph const &orig)=delete | 
| Private Attributes | |
| std::shared_ptr< WKSContentListener > | m_listener | 
| QuattroParser & | m_mainParser | 
| the listener (if set) | |
| std::shared_ptr< QuattroGraphInternal::State > | m_state | 
| the internal state | |
| Friends | |
| class | QuattroParser | 
| class | QuattroGraphInternal::SubDocument | 
This class parses QuattroPro graph file.
| 
 | explicit | 
constructor
| QuattroGraph::~QuattroGraph | ( | ) | 
destructor
| 
 | privatedelete | 
| void QuattroGraph::cleanState | ( | ) | 
clean internal state
| 
 | protected | 
return the list of cells containing some graphics in a sheet
| 
 | privatedelete | 
| 
 | protected | 
read the begin/end graph zone: 321/322
| 
 | protected | 
read a bitmap zone: zone 383(wb2)
| 
 | protected | 
read a button: zone 386
| 
 | protected | 
read a chart zone: zone 384
| 
 | protected | 
read a dialog zone: 35e
| 
 | staticprotected | 
read a unknown dialog zone: 335,343,345
| 
 | protected | 
Referenced by readShapeHeader(), and readTextBox().
| 
 | protected | 
read an frame: zone 385
| 
 | protected | 
read a new OLE frame zone: zone 381(wb2)
| 
 | staticprotected | 
try to read a dialog header
| 
 | staticprotected | 
try to read a graph header
Referenced by readBitmap(), readButton(), readChart(), readDialog(), readDialogUnknown(), readFrame(), readFrameOLE(), readImage(), and readShape().
| 
 | protected | 
read a image zone: zone 382(wb2)
| 
 | protected | 
read a line/arrow data: zone 35a/37b
| 
 | protected | 
read a OLE data: zone 38b
| 
 | protected | 
read a polygon/polyline data: zone 35c/37c/35b/388
| 
 | protected | 
read a oval/rect/round rect data: zone 33e/364/379
| 
 | protected | 
read a shape header: zone 4d3
| 
 | protected | 
read a shape header
Referenced by readLine(), readPolygon(), readRect(), and readTextBox().
| 
 | protected | 
read a textbox data: zone 36f
| 
 | protected | 
send the textbox content
| 
 | protected | 
send a graphic
Referenced by sendGraphics().
| 
 | protected | 
send the graphic corresponding to a cell
| 
 | protected | 
send the page graphic corresponding to a sheet
| 
 | protected | 
send a shape
Referenced by sendPageGraphics().
| 
 | protected | 
send a textbox
Referenced by sendPageGraphics().
| 
 | inline | 
sets the listener
| 
 | protected | 
stores the OLE objets
| void QuattroGraph::updateState | ( | ) | 
update the state (need to be called before sending data)
| 
 | protected | 
return the file version
Referenced by readShapeHeader().
| 
 | friend | 
| 
 | friend | 
| 
 | private | 
Referenced by send(), sendGraphic(), sendGraphics(), sendShape(), sendTextbox(), and setListener().
| 
 | private | 
the listener (if set)
the main parser
Referenced by readBitmap(), readButton(), readChart(), readDialog(), readFillData(), readFrame(), readFrameOLE(), readImage(), readOLEData(), readShape(), readTextBox(), send(), sendShape(), sendTextbox(), and version().
| 
 | private | 
the internal state
Referenced by cleanState(), getGraphicCellsInSheet(), readBeginEnd(), readBitmap(), readButton(), readChart(), readFrame(), readFrameOLE(), readImage(), readLine(), readOLEData(), readPolygon(), readRect(), readShape(), readShapeHeader(), readTextBox(), sendGraphic(), sendGraphics(), sendPageGraphics(), storeObjects(), and version().