Go to the documentation of this file.
38 #ifndef RAGTIME_5_PARSER
39 # define RAGTIME_5_PARSER
45 #include <librevenge/librevenge.h>
90 void newPage(
int number,
bool softBreak);
State()
constructor
Definition: RagTime5Parser.cxx:62
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
int m_actPage
the actual page
Definition: RagTime5Parser.cxx:68
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: RagTime5Parser.cxx:104
a note
Definition: libmwaw_internal.hxx:445
@ MWAW_K_SPREADSHEET
spreadsheet
Definition: MWAWDocument.hxx:86
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: RagTime5Parser.cxx:85
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: RagTime5Parser.cxx:185
int m_id
the subdocument id
Definition: RagTime5Parser.cxx:99
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: RagTime5Parser.cxx:229
This class contents the main functions needed to create a Word processing Document.
Definition: MWAWTextListener.hxx:65
the main class to parse a RagTime 5-6 file
Definition: RagTime5Parser.hxx:66
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
Internal: the subdocument of a RagTime5Parser.
Definition: RagTime5Parser.cxx:74
void(MWAWParser::* NewPage)(int page, bool softBreak)
callback used to send a page break
Definition: RagTime5Document.hxx:307
std::shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:565
~SubDocument() final
destructor
Definition: RagTime5Parser.cxx:82
MWAWTextListenerPtr & getTextListener()
returns the text listener
Definition: MWAWParser.hxx:145
std::shared_ptr< RagTime5Document > m_document
the main document manager
Definition: RagTime5Parser.hxx:108
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
Internal: the structures of a RagTime5Parser.
Definition: RagTime5Parser.cxx:56
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
void newPage(int number, bool softBreak)
adds a new page
Definition: RagTime5Parser.cxx:159
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
@ SoftPageBreak
Definition: MWAWListener.hxx:58
the main class to read a RagTime v5 file
Definition: RagTime5Document.hxx:77
SubDocumentType
Definition: libmwaw_internal.hxx:188
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
MWAWListenerPtr getMainListener()
returns the main listener
Definition: MWAWParser.cxx:120
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
void(MWAWParser::* SendFootnote)(int zoneId)
callback used to send a footnote
Definition: RagTime5Document.hxx:309
void sendFootnote(int zoneId)
creates a document to send a footnote
Definition: RagTime5Parser.cxx:178
@ MWAW_K_TEXT
word processing file
Definition: MWAWDocument.hxx:82
friend class RagTime5Document
Definition: RagTime5Parser.hxx:68
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
@ PageBreak
Definition: MWAWListener.hxx:58
std::shared_ptr< RagTime5ParserInternal::State > m_state
the state
Definition: RagTime5Parser.hxx:105
void setStream(MWAWInputStreamPtr const &ip)
resets the input
Definition: MWAWDebug.hxx:81
int m_numPages
the number of page of the final document
Definition: RagTime5Parser.cxx:68
Definition: libmwaw_internal.hxx:144
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
void init()
inits all internal variables
Definition: RagTime5Parser.cxx:143
Internal: the state of a RagTime5Parser.
Definition: RagTime5Parser.cxx:60
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
RagTime5Parser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: RagTime5Parser.cxx:131
MWAWPosition m_position
the subdocument position if defined
Definition: RagTime5Parser.cxx:101
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
Defines MWAWTextListener: the libmwaw word processor listener.
MWAWParser * m_parser
the main zone parser
Definition: MWAWSubDocument.hxx:75
~RagTime5Parser() final
destructor
Definition: RagTime5Parser.cxx:139
@ FootNote
Definition: libmwaw_internal.hxx:447
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
SubDocument(RagTime5Parser &pars, MWAWInputStreamPtr const &input, int zoneId, MWAWPosition const &pos=MWAWPosition())
Definition: RagTime5Parser.cxx:76
void parse(librevenge::RVNGTextInterface *documentInterface) final
virtual function used to parse the input
Definition: RagTime5Parser.cxx:197
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20