37 #ifndef MARINER_WRT_PARSER 38 # define MARINER_WRT_PARSER 44 #include <librevenge/librevenge.h> 70 std::string name()
const;
76 if (ent.
m_N) o <<
"N=" << ent.
m_N <<
",";
102 return int(m_data.size());
107 return (m_type==1 || m_type==2) && m_data.size()<=1;
110 long value(
int i)
const;
139 bool checkHeader(
MWAWHeader *header,
bool strict=
false);
142 void parse(librevenge::RVNGTextInterface *documentInterface);
149 void createDocument(librevenge::RVNGTextInterface *documentInterface);
154 bool readZone(
int &actZone,
bool onlyTest=
false);
162 void newPage(
int number);
167 int getZoneId(uint32_t fileId,
bool &endNote);
169 void sendText(
int zoneId);
173 float getPatternPercent(
int id)
const;
175 void sendToken(
int zoneId,
long tokenId);
184 bool decodeZone(std::vector<MarinerWrtStruct> &dataList,
long numData=999999);
191 bool readZoneHeader(
MarinerWrtEntry const &entry,
int zoneId,
bool onlyTest);
206 bool readNumbersString(
int num, std::vector<long> &res);
213 shared_ptr<MarinerWrtParserInternal::State>
m_state;
shared_ptr< MarinerWrtText > m_textParser
the text parser
Definition: MarinerWrtParser.hxx:222
the main class to read a Mariner Write file
Definition: MarinerWrtParser.hxx:126
shared_ptr< MarinerWrtParserInternal::State > m_state
the state
Definition: MarinerWrtParser.hxx:213
the main class to read the text part of Mariner Write file
Definition: MarinerWrtText.hxx:60
a entry to store a zone structure
Definition: MarinerWrtParser.hxx:62
bool m_pageMarginsSpanSet
a flag to know if page margins span are set
Definition: MarinerWrtParser.hxx:216
the main class to read the graphic part of a Mariner Write file
Definition: MarinerWrtGraph.hxx:68
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type)
the parser function
Definition: MarinerWrtParser.cxx:217
Internal: a struct used to read some field.
Definition: MarinerWrtParser.hxx:92
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:513
int m_fileType
the entry type
Definition: MarinerWrtParser.hxx:84
bool isBasic() const
returns true if this corresponds to a simple container
Definition: MarinerWrtParser.hxx:105
int m_type
the data type
Definition: MarinerWrtParser.hxx:116
shared_ptr< MarinerWrtGraph > m_graphParser
the graph parser
Definition: MarinerWrtParser.hxx:219
std::string m_extra
an extra string
Definition: MWAWEntry.hxx:191
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:295
int m_N
the number of value
Definition: MarinerWrtParser.hxx:86
MWAWEntry m_pos
the file data position (for type=0 data )
Definition: MarinerWrtParser.hxx:114
long m_filePos
the file position where the field description begin
Definition: MarinerWrtParser.hxx:112
a class which stores section properties
Definition: MWAWSection.hxx:45
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
int m_value
a unknown value
Definition: MarinerWrtParser.hxx:88
MarinerWrtStruct()
constructor
Definition: MarinerWrtParser.hxx:94
std::vector< long > m_data
the data block
Definition: MarinerWrtParser.hxx:118
std::ostream & operator<<(std::ostream &o, Zone const &zone)
Definition: MarinerWrtParser.cxx:105
int numValues() const
returns the number of values
Definition: MarinerWrtParser.hxx:100
MarinerWrtEntry()
constructor
Definition: MarinerWrtParser.hxx:64
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
Internal: the subdocument of a MarinerWrtParser.
Definition: MarinerWrtParser.cxx:184
Internal: the structures of a MarinerWrtParser.
Definition: MarinerWrtParser.cxx:65