Go to the documentation of this file.
38 #ifndef NISUS_WRT_GRAPH
39 # define NISUS_WRT_GRAPH
44 #include <librevenge/librevenge.h>
127 std::shared_ptr<NisusWrtGraphInternal::State>
m_state;
std::shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:567
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
@ CharBaseLine
Definition: MWAWPosition.hxx:51
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
std::shared_ptr< NisusWrtGraphInternal::State > m_state
the state
Definition: NisusWrtGraph.hxx:127
int m_id
the pict id
Definition: NisusWrtGraph.cxx:126
State()
constructor
Definition: NisusWrtGraph.cxx:83
void setName(std::string const &nam)
sets the name of the entry
Definition: MWAWEntry.hxx:148
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:129
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
@ Z_Main
Definition: NisusWrtStruct.hxx:50
SubDocument(NisusWrtGraph &pars, MWAWInputStreamPtr const &input, int id, MWAWPosition const &pos)
Definition: NisusWrtGraph.cxx:105
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:237
bool isParsed() const
a flag to know if the entry was parsed or not
Definition: MWAWEntry.hxx:121
Internal: low level a structure helping to read recursifList.
Definition: NisusWrtStruct.hxx:145
void setPage(int pg) const
sets the page
Definition: MWAWPosition.hxx:205
NisusWrtGraph & operator=(NisusWrtGraph const &orig)=delete
int m_maxPageGraphic
the last page containing page graphic
Definition: NisusWrtGraph.cxx:93
std::map< int, MWAWEntry > m_idRssoMap
the map id -> rssoEntry
Definition: NisusWrtGraph.cxx:97
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: NisusWrtGraph.cxx:526
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: NisusWrtParser.cxx:367
int id() const
returns the id
Definition: MWAWEntry.hxx:164
@ WBackground
Definition: MWAWPosition.hxx:53
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
std::vector< Node > m_childList
the list of data entry
Definition: NisusWrtStruct.hxx:180
std::shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:565
int version() const
returns the file version
Definition: NisusWrtGraph.cxx:174
MWAWPosition m_position
the pict position
Definition: NisusWrtGraph.cxx:128
SubDocument(SubDocument const &orig)=delete
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:126
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
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:432
NisusWrtGraph(NisusWrtGraph const &orig)=delete
~SubDocument() final
destructor
Definition: NisusWrtGraph.cxx:114
NisusWrtGraph * m_graphParser
the graph parser
Definition: NisusWrtGraph.cxx:124
MWAWVec2f const & size() const
returns the frame size
Definition: MWAWPosition.hxx:135
SubDocumentType
Definition: libmwaw_internal.hxx:188
std::shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
MWAWRSRCParserPtr & getRSRCParser()
returns the rsrc parser
Definition: MWAWParser.hxx:190
bool sendPageGraphics()
try to send the page graphic
Definition: NisusWrtGraph.cxx:492
void setSize(MWAWVec2f const &sz)
sets the frame size
Definition: MWAWPosition.hxx:215
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
Wrapping m_wrapping
Wrapping.
Definition: MWAWPosition.hxx:278
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
SubDocument & operator=(SubDocument const &orig)=delete
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: NisusWrtParser.cxx:380
std::shared_ptr< Info > m_info
zone information
Definition: NisusWrtStruct.hxx:176
@ MWAW_R_BAD
Definition: MWAWPict.hxx:73
void setOrigin(MWAWVec2f const &orig)
sets the frame origin
Definition: MWAWPosition.hxx:210
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
NisusWrtGraph(NisusWrtParser &parser)
constructor
Definition: NisusWrtGraph.cxx:164
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1193
@ Char
Definition: MWAWPosition.hxx:51
std::map< int, MWAWEntry > m_idPictMap
the map pictId -> pictEntry
Definition: NisusWrtGraph.cxx:95
static ReadResult check(MWAWInputStreamPtr const &input, int size, MWAWBox2f &box)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:100
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: NisusWrtGraph.cxx:149
MWAWParserStatePtr m_parserState
the parser state
Definition: NisusWrtGraph.hxx:124
int numPages() const
returns the number of pages
Definition: NisusWrtGraph.cxx:179
Defines MWAWTextListener: the libmwaw word processor listener.
Internal: the structures of a NisusWrtGraph.
Definition: NisusWrtGraph.cxx:58
void setClippingPosition(MWAWVec2f lTop, MWAWVec2f rBottom)
sets the clipping position
Definition: MWAWPosition.hxx:252
bool createZones()
finds the different graphic zones
Definition: NisusWrtGraph.cxx:189
@ Page
Definition: MWAWPosition.hxx:51
bool readPGRA(MWAWEntry const &entry)
read the PGRA resource: the number of page? graphics
Definition: NisusWrtGraph.cxx:340
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
MWAWVec2< T > const & min() const
the minimum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:1039
bool readPLDT(NisusWrtStruct::RecursifData const &data)
parse the PLDT resource: a unknown resource
Definition: NisusWrtGraph.cxx:279
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:130
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: NisusWrtGraph.cxx:134
Internal: the subdocument of a NisusWrtGraph.
Definition: NisusWrtGraph.cxx:103
@ YTop
Definition: MWAWPosition.hxx:57
the main class to read a Nisus Writer file
Definition: NisusWrtParser.hxx:60
bool readPLAC(MWAWEntry const &entry)
read the PLAC resource: a list of picture placements ?
Definition: NisusWrtGraph.cxx:246
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1067
@ Frame
Definition: MWAWPosition.hxx:51
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:91
@ XLeft
Definition: MWAWPosition.hxx:55
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
std::vector< NisusWrtGraphInternal::RSSOEntry > findRSSOEntry(MWAWInputStreamPtr inp) const
try to find a RSSO entry in a picture file
Definition: NisusWrtGraph.cxx:375
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:270
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: NisusWrtParser.cxx:372
Internal: the state of a NisusWrtGraph.
Definition: NisusWrtGraph.cxx:81
virtual ~NisusWrtGraph()
destructor
Definition: NisusWrtGraph.cxx:171
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
the main class to read the graphic part of a Nisus file
Definition: NisusWrtGraph.hxx:68
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20