44 #include <libwpd/libwpd.h>
50 namespace HMWJParserInternal
63 for (
int i=0; i < 4; i++)
m_values[i] = 0;
68 if (h.
m_n) o <<
"N=" << h.
m_n <<
",";
69 if (h.
m_id) o <<
"zId=" << std::hex << h.
m_id << std::dec <<
",";
70 bool toPrint[4]= {
true,
true,
true,
true};
73 toPrint[0]=toPrint[1]=
false;
75 toPrint[0]=toPrint[2]=
false;
79 for (
int i=0; i < 4; i++)
80 if (toPrint[i] && h.
m_values[i]) o <<
"h" << i <<
"=" << h.
m_values[i] <<
",";
118 void parse(WPXDocumentInterface *documentInterface);
139 bool sendText(
long id,
long cPos,
bool asGraphic=
false);
174 bool readZoneWithHeader(
MWAWEntry const &entry);
186 shared_ptr<HMWJParserInternal::State>
m_state;
shared_ptr< HMWJText > m_textParser
the text parser
Definition: HMWJParser.hxx:192
virtual ~HMWJParser()
destructor
Definition: HMWJParser.cxx:158
bool createZones()
finds the different objects zones in a Hapanese File
Definition: HMWJParser.cxx:326
bool sendZone(long zId)
send a zone
Definition: HMWJParser.cxx:186
bool canSendTextAsGraphic(long id, long cPos)
check if we can send a textzone as graphic
Definition: HMWJParser.cxx:181
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: HMWJParser.cxx:1024
void init()
inits all internal variables
Definition: HMWJParser.cxx:162
bool decodeZone(MWAWEntry const &entry, WPXBinaryData &data)
try to decode a zone
Definition: HMWJParser.cxx:1157
HMWJParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: HMWJParser.cxx:152
void newPage(int number)
adds a new page
Definition: HMWJParser.cxx:210
bool readZone(MWAWEntry &entry)
try to read a generic zone
Definition: HMWJParser.cxx:498
the class to store a color
Definition: libmwaw_internal.hxx:166
bool readHeaderEnd()
try to read a unknown zone, just after the header (simillar to HMW Zoneb)
Definition: HMWJParser.cxx:873
shared_ptr< HMWJParserInternal::State > m_state
the state
Definition: HMWJParser.hxx:186
bool sendText(long id, long cPos, bool asGraphic=false)
send a text zone
Definition: HMWJParser.cxx:176
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:354
Internal: the subdocument of a MWParser.
Definition: HMWJParser.cxx:91
Vec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: HMWJParser.cxx:201
bool checkEntry(MWAWEntry &entry)
look in entry.begin() to see if a entry exists at this position, if so fills entry.end(), entry.id(), ...
Definition: HMWJParser.cxx:411
shared_ptr< HMWJGraph > m_graphParser
the graph parser
Definition: HMWJParser.hxx:189
bool readZoneA(MWAWEntry const &entry)
try to read the zone A ( a big zone containing 5 sub zone ? )
Definition: HMWJParser.cxx:693
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:348
bool getColor(int colId, int patternId, MWAWColor &color) const
returns the color associated with a pattern
Definition: HMWJParser.cxx:193
the main class to read a HanMac Word-J file
Definition: HMWJParser.hxx:102
bool readClassicHeader(HMWJZoneHeader &header, long endPos=-1)
try to read a header of classic zone
Definition: HMWJParser.cxx:223
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:89
void createDocument(WPXDocumentInterface *documentInterface)
creates the listener which will be associated to the document
Definition: HMWJParser.cxx:283
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
void parse(WPXDocumentInterface *documentInterface)
virtual function used to parse the input
Definition: HMWJParser.cxx:247
the main class to read the graphic part of a HanMac Word-J file
Definition: HMWJGraph.hxx:78
the main class to read the text part of HanMac Word-J file
Definition: HMWJText.hxx:62
bool readZonesList()
try to read the zones list
Definition: HMWJParser.cxx:452
bool readZoneB(MWAWEntry const &entry)
try to read the zone B
Definition: HMWJParser.cxx:793
bool readPrintInfo(MWAWEntry const &entry)
try to read a printinfo zone
Definition: HMWJParser.cxx:591