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)
final;
78 void createDocument(librevenge::RVNGDrawingInterface *documentInterface);
84 void newPage(
int number,
bool softBreak=
false);
97 std::shared_ptr<MsWksDRParserInternal::State>
m_state;
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
int m_mainZoneId
the main zone
Definition: MsWksDRParser.cxx:72
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
std::shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:549
void setName(std::string const &nam)
sets the name of the entry
Definition: MWAWEntry.hxx:148
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
void(MWAWParser::* NewPage)(int page, bool softBreak)
callback used to send a page break
Definition: MsWksDocument.hxx:268
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:126
int m_id
the rbil id
Definition: MsWksGraph.hxx:122
@ Z_NONE
Definition: MsWksDocument.hxx:78
void init()
inits all internal variables
Definition: MsWksDRParser.cxx:101
bool createZones()
finds the different objects zones
Definition: MsWksDRParser.cxx:211
MWAWPosition::AnchorTo m_anchor
the anchor
Definition: MsWksGraph.hxx:124
int version() const
returns the works version
Definition: MWAWParser.hxx:108
std::shared_ptr< MsWksDocument > m_document
the actual document
Definition: MsWksDRParser.hxx:103
void newPage(int number, bool softBreak=false)
adds a new page
Definition: MsWksDRParser.cxx:117
@ MWAW_K_DRAW
vectorized grphic
Definition: MWAWDocument.hxx:83
the main class to read the graphic of a Microsoft Works file
Definition: MsWksGraph.hxx:74
void parse(librevenge::RVNGDrawingInterface *documentInterface) final
virtual function used to parse the input
Definition: MsWksDRParser.cxx:152
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
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: MsWksDRParser.cxx:375
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
void setGraphicListener(MWAWGraphicListenerPtr &listener)
sets the graphic listener
Definition: MWAWParser.cxx:125
@ RBIL
Definition: MsWksGraph.hxx:120
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
@ PageBreak
Definition: MWAWListener.hxx:58
void createDocument(librevenge::RVNGDrawingInterface *documentInterface)
creates the listener which will be associated to the document
Definition: MsWksDRParser.cxx:186
Definition: libmwaw_internal.hxx:144
@ RBDR
Definition: MsWksGraph.hxx:120
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:169
~MsWksDRParser() final
destructor
Definition: MsWksDRParser.cxx:97
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
std::shared_ptr< MsWksDRParserInternal::State > m_state
the state
Definition: MsWksDRParser.hxx:97
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
@ Z_MAIN
Definition: MsWksDocument.hxx:78
MsWksDRParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: MsWksDRParser.cxx:81
int m_actPage
the actual page
Definition: MsWksDRParser.cxx:73
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:213
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:130
int m_numPages
the number of page of the final document
Definition: MsWksDRParser.cxx:73
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:291
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20