Go to the documentation of this file.
34 #ifndef GREAT_WKS_DR_PARSER
35 # define GREAT_WKS_DR_PARSER
40 #include <librevenge/librevenge.h>
67 void parse(librevenge::RVNGDrawingInterface *documentInterface)
final;
74 void createDocument(librevenge::RVNGDrawingInterface *documentInterface);
89 std::shared_ptr<GreatWksDRParserInternal::State>
m_state;
std::vector< double > m_columnsWidth
the columns dimension
Definition: GreatWksDRParser.cxx:111
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
GreatWksDRParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: GreatWksDRParser.cxx:126
~GreatWksDRParser() final
destructor
Definition: GreatWksDRParser.cxx:134
std::shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:549
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
#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
MWAWGraphicListenerPtr & getGraphicListener()
returns the graphic listener
Definition: MWAWParser.hxx:130
MWAWSection getSection() const
returns a section
Definition: GreatWksDRParser.cxx:86
bool m_hfFlags[4]
flags to define header/footer (titlePage, l/rPage, header, footer)
Definition: GreatWksDRParser.cxx:113
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
std::shared_ptr< GreatWksDocument > m_document
the main document
Definition: GreatWksDRParser.hxx:92
@ MWAW_K_DRAW
vectorized grphic
Definition: MWAWDocument.hxx:83
void parse(librevenge::RVNGDrawingInterface *documentInterface) final
virtual function used to parse the input
Definition: GreatWksDRParser.cxx:154
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
Internal: the structures of a GreatWksDRParser.
Definition: GreatWksDRParser.cxx:59
int m_actPage
the actual page
Definition: GreatWksDRParser.cxx:116
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
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
a border
Definition: libmwaw_internal.hxx:333
std::vector< Column > m_columns
the different column
Definition: MWAWSection.hxx:108
void setGraphicListener(MWAWGraphicListenerPtr &listener)
sets the graphic listener
Definition: MWAWParser.cxx:125
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
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
virtual class which defines the ancestor of all graphic zone parser
Definition: MWAWParser.hxx:251
int m_headerHeight
the header height if known
Definition: GreatWksDRParser.cxx:118
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
void createDocument(librevenge::RVNGDrawingInterface *documentInterface)
creates the listener which will be associated to the document
Definition: GreatWksDRParser.cxx:187
int m_footerHeight
the footer height if known
Definition: GreatWksDRParser.cxx:119
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: GreatWksDRParser.cxx:247
the main class to read/store generic data of a GreatWorks document
Definition: GreatWksDocument.hxx:61
void init()
inits all internal variables
Definition: GreatWksDRParser.cxx:138
int numHeaderFooters() const
returns the number of expected header/footer zones
Definition: GreatWksDRParser.cxx:76
the main class to read a GreatWorks graphic file
Definition: GreatWksDRParser.hxx:56
State()
constructor
Definition: GreatWksDRParser.cxx:65
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
bool createZones()
finds the different objects zones
Definition: GreatWksDRParser.cxx:220
int m_numPages
the number of page of the final document
Definition: GreatWksDRParser.cxx:116
@ Right
Definition: libmwaw_internal.hxx:176
std::shared_ptr< GreatWksDRParserInternal::State > m_state
the state
Definition: GreatWksDRParser.hxx:89
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
@ Left
Definition: libmwaw_internal.hxx:176
Internal: the state of a GreatWksDRParser.
Definition: GreatWksDRParser.cxx:63
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:213
void resetGraphicListener()
resets the listener
Definition: MWAWParser.cxx:130
bool m_hasColSep
true if columns have columns separator
Definition: GreatWksDRParser.cxx:115
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:60
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20