a class used to parse some basic oles Tries to read the different ole parts and stores their contents in form of picture. More...
#include <STOFFOLEParser.hxx>
Classes | |
| struct | OleContent |
| structure use to store an object content More... | |
| struct | OleDirectory |
| Internal: internal method to keep ole directory and their content. More... | |
Public Member Functions | |
| STOFFOLEParser () | |
| constructor | |
| ~STOFFOLEParser () | |
| destructor | |
| bool | parse (STOFFInputStreamPtr fileInput) |
| tries to parse basic OLE (excepted mainName) | |
| std::vector< std::shared_ptr< OleDirectory > > & | getDirectoryList () |
| returns the list of directory ole | |
| std::shared_ptr< OleDirectory > | getDirectory (std::string const &dir) |
| returns a OleDirectory corresponding to a dir if found | |
| bool | getCompObjName (STOFFInputStreamPtr fileInput, std::string &programName) |
| returns the main compobj program name | |
Protected Member Functions | |
| bool | readCompObj (STOFFInputStreamPtr ip, OleDirectory &directory) |
| parse the "CompObj" contains : UserType,ClipName,ProgIdName | |
| bool | readContents (STOFFInputStreamPtr input, OleContent &content) |
| the Contents : in general a picture : a PNG, an JPEG, a basic metafile, I find also a Word art picture, which are not sucefull read | |
| bool | readCONTENTS (STOFFInputStreamPtr input, OleContent &content) |
| the CONTENTS : seems to store a header size, the header and then a object in EMF (with the same header)... | |
Static Protected Member Functions | |
| static bool | readSummaryInformation (STOFFInputStreamPtr input, std::string const &oleName, libstoff::DebugFile &ascii) |
| the summary information | |
| static bool | readOle (STOFFInputStreamPtr ip, std::string const &oleName, libstoff::DebugFile &ascii) |
| the "Ole" small structure : unknown contain | |
| static bool | readObjInfo (STOFFInputStreamPtr input, std::string const &oleName, libstoff::DebugFile &ascii) |
| the "ObjInfo" small structure : seems to contain 3 ints=0,3,4 | |
| static bool | isOlePres (STOFFInputStreamPtr ip, std::string const &oleName) |
| the OlePres001 seems to contain standart picture file and size | |
| static bool | readOlePres (STOFFInputStreamPtr ip, OleContent &content) |
| extracts the picture of OlePres001 if it is possible. | |
| static bool | isOle10Native (STOFFInputStreamPtr ip, std::string const &oleName) |
| theOle10Native : basic Windows© picture, with no size | |
| static bool | readOle10Native (STOFFInputStreamPtr ip, OleContent &content) |
| extracts the picture if it is possible. | |
Protected Attributes | |
| std::shared_ptr< STOFFOLEParserInternal::State > | m_state |
| the class state | |
a class used to parse some basic oles Tries to read the different ole parts and stores their contents in form of picture.
| STOFFOLEParser::STOFFOLEParser | ( | ) |
constructor
| STOFFOLEParser::~STOFFOLEParser | ( | ) |
destructor
| bool STOFFOLEParser::getCompObjName | ( | STOFFInputStreamPtr | fileInput, |
| std::string & | programName ) |
returns the main compobj program name
Referenced by SDAParser::checkHeader().
| std::shared_ptr< STOFFOLEParser::OleDirectory > STOFFOLEParser::getDirectory | ( | std::string const & | dir | ) |
returns a OleDirectory corresponding to a dir if found
| std::vector< std::shared_ptr< STOFFOLEParser::OleDirectory > > & STOFFOLEParser::getDirectoryList | ( | ) |
returns the list of directory ole
|
staticprotected |
theOle10Native : basic Windows© picture, with no size
Referenced by parse(), and readOle10Native().
|
staticprotected |
the OlePres001 seems to contain standart picture file and size
Referenced by parse(), and readOlePres().
| bool STOFFOLEParser::parse | ( | STOFFInputStreamPtr | fileInput | ) |
tries to parse basic OLE (excepted mainName)
|
protected |
parse the "CompObj" contains : UserType,ClipName,ProgIdName
Referenced by getCompObjName(), and parse().
|
protected |
the CONTENTS : seems to store a header size, the header and then a object in EMF (with the same header)...
Referenced by parse().
|
protected |
the Contents : in general a picture : a PNG, an JPEG, a basic metafile, I find also a Word art picture, which are not sucefull read
Referenced by parse().
|
staticprotected |
the "ObjInfo" small structure : seems to contain 3 ints=0,3,4
Referenced by parse().
|
staticprotected |
the "Ole" small structure : unknown contain
Referenced by parse().
|
staticprotected |
extracts the picture if it is possible.
Referenced by parse().
|
staticprotected |
extracts the picture of OlePres001 if it is possible.
Referenced by parse().
|
staticprotected |
the summary information
Referenced by parse().
|
protected |
the class state
Referenced by getDirectory(), getDirectoryList(), parse(), readCompObj(), and STOFFOLEParser().