44 #include <libwpd/libwpd.h>
54 namespace MRWParserInternal
69 std::string
name()
const;
74 if (ent.
m_N) o <<
"N=" << ent.
m_N <<
",";
105 long value(
int i)
const;
137 void parse(WPXDocumentInterface *documentInterface);
149 bool readZone(
int &actZone,
bool onlyTest=
false);
162 int getZoneId(uint32_t fileId,
bool &endNote);
170 void sendToken(
int zoneId,
long tokenId);
179 bool decodeZone(std::vector<MRWStruct> &dataList,
long numData=999999);
bool createZones()
finds the different objects zones
Definition: MRWParser.cxx:444
bool readNumbersString(int num, std::vector< long > &res)
try to read a number or a list of number entries
Definition: MRWParser.cxx:1346
int getZoneId(uint32_t fileId, bool &endNote)
return a zoneid corresponding to a fileId (or -1) and set the endnote flag
Definition: MRWParser.cxx:285
the main class to read a Mariner Write file
Definition: MRWParser.hxx:121
void parse(WPXDocumentInterface *documentInterface)
virtual function used to parse the input
Definition: MRWParser.cxx:322
MRWParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: MRWParser.cxx:226
int numValues() const
returns the number of values
Definition: MRWParser.hxx:97
bool readZoneDim(MRWEntry const &entry, int zoneId)
try to read the zone dimension ( normal and with margin )
Definition: MRWParser.cxx:824
bool isBasic() const
returns true if this corresponds to a simple container
Definition: MRWParser.hxx:101
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: MRWParser.cxx:1469
std::vector< long > m_data
the data block
Definition: MRWParser.hxx:113
void createDocument(WPXDocumentInterface *documentInterface)
creates the listener which will be associated to the document
Definition: MRWParser.cxx:358
MWAWSection getSection(int zoneId) const
returns the section information corresponding to a zone
Definition: MRWParser.cxx:259
bool readZonec(MRWEntry const &entry, int zoneId)
try to read a unknown zone of 9 int
Definition: MRWParser.cxx:1094
bool readEntryHeader(MRWEntry &entry)
try to read an entry header
Definition: MRWParser.cxx:1321
bool readZoneHeader(MRWEntry const &entry, int zoneId, bool onlyTest)
try to read the zone header
Definition: MRWParser.cxx:618
the main class to read the graphic part of a Mariner Write file
Definition: MRWGraph.hxx:68
friend std::ostream & operator<<(std::ostream &o, MRWEntry const &ent)
operator<<
Definition: MRWParser.hxx:71
friend std::ostream & operator<<(std::ostream &o, MRWStruct const &dt)
operator<<
Definition: MRWParser.cxx:1562
bool readZone13(MRWEntry const &entry, int zoneId)
try to read a unknown zone of 23 int
Definition: MRWParser.cxx:1141
virtual ~MRWParser()
destructor
Definition: MRWParser.cxx:232
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:354
void newPage(int number)
adds a new page
Definition: MRWParser.cxx:269
bool readCPRT(MRWEntry const &entry)
try to read a xml printinfo zone
Definition: MRWParser.cxx:1236
long value(int i) const
returns the ith value (or 0 if it does not exists )
Definition: MRWParser.cxx:1552
bool readDocInfo(MRWEntry const &entry, int zoneId)
try to read the doc info zone
Definition: MRWParser.cxx:904
bool m_pageMarginsSpanSet
a flag to know if page margins span are set
Definition: MRWParser.hxx:211
MRWEntry()
constructor
Definition: MRWParser.hxx:66
int m_type
the data type
Definition: MRWParser.hxx:111
std::string name() const
returns the entry name;
Definition: MRWParser.cxx:1499
std::string m_extra
an extra string
Definition: MWAWEntry.hxx:172
void sendToken(int zoneId, long tokenId)
ask the graph parser to send a token
Definition: MRWParser.cxx:311
bool readZone(int &actZone, bool onlyTest=false)
try to read a zone
Definition: MRWParser.cxx:456
a entry to store a zone structure
Definition: MRWParser.hxx:64
bool decodeZone(std::vector< MRWStruct > &dataList, long numData=999999)
try to decode a zone
Definition: MRWParser.cxx:1404
int m_N
the number of value
Definition: MRWParser.hxx:84
a class which stores section properties
Definition: MWAWSection.hxx:45
int m_fileType
the entry type
Definition: MRWParser.hxx:82
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:348
MWAWEntry m_pos
the file data position (for type=0 data )
Definition: MRWParser.hxx:109
int m_value
a unknown value
Definition: MRWParser.hxx:86
shared_ptr< MRWGraph > m_graphParser
the graph parser
Definition: MRWParser.hxx:214
Vec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: MRWParser.cxx:253
bool readSeparator(MRWEntry const &entry)
try to read the separator of differents part
Definition: MRWParser.cxx:589
shared_ptr< MRWParserInternal::State > m_state
the state
Definition: MRWParser.hxx:208
void sendText(int zoneId)
ask the text parser to send a zone
Definition: MRWParser.cxx:298
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:89
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
the main class to read the text part of Mariner Write file
Definition: MRWText.hxx:60
float getPatternPercent(int id) const
return the pattern percent which corresponds to an id (or -1)
Definition: MRWParser.cxx:306
MRWStruct()
constructor
Definition: MRWParser.hxx:92
void init()
inits all internal variables
Definition: MRWParser.cxx:236
shared_ptr< MRWText > m_textParser
the text parser
Definition: MRWParser.hxx:217
Internal: a struct used to read some field.
Definition: MRWParser.hxx:90
bool readZoneb(MRWEntry const &entry, int zoneId)
try to read a unknown zone : one by separator?, borderdim?
Definition: MRWParser.cxx:1054
Internal: the subdocument of a MWParser.
Definition: MRWParser.cxx:179
long m_filePos
the file position where the field description begin
Definition: MRWParser.hxx:107
bool readPrintInfo(MRWEntry const &entry)
try to read a printinfo zone
Definition: MRWParser.cxx:1262