Go to the documentation of this file.
38 #ifndef NISUS_WRT_GRAPH
39 # define NISUS_WRT_GRAPH
44 #include <librevenge/librevenge.h>
127 shared_ptr<NisusWrtGraphInternal::State>
m_state;
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
@ CharBaseLine
Definition: MWAWPosition.hxx:51
shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:519
int m_id
the pict id
Definition: NisusWrtGraph.cxx:116
State()
constructor
Definition: NisusWrtGraph.cxx:79
void setName(std::string const &nam)
sets the name of the entry
Definition: MWAWEntry.hxx:137
NisusWrtParser * m_mainParser
the main parser;
Definition: NisusWrtGraph.hxx:130
bool read(NisusWrtParser &parser, MWAWEntry const &entry)
read the data
Definition: NisusWrtStruct.cxx:77
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:785
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type)
the parser function
Definition: NisusWrtGraph.cxx:124
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:221
bool isParsed() const
a flag to know if the entry was parsed or not
Definition: MWAWEntry.hxx:110
Internal: low level a structure helping to read recursifList.
Definition: NisusWrtStruct.hxx:138
void setPage(int pg) const
sets the page
Definition: MWAWPosition.hxx:189
int m_maxPageGraphic
the last page containing page graphic
Definition: NisusWrtGraph.cxx:83
std::map< int, MWAWEntry > m_idRssoMap
the map id -> rssoEntry
Definition: NisusWrtGraph.cxx:87
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: NisusWrtGraph.cxx:518
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: NisusWrtParser.cxx:342
int id() const
returns the id
Definition: MWAWEntry.hxx:153
@ WBackground
Definition: MWAWPosition.hxx:53
small class use to define a embedded object
Definition: libmwaw_internal.hxx:425
std::vector< Node > m_childList
the list of data entry
Definition: NisusWrtStruct.hxx:169
int version() const
returns the file version
Definition: NisusWrtGraph.cxx:163
MWAWPosition m_position
the pict position
Definition: NisusWrtGraph.cxx:118
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:509
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:115
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
virtual ~SubDocument()
destructor
Definition: NisusWrtGraph.cxx:99
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
bool sendPicture(int pictId, bool inPictRsrc, MWAWPosition pictPos)
try to send a picture
Definition: NisusWrtGraph.cxx:423
NisusWrtGraph * m_graphParser
the graph parser
Definition: NisusWrtGraph.cxx:114
MWAWVec2f const & size() const
returns the frame size
Definition: MWAWPosition.hxx:119
static ReadResult check(MWAWInputStreamPtr input, int size, MWAWBox2f &box)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:100
SubDocumentType
Definition: libmwaw_internal.hxx:178
bool isLeaf() const
returns true if the node is a final node
Definition: NisusWrtStruct.hxx:190
shared_ptr< Info > m_info
zone information
Definition: NisusWrtStruct.hxx:165
MWAWRSRCParserPtr & getRSRCParser()
returns the rsrc parser
Definition: MWAWParser.hxx:190
bool sendPageGraphics()
try to send the page graphic
Definition: NisusWrtGraph.cxx:484
void setSize(MWAWVec2f const &sz)
sets the frame size
Definition: MWAWPosition.hxx:199
the data data
Definition: NisusWrtStruct.hxx:184
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
MWAWEntry m_entry
the entry
Definition: NisusWrtStruct.hxx:198
virtual bool operator!=(MWAWSubDocument const &doc) const
operator!=
Definition: NisusWrtGraph.cxx:139
Wrapping m_wrapping
Wrapping.
Definition: MWAWPosition.hxx:262
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:82
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: NisusWrtParser.cxx:355
@ MWAW_R_BAD
Definition: MWAWPict.hxx:73
void setOrigin(MWAWVec2f const &orig)
sets the frame origin
Definition: MWAWPosition.hxx:194
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
NisusWrtGraph(NisusWrtParser &parser)
constructor
Definition: NisusWrtGraph.cxx:154
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1134
@ Char
Definition: MWAWPosition.hxx:51
std::map< int, MWAWEntry > m_idPictMap
the map pictId -> pictEntry
Definition: NisusWrtGraph.cxx:85
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
MWAWParserStatePtr m_parserState
the parser state
Definition: NisusWrtGraph.hxx:124
SubDocument(SubDocument const &orig)
int numPages() const
returns the number of pages
Definition: NisusWrtGraph.cxx:168
virtual bool operator==(MWAWSubDocument const &doc) const
operator!==
Definition: NisusWrtGraph.cxx:104
NisusWrtGraph & operator=(NisusWrtGraph const &orig)
Internal: the structures of a NisusWrtGraph.
Definition: NisusWrtGraph.cxx:58
void setClippingPosition(MWAWVec2f lTop, MWAWVec2f rBottom)
sets the clipping position
Definition: MWAWPosition.hxx:236
bool createZones()
finds the different graphic zones
Definition: NisusWrtGraph.cxx:178
@ Page
Definition: MWAWPosition.hxx:51
bool readPGRA(MWAWEntry const &entry)
read the PGRA resource: the number of page? graphics
Definition: NisusWrtGraph.cxx:331
MWAWVec2< T > const & min() const
the minimum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:980
bool readPLDT(NisusWrtStruct::RecursifData const &data)
parse the PLDT resource: a unknown resource
Definition: NisusWrtGraph.cxx:269
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
MWAWVec2f const & origin() const
return the frame origin
Definition: MWAWPosition.hxx:114
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
Internal: the subdocument of a NisusWrtGraph.
Definition: NisusWrtGraph.cxx:93
@ YTop
Definition: MWAWPosition.hxx:57
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:513
the main class to read a Nisus Writer file
Definition: NisusWrtParser.hxx:60
NisusWrtGraph(NisusWrtGraph const &orig)
shared_ptr< NisusWrtGraphInternal::State > m_state
the state
Definition: NisusWrtGraph.hxx:127
bool readPLAC(MWAWEntry const &entry)
read the PLAC resource: a list of picture placements ?
Definition: NisusWrtGraph.cxx:236
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1008
@ Frame
Definition: MWAWPosition.hxx:51
SubDocument & operator=(SubDocument const &orig)
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
int m_numPages
Definition: NisusWrtGraph.cxx:81
@ XLeft
Definition: MWAWPosition.hxx:55
std::vector< NisusWrtGraphInternal::RSSOEntry > findRSSOEntry(MWAWInputStreamPtr inp) const
try to find a RSSO entry in a picture file
Definition: NisusWrtGraph.cxx:366
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:254
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: NisusWrtParser.cxx:347
shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:517
Internal: the state of a NisusWrtGraph.
Definition: NisusWrtGraph.cxx:77
virtual ~NisusWrtGraph()
destructor
Definition: NisusWrtGraph.cxx:160
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
@ Z_Main
Definition: NisusWrtStruct.hxx:50
shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
the main class to read the graphic part of a Nisus file
Definition: NisusWrtGraph.hxx:68
SubDocument(NisusWrtGraph &pars, MWAWInputStreamPtr input, int id, MWAWPosition const &pos)
Definition: NisusWrtGraph.cxx:95
Generated on Wed Jun 17 2020 06:30:12 for libmwaw by
doxygen 1.8.18