the main class to read the text part of Microsoft Word file More...
#include <MsWrdText.hxx>
Classes | |
struct | PLC |
Internal: the plc. More... | |
Public Member Functions | |
MsWrdText (MsWrdParser &parser) | |
constructor | |
virtual | ~MsWrdText () |
destructor | |
int | version () const |
returns the file version | |
int | numPages () const |
returns the number of pages | |
MWAWEntry | getHeader () const |
returns the header entry | |
MWAWEntry | getFooter () const |
returns the footer entry | |
Protected Member Functions | |
std::shared_ptr< MWAWParserState > & | getParserState () |
returns the parser state | |
bool | sendMainText () |
send a main zone | |
bool | sendText (MWAWEntry const &textEntry, bool mainZone, bool tableCell=false) |
send a text zone | |
bool | sendSection (int sectionId) |
try to open a section | |
bool | readHeaderTextLength () |
reads the three different zone size | |
bool | createZones (long bot) |
finds the different zones | |
bool | readTextStruct (MsWrdEntry &entry) |
read the text structure(some paragraph style+some text position?) | |
bool | readPageBreak (MsWrdEntry &entry) |
read the page limit ? | |
bool | readParagraphInfo (MsWrdEntry &entry) |
read the paragraph height info | |
bool | readFields (MsWrdEntry &entry, std::vector< long > const &fieldPos) |
read the field data | |
bool | sendFieldComment (int id) |
send a field note to a listener | |
bool | readFootnotesPos (MsWrdEntry &entry, std::vector< long > const ¬eDef) |
read the footnote pos in text + val | |
bool | readFootnotesData (MsWrdEntry &entry) |
read the footnote data | |
bool | sendFootnote (int id) |
send a note to a listener | |
bool | readFontNames (MsWrdEntry &entry) |
read the font names | |
void | flushExtra () |
sends the data which have not yet been sent to the listener | |
bool | sendTable (MsWrdTextInternal::Table const &table) |
try to send a table. | |
long | getMainTextLength () const |
returns the main text length | |
std::multimap< long, MsWrdText::PLC > & | getTextPLCMap () |
returns the text correspondance zone ( textpos, plc ) | |
std::multimap< long, MsWrdText::PLC > & | getFilePLCMap () |
returns the file correspondance zone ( filepos, plc ) | |
void | prepareData () |
prepare the data to be send | |
void | prepareLines () |
cut the text in line/cell pos | |
void | convertFilePLCPos () |
convert the file position in character position and compute the paragraph limit | |
void | prepareParagraphProperties () |
retrieve the paragraph properties | |
void | prepareFontProperties () |
retrieve the font properties | |
void | prepareTableLimits () |
find the table end position knowing the end cell/pos delimiter | |
bool | updateTableBeginnningAt (long cPos, long &nextCPos) |
try to find a table which begin at position cPos, if so, update its data... | |
bool | readLongZone (MsWrdEntry &entry, int sz, std::vector< long > &list) |
read a zone which consists in a list of int | |
Protected Attributes | |
MWAWParserStatePtr | m_parserState |
the parser state | |
std::shared_ptr< MsWrdTextInternal::State > | m_state |
the state | |
std::shared_ptr< MsWrdTextStyles > | m_stylesManager |
the style manager | |
MsWrdParser * | m_mainParser |
the main parser; | |
Private Member Functions | |
MsWrdText (MsWrdText const &orig)=delete | |
MsWrdText & | operator= (MsWrdText const &orig)=delete |
Friends | |
class | MsWrdParser |
class | MsWrdTextStyles |
the main class to read the text part of Microsoft Word file
|
explicit |
constructor
|
virtual |
destructor
|
privatedelete |
|
protected |
convert the file position in character position and compute the paragraph limit
Referenced by prepareData().
|
protected |
finds the different zones
the break position
read the header footer limit
read the note
read the footenote
|
protected |
sends the data which have not yet been sent to the listener
|
protected |
returns the file correspondance zone ( filepos, plc )
Referenced by MsWrdTextStyles::readPLC().
MWAWEntry MsWrdText::getFooter | ( | ) | const |
returns the footer entry
MWAWEntry MsWrdText::getHeader | ( | ) | const |
returns the header entry
|
protected |
returns the main text length
Referenced by MsWrdTextStyles::readSection().
|
inlineprotected |
returns the parser state
|
protected |
returns the text correspondance zone ( textpos, plc )
Referenced by MsWrdTextStyles::readSection().
int MsWrdText::numPages | ( | ) | const |
returns the number of pages
|
protected |
prepare the data to be send
Referenced by createZones().
|
protected |
retrieve the font properties
Referenced by prepareData().
|
protected |
cut the text in line/cell pos
Referenced by prepareData().
|
protected |
retrieve the paragraph properties
Referenced by prepareData().
|
protected |
find the table end position knowing the end cell/pos delimiter
Referenced by prepareData().
|
protected |
read the field data
Referenced by createZones().
|
protected |
read the font names
Referenced by createZones().
|
protected |
read the footnote data
Referenced by createZones().
|
protected |
read the footnote pos in text + val
Referenced by createZones().
|
protected |
reads the three different zone size
|
protected |
read a zone which consists in a list of int
Referenced by createZones().
|
protected |
read the page limit ?
Referenced by createZones().
|
protected |
read the paragraph height info
Referenced by createZones().
|
protected |
read the text structure(some paragraph style+some text position?)
Referenced by createZones().
|
protected |
send a field note to a listener
|
protected |
send a note to a listener
|
protected |
send a main zone
|
protected |
try to open a section
Referenced by sendText().
|
protected |
try to send a table.
Referenced by sendText().
|
protected |
send a text zone
Referenced by flushExtra(), sendFootnote(), sendMainText(), and sendTable().
|
protected |
try to find a table which begin at position cPos, if so, update its data...
Referenced by prepareParagraphProperties().
int MsWrdText::version | ( | ) | const |
returns the file version
Referenced by prepareData(), prepareFontProperties(), prepareParagraphProperties(), prepareTableLimits(), readFields(), readPageBreak(), and readParagraphInfo().
|
friend |
|
friend |
Referenced by MsWrdText().
|
protected |
the main parser;
Referenced by createZones(), and sendText().
|
protected |
the parser state
Referenced by getFooter(), getHeader(), getParserState(), prepareData(), prepareLines(), prepareTableLimits(), readFields(), readFontNames(), readFootnotesData(), readFootnotesPos(), readHeaderTextLength(), readLongZone(), readPageBreak(), readParagraphInfo(), readTextStruct(), sendFieldComment(), sendFootnote(), sendTable(), sendText(), and version().
|
protected |
the state
Referenced by convertFilePLCPos(), createZones(), flushExtra(), getFilePLCMap(), getFooter(), getHeader(), getMainTextLength(), getTextPLCMap(), numPages(), prepareData(), prepareFontProperties(), prepareLines(), prepareParagraphProperties(), prepareTableLimits(), readFields(), readFootnotesData(), readFootnotesPos(), readHeaderTextLength(), readPageBreak(), readParagraphInfo(), readTextStruct(), sendFieldComment(), sendFootnote(), sendMainText(), sendSection(), sendTable(), sendText(), updateTableBeginnningAt(), and version().
|
protected |
the style manager
Referenced by createZones(), MsWrdText(), prepareData(), prepareFontProperties(), prepareParagraphProperties(), prepareTableLimits(), readTextStruct(), sendFieldComment(), sendSection(), and sendText().