Go to the documentation of this file.
106 void storeObjects(std::map<int,WPSEmbeddedObject>
const &objectsMap);
144 mutable std::shared_ptr<WPS8GraphInternal::State>
m_state;
std::map< int, WPSEmbeddedObject > m_oleMap
a map id -> OleData
Definition: WPS8Graph.cpp:101
bool hasName(std::string const &nam) const
checks if the entry name is equal to name
Definition: WPSEntry.h:152
void setName(std::string const &nam)
sets the name of the entry
Definition: WPSEntry.h:142
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:78
the main class to read/store pictures in a Pc MS Works document v5-8
Definition: WPS8Graph.h:54
std::shared_ptr< WPSContentListener > WPSContentListenerPtr
shared pointer to WPSContentListener
Definition: libwps_internal.h:107
int numPages() const
returns the number page where we find a picture. In practice, 0/1
Definition: WPS8Graph.cpp:130
void setListener(WPSContentListenerPtr &listen)
sets the listener
Definition: WPS8Graph.h:64
bool readBDR(RVNGInputStreamPtr const &input, WPSEntry const &entry)
parsed BDR/WBDR zone: a complex border formed with 8 pictures
Definition: WPS8Graph.cpp:491
Wrapping m_wrapping
Wrapping.
Definition: WPSPosition.h:249
void sendBorder(int borderId)
sends the border frames.
Definition: WPS8Graph.cpp:317
int m_borderSize[3]
three value to stored the border's sizes
Definition: WPS8Graph.cpp:71
WPS8Parser & m_mainParser
the main parser
Definition: WPS8Graph.h:141
std::map< int, WPSEntry > m_ibgfMap
a map id -> ibgf entry (background picture entry)
Definition: WPS8Graph.cpp:97
int m_version
the version
Definition: WPS8Graph.cpp:91
basic class to store an entry in a file This contained :
Definition: WPSEntry.h:39
void sendObjects(int page, int pageToIgnore=-2)
send all the objects of a given page:
Definition: WPS8Graph.cpp:246
NameMultiMap & getNameEntryMap()
Definition: WPSParser.h:70
std::string const & name() const
name of the entry
Definition: WPSEntry.h:147
@ CharBaseLine
Definition: WPSPosition.h:43
~WPS8Graph()
destructor
Definition: WPS8Graph.cpp:117
void setId(int i)
sets the id
Definition: WPSEntry.h:163
Vec2f m_size
the picture size in inches(if known)
Definition: libwps_internal.h:1120
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:214
std::string m_name
Internal: the border name.
Definition: WPS8Graph.cpp:66
Vec2f const & size() const
returns the frame size
Definition: WPSPosition.h:123
#define WPS_DEBUG_MSG(M)
Definition: libwps_internal.h:134
uint32_t readU32(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:76
class to store the paragraph properties
Definition: WPSParagraph.h:58
WPS8Graph(WPS8Parser &parser)
constructor
Definition: WPS8Graph.cpp:108
T x() const
first element
Definition: libwps_internal.h:542
WPS8Graph & operator=(WPS8Graph const &orig)=delete
bool readIBGF(RVNGInputStreamPtr const &input, WPSEntry const &entry)
reads a IBGF zone: an entry to a background picture
Definition: WPS8Graph.cpp:429
void setNaturalSize(Vec2f const &natSize)
sets the natural size (if known)
Definition: WPSPosition.h:197
WPSContentListenerPtr m_listener
the listener
Definition: WPS8Graph.h:138
libwps::DebugFile & ascii()
returns the debug file
Definition: WPS8Graph.h:128
void setY(T yy)
resets the second element
Definition: libwps_internal.h:576
std::vector< WPSEmbeddedObject > m_pictList
the border's pictures: 1 to 8 pictures..
Definition: WPS8Graph.cpp:75
void storeObjects(std::map< int, WPSEmbeddedObject > const &objectsMap)
adds a list of object
Definition: WPS8Graph.cpp:143
Internal: the structures of a WPS8Graph.
Definition: WPS8Graph.cpp:49
bool readPICT(RVNGInputStreamPtr const &input, WPSEntry const &entry)
reads a PICT/MEF4 entry : reads uncompressed picture of sx*sy of rgb
Definition: WPS8Graph.cpp:360
static void addNote(char const *)
Definition: WPSDebug.h:221
long begin() const
returns the begin offset
Definition: WPSEntry.h:73
Internal: the state of a WPS8Graph.
Definition: WPS8Graph.cpp:82
std::string const & type() const
returns the type of the entry
Definition: WPSEntry.h:131
int8_t read8(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:59
static bool readWMF(std::shared_ptr< WPSStream > stream, WPSEmbeddedObject &object, long endPos=-1)
try to read a wmf file: 0x0[12]00 0xXX00(with XX>=9)
Definition: WPSOLEObject.cpp:102
small class use to define a embedded object
Definition: libwps_internal.h:1077
This class parses Works version 2000 through 8.
Definition: WPS8.h:50
int id() const
returns the entry id
Definition: WPSEntry.h:158
long length() const
returns the length of the zone
Definition: WPSEntry.h:83
Definition: WPSDebug.h:192
uint8_t readU8(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:40
int version() const
Definition: WPSParser.h:56
Border()
constructor
Definition: WPS8Graph.cpp:56
libwps::DebugFile & m_asciiFile
the ascii file
Definition: WPS8Graph.h:147
std::map< int, Border > m_borderMap
a map id -> border
Definition: WPS8Graph.cpp:95
bool sendObject(WPSPosition const &pos, int id, bool ole)
sends an object
Definition: WPS8Graph.cpp:191
WPS8Graph(WPS8Graph const &orig)=delete
bool hasType(std::string const &tp) const
returns true if the type entry == type
Definition: WPSEntry.h:136
std::map< int, WPSEmbeddedObject > m_pictMap
a map id -> pictData
Definition: WPS8Graph.cpp:99
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:87
bool readStructures(RVNGInputStreamPtr const &input)
finds all entries which correspond to some pictures, parses them and stores data
Definition: WPS8Graph.cpp:151
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: WPSPosition.h:40
int16_t read16(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:71
void set(T xx, T yy)
resets the two elements
Definition: libwps_internal.h:565
static WPSFont getDefault()
returns the default font ( Courier 12pt)
Definition: WPSFont.h:53
State()
Definition: WPS8Graph.cpp:83
void setX(T xx)
resets the first element
Definition: libwps_internal.h:571
int m_numPages
the number page
Definition: WPS8Graph.cpp:93
void computePositions() const
computes the final position of all found figures.
Definition: WPS8Graph.cpp:138
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: WPSEntry.h:120
bool m_parsed
flag to know if the border was sent to the listener
Definition: WPS8Graph.cpp:77
void setSize(Vec2f const &sz)
sets the frame size
Definition: WPSPosition.h:192
bool sendIBGF(WPSPosition const &pos, int ibgfId)
sends data corresponding to a ibgf entry on a given pos position
Definition: WPS8Graph.cpp:228
int version() const
returns the file version
Definition: WPS8Graph.cpp:123
Definition: WPSDebug.h:208
std::shared_ptr< WPS8GraphInternal::State > m_state
the state
Definition: WPS8Graph.h:144
std::string const & extra() const
retrieves the extra string
Definition: WPSEntry.h:169
Internal: a complex border picture.
Definition: WPS8Graph.cpp:54
int m_borderId[8]
the picture uses to draw TopLeft corner, Top border, TopRight corner, Right border....
Definition: WPS8Graph.cpp:73
T y() const
second element
Definition: libwps_internal.h:547
@ WDynamic
Definition: WPSPosition.h:45
Generated on Mon Sep 7 2020 20:00:03 for libwps by
doxygen 1.8.20