112 bool readFont(
long endPos,
int &
id, std::string &mess);
122 librevenge::RVNGString &res);
155 (
long endPos, std::vector<long>
const &textPtrs);
164 std::vector<long> &textPtrs, std::vector<long> &listValues,
191 mutable shared_ptr<WPS8TextInternal::State>
m_state;
bool defDataParser(long, long, int, WPS8Struct::FileData const &data, std::string &mess)
default parser
Definition: WPS8Text.cpp:1342
bool tokenEndDataParser(long endPage, std::vector< long > const &textPtrs)
reads a field type : TOKN zone
Definition: WPS8Text.cpp:1656
shared_ptr< WPSContentListener > WPSContentListenerPtr
shared pointer to WPSContentListener
Definition: libwps_internal.h:122
Definition: WPS8TextStyle.h:40
WPS8Parser const & mainParser() const
return the main parser
Definition: WPS8Text.h:103
This class parses Works version 2000 through 8.
Definition: WPS8.h:49
bool readPLC(WPSEntry const &entry, std::vector< long > &textPtrs, std::vector< long > &listValues, DataParser parser=&WPS8Text::defDataParser, EndDataParser endParser=0L)
reads a PLC (Pointer List Composant ?) in zone entry
Definition: WPS8Text.cpp:1980
bool bmktEndDataParser(long endPage, std::vector< long > const &textPtrs)
reads a field type : BMKT zone
Definition: WPS8Text.cpp:1433
~WPS8Text()
Definition: WPS8Text.cpp:528
Definition: WPS8Text.h:47
shared_ptr< WPS8TextStyle > m_styleParser
the graph parser
Definition: WPS8Text.h:189
WPSContentListenerPtr m_listener
the listener
Definition: WPS8Text.h:187
WPS8Text(WPS8Parser &parser)
Definition: WPS8Text.cpp:521
Internal: the subdocument of a WPS8Text.
Definition: WPS8Text.cpp:437
WPSEntry getEntry(int strsId) const
returns ith zone entry (if such entry exists, if not returns an invalid entry)
Definition: WPS8Text.cpp:569
bool readParagraph(long endPos, int &id, std::string &mess)
the paragraph
Definition: WPS8Text.cpp:561
void createNotesCorrespondance()
creates the notes association : text and notes positions
Definition: WPS8Text.cpp:1258
void readTextInCell(int strsId, int cellId)
reads a cell section and sends it to a listener
Definition: WPS8Text.cpp:630
WPSParser & m_mainParser
pointer to the main zone parser;
Definition: WPSTextParser.h:126
WPSEntry getTextEntry() const
returns the main zone entry (if such entry exists, if not returns an invalid entry) ...
Definition: WPS8Text.cpp:611
void readText(WPSEntry const &entry)
reads a text section and sends it to a listener
Definition: WPS8Text.cpp:647
WPSEntry getHeaderEntry() const
returns the header entry (if such entry exists, if not returns an invalid entry)
Definition: WPS8Text.cpp:575
shared_ptr< WPS8TextInternal::State > m_state
the internal state
Definition: WPS8Text.h:191
namespace used to read the structures stored in a WPS8 files
Definition: WPS8Struct.cpp:30
int numPages() const
returns the number of pages
Definition: WPS8Text.cpp:541
Definition: WPS8Text.cpp:66
bool objectDataParser(long bot, long eot, int id, WPS8Struct::FileData const &data, std::string &mess)
reads a EOBJ properties: an object id and its size, ...
Definition: WPS8Text.cpp:1582
shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:102
bool readNotes(WPSEntry const &entry)
the footnote ( FTN or EDN )
Definition: WPS8Text.cpp:1126
void setListener(WPSContentListenerPtr &listen)
sets the listener
Definition: WPS8Text.cpp:533
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: WPS8Text.cpp:913
bool readFont(long endPos, int &id, std::string &mess)
reads a font properties
Definition: WPS8Text.cpp:556
int getTextZoneType(int typeId) const
returns the type of a text zone
Definition: WPS8Text.cpp:620
bool textZonesDataParser(long bot, long eot, int nId, WPS8Struct::FileData const &data, std::string &mess)
the text zones parser: STRS
Definition: WPS8Text.cpp:1369
long readUTF16LE(RVNGInputStreamPtr input, long endPos, uint16_t firstC)
reads a utf16 character,
Definition: WPS8Text.cpp:1072
int getNumTextZones() const
returns the number of different text zones
Definition: WPS8Text.cpp:616
bool readString(RVNGInputStreamPtr input, long page_size, librevenge::RVNGString &res)
reads a string
Definition: WPS8Text.cpp:1105
bool(WPS8Text::* EndDataParser)(long endPos, std::vector< long > const &textPtrs)
definition of the last part of plc data parser (low level)
Definition: WPS8Text.h:155
basic class to store an entry in a file This contained :
Definition: WPSEntry.h:38
class used to defined the ancestor of parser which manages the text data
Definition: WPSTextParser.h:39
bool(WPS8Text::* DataParser)(long bot, long eot, int id, WPS8Struct::FileData const &data, std::string &mess)
definition of the plc data parser (low level)
Definition: WPS8Text.h:148
bool readStructures()
finds all entries which correspond to the text data, parses them and stores data
Definition: WPS8Text.cpp:929
WPSEntry getFooterEntry() const
returns the footer entry (if such entry exists, if not returns an invalid entry)
Definition: WPS8Text.cpp:593
A recursif structure which seems generally used to store complex memory structures in a file...
Definition: WPS8Struct.h:63
WPS8Parser & mainParser()
return the main parser
Definition: WPS8Text.h:98