44 #include <libwpd/libwpd.h>
55 namespace HMWJParserInternal
68 for (
int i=0; i < 4; i++)
m_values[i] = 0;
73 if (h.
m_n) o <<
"N=" << h.
m_n <<
",";
74 if (h.
m_id) o <<
"zId=" << std::hex << h.
m_id << std::dec <<
",";
75 bool toPrint[4]= {
true,
true,
true,
true};
78 toPrint[0]=toPrint[1]=
false;
80 toPrint[0]=toPrint[2]=
false;
84 for (
int i=0; i < 4; i++)
85 if (toPrint[i] && h.
m_values[i]) o <<
"h" << i <<
"=" << h.
m_values[i] <<
",";
123 void parse(WPXDocumentInterface *documentInterface);
177 bool readZoneWithHeader(
MWAWEntry const &entry);
192 shared_ptr<HMWJParserInternal::State>
m_state;
shared_ptr< HMWJText > m_textParser
the text parser
Definition: HMWJParser.hxx:198
virtual ~HMWJParser()
destructor
Definition: HMWJParser.cxx:160
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
Definition: ACText.hxx:44
bool createZones()
finds the different objects zones in a Hapanese File
Definition: HMWJParser.cxx:336
bool sendZone(long zId)
send a zone
Definition: HMWJParser.cxx:183
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: HMWJParser.cxx:1034
void init()
inits all internal variables
Definition: HMWJParser.cxx:164
bool decodeZone(MWAWEntry const &entry, WPXBinaryData &data)
try to decode a zone
Definition: HMWJParser.cxx:1167
HMWJParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: HMWJParser.cxx:154
void newPage(int number)
adds a new page
Definition: HMWJParser.cxx:207
bool readZone(MWAWEntry &entry)
try to read a generic zone
Definition: HMWJParser.cxx:507
the class to store a color
Definition: libmwaw_internal.hxx:161
bool readHeaderEnd()
try to read a unknown zone, just after the header (simillar to HMW Zoneb)
Definition: HMWJParser.cxx:883
shared_ptr< HMWJParserInternal::State > m_state
the state
Definition: HMWJParser.hxx:192
Class to store font.
Definition: MWAWFont.hxx:47
bool isFilePos(long pos)
check if an entry is in file
Definition: HMWJParser.cxx:220
Internal: the subdocument of a MWParser.
Definition: HMWJParser.cxx:93
Vec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: HMWJParser.cxx:198
bool sendText(long id, long cPos)
send a text zone
Definition: HMWJParser.cxx:178
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:419
shared_ptr< HMWJGraph > m_graphParser
the graph parser
Definition: HMWJParser.hxx:195
bool readZoneA(MWAWEntry const &entry)
try to read the zone A ( a big zone containing 5 sub zone ? )
Definition: HMWJParser.cxx:702
bool getColor(int colId, int patternId, MWAWColor &color) const
returns the color associated with a pattern
Definition: HMWJParser.cxx:190
the main class to read a HanMac Word-J file
Definition: HMWJParser.hxx:107
class to store the paragraph properties
Definition: MWAWParagraph.hxx:83
bool readClassicHeader(HMWJZoneHeader &header, long endPos=-1)
try to read a header of classic zone
Definition: HMWJParser.cxx:234
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:98
void createDocument(WPXDocumentInterface *documentInterface)
creates the listener which will be associated to the document
Definition: HMWJParser.cxx:293
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:258
the main class to read the graphic part of a HanMac Word-J file
Definition: HMWJGraph.hxx:83
the main class to read the text part of HanMac Word-J file
Definition: HMWJText.hxx:68
bool readZonesList()
try to read the zones list
Definition: HMWJParser.cxx:460
bool readZoneB(MWAWEntry const &entry)
try to read the zone B
Definition: HMWJParser.cxx:803
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
Definition: MWAWParser.hxx:56
bool readPrintInfo(MWAWEntry const &entry)
try to read a printinfo zone
Definition: HMWJParser.cxx:600