37 #ifndef HAN_MAC_WRD_J_PARSER
38 # define HAN_MAC_WRD_J_PARSER
44 #include <librevenge/librevenge.h>
50 namespace HanMacWrdJParserInternal
64 for (
int i=0; i < 4; i++)
m_values[i] = 0;
70 if (h.
m_n) o <<
"N=" << h.
m_n <<
",";
71 if (h.
m_id) o <<
"zId=" << std::hex << h.
m_id << std::dec <<
",";
72 bool toPrint[4]= {
true,
true,
true,
true};
75 toPrint[0]=toPrint[1]=
false;
77 toPrint[0]=toPrint[2]=
false;
81 for (
int i=0; i < 4; i++)
82 if (toPrint[i] && h.
m_values[i]) o <<
"h" << i <<
"=" << h.
m_values[i] <<
",";
120 void parse(librevenge::RVNGTextInterface *documentInterface);
127 void createDocument(librevenge::RVNGTextInterface *documentInterface);
176 bool readZoneWithHeader(
MWAWEntry const &entry);
188 shared_ptr<HanMacWrdJParserInternal::State>
m_state;
shared_ptr< HanMacWrdJGraph > m_graphParser
the graph parser
Definition: HanMacWrdJParser.hxx:191
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:382
the main class to read a HanMac Word-J file
Definition: HanMacWrdJParser.hxx:104
Vec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: HanMacWrdJParser.cxx:206
HanMacWrdJParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: HanMacWrdJParser.cxx:157
void parse(librevenge::RVNGTextInterface *documentInterface)
virtual function used to parse the input
Definition: HanMacWrdJParser.cxx:252
bool readHeaderEnd()
try to read a unknown zone, just after the header (simillar to HanMacWrd Zoneb)
Definition: HanMacWrdJParser.cxx:880
the main class to read the graphic part of a HanMac Word-J file
Definition: HanMacWrdJGraph.hxx:78
bool createZones()
finds the different objects zones in a Hapanese File
Definition: HanMacWrdJParser.cxx:332
bool getColor(int colId, int patternId, MWAWColor &color) const
returns the color associated with a pattern
Definition: HanMacWrdJParser.cxx:198
the class to store a color
Definition: libmwaw_internal.hxx:166
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: HanMacWrdJParser.cxx:1031
bool decodeZone(MWAWEntry const &entry, librevenge::RVNGBinaryData &data)
try to decode a zone
Definition: HanMacWrdJParser.cxx:1164
bool sendZone(long zId)
send a zone
Definition: HanMacWrdJParser.cxx:191
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:388
Internal: the subdocument of a HanMacWrdJParser.
Definition: HanMacWrdJParser.cxx:92
bool readZoneA(MWAWEntry const &entry)
try to read the zone A ( a big zone containing 5 sub zone ? )
Definition: HanMacWrdJParser.cxx:700
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: HanMacWrdJParser.cxx:417
void init()
inits all internal variables
Definition: HanMacWrdJParser.cxx:167
bool readZoneB(MWAWEntry const &entry)
try to read the zone B
Definition: HanMacWrdJParser.cxx:800
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:260
shared_ptr< HanMacWrdJParserInternal::State > m_state
the state
Definition: HanMacWrdJParser.hxx:188
void newPage(int number)
adds a new page
Definition: HanMacWrdJParser.cxx:215
bool readClassicHeader(HanMacWrdJZoneHeader &header, long endPos=-1)
try to read a header of classic zone
Definition: HanMacWrdJParser.cxx:228
bool sendText(long id, long cPos, MWAWListenerPtr listener=MWAWListenerPtr())
send a text zone
Definition: HanMacWrdJParser.cxx:181
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:380
bool readZone(MWAWEntry &entry)
try to read a generic zone
Definition: HanMacWrdJParser.cxx:504
bool readZonesList()
try to read the zones list
Definition: HanMacWrdJParser.cxx:458
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
virtual ~HanMacWrdJParser()
destructor
Definition: HanMacWrdJParser.cxx:163
shared_ptr< HanMacWrdJText > m_textParser
the text parser
Definition: HanMacWrdJParser.hxx:194
bool canSendTextAsGraphic(long id, long cPos)
check if we can send a textzone as graphic
Definition: HanMacWrdJParser.cxx:186
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: HanMacWrdJParser.cxx:289
the main class to read the text part of HanMac Word-J file
Definition: HanMacWrdJText.hxx:62
bool readPrintInfo(MWAWEntry const &entry)
try to read a printinfo zone
Definition: HanMacWrdJParser.cxx:597