the main class to read/store table in a Pc MS Works document v5-8 More...
#include <WPS8Table.h>
Public Member Functions | |
WPS8Table (WPS8Parser &parser) | |
constructor | |
~WPS8Table () | |
destructor | |
void | setListener (WPSContentListenerPtr &listen) |
sets the listener | |
void | computePositions () const |
computes the final position of all table: does nothing as table anchors seem always a char | |
int | numPages () const |
returns the number page where we find a picture. In practice, 0/1 | |
void | flushExtra () |
sends the data which have not been send to the listener. |
Protected Member Functions | |
bool | readStructures (RVNGInputStreamPtr const &input) |
finds all structures which correspond to a table | |
bool | sendTable (Vec2f const &siz, int tableId, int strsid, bool inTextBox=false) |
tries to send a table corresponding to strsid with actual size siz | |
void | sendTextInCell (int strsId, int cellId) |
bool | readMCLD (RVNGInputStreamPtr input, WPSEntry const &entry) |
reads a MCLD zone: a zone which stores the tables structures | |
int | version () const |
returns the file version | |
libwps::DebugFile & | ascii () |
returns the debug file |
Protected Attributes | |
WPSContentListenerPtr | m_listener |
the listener | |
WPS8Parser & | m_mainParser |
the main parser | |
std::shared_ptr< WPS8TableInternal::State > | m_state |
the state | |
libwps::DebugFile & | m_asciiFile |
the ascii file |
Private Member Functions | |
WPS8Table (WPS8Table const &orig)=delete | |
WPS8Table & | operator= (WPS8Table const &orig)=delete |
Friends | |
struct | WPS8TableInternal::Cell |
class | WPS8Parser |
the main class to read/store table in a Pc MS Works document v5-8
This class must be associated with a WPS8Parser. It contains code to read the MCLD entries which seems to correspond to a table entry (potentially a table entry with only one cells).
|
explicit |
constructor
Referenced by operator=(), and WPS8Table().
WPS8Table::~WPS8Table | ( | ) |
destructor
|
privatedelete |
|
inlineprotected |
returns the debug file
Referenced by readMCLD(), and WPS8Table().
void WPS8Table::computePositions | ( | ) | const |
computes the final position of all table: does nothing as table anchors seem always a char
void WPS8Table::flushExtra | ( | ) |
sends the data which have not been send to the listener.
int WPS8Table::numPages | ( | ) | const |
returns the number page where we find a picture. In practice, 0/1
|
protected |
reads a MCLD zone: a zone which stores the tables structures
Referenced by readStructures().
|
protected |
finds all structures which correspond to a table
|
protected |
tries to send a table corresponding to strsid with actual size siz
siz | the size of the table in the document |
tableId | the table identificator |
strsid | indicates the text entry (and its corresponding TCD ) |
inTextBox | indicates if we have already created a textbox to insert the table which contains the cells' text. |
Referenced by flushExtra().
|
protected |
|
inline |
sets the listener
|
protected |
returns the file version
|
friend |
Referenced by WPS8Parser, and WPS8Table().
|
friend |
|
protected |
the ascii file
Referenced by ascii(), and WPS8Table().
|
protected |
the listener
Referenced by flushExtra(), sendTable(), setListener(), and WPS8Table().
|
protected |
the main parser
Referenced by flushExtra(), readStructures(), sendTable(), sendTextInCell(), version(), and WPS8Table().
|
mutableprotected |
the state
Referenced by computePositions(), flushExtra(), numPages(), readMCLD(), readStructures(), sendTable(), version(), and WPS8Table().