the main class to read/store picture in a Pc MS Works document v1-4 More...
#include <WPS4Graph.h>
Public Member Functions | |
WPS4Graph (WPS4Parser &parser) | |
constructor given the main parser of the MN0 zone | |
~WPS4Graph () | |
destructor | |
void | setListener (WPSContentListenerPtr &listen) |
sets the listener | |
void | computePositions () const |
computes the position of all found figures. | |
int | numPages () const |
returns the number page where we find a picture. In practice, 0/1 |
Protected Member Functions | |
int | version () const |
returns the file version | |
void | storeObjects (std::map< int, WPSEmbeddedObject > const &objectsMap) |
store a list of object | |
int | readObject (RVNGInputStreamPtr input, WPSEntry const &entry) |
tries to find a picture in the zone pointed by entry | |
void | sendObject (WPSPosition const &position, int id) |
sends an object with identificator id as a character to a given pposition | |
void | sendObjects (int page) |
send all the objects of a given page: | |
libwps::DebugFile & | ascii () |
returns the debug file |
Protected Attributes | |
WPSContentListenerPtr | m_listener |
the listener | |
WPS4Parser & | m_mainParser |
the main parser | |
std::shared_ptr< WPS4GraphInternal::State > | m_state |
the state | |
libwps::DebugFile & | m_asciiFile |
the ascii file |
Private Member Functions | |
WPS4Graph (WPS4Graph const &orig)=delete | |
WPS4Graph & | operator= (WPS4Graph const &orig)=delete |
Friends | |
class | WPS4Parser |
the main class to read/store picture in a Pc MS Works document v1-4
This class must be associated with a WPS4Parser.
|
explicit |
constructor given the main parser of the MN0 zone
Referenced by operator=(), and WPS4Graph().
WPS4Graph::~WPS4Graph | ( | ) |
destructor
|
privatedelete |
|
inlineprotected |
returns the debug file
Referenced by readObject(), and WPS4Graph().
void WPS4Graph::computePositions | ( | ) | const |
computes the position of all found figures.
In reality, as all the pictures seemed to be given with characters positions, it does almost nothing, ie it only updates some internal bool to know the picture which have been sent to the listener.
int WPS4Graph::numPages | ( | ) | const |
returns the number page where we find a picture. In practice, 0/1
|
protected |
tries to find a picture in the zone pointed by entry
|
protected |
sends an object with identificator id as a character to a given pposition
|
protected |
send all the objects of a given page:
page | if page < 0, sends all the pictures which have not been used, |
As all the pictures seemed to be given with characters positions, this function only does something if page < 0.
|
inline |
sets the listener
|
protected |
store a list of object
|
protected |
returns the file version
|
friend |
Referenced by WPS4Graph(), and WPS4Parser.
|
protected |
the ascii file
Referenced by ascii(), and WPS4Graph().
|
protected |
the listener
Referenced by sendObject(), sendObjects(), setListener(), and WPS4Graph().
|
protected |
the main parser
Referenced by version(), and WPS4Graph().
|
mutableprotected |
the state
Referenced by numPages(), readObject(), sendObject(), sendObjects(), storeObjects(), version(), and WPS4Graph().