Go to the documentation of this file.
34 #ifndef MS_WKS_DR_PARSER
35 # define MS_WKS_DR_PARSER
71 void parse(librevenge::RVNGDrawingInterface *documentInterface);
78 void createDocument(librevenge::RVNGDrawingInterface *documentInterface);
84 void newPage(
int number,
bool softBreak=
false);
97 shared_ptr<MsWksDRParserInternal::State>
m_state;
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
int m_mainZoneId
the main zone
Definition: MsWksDRParser.cxx:69
a zone of a MsWksDocument ( main, header, footer )
Definition: MsWksDocument.hxx:80
std::vector< MWAWEntry > m_listZones
the list of different Zones
Definition: MsWksDRParser.hxx:100
the main class to read/store generic data of a MsWorks document v1-v3
Definition: MsWksDocument.hxx:69
void setName(std::string const &nam)
sets the name of the entry
Definition: MWAWEntry.hxx:137
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:785
void(MWAWParser::* NewPage)(int page, bool softBreak)
callback used to send a page break
Definition: MsWksDocument.hxx:263
MWAWGraphicListenerPtr & getGraphicListener()
returns the graphic listener
Definition: MWAWParser.hxx:130
the main class to read a Microsoft Works graphic file
Definition: MsWksDRParser.hxx:60
int m_page
the page ( used if anchor==page)
Definition: MsWksGraph.hxx:121
int m_id
the rbil id
Definition: MsWksGraph.hxx:117
shared_ptr< MsWksDRParserInternal::State > m_state
the state
Definition: MsWksDRParser.hxx:97
@ Z_NONE
Definition: MsWksDocument.hxx:78
void init()
inits all internal variables
Definition: MsWksDRParser.cxx:95
bool createZones()
finds the different objects zones
Definition: MsWksDRParser.cxx:205
MWAWPosition::AnchorTo m_anchor
the anchor
Definition: MsWksGraph.hxx:119
int version() const
returns the works version
Definition: MWAWParser.hxx:108
void newPage(int number, bool softBreak=false)
adds a new page
Definition: MsWksDRParser.cxx:111
@ MWAW_K_DRAW
vectorized grphic
Definition: MWAWDocument.hxx:83
virtual ~MsWksDRParser()
destructor
Definition: MsWksDRParser.cxx:91
the main class to read the graphic of a Microsoft Works file
Definition: MsWksGraph.hxx:74
State()
constructor
Definition: MsWksDRParser.cxx:64
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
Internal: the state of a MsWksDRParser.
Definition: MsWksDRParser.cxx:62
shared_ptr< MsWksDocument > m_document
the actual document
Definition: MsWksDRParser.hxx:103
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
@ SoftPageBreak
Definition: MWAWListener.hxx:58
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:501
void setGraphicListener(MWAWGraphicListenerPtr &listener)
sets the graphic listener
Definition: MWAWParser.cxx:113
@ RBIL
Definition: MsWksGraph.hxx:115
void parse(librevenge::RVNGDrawingInterface *documentInterface)
virtual function used to parse the input
Definition: MsWksDRParser.cxx:146
@ PageBreak
Definition: MWAWListener.hxx:58
void createDocument(librevenge::RVNGDrawingInterface *documentInterface)
creates the listener which will be associated to the document
Definition: MsWksDRParser.cxx:180
Definition: libmwaw_internal.hxx:142
@ RBDR
Definition: MsWksGraph.hxx:115
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: MsWksDRParser.cxx:369
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
void setId(int newId)
sets the id
Definition: MWAWEntry.hxx:158
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
Internal: the structures of a MsWksDRParser.
Definition: MsWksDRParser.cxx:59
small struct used which picture need to be send
Definition: MsWksGraph.hxx:109
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
@ Page
Definition: MWAWPosition.hxx:51
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:513
@ Z_MAIN
Definition: MsWksDocument.hxx:78
MsWksDRParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: MsWksDRParser.cxx:78
int m_actPage
the actual page
Definition: MsWksDRParser.cxx:70
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:207
enum MsWksGraph::SendData::Type m_type
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
void resetGraphicListener()
resets the listener
Definition: MWAWParser.cxx:118
int m_numPages
the number of page of the final document
Definition: MsWksDRParser.cxx:70
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:60
bool readDrawHeader()
tries to read the specific draw header
Definition: MsWksDRParser.cxx:285
Generated on Wed Jun 17 2020 06:30:11 for libmwaw by
doxygen 1.8.18