37 #ifndef HAN_MAC_WRD_J_PARSER
38 # define HAN_MAC_WRD_J_PARSER
44 #include <librevenge/librevenge.h>
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:441
the main class to read a HanMac Word-J file
Definition: HanMacWrdJParser.hxx:104
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: HanMacWrdJParser.cxx:210
HanMacWrdJParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: HanMacWrdJParser.cxx:161
void parse(librevenge::RVNGTextInterface *documentInterface)
virtual function used to parse the input
Definition: HanMacWrdJParser.cxx:256
bool readHeaderEnd()
try to read a unknown zone, just after the header (simillar to HanMacWrd Zoneb)
Definition: HanMacWrdJParser.cxx:882
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:334
bool getColor(int colId, int patternId, MWAWColor &color) const
returns the color associated with a pattern
Definition: HanMacWrdJParser.cxx:202
the class to store a color
Definition: libmwaw_internal.hxx:177
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: HanMacWrdJParser.cxx:1033
bool decodeZone(MWAWEntry const &entry, librevenge::RVNGBinaryData &data)
try to decode a zone
Definition: HanMacWrdJParser.cxx:1166
bool sendZone(long zId)
send a zone
Definition: HanMacWrdJParser.cxx:195
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:449
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:702
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:419
void init()
inits all internal variables
Definition: HanMacWrdJParser.cxx:171
bool readZoneB(MWAWEntry const &entry)
try to read the zone B
Definition: HanMacWrdJParser.cxx:802
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:284
shared_ptr< HanMacWrdJParserInternal::State > m_state
the state
Definition: HanMacWrdJParser.hxx:188
void newPage(int number)
adds a new page
Definition: HanMacWrdJParser.cxx:219
bool readClassicHeader(HanMacWrdJZoneHeader &header, long endPos=-1)
try to read a header of classic zone
Definition: HanMacWrdJParser.cxx:232
bool sendText(long id, long cPos, MWAWListenerPtr listener=MWAWListenerPtr())
send a text zone
Definition: HanMacWrdJParser.cxx:185
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:439
Internal: the structures of a HanMacWrdJParser.
Definition: HanMacWrdJParser.cxx:62
bool readZone(MWAWEntry &entry)
try to read a generic zone
Definition: HanMacWrdJParser.cxx:506
bool readZonesList()
try to read the zones list
Definition: HanMacWrdJParser.cxx:460
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
virtual ~HanMacWrdJParser()
destructor
Definition: HanMacWrdJParser.cxx:167
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:190
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: HanMacWrdJParser.cxx:291
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:599