37 #ifndef HAN_MAC_WRD_J_PARSER 38 # define HAN_MAC_WRD_J_PARSER 44 #include <librevenge/librevenge.h> 69 for (
auto &val : m_values) val = 0;
75 if (h.
m_n) o <<
"N=" << h.
m_n <<
",";
76 if (h.
m_id) o <<
"zId=" << std::hex << h.
m_id << std::dec <<
",";
77 bool toPrint[4]= {
true,
true,
true,
true};
80 toPrint[0]=toPrint[1]=
false;
82 toPrint[0]=toPrint[2]=
false;
86 for (
int i=0; i < 4; i++)
87 if (toPrint[i] && h.
m_values[i]) o <<
"h" << i <<
"=" << h.
m_values[i] <<
",";
122 bool checkHeader(
MWAWHeader *header,
bool strict=false) final;
132 void createDocument(
librevenge::RVNGTextInterface *documentInterface);
141 void newPage(
int number);
148 bool canSendTextAsGraphic(
long id,
long cPos);
153 bool sendZone(
long zId);
166 bool readZonesList();
176 bool readPrintInfo(
MWAWEntry const &entry);
178 bool readHeaderEnd();
181 bool readZoneWithHeader(
MWAWEntry const &entry);
193 std::shared_ptr<HanMacWrdJParserInternal::State>
m_state;
the main class to read a HanMac Word-J file
Definition: HanMacWrdJParser.hxx:109
Definition: MWAWDocument.hxx:56
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:551
std::shared_ptr< HanMacWrdJParserInternal::State > m_state
the state
Definition: HanMacWrdJParser.hxx:193
the main class to read the graphic part of a HanMac Word-J file
Definition: HanMacWrdJGraph.hxx:78
std::shared_ptr< HanMacWrdJText > m_textParser
the text parser
Definition: HanMacWrdJParser.hxx:199
the class to store a color
Definition: libmwaw_internal.hxx:192
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:559
std::shared_ptr< HanMacWrdJGraph > m_graphParser
the graph parser
Definition: HanMacWrdJParser.hxx:196
Internal: the subdocument of a HanMacWrdJParser.
Definition: HanMacWrdJParser.cxx:99
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:298
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: HanMacWrdJParser.cxx:138
Internal: the structures of a HanMacWrdJParser.
Definition: HanMacWrdJParser.cxx:62
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:549
bool getColor(int color, MWAWColor &col)
try to convert a file data to a color
Definition: FullWrtStruct.cxx:45
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
the main class to read the text part of HanMac Word-J file
Definition: HanMacWrdJText.hxx:62