35 #ifndef MAC_WRT_PRO_PARSER 36 # define MAC_WRT_PRO_PARSER 80 bool checkHeader(
MWAWHeader *header,
bool strict=false) final;
90 void createDocument(
librevenge::RVNGTextInterface *documentInterface);
96 bool getZoneData(
librevenge::RVNGBinaryData &data,
int blockId);
99 bool getFreeZoneList(std::vector<
int> &blockLists);
105 bool parseDataZone(
int blockId,
int type);
112 std::vector<
MWAWEntry> &res,
int textLength);
116 int textLength,
int type);
124 std::vector<
int> const &getBlocksCalledByToken() const;
127 float pageHeight() const;
129 int numColumns(
double &sep) const;
132 void newPage(
int number,
bool softBreak=false);
134 bool hasTitlePage() const;
143 bool sendTextZone(
int blockId,
bool mainZone = false);
146 int findNumHardBreaks(
int blockId);
161 bool readPrintInfo();
164 bool readDocHeader();
175 bool sendText(std::shared_ptr<MacWrtProParserInternal::TextZone> zone,
bool mainZone =
false);
178 int findNumHardBreaks(std::shared_ptr<MacWrtProParserInternal::TextZone> zone);
181 void checkUnparsed();
188 std::shared_ptr<MacWrtProParserInternal::State>
m_state;
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: MacWrtProParser.cxx:290
the main class to read the structures part of MacWrite Pro file
Definition: MacWrtProStructures.hxx:154
Definition: MWAWDocument.hxx:56
std::shared_ptr< MacWrtProStructures > m_structures
the structures parser
Definition: MacWrtProParser.hxx:191
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:47
Internal: the subdocument of a MacWrtProParser.
Definition: MacWrtProParser.cxx:267
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:559
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:41
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:298
std::shared_ptr< MacWrtProParserInternal::State > m_state
the state
Definition: MacWrtProParser.hxx:188
an interface to transmit the info of MacWrtProStructures to a listener
Definition: MacWrtProStructures.hxx:70
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:549
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
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
Internal: the structures of a MacWrtProParser.
Definition: MacWrtProParser.cxx:61
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:308