Go to the documentation of this file.
34 #ifndef GREAT_WKS_PARSER
35 # define GREAT_WKS_PARSER
40 #include <librevenge/librevenge.h>
69 void parse(librevenge::RVNGTextInterface *documentInterface);
76 void createDocument(librevenge::RVNGTextInterface *documentInterface);
104 shared_ptr<GreatWksParserInternal::State>
m_state;
virtual ~SubDocument()
destructor
Definition: GreatWksParser.cxx:126
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:296
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: GreatWksParser.cxx:268
shared_ptr< GreatWksDocument > m_document
the main document
Definition: GreatWksParser.hxx:107
shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:519
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:262
MWAWSection getSection() const
returns a section
Definition: GreatWksParser.cxx:81
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
virtual ~GreatWksParser()
destructor
Definition: GreatWksParser.cxx:184
This class contents the main functions needed to create a Word processing Document.
Definition: MWAWTextListener.hxx:65
MWAWBorder m_columnSeparator
the vertical separator between columns
Definition: MWAWSection.hxx:104
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:372
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:202
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:111
Internal: the structures of a GreatWksParser.
Definition: GreatWksParser.cxx:59
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:187
SubDocument(GreatWksParser &pars, MWAWInputStreamPtr input, int zoneId)
Definition: GreatWksParser.cxx:122
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type)
the parser function
Definition: GreatWksParser.cxx:144
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:106
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
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:108
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
SubDocumentType
Definition: libmwaw_internal.hxx:178
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:85
Internal: the state of a GreatWksParser.
Definition: GreatWksParser.cxx:63
void setTextListener(MWAWTextListenerPtr &listener)
sets the text listener
Definition: MWAWParser.cxx:146
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:113
a border
Definition: libmwaw_internal.hxx:314
std::vector< Column > m_columns
the different column
Definition: MWAWSection.hxx:100
void parse(librevenge::RVNGTextInterface *documentInterface)
virtual function used to parse the input
Definition: GreatWksParser.cxx:235
@ DOC_HEADER_FOOTER
Definition: libmwaw_internal.hxx:178
@ PageBreak
Definition: MWAWListener.hxx:58
a class which stores section properties
Definition: MWAWSection.hxx:46
Definition: libmwaw_internal.hxx:142
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: GreatWksParser.cxx:500
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
void init()
inits all internal variables
Definition: GreatWksParser.cxx:188
bool m_hasColSep
true if columns have columns separator
Definition: GreatWksParser.cxx:110
State()
constructor
Definition: GreatWksParser.cxx:65
virtual bool operator!=(MWAWSubDocument const &doc) const
operator!=
Definition: GreatWksParser.cxx:165
int m_footerHeight
the footer height if known
Definition: GreatWksParser.cxx:114
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:197
int m_numPages
the number of page of the final document
Definition: GreatWksParser.cxx:111
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
shared_ptr< GreatWksParserInternal::State > m_state
the state
Definition: GreatWksParser.hxx:104
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
void newPage(int number)
adds a new page
Definition: GreatWksParser.cxx:219
MWAWSection getMainSection() const
return the main section
Definition: GreatWksParser.cxx:206
Internal: the subdocument of a GreatWksParser.
Definition: GreatWksParser.cxx:120
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
bool createZones()
finds the different objects zones
Definition: GreatWksParser.cxx:332
int numHeaderFooters() const
returns the number of expected header/footer zones
Definition: GreatWksParser.cxx:71
@ Right
Definition: libmwaw_internal.hxx:166
int m_id
the subdocument id
Definition: GreatWksParser.cxx:141
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 setStream(MWAWInputStreamPtr ip)
resets the input
Definition: MWAWDebug.hxx:73
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:192
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:513
void setHeaderFooter(MWAWHeaderFooter const &headerFooter)
add a header/footer on some page
Definition: MWAWPageSpan.cxx:223
@ Left
Definition: libmwaw_internal.hxx:166
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:207
bool sendHF(int id)
try to send the i^th header/footer
Definition: GreatWksParser.cxx:211
GreatWksParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: GreatWksParser.cxx:178
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:505
virtual bool operator==(MWAWSubDocument const &doc) const
operator!==
Definition: GreatWksParser.cxx:131
shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:96
void resetTextListener()
resets the listener
Definition: MWAWParser.cxx:151
Generated on Wed Jun 17 2020 06:30:10 for libmwaw by
doxygen 1.8.18