Go to the documentation of this file.
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);
WPSTextParser(WPSTextParser const &parser)=delete
private copy constructor: forbidden
RVNGInputStreamPtr & getInput()
returns the actual input
Definition: WPSTextParser.h:49
Type m_type
the type of the attribute
Definition: WPSTextParser.h:84
static std::string str()
Definition: WPSDebug.h:200
long m_defPos
the offset position of the definition of the attribute in the file
Definition: WPSTextParser.h:88
static void addPos(long)
Definition: WPSDebug.h:220
long end() const
returns the end offset
Definition: WPSEntry.h:76
structure which retrieves data information which correspond to a text position
Definition: WPSTextParser.h:67
WPSParser & m_mainParser
pointer to the main zone parser;
Definition: WPSTextParser.h:130
virtual ~WPSTextParser()
virtual destructor
Definition: WPSTextParser.cpp:48
long m_pos
the offset position of the text modified by this attribute
Definition: WPSTextParser.h:86
WPSEntry m_textPositions
an entry which corresponds to the complete text zone
Definition: WPSTextParser.h:132
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
DataFOD()
the constructor
Definition: WPSTextParser.h:77
basic class to store an entry in a file This contained :
Definition: WPSEntry.h:39
NameMultiMap & getNameEntryMap()
Definition: WPSParser.h:70
Definition: WPSParser.h:36
int version() const
returns the file version
Definition: WPSTextParser.cpp:51
int m_version
the file version
Definition: WPSTextParser.h:126
#define WPS_DEBUG_MSG(M)
Definition: libwps_internal.h:134
uint32_t readU32(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:76
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
@ ATTR_TEXT
Definition: WPSTextParser.h:74
std::vector< DataFOD > m_FODList
the list of a FOD
Definition: WPSTextParser.h:134
@ ATTR_UNKN
Definition: WPSTextParser.h:74
static void addNote(char const *)
Definition: WPSDebug.h:221
long begin() const
returns the begin offset
Definition: WPSEntry.h:71
std::string const & type() const
returns the type of the entry
Definition: WPSEntry.h:129
RVNGInputStreamPtr m_input
the main input
Definition: WPSTextParser.h:128
@ ATTR_PLC
Definition: WPSTextParser.h:74
long length() const
returns the length of the zone
Definition: WPSEntry.h:81
Definition: WPSDebug.h:192
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
uint8_t readU8(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:40
int version() const
Definition: WPSParser.h:56
int m_id
an identificator (which must be unique by category)
Definition: WPSTextParser.h:90
libwps::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: WPSTextParser.h:113
uint16_t readU16(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:64
bool hasType(std::string const &tp) const
returns true if the type entry == type
Definition: WPSEntry.h:134
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:87
std::multimap< std::string, WPSEntry > NameMultiMap
a map to retrieve a file entry by name
Definition: WPSParser.h:40
Type
different type which can be associated to a text position
Definition: WPSTextParser.h:74
int16_t read16(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:71
class used to defined the ancestor of parser which manages the text data
Definition: WPSTextParser.h:40
WPSTextParser(WPSParser &parser, RVNGInputStreamPtr &input)
constructor
Definition: WPSTextParser.cpp:38
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: WPSEntry.h:118
Definition: WPSDebug.h:208
@ ATTR_PARAG
Definition: WPSTextParser.h:74
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
WPSTextParser & operator=(WPSTextParser const &parser)=delete
private copy operator: forbidden
Generated on Wed Dec 11 2024 15:34:59 for libwps by
doxygen 1.8.20