Go to the documentation of this file.
34 #ifndef GREAT_WKS_PARSER
35 # define GREAT_WKS_PARSER
40 #include <librevenge/librevenge.h>
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 checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: GreatWksParser.cxx:500
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: GreatWksParser.cxx:271
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
MWAWSection getSection() const
returns a section
Definition: GreatWksParser.cxx:86
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
This class contents the main functions needed to create a Word processing Document.
Definition: MWAWTextListener.hxx:65
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: GreatWksParser.cxx:145
MWAWBorder m_columnSeparator
the vertical separator between columns
Definition: MWAWSection.hxx:112
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
MWAWSection(MWAWParser::* GetMainSection)() const
callback used to return the main section
Definition: GreatWksDocument.hxx:171
bool readDocInfo()
read the DocInfo block ( many unknown data )
Definition: GreatWksParser.cxx:374
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:208
the main class to read a GreatWorks text file
Definition: GreatWksParser.hxx:57
int version() const
returns the works version
Definition: MWAWParser.hxx:108
int m_actPage
the actual page
Definition: GreatWksParser.cxx:116
Internal: the structures of a GreatWksParser.
Definition: GreatWksParser.cxx:59
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:193
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::vector< double > m_columnsWidth
the columns dimension
Definition: GreatWksParser.cxx:111
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
void(MWAWParser::* NewPage)(int page)
callback used to send a page break
Definition: GreatWksDocument.hxx:173
void parse(librevenge::RVNGTextInterface *documentInterface) final
virtual function used to parse the input
Definition: GreatWksParser.cxx:238
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
bool m_hfFlags[4]
flags to define header/footer (titlePage, l/rPage, header, footer)
Definition: GreatWksParser.cxx:113
~SubDocument() final
destructor
Definition: GreatWksParser.cxx:132
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
SubDocumentType
Definition: libmwaw_internal.hxx:188
~GreatWksParser() final
destructor
Definition: GreatWksParser.cxx:187
std::shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
Internal: the state of a GreatWksParser.
Definition: GreatWksParser.cxx:63
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
int m_headerHeight
the header height if known
Definition: GreatWksParser.cxx:118
a border
Definition: libmwaw_internal.hxx:333
std::vector< Column > m_columns
the different column
Definition: MWAWSection.hxx:108
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
@ DOC_HEADER_FOOTER
Definition: libmwaw_internal.hxx:188
GreatWksParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: GreatWksParser.cxx:179
@ PageBreak
Definition: MWAWListener.hxx:58
SubDocument(GreatWksParser &pars, MWAWInputStreamPtr const &input, int zoneId)
Definition: GreatWksParser.cxx:127
void setStream(MWAWInputStreamPtr const &ip)
resets the input
Definition: MWAWDebug.hxx:81
a class which stores section properties
Definition: MWAWSection.hxx:46
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: GreatWksParser.cxx:191
bool m_hasColSep
true if columns have columns separator
Definition: GreatWksParser.cxx:115
std::shared_ptr< GreatWksParserInternal::State > m_state
the state
Definition: GreatWksParser.hxx:104
State()
constructor
Definition: GreatWksParser.cxx:65
int m_footerHeight
the footer height if known
Definition: GreatWksParser.cxx:119
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:203
int m_numPages
the number of page of the final document
Definition: GreatWksParser.cxx:116
std::shared_ptr< GreatWksDocument > m_document
the main document
Definition: GreatWksParser.hxx:107
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
void newPage(int number)
adds a new page
Definition: GreatWksParser.cxx:222
MWAWSection getMainSection() const
return the main section
Definition: GreatWksParser.cxx:209
Internal: the subdocument of a GreatWksParser.
Definition: GreatWksParser.cxx:125
the main class to read/store generic data of a GreatWorks document
Definition: GreatWksDocument.hxx:61
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
Defines MWAWTextListener: the libmwaw word processor listener.
bool createZones()
finds the different objects zones
Definition: GreatWksParser.cxx:334
int numHeaderFooters() const
returns the number of expected header/footer zones
Definition: GreatWksParser.cxx:76
@ Right
Definition: libmwaw_internal.hxx:176
int m_id
the subdocument id
Definition: GreatWksParser.cxx:142
MWAWParser * m_parser
the main zone parser
Definition: MWAWSubDocument.hxx:75
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:198
void setHeaderFooter(MWAWHeaderFooter const &headerFooter)
add a header/footer on some page
Definition: MWAWPageSpan.cxx:227
@ Left
Definition: libmwaw_internal.hxx:176
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: GreatWksParser.cxx:166
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
bool sendHF(int id)
try to send the i^th header/footer
Definition: GreatWksParser.cxx:214
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
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