Go to the documentation of this file.
38 #ifndef CLARIS_WKS_PARSER
39 # define CLARIS_WKS_PARSER
45 #include <librevenge/librevenge.h>
92 void newPage(
int number,
bool softBreak);
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
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: ClarisWksParser.cxx:96
int m_numPages
the number of page of the final document
Definition: ClarisWksParser.cxx:79
std::shared_ptr< ClarisWksDocument > m_document
the main document manager
Definition: ClarisWksParser.hxx:110
a note
Definition: libmwaw_internal.hxx:445
int m_actPage
the actual page
Definition: ClarisWksParser.cxx:79
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: ClarisWksParser.cxx:257
void newPage(int number, bool softBreak)
adds a new page
Definition: ClarisWksParser.cxx:169
This class contents the main functions needed to create a Word processing Document.
Definition: MWAWTextListener.hxx:65
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
SubDocument(ClarisWksParser &pars, MWAWInputStreamPtr const &input, int zoneId, MWAWPosition const &pos=MWAWPosition())
Definition: ClarisWksParser.cxx:87
std::shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:565
friend class ClarisWksDocument
Definition: ClarisWksParser.hxx:70
@ MWAW_K_DRAW
vectorized grphic
Definition: MWAWDocument.hxx:83
main document information used to create a ClarisWorks file
Definition: ClarisWksDocument.hxx:74
MWAWTextListenerPtr & getTextListener()
returns the text listener
Definition: MWAWParser.hxx:145
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: ClarisWksParser.cxx:115
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
~SubDocument() final
destructor
Definition: ClarisWksParser.cxx:93
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
@ SoftPageBreak
Definition: MWAWListener.hxx:58
void sendFootnote(int zoneId)
creates a document to send a footnote
Definition: ClarisWksParser.cxx:188
SubDocumentType
Definition: libmwaw_internal.hxx:188
~ClarisWksParser() final
destructor
Definition: ClarisWksParser.cxx:149
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
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
@ MWAW_K_TEXT
word processing file
Definition: MWAWDocument.hxx:82
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
MWAWPosition m_position
the subdocument position if defined
Definition: ClarisWksParser.cxx:112
void(MWAWParser::* NewPage)(int page, bool softBreak)
callback used to send a page break
Definition: ClarisWksDocument.hxx:268
ClarisWksParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: ClarisWksParser.cxx:141
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
@ PageBreak
Definition: MWAWListener.hxx:58
void setStream(MWAWInputStreamPtr const &ip)
resets the input
Definition: MWAWDebug.hxx:81
Definition: libmwaw_internal.hxx:144
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
int m_id
the subdocument id
Definition: ClarisWksParser.cxx:110
Internal: the subdocument of a ClarisWksParser.
Definition: ClarisWksParser.cxx:85
void init()
inits all internal variables
Definition: ClarisWksParser.cxx:153
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
void parse(librevenge::RVNGTextInterface *documentInterface) final
virtual function used to parse the input
Definition: ClarisWksParser.cxx:208
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: ClarisWksParser.cxx:196
the main class to read a Claris Works file
Definition: ClarisWksParser.hxx:68
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
State()
constructor
Definition: ClarisWksParser.cxx:73
void(MWAWParser::* SendFootnote)(int zoneId)
callback used to send a footnote
Definition: ClarisWksDocument.hxx:270
Defines MWAWTextListener: the libmwaw word processor listener.
std::shared_ptr< ClarisWksParserInternal::State > m_state
the state
Definition: ClarisWksParser.hxx:107
MWAWParser * m_parser
the main zone parser
Definition: MWAWSubDocument.hxx:75
Internal: the state of a ClarisWksParser.
Definition: ClarisWksParser.cxx:71
@ FootNote
Definition: libmwaw_internal.hxx:447
Internal: the structures of a ClarisWksParser.
Definition: ClarisWksParser.cxx:67
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
Definition: MWAWDocument.hxx:57
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:213
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