37 #ifndef MARINER_WRT_PARSER 38 # define MARINER_WRT_PARSER 44 #include <librevenge/librevenge.h> 74 std::string name()
const;
80 if (ent.
m_N) o <<
"N=" << ent.
m_N <<
",";
110 return int(m_data.size());
115 return (m_type==1 || m_type==2) && m_data.size()<=1;
118 long value(
int i)
const;
147 bool checkHeader(
MWAWHeader *header,
bool strict=false) final;
157 void createDocument(
librevenge::RVNGTextInterface *documentInterface);
162 bool readZone(
int &actZone,
bool onlyTest=false);
170 void newPage(
int number);
175 int getZoneId(uint32_t fileId,
bool &endNote);
177 void sendText(
int zoneId);
181 float getPatternPercent(
int id) const;
183 void sendToken(
int zoneId,
long tokenId);
192 bool decodeZone(std::vector<
MarinerWrtStruct> &dataList,
long numData=999999);
199 bool readZoneHeader(
MarinerWrtEntry const &entry,
int zoneId,
bool onlyTest);
214 bool readNumbersString(
int num, std::vector<
long> &res);
224 bool m_pageMarginsSpanSet;
Definition: MWAWDocument.hxx:56
the main class to read a Mariner Write file
Definition: MarinerWrtParser.hxx:134
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
the main class to read the graphic part of a Mariner Write file
Definition: MarinerWrtGraph.hxx:68
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:559
Internal: a struct used to read some field.
Definition: MarinerWrtParser.hxx:96
int m_fileType
the entry type
Definition: MarinerWrtParser.hxx:88
static Section getSection(const State &state, const long id)
Definition: HanMacWrdKText.cxx:270
int m_type
the data type
Definition: MarinerWrtParser.hxx:124
std::string m_extra
an extra string
Definition: MWAWEntry.hxx:201
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:298
int numValues() const
returns the number of values
Definition: MarinerWrtParser.hxx:108
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: MarinerWrtParser.cxx:228
int m_N
the number of value
Definition: MarinerWrtParser.hxx:90
MWAWEntry m_pos
the file data position (for type=0 data )
Definition: MarinerWrtParser.hxx:122
long m_filePos
the file position where the field description begin
Definition: MarinerWrtParser.hxx:120
a class which stores section properties
Definition: MWAWSection.hxx:45
int m_value
a unknown value
Definition: MarinerWrtParser.hxx:92
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:549
MarinerWrtStruct()
constructor
Definition: MarinerWrtParser.hxx:98
std::vector< long > m_data
the data block
Definition: MarinerWrtParser.hxx:126
std::ostream & operator<<(std::ostream &o, Zone const &zone)
Definition: MarinerWrtParser.cxx:116
bool isBasic() const
returns true if this corresponds to a simple container
Definition: MarinerWrtParser.hxx:113
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:198
Internal: the structures of a MarinerWrtParser.
Definition: MarinerWrtParser.cxx:65