39 namespace WPS4TextInternal
144 (
long bot,
long eot,
int id,
long endPos, std::string &mess);
153 std::vector<long> &textPtrs, std::vector<long> &listValues,
157 bool defDataParser(
long bot,
long eot,
int id,
long endPos, std::string &mess);
163 bool readFont(
long endPos,
int &
id, std::string &mess);
173 long endPos, std::string &mess);
182 bool bkmkDataParser(
long bot,
long eot,
int id,
long endPos, std::string &mess);
185 bool dttmDataParser(
long bot,
long eot,
int id,
long endPos, std::string &mess);
192 mutable shared_ptr<WPS4TextInternal::State>
m_state;
WPSEntry getMainTextEntry() const
returns the main text entry (if such entry exists, if not returns an invalid entry) ...
Definition: WPS4Text.cpp:523
shared_ptr< WPSContentListener > WPSContentListenerPtr
shared pointer to WPSContentListener
Definition: libwps_internal.h:100
bool objectDataParser(long bot, long eot, int id, long endPos, std::string &mess)
reads a object properties ( position in text, size and definition in file)
Definition: WPS4Text.cpp:2209
WPSEntry getFooterEntry() const
returns the footer entry (if such entry exists, if not returns an invalid entry)
Definition: WPS4Text.cpp:510
bool readFont(long endPos, int &id, std::string &mess)
reads a font properties
Definition: WPS4Text.cpp:1378
bool findFDPStructures(int which)
finds the FDPC/FDPP structure using the BTEC/BTEP entries
Definition: WPS4Text.cpp:1152
bool bkmkDataParser(long bot, long eot, int id, long endPos, std::string &mess)
reads a book mark property ( string)
Definition: WPS4Text.cpp:2173
This class parses Works version 2 through 4.
Definition: WPS4.h:48
bool dttmDataParser(long bot, long eot, int id, long endPos, std::string &mess)
reads a date time property
Definition: WPS4Text.cpp:2289
bool readText(WPSEntry const &entry)
reads a text section and sends it to a listener
Definition: WPS4Text.cpp:559
bool(WPS4Text::* DataParser)(long bot, long eot, int id, long endPos, std::string &mess)
definition of the plc data parser (low level)
Definition: WPS4Text.h:144
bool defDataParser(long bot, long eot, int id, long endPos, std::string &mess)
default plc reader
Definition: WPS4Text.cpp:1268
WPSEntry getHeaderEntry() const
returns the header entry (if such entry exists, if not returns an invalid entry)
Definition: WPS4Text.cpp:497
bool readPLC(WPSEntry const &zone, std::vector< long > &textPtrs, std::vector< long > &listValues, DataParser parser=0L)
reads a PLC (Pointer List Composant ?) in zone entry
Definition: WPS4Text.cpp:2409
bool readParagraph(long endPos, int &id, std::string &mess)
reads a paragraph properties
Definition: WPS4Text.cpp:1607
bool findFDPStructuresByHand(int which)
finds the FDPC/FDPP structure by searching after the text zone
Definition: WPS4Text.cpp:1188
WPSParser & m_mainParser
pointer to the main zone parser;
Definition: WPSTextParser.h:126
bool readDosLink(WPSEntry const &entry)
reads the ZZDLink ( a list of filename )
Definition: WPS4Text.cpp:1519
~WPS4Text()
destructor
Definition: WPS4Text.cpp:480
WPS4Text(WPS4Parser &parser, RVNGInputStreamPtr &input)
contructor
Definition: WPS4Text.cpp:474
bool readFontNames(WPSEntry const &entry)
reads the font names
Definition: WPS4Text.cpp:1303
bool footNotesDataParser(long bot, long eot, int id, long endPos, std::string &mess)
reads a book mark property ( string)
Definition: WPS4Text.cpp:2123
WPS4Parser & mainParser()
return the main parser
Definition: WPS4Text.h:90
shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:81
bool readFootNotes(WPSEntry const &ftnD, WPSEntry const &ftnP)
reads the footnotes positions and definitions ( zones FTNd and FTNp)
Definition: WPS4Text.cpp:2038
bool readEntries()
finds all text entries (TEXT, SHdr, SFtr, BTEC, BTEP, FTNp, FTNp, BKMK, FONT, CHRT) ...
Definition: WPS4Text.cpp:915
shared_ptr< WPS4TextInternal::State > m_state
the internal state
Definition: WPS4Text.h:192
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: WPS4Text.cpp:538
The class which parses text zones in a pc MS Works document v1-4.
Definition: WPS4Text.h:65
WPS4Parser const & mainParser() const
return the main parser
Definition: WPS4Text.h:95
void setListener(WPSContentListenerPtr &listen)
sets the listener
Definition: WPS4Text.h:77
int numPages() const
returns the number of pages
Definition: WPS4Text.cpp:485
basic class to store an entry in a file This contained :
Definition: WPSEntry.h:37
bool readStructures()
parsed all the text entries
Definition: WPS4Text.cpp:1035
class used to defined the ancestor of parser which manages the text data
Definition: WPSTextParser.h:39
WPSContentListenerPtr m_listener
the listener
Definition: WPS4Text.h:189
libwps_tools_win::Font::Type getDefaultFontType() const
returns the default codepage to use for the document
Definition: WPS4Text.cpp:528