Go to the documentation of this file.
38 #ifndef LIGHT_WAY_TXT_GRAPH
39 # define LIGHT_WAY_TXT_GRAPH
44 #include <librevenge/librevenge.h>
121 shared_ptr<LightWayTxtGraphInternal::State>
m_state;
std::map< int, MWAWEntry > m_idJPEGMap
a map id -> JPEG entry
Definition: LightWayTxtGraph.cxx:68
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
shared_ptr< LightWayTxtGraphInternal::State > m_state
the state
Definition: LightWayTxtGraph.hxx:121
LightWayTxtParser * m_mainParser
the main parser;
Definition: LightWayTxtGraph.hxx:124
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:785
State()
constructor
Definition: LightWayTxtGraph.cxx:62
the main class to read a LightWay Text file
Definition: LightWayTxtParser.hxx:59
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
bool sendPageGraphics()
try to send the page graphic
Definition: LightWayTxtGraph.cxx:276
virtual ~LightWayTxtGraph()
destructor
Definition: LightWayTxtGraph.cxx:81
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: LightWayTxtParser.cxx:160
int id() const
returns the id
Definition: MWAWEntry.hxx:153
small class use to define a embedded object
Definition: libmwaw_internal.hxx:425
void setUnit(librevenge::RVNGUnit newUnit)
sets the dimension unit
Definition: MWAWPosition.hxx:209
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
bool sendPICT(MWAWEntry const &entry)
try to send a PICT resource
Definition: LightWayTxtGraph.cxx:140
bool sendJPEG(MWAWEntry const &entry)
try to send a JPEG resource
Definition: LightWayTxtGraph.cxx:171
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:105
MWAWRSRCParserPtr & getRSRCParser()
returns the rsrc parser
Definition: MWAWParser.hxx:190
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
void setSize(MWAWVec2f const &sz)
sets the frame size
Definition: MWAWPosition.hxx:199
MWAWParserStatePtr m_parserState
the parser state
Definition: LightWayTxtGraph.hxx:118
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: LightWayTxtGraph.cxx:281
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
Internal: the state of a LightWayTxtGraph.
Definition: LightWayTxtGraph.cxx:60
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:82
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
std::map< int, MWAWEntry > m_idPictMap
a map id -> PICT entry
Definition: LightWayTxtGraph.cxx:66
@ Char
Definition: MWAWPosition.hxx:51
int m_numPages
Definition: LightWayTxtGraph.cxx:64
the main class to read the graphic part of a LightWay Text file
Definition: LightWayTxtGraph.hxx:64
LightWayTxtGraph(LightWayTxtGraph const &orig)
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
long end() const
returns the end offset
Definition: MWAWEntry.hxx:77
Internal: the structures of a LightWayTxtGraph.
Definition: LightWayTxtGraph.cxx:57
int version() const
returns the file version
Definition: LightWayTxtGraph.cxx:84
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:513
LightWayTxtGraph & operator=(LightWayTxtGraph const &orig)
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1008
void send(int id)
try to send a graph
Definition: LightWayTxtGraph.cxx:263
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: LightWayTxtGraph.cxx:89
static bool findJPEGSize(librevenge::RVNGBinaryData const &data, MWAWVec2i &sz)
try to find a JPEG size
Definition: LightWayTxtGraph.cxx:217
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: LightWayTxtParser.cxx:155
LightWayTxtGraph(LightWayTxtParser &parser)
constructor
Definition: LightWayTxtGraph.cxx:75
bool createZones()
finds the different graphic zones
Definition: LightWayTxtGraph.cxx:101
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
static MWAWPictData * get(MWAWInputStreamPtr input, int size)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:108
Generated on Wed Jun 17 2020 06:30:10 for libmwaw by
doxygen 1.8.18