55 #ifndef WPS_OLE_PARSER_H
56 #define WPS_OLE_PARSER_H
61 #include <libwpd-stream/WPXStream.h>
74 namespace WPSOLEParserInternal
94 bool parse(shared_ptr<libwps::Storage> fileInput);
std::vector< WPXBinaryData > const & getObjects() const
returns the list of data which have been read
Definition: WPSOLEParser.h:113
bool isOle10Native(WPXInputStreamPtr &ip, std::string const &oleName)
theOle10Native : basic Windows© picture, with no size
Definition: WPSOLEParser.cpp:872
std::vector< int > const & getObjectsId() const
returns the list of id for which we have find a representation
Definition: WPSOLEParser.h:103
shared_ptr< WPXInputStream > WPXInputStreamPtr
Definition: libwps_internal.h:74
Definition: WPSDebug.h:198
bool parse(shared_ptr< libwps::Storage > fileInput)
tries to parse basic OLE (excepted mainName)
Definition: WPSOLEParser.cpp:267
bool readOlePres(WPXInputStreamPtr &ip, WPXBinaryData &data, WPSPosition &pos, libwps::DebugFile &ascii)
extracts the picture of OlePres001 if it is possible
Definition: WPSOLEParser.cpp:761
bool readCONTENTS(WPXInputStreamPtr &input, std::string const &oleName, WPXBinaryData &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:1035
a class used to parse some basic oles Tries to read the different ole parts and stores their contents...
Definition: WPSOLEParser.h:82
WPSOLEParser(const std::string &mainName)
constructor
Definition: WPSOLEParser.cpp:228
bool readMM(WPXInputStreamPtr &input, std::string const &oleName, libwps::DebugFile &ascii)
the "MM" small structure : seems to contain the file versions
Definition: WPSOLEParser.cpp:530
bool readObjInfo(WPXInputStreamPtr &input, std::string const &oleName, libwps::DebugFile &ascii)
the "ObjInfo" small structure : seems to contain 3 ints=0,3,4
Definition: WPSOLEParser.cpp:509
~WPSOLEParser()
destructor
Definition: WPSOLEParser.cpp:234
std::vector< int > m_objectsId
list of pictures id
Definition: WPSOLEParser.h:177
bool isOlePres(WPXInputStreamPtr &ip, std::string const &oleName)
the OlePres001 seems to contain standart picture file and size
Definition: WPSOLEParser.cpp:716
bool readContents(WPXInputStreamPtr &input, std::string const &oleName, WPXBinaryData &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:927
bool readOle10Native(WPXInputStreamPtr &ip, WPXBinaryData &data, libwps::DebugFile &ascii)
extracts the picture if it is possible
Definition: WPSOLEParser.cpp:888
std::vector< WPSPosition > m_objectsPosition
list of picture size ( if known)
Definition: WPSOLEParser.h:175
shared_ptr< WPSOLEParserInternal::CompObj > m_compObjIdName
a smart ptr used to stored the list of compobj id->name
Definition: WPSOLEParser.h:180
bool readCompObj(WPXInputStreamPtr &ip, std::string const &oleName, libwps::DebugFile &ascii)
the "CompObj" contains : UserType,ClipName,ProgIdName
Definition: WPSOLEParser.cpp:586
std::string m_avoidOLE
if filled, does not parse content with this name
Definition: WPSOLEParser.h:168
std::vector< WPSPosition > const & getObjectsPosition() const
returns the list of data positions which have been read
Definition: WPSOLEParser.h:108
std::vector< std::string > m_unknownOLEs
list of ole which can not be parsed
Definition: WPSOLEParser.h:170
std::vector< WPXBinaryData > m_objects
list of pictures read
Definition: WPSOLEParser.h:173
Class to define the position of an object (textbox, picture, ..) in the document. ...
Definition: WPSPosition.h:39
bool getObject(int id, WPXBinaryData &obj, WPSPosition &pos) const
returns the picture corresponding to an id
Definition: WPSOLEParser.cpp:239
void setObject(int id, WPXBinaryData const &obj, WPSPosition const &pos)
sets an object just in case, the external parsing find another representation
Definition: WPSOLEParser.cpp:252
bool readOle(WPXInputStreamPtr &ip, std::string const &oleName, libwps::DebugFile &ascii)
the "Ole" small structure : unknown contain
Definition: WPSOLEParser.cpp:474
std::vector< std::string > const & getNotParse() const
returns the list of unknown ole
Definition: WPSOLEParser.h:97