35 #ifndef MAC_WRT_PRO_PARSER 36 # define MAC_WRT_PRO_PARSER 80 bool checkHeader(
MWAWHeader *header,
bool strict=
false);
83 void parse(librevenge::RVNGTextInterface *documentInterface);
90 void createDocument(librevenge::RVNGTextInterface *documentInterface);
96 bool getZoneData(librevenge::RVNGBinaryData &data,
int blockId);
99 bool getFreeZoneList(
int blockId, std::vector<int> &blockLists);
105 bool parseDataZone(
int blockId,
int type);
108 bool parseTextZone(shared_ptr<MacWrtProParserInternal::Zone> zone);
111 bool readTextEntries(shared_ptr<MacWrtProParserInternal::Zone> zone,
112 std::vector<MWAWEntry> &res,
int textLength);
114 bool readTextIds(shared_ptr<MacWrtProParserInternal::Zone> zone,
115 std::vector<MacWrtProParserInternal::TextZoneData> &res,
116 int textLength,
int type);
118 bool readTextTokens(shared_ptr<MacWrtProParserInternal::Zone> zone,
119 std::vector<MacWrtProParserInternal::Token> &res,
124 std::vector<int>
const &getBlocksCalledByToken()
const;
127 float pageHeight()
const;
129 int numColumns()
const;
132 void newPage(
int number,
bool softBreak=
false);
139 bool sendTextZone(
int blockId,
bool mainZone =
false);
142 int findNumHardBreaks(
int blockId);
157 bool readPrintInfo();
160 bool readDocHeader();
171 bool sendText(shared_ptr<MacWrtProParserInternal::TextZone> zone,
bool mainZone =
false);
174 int findNumHardBreaks(shared_ptr<MacWrtProParserInternal::TextZone> zone);
177 void checkUnparsed();
184 shared_ptr<MacWrtProParserInternal::State>
m_state;
the main class to read the structures part of MacWrite Pro file
Definition: MacWrtProStructures.hxx:152
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:47
shared_ptr< MacWrtProParserInternal::State > m_state
the state
Definition: MacWrtProParser.hxx:184
Internal: the subdocument of a MacWrtProParser.
Definition: MacWrtProParser.cxx:242
shared_ptr< MacWrtProStructures > m_structures
the structures parser
Definition: MacWrtProParser.hxx:187
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:510
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:290
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:500
an interface to transmit the info of MacWrtProStructures to a listener
Definition: MacWrtProStructures.hxx:70
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type)
the parser function
Definition: MacWrtProParser.cxx:278
the main class to read a MacWrite II and MacWrite Pro file
Definition: MacWrtProParser.hxx:67
Class to define the position of an object (textbox, picture, ..) in the document. ...
Definition: MWAWPosition.hxx:47
Internal: the structures of a MacWrtProParser.
Definition: MacWrtProParser.cxx:59
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:268