37 #ifndef HAN_MAC_WRD_J_PARSER 38 # define HAN_MAC_WRD_J_PARSER 44 #include <librevenge/librevenge.h> 62 explicit HanMacWrdJZoneHeader(
bool isMain) : m_length(0), m_n(0), m_fieldSize(0), m_id(0), m_isMain(isMain)
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] <<
",";
117 bool checkHeader(
MWAWHeader *header,
bool strict=
false);
120 void parse(librevenge::RVNGTextInterface *documentInterface);
127 void createDocument(librevenge::RVNGTextInterface *documentInterface);
136 void newPage(
int number);
143 bool canSendTextAsGraphic(
long id,
long cPos);
148 bool sendZone(
long zId);
161 bool readZonesList();
168 bool decodeZone(
MWAWEntry const &entry, librevenge::RVNGBinaryData &data);
171 bool readPrintInfo(
MWAWEntry const &entry);
173 bool readHeaderEnd();
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:498
the main class to read a HanMac Word-J file
Definition: HanMacWrdJParser.hxx:104
the main class to read the graphic part of a HanMac Word-J file
Definition: HanMacWrdJGraph.hxx:78
the class to store a color
Definition: libmwaw_internal.hxx:176
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:506
Internal: the subdocument of a HanMacWrdJParser.
Definition: HanMacWrdJParser.cxx:92
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
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:496
Internal: the structures of a HanMacWrdJParser.
Definition: HanMacWrdJParser.cxx:62
bool getColor(int color, MWAWColor &col)
try to convert a file data to a color
Definition: FullWrtStruct.cxx:45
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type)
the parser function
Definition: HanMacWrdJParser.cxx:136
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
shared_ptr< HanMacWrdJText > m_textParser
the text parser
Definition: HanMacWrdJParser.hxx:194
the main class to read the text part of HanMac Word-J file
Definition: HanMacWrdJText.hxx:62