26 #ifndef WPS_TEXT_PARSER_H 27 #define WPS_TEXT_PARSER_H 96 (std::vector<DataFOD>
const &lst1, std::vector<DataFOD>
const &lst2)
const;
104 int &id, std::string &mess);
109 std::vector<DataFOD> &fods,
FDPParser parser);
std::vector< DataFOD > m_FODList
the list of a FOD
Definition: WPSTextParser.h:134
structure which retrieves data information which correspond to a text position
Definition: WPSTextParser.h:66
WPSTextParser & operator=(WPSTextParser const &parser)=delete
private copy operator: forbidden
Definition: WPSTextParser.h:74
RVNGInputStreamPtr m_input
the main input
Definition: WPSTextParser.h:128
WPSTextParser(WPSParser &parser, RVNGInputStreamPtr &input)
constructor
Definition: WPSTextParser.cpp:38
libwps::DebugFile & m_asciiFile
the ascii file
Definition: WPSTextParser.h:136
std::multimap< std::string, WPSEntry > & getNameEntryMap()
returns the map type->entry
Definition: WPSTextParser.cpp:58
Definition: WPSDebug.h:207
libwps::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: WPSTextParser.h:113
bool(WPSTextParser::* FDPParser)(long endPos, int &id, std::string &mess)
callback when a new attribute is found in an FDPP/FDPC entry
Definition: WPSTextParser.h:103
Definition: WPSTextParser.h:74
Definition: WPSParser.h:35
int m_version
the file version
Definition: WPSTextParser.h:126
WPSEntry m_textPositions
an entry which corresponds to the complete text zone
Definition: WPSTextParser.h:132
RVNGInputStreamPtr & getInput()
returns the actual input
Definition: WPSTextParser.h:49
int m_id
an identificator (which must be unique by category)
Definition: WPSTextParser.h:90
WPSParser & m_mainParser
pointer to the main zone parser;
Definition: WPSTextParser.h:130
int version() const
returns the file version
Definition: WPSTextParser.cpp:51
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:87
Definition: WPSTextParser.h:74
std::vector< DataFOD > mergeSortedFODLists(std::vector< DataFOD > const &lst1, std::vector< DataFOD > const &lst2) const
function which takes two sorted list of attribute (by text position).
Definition: WPSTextParser.cpp:253
Type
different type which can be associated to a text position
Definition: WPSTextParser.h:74
virtual ~WPSTextParser()
virtual destructor
Definition: WPSTextParser.cpp:48
DataFOD()
the constructor
Definition: WPSTextParser.h:77
bool readFDP(WPSEntry 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: WPSTextParser.cpp:71
long m_defPos
the offset position of the definition of the attribute in the file
Definition: WPSTextParser.h:88
Definition: WPSTextParser.h:74
Type m_type
the type of the attribute
Definition: WPSTextParser.h:84
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
long m_pos
the offset position of the text modified by this attribute
Definition: WPSTextParser.h:86