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);
basic class to store an entry in a file This contained :
Definition WPSEntry.h:39
Definition WPSParser.h:36
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
std::vector< DataFOD > m_FODList
the list of a FOD
Definition WPSTextParser.h:134
WPSEntry m_textPositions
an entry which corresponds to the complete text zone
Definition WPSTextParser.h:132
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
libwps::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition WPSTextParser.h:113
std::multimap< std::string, WPSEntry > & getNameEntryMap()
returns the map type->entry
Definition WPSTextParser.cpp:58
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
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
virtual ~WPSTextParser()
virtual destructor
Definition WPSTextParser.cpp:48
RVNGInputStreamPtr & getInput()
returns the actual input
Definition WPSTextParser.h:49
int version() const
returns the file version
Definition WPSTextParser.cpp:51
int m_version
the file version
Definition WPSTextParser.h:126
WPSTextParser(WPSTextParser const &parser)=delete
private copy constructor: forbidden
WPSTextParser & operator=(WPSTextParser const &parser)=delete
private copy operator: forbidden
WPSParser & m_mainParser
pointer to the main zone parser;
Definition WPSTextParser.h:130
Definition WPSDebug.h:208
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition libwps_internal.h:87
Type
different type which can be associated to a text position
Definition WPSTextParser.h:74
@ ATTR_PARAG
Definition WPSTextParser.h:74
@ ATTR_PLC
Definition WPSTextParser.h:74
@ ATTR_TEXT
Definition WPSTextParser.h:74
@ ATTR_UNKN
Definition WPSTextParser.h:74
DataFOD()
the constructor
Definition WPSTextParser.h:77
Type m_type
the type of the attribute
Definition WPSTextParser.h:84
int m_id
an identificator (which must be unique by category)
Definition WPSTextParser.h:90
long m_pos
the offset position of the text modified by this attribute
Definition WPSTextParser.h:86
long m_defPos
the offset position of the definition of the attribute in the file
Definition WPSTextParser.h:88