Go to the documentation of this file.
29 #ifndef WPS_OLE1_PARSER_H
30 #define WPS_OLE1_PARSER_H
34 #include <librevenge-stream/librevenge-stream.h>
53 explicit WPSOLE1Parser(std::shared_ptr<WPSStream>
const &fileStream);
87 std::shared_ptr<WPSOLE1ParserInternal::State>
m_state;
Definition: WPSOLE1Parser.cpp:47
bool updateEmbeddedObject(int id, WPSEmbeddedObject &object) const
try to retrieve the content of a graphic, knowing it local id
Definition: WPSOLE1Parser.cpp:442
static std::string str()
Definition: WPSDebug.h:200
bool checkFilePosition(long pos) const
return true if the position is in the file
Definition: WPSStream.h:38
static void addPos(long)
Definition: WPSDebug.h:220
OLEZone(int levl)
constructor
Definition: WPSOLE1Parser.cpp:52
bool updateZoneNames(WPSOLE1ParserInternal::OLEZone &zone) const
try to update the zone name
Definition: WPSOLE1Parser.cpp:368
Internal: internal method to keep ole1 state.
Definition: WPSOLE1Parser.cpp:85
Definition: libwps_internal.cpp:39
small structure use to store a stream and it debug file
Definition: WPSStream.h:30
std::shared_ptr< WPSStream > getStream(WPSOLE1ParserInternal::OLEZone const &zone) const
try to return a stream correponding to a zone
Definition: WPSOLE1Parser.cpp:401
State(std::shared_ptr< WPSStream > const &fileStream)
constructor
Definition: WPSOLE1Parser.cpp:87
std::map< int, std::string > m_idToTypeNameMap
the map id to zone type
Definition: WPSOLE1Parser.cpp:98
bool createZones()
try to find the different zones
Definition: WPSOLE1Parser.cpp:140
~WPSOLE1Parser()
destructor
Definition: WPSOLE1Parser.cpp:127
bool m_parsed
a flag to know if the zone is parsed
Definition: WPSOLE1Parser.cpp:80
std::vector< OLEZone > m_childList
the list of child
Definition: WPSOLE1Parser.cpp:76
internal class used to create a RVNGInputStream from a unsigned char's pointer
Definition: WPSStringStream.h:42
long m_defPosition
the position where this zone is defined
Definition: WPSOLE1Parser.cpp:66
bool updateMetaData(librevenge::RVNGPropertyList &list, libwps_tools_win::Font::Type encoding) const
try to retrieve the meta data
Definition: WPSOLE1Parser.cpp:482
#define WPS_DEBUG_MSG(M)
Definition: libwps_internal.h:134
uint32_t readU32(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:76
static bool readOLE(std::shared_ptr< WPSStream > stream, WPSEmbeddedObject &object, long endPos=-1)
try to read a OLE: 0x0105 ...
Definition: WPSOLEObject.cpp:139
int m_level
the level
Definition: WPSOLE1Parser.cpp:64
std::shared_ptr< WPSOLE1ParserInternal::State > m_state
a smart ptr used to stored the file data
Definition: WPSOLE1Parser.h:87
void checkIfParsed(WPSOLE1ParserInternal::OLEZone const &zone) const
check for unparsed zone
Definition: WPSOLE1Parser.cpp:624
a class used to parse a container which is used by Lotus123 (and also by RagTime).
Definition: WPSOLE1Parser.h:50
std::map< int, OLEZone > m_idToZoneMap
the map id to zone
Definition: WPSOLE1Parser.cpp:96
RVNGInputStreamPtr m_input
the stream
Definition: WPSStream.h:43
static void addNote(char const *)
Definition: WPSDebug.h:221
small class use to define a embedded object
Definition: libwps_internal.h:1077
std::string m_names[2]
the list of names
Definition: WPSOLE1Parser.cpp:78
std::shared_ptr< WPSStream > getStreamForName(std::string const &name) const
try to return a string corresponding to a name:
Definition: WPSOLE1Parser.cpp:346
std::vector< long > m_lengthList
the list of length
Definition: WPSOLE1Parser.cpp:74
Definition: WPSDebug.h:192
std::vector< int > m_idsList
the list of pair id:type
Definition: WPSOLE1Parser.cpp:70
uint8_t readU8(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:40
std::shared_ptr< WPSStream > getStreamForId(int id) const
try to return a string corresponding to some id
Definition: WPSOLE1Parser.cpp:358
libwps::DebugFile & m_ascii
the ascii file
Definition: WPSStream.h:45
uint16_t readU16(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:64
std::shared_ptr< WPSStream > m_fileStream
the file stream
Definition: WPSOLE1Parser.cpp:94
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:87
static void addDelimiter(long, char)
Definition: WPSDebug.h:222
an OLE Zone
Definition: WPSOLE1Parser.cpp:50
std::vector< int > m_pictureIdToZoneIdList
a map local id to picture id zone
Definition: WPSOLE1Parser.cpp:100
bool m_pictureIdToZoneIdListCreated
a flag to know if the pictureIdToZoneIdList is created
Definition: WPSOLE1Parser.cpp:102
std::vector< long > m_beginList
the list of pointers
Definition: WPSOLE1Parser.cpp:72
WPSOLE1Parser(std::shared_ptr< WPSStream > const &fileStream)
constructor knowing the file stream
Definition: WPSOLE1Parser.cpp:122
Definition: WPSDebug.h:208
std::map< int, unsigned long > m_varIdToValueMap
a list of variable
Definition: WPSOLE1Parser.cpp:68
Generated on Mon Aug 12 2024 03:18:42 for libwps by
doxygen 1.8.20