55 #ifndef WPS_OLE_PARSER_H
56 #define WPS_OLE_PARSER_H
61 #include <librevenge-stream/librevenge-stream.h>
73 namespace WPSOLEParserInternal
std::vector< int > const & getObjectsId() const
returns the list of id for which we have find a representation
Definition: WPSOLEParser.h:117
WPSPosition m_position
the position
Definition: WPSOLEParser.h:86
WPSOLEParserObject()
constructor
Definition: WPSOLEParser.h:82
Definition: WPSDebug.h:196
bool readCompObj(RVNGInputStreamPtr &ip, std::string const &oleName, libwps::DebugFile &ascii)
the "CompObj" contains : UserType,ClipName,ProgIdName
Definition: WPSOLEParser.cpp:565
static bool isOlePres(RVNGInputStreamPtr &ip, std::string const &oleName)
the OlePres001 seems to contain standart picture file and size
Definition: WPSOLEParser.cpp:695
std::string m_mime
the mime type
Definition: WPSOLEParser.h:90
a class used to parse some basic oles Tries to read the different ole parts and stores their contents...
Definition: WPSOLEParser.h:96
static bool readObjInfo(RVNGInputStreamPtr &input, std::string const &oleName, libwps::DebugFile &ascii)
the "ObjInfo" small structure : seems to contain 3 ints=0,3,4
Definition: WPSOLEParser.cpp:488
static bool readOlePres(RVNGInputStreamPtr &ip, librevenge::RVNGBinaryData &data, WPSPosition &pos, libwps::DebugFile &ascii)
extracts the picture of OlePres001 if it is possible
Definition: WPSOLEParser.cpp:740
WPSOLEParser(const std::string &mainName)
constructor
Definition: WPSOLEParser.cpp:230
~WPSOLEParser()
destructor
Definition: WPSOLEParser.cpp:235
small struct to store an object
Definition: WPSOLEParser.h:79
std::vector< int > m_objectsId
list of pictures id
Definition: WPSOLEParser.h:179
std::vector< WPSOLEParserObject > m_objects
list of pictures read
Definition: WPSOLEParser.h:177
bool parse(RVNGInputStreamPtr fileInput)
tries to parse basic OLE (excepted mainName)
Definition: WPSOLEParser.cpp:240
static bool readOle(RVNGInputStreamPtr &ip, std::string const &oleName, libwps::DebugFile &ascii)
the "Ole" small structure : unknown contain
Definition: WPSOLEParser.cpp:453
static bool readMN0AndCheckWKS(RVNGInputStreamPtr &input, std::string const &oleName, librevenge::RVNGBinaryData &wksData, libwps::DebugFile &ascii)
the "MN0" small structure : can contains a WKS file...
Definition: WPSOLEParser.cpp:1125
shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:81
static bool readContents(RVNGInputStreamPtr &input, std::string const &oleName, librevenge::RVNGBinaryData &pict, WPSPosition &pos, libwps::DebugFile &ascii)
the Contents : in general a picture : a PNG, an JPEG, a basic metafile, I find also a Word art pictur...
Definition: WPSOLEParser.cpp:906
static bool readCONTENTS(RVNGInputStreamPtr &input, std::string const &oleName, librevenge::RVNGBinaryData &pict, WPSPosition &pos, libwps::DebugFile &ascii)
the CONTENTS : seems to store a header size, the header and then a object in EMF (with the same heade...
Definition: WPSOLEParser.cpp:1014
librevenge::RVNGBinaryData m_data
the data
Definition: WPSOLEParser.h:88
static bool isOle10Native(RVNGInputStreamPtr &ip, std::string const &oleName)
theOle10Native : basic Windows© picture, with no size
Definition: WPSOLEParser.cpp:851
static bool readOle10Native(RVNGInputStreamPtr &ip, librevenge::RVNGBinaryData &data, libwps::DebugFile &ascii)
extracts the picture if it is possible
Definition: WPSOLEParser.cpp:867
shared_ptr< WPSOLEParserInternal::CompObj > m_compObjIdName
a smart ptr used to stored the list of compobj id->name
Definition: WPSOLEParser.h:182
std::string m_avoidOLE
if filled, does not parse content with this name
Definition: WPSOLEParser.h:172
std::vector< WPSOLEParserObject > const & getObjects() const
returns the list of data positions which have been read
Definition: WPSOLEParser.h:122
std::vector< std::string > m_unknownOLEs
list of ole which can not be parsed
Definition: WPSOLEParser.h:174
Class to define the position of an object (textbox, picture, ..) in the document. ...
Definition: WPSPosition.h:39
std::vector< std::string > const & getNotParse() const
returns the list of unknown ole
Definition: WPSOLEParser.h:111
static bool readMM(RVNGInputStreamPtr &input, std::string const &oleName, libwps::DebugFile &ascii)
the "MM" small structure : seems to contain the file versions
Definition: WPSOLEParser.cpp:509