Go to the documentation of this file.
38 #ifndef FULL_WRT_GRAPH
39 # define FULL_WRT_GRAPH
44 #include <librevenge/librevenge.h>
143 shared_ptr<FullWrtGraphInternal::State>
m_state;
SubDocument & operator=(SubDocument const &orig)
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
ReadResult
an enum to defined the result of a parsing use by some picture's classes which can read their data
Definition: MWAWPict.hxx:73
shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:519
shared_ptr< FullWrtGraphInternal::State > m_state
the state
Definition: FullWrtGraph.hxx:143
#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
a namespace use to define common structure in a FullWrite file
Definition: FullWrtStruct.cxx:44
virtual ~FullWrtGraph()
destructor
Definition: FullWrtGraph.cxx:166
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:221
void setPage(int pg) const
sets the page
Definition: MWAWPosition.hxx:189
@ WBackground
Definition: MWAWPosition.hxx:53
int m_id
the zone file id
Definition: FullWrtGraph.cxx:123
the class to store a color
Definition: libmwaw_internal.hxx:182
small class use to define a embedded object
Definition: libmwaw_internal.hxx:425
Internal: class to store a border which appear in docInfo.
Definition: FullWrtStruct.hxx:60
bool sendGraphic(int fId)
send a graphic knowing the graphic fileId
Definition: FullWrtGraph.cxx:693
@ WDynamic
Definition: MWAWPosition.hxx:53
SubDocument(FullWrtGraph &pars, int id, MWAWColor fontColor)
constructor
Definition: FullWrtGraph.cxx:102
virtual bool operator==(MWAWSubDocument const &doc) const
operator!==
Definition: FullWrtGraph.cxx:111
shared_ptr< FullWrtStruct::ZoneHeader > readGraphicData(FullWrtStruct::EntryPtr zone, FullWrtStruct::ZoneHeader &doc)
try to read the graphic data
Definition: FullWrtGraph.cxx:554
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:509
bool readSideBarUnknown(FullWrtStruct::EntryPtr zone, FullWrtGraphInternal::SideBar &frame)
try to read the sidebar third zone
Definition: FullWrtGraph.cxx:481
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
Internal: the subdocument of a FullWrtGraph.
Definition: FullWrtGraph.cxx:99
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
bool readSideBarPosition(FullWrtStruct::EntryPtr zone, FullWrtGraphInternal::SideBar &frame)
try to read the sidebar position zone
Definition: FullWrtGraph.cxx:352
Internal: the structures of a FullWrtGraph.
Definition: FullWrtGraph.cxx:55
void setNaturalSize(MWAWVec2f const &naturalSz)
sets the natural size (if known)
Definition: MWAWPosition.hxx:204
bool sendSideBar(FullWrtGraphInternal::SideBar const &frame)
try to send a sidebar
Definition: FullWrtGraph.cxx:528
std::vector< shared_ptr< SideBar > > m_sidebarList
the sidebar list
Definition: FullWrtGraph.cxx:88
std::string getDocumentTypeName(int zId) const
returns a the type of a document zone ( mainly used for debugging)
Definition: FullWrtParser.cxx:348
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
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:85
the main class to read a FullWrite file
Definition: FullWrtParser.hxx:67
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:105
T y() const
second element
Definition: libmwaw_internal.hxx:620
bool dumpFile(librevenge::RVNGBinaryData &data, char const *fileName)
a debug function to store in a datafile in the current directory WARNING: this function erase the fil...
Definition: MWAWDebug.cxx:197
T x() const
first element
Definition: libmwaw_internal.hxx:615
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
Wrapping m_wrapping
Wrapping.
Definition: MWAWPosition.hxx:262
@ MWAW_R_BAD
Definition: MWAWPict.hxx:73
shared_ptr< FullWrtStruct::ZoneHeader > readSideBar(FullWrtStruct::EntryPtr zone, FullWrtStruct::ZoneHeader const &doc)
try to read a sidebar data (zone 13 or zone 14)
Definition: FullWrtGraph.cxx:271
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1134
bool readGraphic(FullWrtStruct::EntryPtr zone)
check if a zone is a graphic zone
Definition: FullWrtGraph.cxx:634
Internal: the state of a FullWrtGraph.
Definition: FullWrtGraph.cxx:81
int m_numPages
Definition: FullWrtGraph.cxx:93
@ Char
Definition: MWAWPosition.hxx:51
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type)
the parser function
Definition: FullWrtGraph.cxx:132
FullWrtGraph & operator=(FullWrtGraph const &orig)
SubDocument(SubDocument const &orig)
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
bool readSideBarFormat(FullWrtStruct::EntryPtr zone, FullWrtGraphInternal::SideBar &frame)
try to read the sidebar second zone
Definition: FullWrtGraph.cxx:420
FullWrtParser * m_mainParser
the main parser;
Definition: FullWrtGraph.hxx:146
MWAWColor m_frontColor
the front color (used for layout )
Definition: FullWrtStruct.hxx:89
bool read(shared_ptr< FullWrtStruct::Entry > zone, int fSz)
try to read a border definiton
Definition: FullWrtStruct.cxx:142
std::multimap< int, FullWrtStruct::EntryPtr > m_graphicMap
zoneId -> graphic entry
Definition: FullWrtGraph.cxx:90
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: FullWrtParser.cxx:332
void addTo(MWAWGraphicStyle &style) const
add to frame properties
Definition: FullWrtStruct.cxx:127
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: FullWrtGraph.cxx:789
bool send(int fileId, MWAWColor const &fontColor)
try to send the child of a zone
Definition: FullWrtGraph.cxx:202
FullWrtGraph * m_graphParser
the graph parser
Definition: FullWrtGraph.cxx:121
State()
constructor
Definition: FullWrtGraph.cxx:83
@ Page
Definition: MWAWPosition.hxx:51
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
bool readBorderDocInfo(FullWrtStruct::EntryPtr zone)
try to read the border definiton (at the end of doc info)
Definition: FullWrtGraph.cxx:219
std::vector< FullWrtStruct::Border > m_borderList
a list of border
Definition: FullWrtGraph.cxx:92
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1008
FullWrtGraph(FullWrtParser &parser)
constructor
Definition: FullWrtGraph.cxx:160
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 numPages() const
returns the number of pages
Definition: FullWrtGraph.cxx:177
int m_version
the file version
Definition: FullWrtGraph.cxx:86
MWAWColor m_fontColor
the default font color
Definition: FullWrtGraph.cxx:125
shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:517
virtual ~SubDocument()
destructor
Definition: FullWrtGraph.cxx:106
FullWrtGraph(FullWrtGraph const &orig)
bool sendPageGraphics()
try to send the page graphic
Definition: FullWrtGraph.cxx:777
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:781
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
shared_ptr< Entry > EntryPtr
Definition: FullWrtStruct.hxx:147
static MWAWPictData * get(MWAWInputStreamPtr input, int size)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:108
MWAWParserStatePtr m_parserState
the parser state
Definition: FullWrtGraph.hxx:140
virtual bool operator!=(MWAWSubDocument const &doc) const
operator!=
Definition: FullWrtGraph.cxx:145
bool getBorder(int bId, FullWrtStruct::Border &border) const
try to return a border corresponding to an id
Definition: FullWrtGraph.cxx:191
int version() const
returns the file version
Definition: FullWrtGraph.cxx:170
the main class to read the graphic part of a FullWrite Text file
Definition: FullWrtGraph.hxx:68
bool send(int fileId, MWAWColor fontColor=MWAWColor::black())
ask the text parser to send a zone
Definition: FullWrtParser.cxx:370
Generated on Wed Jun 17 2020 06:30:09 for libmwaw by
doxygen 1.8.18