Go to the documentation of this file.
38 #ifndef RAGTIME_5_SS_PARSER
39 # define RAGTIME_5_SS_PARSER
45 #include <librevenge/librevenge.h>
80 void parse(
librevenge::RVNGSpreadsheetInterface *documentInterface) final;
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 spreadsheet zone parser
Definition: MWAWParser.hxx:283
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
void sendFootnote(int zoneId)
creates a document to send a footnote
Definition: RagTime5SSParser.cxx:158
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: RagTime5SSParser.cxx:104
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
int m_id
the subdocument id
Definition: RagTime5SSParser.cxx:99
Internal: the structures of a RagTime5SSParser.
Definition: RagTime5SSParser.cxx:56
std::shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:565
void resetSpreadsheetListener()
resets the listener
Definition: MWAWParser.cxx:152
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
RagTime5SSParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: RagTime5SSParser.cxx:131
MWAWSpreadsheetListenerPtr & getSpreadsheetListener()
returns the spreadsheet listener
Definition: MWAWParser.hxx:140
void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) final
virtual function used to parse the input
Definition: RagTime5SSParser.cxx:176
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
std::shared_ptr< MWAWSpreadsheetListener > MWAWSpreadsheetListenerPtr
a smart pointer of MWAWSpreadsheetListener
Definition: libmwaw_internal.hxx:563
This class contents the main functions needed to create a spreadsheet processing Document.
Definition: MWAWSpreadsheetListener.hxx:66
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
~RagTime5SSParser() final
destructor
Definition: RagTime5SSParser.cxx:139
the main class to parse a RagTime 5-6 file containing only a spreadsheet
Definition: RagTime5SSParser.hxx:66
State()
constructor
Definition: RagTime5SSParser.cxx:62
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
SubDocument(RagTime5SSParser &pars, MWAWInputStreamPtr const &input, int zoneId, MWAWPosition const &pos=MWAWPosition())
Definition: RagTime5SSParser.cxx:76
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
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
~SubDocument() final
destructor
Definition: RagTime5SSParser.cxx:82
void init()
inits all internal variables
Definition: RagTime5SSParser.cxx:143
friend class RagTime5Document
Definition: RagTime5SSParser.hxx:68
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
void setSpreadsheetListener(MWAWSpreadsheetListenerPtr &listener)
sets the spreadsheet listener
Definition: MWAWParser.cxx:147
int m_numPages
the number of page of the final document
Definition: RagTime5SSParser.cxx:68
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
MWAWPosition m_position
the subdocument position if defined
Definition: RagTime5SSParser.cxx:101
MWAWParser * m_parser
the main zone parser
Definition: MWAWSubDocument.hxx:75
std::shared_ptr< RagTime5SSParserInternal::State > m_state
the state
Definition: RagTime5SSParser.hxx:102
Internal: the subdocument of a RagTime5SSParser.
Definition: RagTime5SSParser.cxx:74
Defines MWAWSpreadsheetListener: the libmwaw spreadsheet processor listener.
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: RagTime5SSParser.cxx:165
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: RagTime5SSParser.cxx:85
@ FootNote
Definition: libmwaw_internal.hxx:447
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
Internal: the state of a RagTime5SSParser.
Definition: RagTime5SSParser.cxx:60
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 createDocument(librevenge::RVNGSpreadsheetInterface *documentInterface)
creates the listener which will be associated to the document
Definition: RagTime5SSParser.cxx:208
int m_actPage
the actual page
Definition: RagTime5SSParser.cxx:68
std::shared_ptr< RagTime5Document > m_document
the main document manager
Definition: RagTime5SSParser.hxx:105
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20