37 #ifndef HAN_MAC_WRD_J_PARSER 38 # define HAN_MAC_WRD_J_PARSER 44 #include <librevenge/librevenge.h> 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] <<
",";
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
~HanMacWrdJParser() final
destructor
Definition: HanMacWrdJParser.cxx:172
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
bool readHeaderEnd()
try to read a unknown zone, just after the header (simillar to HanMacWrd Zoneb)
Definition: HanMacWrdJParser.cxx:885
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
bool createZones()
finds the different objects zones in a Hapanese File
Definition: HanMacWrdJParser.cxx:339
HanMacWrdJParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: HanMacWrdJParser.cxx:163
bool getColor(int colId, int patternId, MWAWColor &color) const
returns the color associated with a pattern
Definition: HanMacWrdJParser.cxx:207
std::shared_ptr< HanMacWrdJText > m_textParser
the text parser
Definition: HanMacWrdJParser.hxx:199
the class to store a color
Definition: libmwaw_internal.hxx:192
bool decodeZone(MWAWEntry const &entry, librevenge::RVNGBinaryData &data)
try to decode a zone
Definition: HanMacWrdJParser.cxx:1168
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
std::shared_ptr< HanMacWrdJGraph > m_graphParser
the graph parser
Definition: HanMacWrdJParser.hxx:196
bool sendZone(long zId)
send a zone
Definition: HanMacWrdJParser.cxx:200
Internal: the subdocument of a HanMacWrdJParser.
Definition: HanMacWrdJParser.cxx:99
bool readZoneA(MWAWEntry const &entry)
try to read the zone A ( a big zone containing 5 sub zone ? )
Definition: HanMacWrdJParser.cxx:705
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:421
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: HanMacWrdJParser.cxx:1036
void init()
inits all internal variables
Definition: HanMacWrdJParser.cxx:176
bool readZoneB(MWAWEntry const &entry)
try to read the zone B
Definition: HanMacWrdJParser.cxx:805
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:298
void newPage(int number)
adds a new page
Definition: HanMacWrdJParser.cxx:224
bool readClassicHeader(HanMacWrdJZoneHeader &header, long endPos=-1)
try to read a header of classic zone
Definition: HanMacWrdJParser.cxx:237
bool sendText(long id, long cPos, MWAWListenerPtr listener=MWAWListenerPtr())
send a text zone
Definition: HanMacWrdJParser.cxx:190
Internal: the structures of a HanMacWrdJParser.
Definition: HanMacWrdJParser.cxx:62
bool readZone(MWAWEntry &entry)
try to read a generic zone
Definition: HanMacWrdJParser.cxx:509
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
bool readZonesList()
try to read the zones list
Definition: HanMacWrdJParser.cxx:463
void parse(librevenge::RVNGTextInterface *documentInterface) final
virtual function used to parse the input
Definition: HanMacWrdJParser.cxx:261
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
bool canSendTextAsGraphic(long id, long cPos)
check if we can send a textzone as graphic
Definition: HanMacWrdJParser.cxx:195
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: HanMacWrdJParser.cxx:296
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:602
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: HanMacWrdJParser.cxx:215