76 int &id, std::string &mess);
116 (
MWAWInputStreamPtr input, long endPos, long bot, long eot, int id, std::string &mess);
126 std::vector<long> &textPtrs, std::vector<long> &listValues,
136 std::vector<long> &textPtrs,
137 std::vector<long> &listValues)
139 return readPLC(input, entry, textPtrs, listValues);
144 long bot,
long eot,
int id, std::string &mess);
151 int &
id, std::string &mess);
157 int &
id, std::string &mess);
161 long bot,
long eot,
int id, std::string &mess);
165 long bot,
long eot,
int id, std::string &mess);
171 long bot,
long eot,
int id, std::string &mess);
177 long,
long,
int id, std::string &mess);
186 (std::vector<DataFOD>
const &lst1, std::vector<DataFOD>
const &lst2)
const;
191 std::vector<DataFOD> &fods,
FDPParser parser);
255 mutable std::shared_ptr<MsWks4TextInternal::State>
m_state;
basic class to store an entry in a file This contained :
Definition MWAWEntry.hxx:47
Class to store font.
Definition MWAWFont.hxx:44
virtual class which defines the ancestor of all main zone parser
Definition MWAWParser.hxx:100
The class which parses text zones in a mac MS Works document v4.
Definition MsWks4Text.hxx:65
std::vector< MWAWEntry const * > m_FDPPs
the list of FDPP entries
Definition MsWks4Text.hxx:263
bool readPLC(MWAWInputStreamPtr input, MWAWEntry const &entry, std::vector< long > &textPtrs, std::vector< long > &listValues, DataParser parser=&MsWks4Text::defDataParser)
reads a PLC (Pointer List Composant ?) in zone entry
Definition MsWks4Text.cxx:918
MsWks4Text(MsWks4Text const &orig)=delete
std::vector< DataFOD > m_FODsList
the list of a FOD
Definition MsWks4Text.hxx:258
bool ftntDataParser(MWAWInputStreamPtr input, long endPos, long bot, long eot, int id, std::string &mess)
parses the footnote position : FTNT
Definition MsWks4Text.cxx:1645
std::vector< MWAWEntry const * > m_FDPCs
the list of FDPC entries
Definition MsWks4Text.hxx:261
MWAWParserStatePtr m_parserState
the parser state
Definition MsWks4Text.hxx:246
~MsWks4Text()
destructor
Definition MsWks4Text.cxx:543
bool findFDPStructures(MWAWInputStreamPtr &input, int which)
Fills the vector of (FDPCs/FDPPs) paragraph/characters strutures.
Definition MsWks4Text.cxx:1811
MWAWParser * m_mainParser
the main parser;
Definition MsWks4Text.hxx:244
void flushNote(int noteId)
sends to the listener the text which corresponds to noteId
bool readStructures(MWAWInputStreamPtr input, bool mainOle)
finds and parses all structures which correspond to the text
Definition MsWks4Text.cxx:572
bool readFont(MWAWInputStreamPtr &input, long endPos, int &id, std::string &mess)
reads a font properties
Definition MsWks4Text.cxx:1207
void setDefault(MWAWFont const &font)
sets the default font
Definition MsWks4Text.cxx:1201
bool readParagraph(MWAWInputStreamPtr &input, long endPos, int &id, std::string &mess)
reads a paragraph properties
Definition MsWks4Text.cxx:1400
void setProperty(MsWks4TextInternal::Paragraph const &tabs)
sends a paragraph properties to the listener
Definition MsWks4Text.cxx:1392
bool eobjDataParser(MWAWInputStreamPtr input, long endPos, long bot, long eot, int id, std::string &mess)
parses the object position : EOBJ
Definition MsWks4Text.cxx:1613
bool pgdDataParser(MWAWInputStreamPtr input, long endPos, long, long, int id, std::string &mess)
parses the pagebreak positin entries : PGD
Definition MsWks4Text.cxx:1688
bool readFDP(MWAWInputStreamPtr &input, MWAWEntry const &entry, std::vector< DataFOD > &fods, FDPParser parser)
parses a FDPP or a FDPC entry (which contains a list of ATTR_TEXT/ATTR_PARAG with their definition ) ...
Definition MsWks4Text.cxx:1899
std::shared_ptr< MsWks4TextInternal::State > m_state
the internal state
Definition MsWks4Text.hxx:255
MsWks4Text & operator=(MsWks4Text const &orig)=delete
bool findFDPStructuresByHand(MWAWInputStreamPtr &input, int which)
Fills the vector of (FDPCs/FDPPs) paragraph/characters strutures, a function to call when the normal ...
Definition MsWks4Text.cxx:1877
bool readSimplePLC(MWAWInputStreamPtr &input, MWAWEntry const &entry, std::vector< long > &textPtrs, std::vector< long > &listValues)
reads a PLC (Pointer List Composant ?) in zone entry
Definition MsWks4Text.hxx:135
bool defDataParser(MWAWInputStreamPtr input, long endPos, long bot, long eot, int id, std::string &mess)
the default parser (does nothing)
Definition MsWks4Text.cxx:1106
bool readText(MWAWInputStreamPtr input, MWAWEntry const &entry, bool mainOle)
reads a text section and send it to the listener
Definition MsWks4Text.cxx:713
int numPages() const
returns the number of pages
Definition MsWks4Text.cxx:550
bool toknDataParser(MWAWInputStreamPtr input, long endPos, long bot, long eot, int id, std::string &mess)
parses the field properties entries : TOKN.
Definition MsWks4Text.cxx:1714
bool(MsWks4Text::* DataParser)(MWAWInputStreamPtr input, long endPos, long bot, long eot, int id, std::string &mess)
definition of the plc data parser (low level)
Definition MsWks4Text.hxx:116
std::vector< DataFOD > mergeSortedLists(std::vector< DataFOD > const &lst1, std::vector< DataFOD > const &lst2) const
function which takes two sorted list of attribute (by text position).
Definition MsWks4Text.cxx:2055
bool readFontNames(MWAWInputStreamPtr input, MWAWEntry const &entry)
reads the font names entry : FONT
Definition MsWks4Text.cxx:1130
void flushExtra(MWAWInputStreamPtr)
sends the data which have not been sent: actually do nothing
Definition MsWks4Text.hxx:91
bool readFootNote(MWAWInputStreamPtr input, int id)
sends the text which corresponds to footnote id to the listner
Definition MsWks4Text.cxx:678
MWAWEntry m_textPositions
an entry which corresponds to the complete text zone
Definition MsWks4Text.hxx:252
bool(MsWks4Text::* FDPParser)(MWAWInputStreamPtr &input, long endPos, int &id, std::string &mess)
callback when a new attribute is found in an FDPP/FDPC entry
Definition MsWks4Text.hxx:75
MsWksDocument & m_document
the main document
Definition MsWks4Text.hxx:249
MsWks4Text(MsWksDocument &document)
constructor
Definition MsWks4Text.cxx:529
The class which parses the main zones of a mac MS Works document v4.
Definition MsWks4Zone.hxx:74
the main class to read/store generic data of a MsWorks document v1-v3
Definition MsWksDocument.hxx:69
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition libmwaw_internal.hxx:557
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition libmwaw_internal.hxx:551
Internal: the structures of a MsWks4Text.
Definition MsWks4Text.cxx:71
Internal: class to store a paragraph properties.
Definition MsWks4Text.cxx:254
structure which retrieves data information which correspond to a text position
Definition MsWks4Text.hxx:211
long m_pos
the offset position of the text modified by this attribute
Definition MsWks4Text.hxx:232
DataFOD()
the constructor
Definition MsWks4Text.hxx:221
long m_defPos
the offset position of the definition of the attribute in the file
Definition MsWks4Text.hxx:234
Type
different type which can be associated to a text position
Definition MsWks4Text.hxx:218
@ ATTR_UNKN
Definition MsWks4Text.hxx:218
@ ATTR_PARAG
Definition MsWks4Text.hxx:218
@ ATTR_PLC
Definition MsWks4Text.hxx:218
@ ATTR_TEXT
Definition MsWks4Text.hxx:218
Type m_type
the type of the attribute
Definition MsWks4Text.hxx:230
int m_id
an identificator (which must be unique by category)
Definition MsWks4Text.hxx:236