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 the graphic part of a HanMac Word-J file
Definition HanMacWrdJGraph.hxx:79
Internal: the subdocument of a HanMacWrdJParser.
Definition HanMacWrdJParser.cxx:100
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition HanMacWrdJParser.cxx:215
bool sendText(long id, long cPos, MWAWListenerPtr listener=MWAWListenerPtr())
send a text zone
Definition HanMacWrdJParser.cxx:190
friend class HanMacWrdJText
Definition HanMacWrdJParser.hxx:112
std::shared_ptr< HanMacWrdJText > m_textParser
the text parser
Definition HanMacWrdJParser.hxx:199
bool sendZone(long zId)
send a zone
Definition HanMacWrdJParser.cxx:200
bool readZoneA(MWAWEntry const &entry)
try to read the zone A ( a big zone containing 5 sub zone ?
Definition HanMacWrdJParser.cxx:705
void init()
inits all internal variables
Definition HanMacWrdJParser.cxx:176
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition HanMacWrdJParser.cxx:296
bool decodeZone(MWAWEntry const &entry, librevenge::RVNGBinaryData &data)
try to decode a zone
Definition HanMacWrdJParser.cxx:1168
HanMacWrdJParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition HanMacWrdJParser.cxx:163
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition HanMacWrdJParser.cxx:1036
std::shared_ptr< HanMacWrdJParserInternal::State > m_state
the state
Definition HanMacWrdJParser.hxx:193
std::shared_ptr< HanMacWrdJGraph > m_graphParser
the graph parser
Definition HanMacWrdJParser.hxx:196
bool readClassicHeader(HanMacWrdJZoneHeader &header, long endPos=-1)
try to read a header of classic zone
Definition HanMacWrdJParser.cxx:237
bool readZonesList()
try to read the zones list
Definition HanMacWrdJParser.cxx:463
bool createZones()
finds the different objects zones in a Hapanese File
Definition HanMacWrdJParser.cxx:339
bool checkEntry(MWAWEntry &entry)
look in entry.begin() to see if a entry exists at this position, if so fills entry....
Definition HanMacWrdJParser.cxx:421
void parse(librevenge::RVNGTextInterface *documentInterface) final
virtual function used to parse the input
Definition HanMacWrdJParser.cxx:261
void newPage(int number)
adds a new page
Definition HanMacWrdJParser.cxx:224
bool readZoneB(MWAWEntry const &entry)
try to read the zone B
Definition HanMacWrdJParser.cxx:805
~HanMacWrdJParser() final
destructor
Definition HanMacWrdJParser.cxx:172
bool getColor(int colId, int patternId, MWAWColor &color) const
returns the color associated with a pattern
Definition HanMacWrdJParser.cxx:207
bool readHeaderEnd()
try to read a unknown zone, just after the header (simillar to HanMacWrd Zoneb)
Definition HanMacWrdJParser.cxx:885
bool readZone(MWAWEntry &entry)
try to read a generic zone
Definition HanMacWrdJParser.cxx:509
bool canSendTextAsGraphic(long id, long cPos)
check if we can send a textzone as graphic
Definition HanMacWrdJParser.cxx:195
friend class HanMacWrdJGraph
Definition HanMacWrdJParser.hxx:111
bool readPrintInfo(MWAWEntry const &entry)
try to read a printinfo zone
Definition HanMacWrdJParser.cxx:602
the main class to read the text part of HanMac Word-J file
Definition HanMacWrdJText.hxx:63
basic class to store an entry in a file This contained :
Definition MWAWEntry.hxx:47
MWAWTextParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor (protected)
Definition MWAWParser.hxx:307
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition libmwaw_internal.hxx:561
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition libmwaw_internal.hxx:553
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition libmwaw_internal.hxx:842
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition libmwaw_internal.hxx:551
Internal: the structures of a HanMacWrdJParser.
Definition HanMacWrdJParser.cxx:63
Definition MWAWDocument.hxx:57
Internal: the state of a HanMacWrdJParser.
Definition HanMacWrdJParser.cxx:66
the class to store a color
Definition libmwaw_internal.hxx:192