Go to the documentation of this file.
88 void storeObjects(std::map<int,WPSEmbeddedObject>
const &objectsMap);
125 mutable std::shared_ptr<WPS4GraphInternal::State>
m_state;
std::shared_ptr< WPS4GraphInternal::State > m_state
the state
Definition: WPS4Graph.h:125
WPS4Graph & operator=(WPS4Graph const &orig)=delete
void sendObjects(int page)
send all the objects of a given page:
Definition: WPS4Graph.cpp:129
static std::string str()
Definition: WPSDebug.h:200
static void addPos(long)
Definition: WPSDebug.h:220
long end() const
returns the end offset
Definition: WPSEntry.h:76
State()
Definition: WPS4Graph.cpp:51
libwps::DebugFile & m_asciiFile
the ascii file
Definition: WPS4Graph.h:128
void computePositions() const
computes the position of all found figures.
Definition: WPS4Graph.cpp:92
std::shared_ptr< WPSContentListener > WPSContentListenerPtr
shared pointer to WPSContentListener
Definition: libwps_internal.h:107
int m_numPages
the number page
Definition: WPS4Graph.cpp:59
int m_version
the version
Definition: WPS4Graph.cpp:57
Internal: the state of a WPS4Graph.
Definition: WPS4Graph.cpp:49
Wrapping m_wrapping
Wrapping.
Definition: WPSPosition.h:247
bool valid(bool checkId=false) const
returns true if the zone length is positive
Definition: WPSEntry.h:87
Internal: the structures of a WPS4Graph.
Definition: WPS4Graph.cpp:46
WPS4Graph(WPS4Parser &parser)
constructor given the main parser of the MN0 zone
Definition: WPS4Graph.cpp:67
basic class to store an entry in a file This contained :
Definition: WPSEntry.h:38
int readObject(RVNGInputStreamPtr input, WPSEntry const &entry)
tries to find a picture in the zone pointed by entry
Definition: WPS4Graph.cpp:170
Definition: WPSPosition.h:43
int numPages() const
returns the number page where we find a picture. In practice, 0/1
Definition: WPS4Graph.cpp:87
the main class to read/store picture in a Pc MS Works document v1-4
Definition: WPS4Graph.h:56
static bool readMetafile(std::shared_ptr< WPSStream > stream, WPSEmbeddedObject &object, long endPos=-1, bool strict=false)
try to read a metafile data
Definition: WPSOLEObject.cpp:43
WPSContentListenerPtr m_listener
the listener
Definition: WPS4Graph.h:119
WPS4Parser & m_mainParser
the main parser
Definition: WPS4Graph.h:122
Vec2< float > Vec2f
Vec2 of float.
Definition: libwps_internal.h:704
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: WPSPosition.h:212
#define WPS_DEBUG_MSG(M)
Definition: libwps_internal.h:134
void storeObjects(std::map< int, WPSEmbeddedObject > const &objectsMap)
store a list of object
Definition: WPS4Graph.cpp:97
class to store the paragraph properties
Definition: WPSParagraph.h:57
static bool readOLE(std::shared_ptr< WPSStream > stream, WPSEmbeddedObject &object, long endPos=-1)
try to read a OLE: 0x0105 ...
Definition: WPSOLEObject.cpp:139
void setNaturalSize(Vec2f const &natSize)
sets the natural size (if known)
Definition: WPSPosition.h:195
static void addNote(char const *)
Definition: WPSDebug.h:221
long begin() const
returns the begin offset
Definition: WPSEntry.h:71
small class use to define a embedded object
Definition: libwps_internal.h:1076
int id() const
returns the entry id
Definition: WPSEntry.h:156
long length() const
returns the length of the zone
Definition: WPSEntry.h:81
Definition: WPSDebug.h:191
int version() const
Definition: WPSParser.h:56
int version() const
returns the file version
Definition: WPS4Graph.cpp:80
uint16_t readU16(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:64
void setListener(WPSContentListenerPtr &listen)
sets the listener
Definition: WPS4Graph.h:67
This class parses Works version 2 through 4.
Definition: WPS4.h:48
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:87
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: WPSPosition.h:39
int16_t read16(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:71
static WPSFont getDefault()
returns the default font ( Courier 12pt)
Definition: WPSFont.h:51
libwps::DebugFile & ascii()
returns the debug file
Definition: WPS4Graph.h:109
void sendObject(WPSPosition const &position, int id)
sends an object with identificator id as a character to a given pposition
Definition: WPS4Graph.cpp:108
std::map< int, WPSEmbeddedObject > m_idToObjectMap
the map id to objects
Definition: WPS4Graph.cpp:62
Definition: WPSDebug.h:207
~WPS4Graph()
destructor
Definition: WPS4Graph.cpp:75
Definition: WPSPosition.h:45
Generated on Mon Jan 20 2020 20:05:54 for libwps by
doxygen 1.8.16