This class parses Microsoft Works graph file. More...
#include <LotusGraph.h>
Public Member Functions | |
| LotusGraph (LotusParser &parser) | |
| constructor More... | |
| ~LotusGraph () | |
| destructor More... | |
| void | cleanState () |
| clean internal state More... | |
| void | setListener (WKSContentListenerPtr &listen) |
| sets the listener More... | |
Protected Member Functions | |
| int | version () const |
| return the file version More... | |
| bool | hasGraphics (int sheetId) const |
| return true if the sheet sheetId has some graphic More... | |
| void | sendGraphics (int sheetId) |
| send the graphics corresponding to a sheetId More... | |
| void | sendPicture (LotusGraphInternal::ZoneMac const &zone) |
| try to send a picture More... | |
| void | sendTextBox (shared_ptr< WPSStream > stream, WPSEntry const &entry) |
| try to send a textbox content's More... | |
| void | sendTextBoxWK4 (shared_ptr< WPSStream > stream, WPSEntry const &entry, bool isButton) |
| try to send a textbox content's More... | |
| bool | readZoneBegin (shared_ptr< WPSStream > stream, long endPos) |
| reads a begin graphic zone: 2328 (wk3mac) More... | |
| bool | readZoneData (shared_ptr< WPSStream > stream, long endPos, int type) |
| reads a graphic zone: 2332, 2346, 2350, 2352, 23f0 (wk3mac) More... | |
| bool | readTextBoxData (shared_ptr< WPSStream > stream, long endPos) |
| reads a graphic textbox data: 23f0 (wk3mac) More... | |
| bool | readPictureDefinition (shared_ptr< WPSStream > stream, long endPos) |
| reads a picture definition: 240e (wk3mac) More... | |
| bool | readPictureData (shared_ptr< WPSStream > stream, long endPos) |
| reads a picture data: 2410 (wk3mac) More... | |
| bool | readZoneBeginC9 (shared_ptr< WPSStream > stream) |
| try to read the sheet id: 0xc9 (wk4) More... | |
| bool | readGraphic (shared_ptr< WPSStream > stream) |
| try to read a graphic: 0xca (wk4) More... | |
| bool | readFrame (shared_ptr< WPSStream > stream) |
| try to read a graph's frame: 0xcc (wk4) More... | |
| bool | readTextBoxDataD1 (shared_ptr< WPSStream > stream) |
| reads a graphic textbox data: 0xd1 (wk4) More... | |
Private Member Functions | |
| LotusGraph (LotusGraph const &orig) | |
| LotusGraph & | operator= (LotusGraph const &orig) |
Private Attributes | |
| shared_ptr< WKSContentListener > | m_listener |
| LotusParser & | m_mainParser |
| the listener (if set) More... | |
| shared_ptr< LotusStyleManager > | m_styleManager |
| the style manager More... | |
| shared_ptr< LotusGraphInternal::State > | m_state |
| the internal state More... | |
Friends | |
| class | LotusParser |
| class | LotusGraphInternal::SubDocument |
This class parses Microsoft Works graph file.
|
explicit |
constructor
| LotusGraph::~LotusGraph | ( | ) |
destructor
|
private |
| void LotusGraph::cleanState | ( | ) |
clean internal state
|
protected |
return true if the sheet sheetId has some graphic
|
private |
|
protected |
try to read a graph's frame: 0xcc (wk4)
|
protected |
try to read a graphic: 0xca (wk4)
|
protected |
reads a picture data: 2410 (wk3mac)
|
protected |
reads a picture definition: 240e (wk3mac)
|
protected |
reads a graphic textbox data: 23f0 (wk3mac)
|
protected |
reads a graphic textbox data: 0xd1 (wk4)
|
protected |
reads a begin graphic zone: 2328 (wk3mac)
|
protected |
try to read the sheet id: 0xc9 (wk4)
|
protected |
reads a graphic zone: 2332, 2346, 2350, 2352, 23f0 (wk3mac)
|
protected |
send the graphics corresponding to a sheetId
|
protected |
try to send a picture
Referenced by sendGraphics().
try to send a textbox content's
|
protected |
try to send a textbox content's
|
inline |
sets the listener
|
protected |
return the file version
|
friend |
|
friend |
|
private |
Referenced by sendGraphics(), sendPicture(), sendTextBox(), and sendTextBoxWK4().
|
private |
the listener (if set)
the main parser
Referenced by sendGraphics(), sendTextBox(), sendTextBoxWK4(), and version().
|
private |
the internal state
Referenced by cleanState(), hasGraphics(), readFrame(), readGraphic(), readPictureData(), readPictureDefinition(), readTextBoxData(), readTextBoxDataD1(), readZoneBegin(), readZoneBeginC9(), readZoneData(), sendGraphics(), and version().
|
private |
the style manager
Referenced by readGraphic(), sendGraphics(), sendPicture(), and sendTextBox().