43 namespace MSK4TextInternal
74 int &id, std::string &mess);
123 std::vector<long> &textPtrs, std::vector<long> &listValues,
133 std::vector<long> &textPtrs,
134 std::vector<long> &listValues) {
135 return readPLC(input, entry, textPtrs, listValues);
140 long bot,
long eot,
int id, std::string &mess);
147 int &
id, std::string &mess);
153 int &
id, std::string &mess);
157 long bot,
long eot,
int id, std::string &mess);
161 long bot,
long eot,
int id, std::string &mess);
167 long bot,
long eot,
int id, std::string &mess);
173 long ,
long,
int id, std::string &mess);
191 (std::vector<DataFOD>
const &lst1, std::vector<DataFOD>
const &lst2)
const;
196 std::vector<DataFOD> &fods,
FDPParser parser);
254 mutable shared_ptr<MSK4TextInternal::State>
m_state;
DataFOD()
the constructor
Definition: MSK4Text.hxx:228
void flushExtra(MWAWInputStreamPtr)
sends the data which have not been sent: actually do nothing
Definition: MSK4Text.hxx:89
int m_id
an identificator (which must be unique by category)
Definition: MSK4Text.hxx:237
MSK4Text & operator=(MSK4Text const &orig)
bool(MSK4Text::* FDPParser)(MWAWInputStreamPtr &input, long endPos, int &id, std::string &mess)
callback when a new attribute is found in an FDPP/FDPC entry
Definition: MSK4Text.hxx:73
void setDefault(MWAWFont &font)
sets the default font
Definition: MSK4Text.cxx:1077
long m_pos
the offset position of the text modified by this attribute
Definition: MSK4Text.hxx:233
int numPages() const
returns the number of pages
Definition: MSK4Text.cxx:457
void flushNote(int noteId)
sends to the listener the text which corresponds to noteId
bool readPLC(MWAWInputStreamPtr input, MWAWEntry const &entry, std::vector< long > &textPtrs, std::vector< long > &listValues, DataParser parser=&MSK4Text::defDataParser)
reads a PLC (Pointer List Composant ?) in zone entry
Definition: MSK4Text.cxx:808
Definition: MSK4Text.hxx:225
bool(MSK4Text::* DataParser)(MWAWInputStreamPtr input, long endPos, long bot, long eot, int id, std::string &mess)
definition of the plc data parser (low level)
Definition: MSK4Text.hxx:113
bool findFDPStructuresByHand(MWAWInputStreamPtr &input, int which)
Fills the vector of (FDPCs/FDPPs) paragraph/characters strutures, a function to call when the normal ...
Definition: MSK4Text.cxx:1759
std::vector< DataFOD > m_FODsList
the list of a FOD
Definition: MSK4Text.hxx:257
bool readText(MWAWInputStreamPtr input, MWAWEntry const &entry, bool mainOle)
reads a text section and send it to the listener
Definition: MSK4Text.cxx:624
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: MSK4Text.hxx:132
bool ftntDataParser(MWAWInputStreamPtr input, long endPos, long bot, long eot, int id, std::string &mess)
parses the footnote position : FTNT
Definition: MSK4Text.cxx:1521
bool readParagraph(MWAWInputStreamPtr &input, long endPos, int &id, std::string &mess)
reads a paragraph properties
Definition: MSK4Text.cxx:1276
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: MSK4Text.cxx:1781
MWAWEntry m_textPositions
an entry which corresponds to the complete text zone
Definition: MSK4Text.hxx:251
MSK4Zone * m_mainParser
the main parser
Definition: MSK4Text.hxx:248
MWAWParserStatePtr m_parserState
the parser state
Definition: MSK4Text.hxx:245
MSK4Zone * mainParser()
returns the main parser
Definition: MSK4Text.hxx:184
bool eobjDataParser(MWAWInputStreamPtr input, long endPos, long bot, long eot, int id, std::string &mess)
parses the object position : EOBJ
Definition: MSK4Text.cxx:1489
~MSK4Text()
destructor
Definition: MSK4Text.cxx:451
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: MSK4Text.cxx:1937
bool defDataParser(MWAWInputStreamPtr input, long endPos, long bot, long eot, int id, std::string &mess)
the default parser (does nothing)
Definition: MSK4Text.cxx:988
MSK4Zone const * mainParser() const
returns the main parser
Definition: MSK4Text.hxx:180
MSK4Text(MSK4Zone &parser)
constructor
Definition: MSK4Text.cxx:444
shared_ptr< MSK4TextInternal::State > m_state
the internal state
Definition: MSK4Text.hxx:254
The class which parses the main zones of a mac MS Works document v4.
Definition: MSK4Zone.hxx:76
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:348
bool readFontNames(MWAWInputStreamPtr input, MWAWEntry const &entry)
reads the font names entry : FONT
Definition: MSK4Text.cxx:1012
Definition: MSK4Text.hxx:225
Type
different type which can be associated to a text position
Definition: MSK4Text.hxx:225
structure which retrieves data information which correspond to a text position
Definition: MSK4Text.hxx:218
Definition: MSK4Text.hxx:225
bool readFont(MWAWInputStreamPtr &input, long endPos, int &id, std::string &mess)
reads a font properties
Definition: MSK4Text.cxx:1083
long m_defPos
the offset position of the definition of the attribute in the file
Definition: MSK4Text.hxx:235
bool readStructures(MWAWInputStreamPtr input, bool mainOle)
finds and parses all structures which correspond to the text
Definition: MSK4Text.cxx:480
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:356
bool pgdDataParser(MWAWInputStreamPtr input, long endPos, long, long, int id, std::string &mess)
parses the pagebreak positin entries : PGD
Definition: MSK4Text.cxx:1564
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
std::vector< MWAWEntry const * > m_FDPPs
the list of FDPP entries
Definition: MSK4Text.hxx:262
void setProperty(MSK4TextInternal::Paragraph const &tabs)
sends a paragraph properties to the listener
Definition: MSK4Text.cxx:1268
bool toknDataParser(MWAWInputStreamPtr input, long endPos, long bot, long eot, int id, std::string &mess)
parses the field properties entries : TOKN.
Definition: MSK4Text.cxx:1590
The class which parses text zones in a mac MS Works document v4.
Definition: MSK4Text.hxx:63
std::vector< MWAWEntry const * > m_FDPCs
the list of FDPC entries
Definition: MSK4Text.hxx:260
Type m_type
the type of the attribute
Definition: MSK4Text.hxx:231
bool readFootNote(MWAWInputStreamPtr input, int id)
sends the text which corresponds to footnote id to the listner
Definition: MSK4Text.cxx:589
Internal: class to store a paragraph properties.
Definition: MSK4Text.cxx:221
Definition: MSK4Text.hxx:225
bool findFDPStructures(MWAWInputStreamPtr &input, int which)
Fills the vector of (FDPCs/FDPPs) paragraph/characters strutures.
Definition: MSK4Text.cxx:1686