44 #include <libwpd/libwpd.h>
51 namespace HMWKParserInternal
62 HMWKZone(shared_ptr<libmwaw::DebugFile> asciiFile);
116 static std::string
name(
int type);
189 void parse(WPXDocumentInterface *documentInterface);
210 bool sendText(
long id,
long subId=0);
226 bool readZone(shared_ptr<HMWKZone> zone);
228 shared_ptr<HMWKZone>
decodeZone(shared_ptr<HMWKZone> zone);
234 bool readZone6(shared_ptr<HMWKZone> zone);
236 bool readZone8(shared_ptr<HMWKZone> zone);
238 bool readZonea(shared_ptr<HMWKZone> zone);
242 bool readZonec(shared_ptr<HMWKZone> zone);
249 shared_ptr<HMWKParserInternal::State>
m_state;
shared_ptr< HMWKText > m_textParser
the text parser
Definition: HMWKParser.hxx:255
the main class to read a HanMac Word-K file
Definition: HMWKParser.hxx:173
bool readZonec(shared_ptr< HMWKZone > zone)
try to read a unknown zone of type c
Definition: HMWKParser.cxx:871
bool getColor(int colId, int patternId, MWAWColor &color) const
returns the color associated with a pattern
Definition: HMWKParser.cxx:175
std::string m_extra
some extra data
Definition: HMWKParser.hxx:139
long m_subId
the zone subId
Definition: HMWKParser.hxx:133
MWAWInputStreamPtr m_input
the main input
Definition: HMWKParser.hxx:136
the main class to read the text part of HanMac Word file
Definition: HMWKText.hxx:61
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:67
libmwaw::DebugFile * m_asciiFile
the debug file
Definition: HMWKParser.hxx:155
bool readZone8(shared_ptr< HMWKZone > zone)
try to read a unknown zone of type 8
Definition: HMWKParser.cxx:736
long m_filePos
the begin of the entry
Definition: HMWKParser.hxx:146
std::string name() const
returns the zone name
Definition: HMWKParser.hxx:112
bool m_parsed
true if the zone is sended
Definition: HMWKParser.hxx:142
void newPage(int number)
adds a new page
Definition: HMWKParser.cxx:192
WPXBinaryData & getBinaryData()
returns a pointer to the binary data
Definition: HMWKParser.hxx:108
~HMWKZone()
destructor
Definition: HMWKParser.cxx:1174
bool readZonea(shared_ptr< HMWKZone > zone)
try to read a unknown zone of type a
Definition: HMWKParser.cxx:769
the main class to read the graphic part of a HanMac Word file
Definition: HMWKGraph.hxx:77
the class to store a color
Definition: libmwaw_internal.hxx:161
Small class used to store the decoded zone of HMWKParser.
Definition: HMWKParser.hxx:58
bool sendZone(long zId)
send a zone
Definition: HMWKParser.cxx:168
Internal: the subdocument of a MWParser.
Definition: HMWKParser.cxx:84
void init()
inits all internal variables
Definition: HMWKParser.cxx:146
bool readPrintInfo(HMWKZone &zone)
try to read a printinfo zone (type 7)
Definition: HMWKParser.cxx:513
void parse(WPXDocumentInterface *documentInterface)
virtual function used to parse the input
Definition: HMWKParser.cxx:208
bool valid() const
returns true if the zone data exists
Definition: HMWKParser.hxx:80
bool readZone(shared_ptr< HMWKZone > zone)
try to read a generic zone
Definition: HMWKParser.cxx:414
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:340
virtual ~HMWKParser()
destructor
Definition: HMWKParser.cxx:142
friend std::ostream & operator<<(std::ostream &o, HMWKZone const &zone)
operator <<
Definition: HMWKParser.cxx:1180
void setFilePositions(long begPos, long endPos)
sets the begin/end file pos
Definition: HMWKParser.hxx:103
int m_type
the type : 1(text), ....
Definition: HMWKParser.hxx:127
HMWKZone(MWAWInputStreamPtr input, libmwaw::DebugFile &asciiFile)
constructor given an input and an asciiFile
Definition: HMWKParser.cxx:1164
shared_ptr< HMWKGraph > m_graphParser
the graph parser
Definition: HMWKParser.hxx:252
void setFileBeginPos(long begPos)
sets the begin file pos
Definition: HMWKParser.hxx:95
libmwaw::DebugFile & ascii()
returns the debug file
Definition: HMWKParser.hxx:122
long m_endFilePos
the end of the entry
Definition: HMWKParser.hxx:149
long fileBeginPos() const
returns the file begin position
Definition: HMWKParser.hxx:87
long fileEndPos() const
returns the file begin position
Definition: HMWKParser.hxx:91
long m_id
the zone id
Definition: HMWKParser.hxx:130
void createDocument(WPXDocumentInterface *documentInterface)
creates the listener which will be associated to the document
Definition: HMWKParser.cxx:243
void setFileLength(long len)
sets the file length
Definition: HMWKParser.hxx:99
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:336
bool readZoneb(HMWKZone &zone)
try to read a unknown zone of type b
Definition: HMWKParser.cxx:813
bool createZones()
finds the different objects zones
Definition: HMWKParser.cxx:290
bool readZone6(shared_ptr< HMWKZone > zone)
try to read a unknown zone of type 6
Definition: HMWKParser.cxx:692
WPXBinaryData m_data
the storage (if needed)
Definition: HMWKParser.hxx:152
HMWKParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: HMWKParser.cxx:136
long length() const
returns the zone size
Definition: HMWKParser.hxx:75
long end() const
returns the last position in the input
Definition: HMWKParser.hxx:71
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: HMWKParser.cxx:1061
shared_ptr< HMWKZone > decodeZone(shared_ptr< HMWKZone > zone)
try to decode a zone
Definition: HMWKParser.cxx:954
HMWKZone & operator=(HMWKZone const &orig)
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:87
shared_ptr< libmwaw::DebugFile > m_asciiFilePtr
the file pointer
Definition: HMWKParser.hxx:158
bool readFramesUnkn(shared_ptr< HMWKZone > zone)
try to read a zone storing a list of ?, frameType
Definition: HMWKParser.cxx:623
Vec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: HMWKParser.cxx:183
shared_ptr< HMWKParserInternal::State > m_state
the state
Definition: HMWKParser.hxx:249
bool sendText(long id, long subId=0)
send a text zone (not implemented)
Definition: HMWKParser.cxx:163
bool readZonesList()
try to read the zones list
Definition: HMWKParser.cxx:321
long begin() const
returns the first position in the input
Definition: HMWKParser.hxx:67