Go to the documentation of this file.
35 # define MS_WKS_PARSER
71 void parse(librevenge::RVNGTextInterface *documentInterface)
final;
78 void createDocument(librevenge::RVNGTextInterface *documentInterface);
84 void newPage(
int number,
bool softBreak=
false);
98 std::shared_ptr<MsWksParserInternal::State>
m_state;
void parse(librevenge::RVNGTextInterface *documentInterface) final
virtual function used to parse the input
Definition: MsWksParser.cxx:137
void flushExtra()
tries to parse the ole zones which have not yet been parsed
Definition: MsWksParser.cxx:172
std::shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:567
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:299
@ MWAW_T_MICROSOFTWORKS
Microsoft Works Mac: export database(as spreadsheet), graphic, spreadsheet and text files.
Definition: MWAWDocument.hxx:133
a zone of a MsWksDocument ( main, header, footer )
Definition: MsWksDocument.hxx:80
the main class to read/store generic data of a MsWorks document v1-v3
Definition: MsWksDocument.hxx:69
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
void(MWAWParser::* NewPage)(int page, bool softBreak)
callback used to send a page break
Definition: MsWksDocument.hxx:268
This class contents the main functions needed to create a Word processing Document.
Definition: MWAWTextListener.hxx:65
State()
constructor
Definition: MsWksParser.cxx:64
int version() const
returns the works version
Definition: MWAWParser.hxx:108
the main class to read a Microsoft Works file: v1-v4
Definition: MsWksParser.hxx:60
the main class to read the graphic of a Microsoft Works file
Definition: MsWksGraph.hxx:74
MWAWTextListenerPtr & getTextListener()
returns the text listener
Definition: MWAWParser.hxx:145
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
@ SoftPageBreak
Definition: MWAWListener.hxx:58
void init()
inits all internal variables
Definition: MsWksParser.cxx:103
void setTextListener(MWAWTextListenerPtr &listener)
sets the text listener
Definition: MWAWParser.cxx:158
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
std::vector< MWAWEntry > m_listZones
the list of different Zones
Definition: MsWksParser.hxx:101
@ MWAW_K_TEXT
word processing file
Definition: MWAWDocument.hxx:82
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:206
std::shared_ptr< MsWksDocument > m_document
the actual document
Definition: MsWksParser.hxx:104
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
@ PageBreak
Definition: MWAWListener.hxx:58
The class which parses the main zones of a mac MS Works document v4.
Definition: MsWks4Zone.hxx:74
Definition: libmwaw_internal.hxx:144
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
void newPage(int number, bool softBreak=false)
adds a new page
Definition: MsWksParser.cxx:115
Internal: the state of a MsWksParser.
Definition: MsWksParser.cxx:62
std::shared_ptr< MsWks4Zone > m_mn0Parser
parser of main text ole (v4 document)
Definition: MsWksParser.cxx:71
int m_numPages
the number of page of the final document
Definition: MsWksParser.cxx:72
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
~MsWksParser() final
destructor
Definition: MsWksParser.cxx:99
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
Defines MWAWTextListener: the libmwaw word processor listener.
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
@ Z_MAIN
Definition: MsWksDocument.hxx:78
std::shared_ptr< MsWksParserInternal::State > m_state
the state
Definition: MsWksParser.hxx:98
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: MsWksParser.cxx:223
bool createZones()
finds the different objects zones
Definition: MsWksParser.cxx:258
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
Internal: the structures of a MsWksParser.
Definition: MsWksParser.cxx:59
MsWksParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: MsWksParser.cxx:80
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:213
Class to store font.
Definition: MWAWFont.hxx:44
int m_actPage
the actual page
Definition: MsWksParser.cxx:72
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: MsWksParser.cxx:337
void resetTextListener()
resets the listener
Definition: MWAWParser.cxx:163
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20