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 std::shared_ptr<LightWayTxtGraphInternal::State>
m_state;
std::map< int, MWAWEntry > m_idJPEGMap
a map id -> JPEG entry
Definition: LightWayTxtGraph.cxx:73
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
LightWayTxtParser * m_mainParser
the main parser;
Definition: LightWayTxtGraph.hxx:124
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
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:237
bool isParsed() const
a flag to know if the entry was parsed or not
Definition: MWAWEntry.hxx:121
bool sendPageGraphics()
try to send the page graphic
Definition: LightWayTxtGraph.cxx:281
virtual ~LightWayTxtGraph()
destructor
Definition: LightWayTxtGraph.cxx:87
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: LightWayTxtParser.cxx:168
int id() const
returns the id
Definition: MWAWEntry.hxx:164
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
void setUnit(librevenge::RVNGUnit newUnit)
sets the dimension unit
Definition: MWAWPosition.hxx:225
static MWAWPictData * get(MWAWInputStreamPtr const &input, int size)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:108
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
LightWayTxtGraph(LightWayTxtGraph const &orig)=delete
bool sendPICT(MWAWEntry const &entry)
try to send a PICT resource
Definition: LightWayTxtGraph.cxx:146
bool sendJPEG(MWAWEntry const &entry)
try to send a JPEG resource
Definition: LightWayTxtGraph.cxx:177
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:113
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:193
void setSize(MWAWVec2f const &sz)
sets the frame size
Definition: MWAWPosition.hxx:215
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:286
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
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
std::map< int, MWAWEntry > m_idPictMap
a map id -> PICT entry
Definition: LightWayTxtGraph.cxx:71
@ Char
Definition: MWAWPosition.hxx:51
int m_numPages
Definition: LightWayTxtGraph.cxx:69
the main class to read the graphic part of a LightWay Text file
Definition: LightWayTxtGraph.hxx:64
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
Internal: the structures of a LightWayTxtGraph.
Definition: LightWayTxtGraph.cxx:57
int version() const
returns the file version
Definition: LightWayTxtGraph.cxx:91
Defines MWAWTextListener: the libmwaw word processor listener.
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
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:99
std::shared_ptr< LightWayTxtGraphInternal::State > m_state
the state
Definition: LightWayTxtGraph.hxx:121
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1067
void send(int id)
try to send a graph
Definition: LightWayTxtGraph.cxx:268
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:96
static bool findJPEGSize(librevenge::RVNGBinaryData const &data, MWAWVec2i &sz)
try to find a JPEG size
Definition: LightWayTxtGraph.cxx:223
LightWayTxtGraph & operator=(LightWayTxtGraph const &orig)=delete
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: LightWayTxtParser.cxx:163
LightWayTxtGraph(LightWayTxtParser &parser)
constructor
Definition: LightWayTxtGraph.cxx:80
bool createZones()
finds the different graphic zones
Definition: LightWayTxtGraph.cxx:108
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20