44 #include <libwpd/libwpd.h>
59 namespace MRWParserInternal
74 std::string
name()
const;
79 if (ent.
m_N) o <<
"N=" << ent.
m_N <<
",";
103 return int(
m_data.size());
110 long value(
int i)
const;
142 void parse(WPXDocumentInterface *documentInterface);
154 bool readZone(
int &actZone,
bool onlyTest=
false);
167 int getZoneId(uint32_t fileId,
bool &endNote);
186 bool decodeZone(std::vector<MRWStruct> &dataList,
long numData=999999);
bool createZones()
finds the different objects zones
Definition: MRWParser.cxx:460
bool readNumbersString(int num, std::vector< long > &res)
try to read a number or a list of number entries
Definition: MRWParser.cxx:1359
int getZoneId(uint32_t fileId, bool &endNote)
return a zoneid corresponding to a fileId (or -1) and set the endnote flag
Definition: MRWParser.cxx:301
the main class to read a Mariner Write file
Definition: MRWParser.hxx:126
void parse(WPXDocumentInterface *documentInterface)
virtual function used to parse the input
Definition: MRWParser.cxx:338
MRWParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: MRWParser.cxx:228
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
Definition: ACText.hxx:44
int numValues() const
returns the number of values
Definition: MRWParser.hxx:102
bool readZoneDim(MRWEntry const &entry, int zoneId)
try to read the zone dimension ( normal and with margin )
Definition: MRWParser.cxx:837
bool isBasic() const
returns true if this corresponds to a simple container
Definition: MRWParser.hxx:106
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: MRWParser.cxx:1482
std::vector< long > m_data
the data block
Definition: MRWParser.hxx:118
void createDocument(WPXDocumentInterface *documentInterface)
creates the listener which will be associated to the document
Definition: MRWParser.cxx:374
MWAWSection getSection(int zoneId) const
returns the section information corresponding to a zone
Definition: MRWParser.cxx:261
bool readZonec(MRWEntry const &entry, int zoneId)
try to read a unknown zone of 9 int
Definition: MRWParser.cxx:1107
bool readEntryHeader(MRWEntry &entry)
try to read an entry header
Definition: MRWParser.cxx:1334
bool readZoneHeader(MRWEntry const &entry, int zoneId, bool onlyTest)
try to read the zone header
Definition: MRWParser.cxx:634
the main class to read the graphic part of a Mariner Write file
Definition: MRWGraph.hxx:73
friend std::ostream & operator<<(std::ostream &o, MRWEntry const &ent)
operator<<
Definition: MRWParser.hxx:76
friend std::ostream & operator<<(std::ostream &o, MRWStruct const &dt)
operator<<
Definition: MRWParser.cxx:1575
bool readZone13(MRWEntry const &entry, int zoneId)
try to read a unknown zone of 23 int
Definition: MRWParser.cxx:1154
virtual ~MRWParser()
destructor
Definition: MRWParser.cxx:234
Class to store font.
Definition: MWAWFont.hxx:47
void newPage(int number)
adds a new page
Definition: MRWParser.cxx:271
bool readCPRT(MRWEntry const &entry)
try to read a xml printinfo zone
Definition: MRWParser.cxx:1249
long value(int i) const
returns the ith value (or 0 if it does not exists )
Definition: MRWParser.cxx:1565
bool readDocInfo(MRWEntry const &entry, int zoneId)
try to read the doc info zone
Definition: MRWParser.cxx:917
bool m_pageMarginsSpanSet
a flag to know if page margins span are set
Definition: MRWParser.hxx:218
MRWEntry()
constructor
Definition: MRWParser.hxx:71
int m_type
the data type
Definition: MRWParser.hxx:116
std::string name() const
returns the entry name;
Definition: MRWParser.cxx:1512
std::string m_extra
an extra string
Definition: MWAWEntry.hxx:172
bool readZone(int &actZone, bool onlyTest=false)
try to read a zone
Definition: MRWParser.cxx:472
a entry to store a zone structure
Definition: MRWParser.hxx:69
bool decodeZone(std::vector< MRWStruct > &dataList, long numData=999999)
try to decode a zone
Definition: MRWParser.cxx:1417
int m_N
the number of value
Definition: MRWParser.hxx:89
a class which stores section properties
Definition: MWAWSection.hxx:45
int m_fileType
the entry type
Definition: MRWParser.hxx:87
MWAWEntry m_pos
the file data position (for type=0 data )
Definition: MRWParser.hxx:114
int m_value
a unknown value
Definition: MRWParser.hxx:91
shared_ptr< MRWGraph > m_graphParser
the graph parser
Definition: MRWParser.hxx:221
void sendToken(int zoneId, long tokenId, MWAWFont const &actFont)
ask the graph parser to send a token
Definition: MRWParser.cxx:327
class to store the paragraph properties
Definition: MWAWParagraph.hxx:83
Vec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: MRWParser.cxx:255
bool readSeparator(MRWEntry const &entry)
try to read the separator of differents part
Definition: MRWParser.cxx:605
shared_ptr< MRWParserInternal::State > m_state
the state
Definition: MRWParser.hxx:215
void sendText(int zoneId)
ask the text parser to send a zone
Definition: MRWParser.cxx:314
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:98
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:66
float getPatternPercent(int id) const
return the pattern percent which corresponds to an id (or -1)
Definition: MRWParser.cxx:322
MRWStruct()
constructor
Definition: MRWParser.hxx:97
void init()
inits all internal variables
Definition: MRWParser.cxx:238
shared_ptr< MRWText > m_textParser
the text parser
Definition: MRWParser.hxx:224
Internal: a struct used to read some field.
Definition: MRWParser.hxx:95
bool isFilePos(long pos)
check if an entry is in file
Definition: MRWParser.cxx:284
bool readZoneb(MRWEntry const &entry, int zoneId)
try to read a unknown zone : one by separator?, borderdim?
Definition: MRWParser.cxx:1067
Internal: the subdocument of a MWParser.
Definition: MRWParser.cxx:181
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
Definition: MWAWParser.hxx:56
long m_filePos
the file position where the field description begin
Definition: MRWParser.hxx:112
bool readPrintInfo(MRWEntry const &entry)
try to read a printinfo zone
Definition: MRWParser.cxx:1275