VSDMetaData.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3 * This file is part of the libvisio project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10 #ifndef __VSDMETADATA_H__
11 #define __VSDMETADATA_H__
12
13 #include <vector>
14 #include <utility>
15 #include <map>
16 #include <librevenge-stream/librevenge-stream.h>
17 #include <librevenge/librevenge.h>
18 #include "libvisio_utils.h"
19
20 namespace libvisio
21 {
22
23 class VSDMetaData
24 {
25 public:
26 VSDMetaData();
27 ~VSDMetaData();
28 bool parse(librevenge::RVNGInputStream *input);
29 bool parseTimes(librevenge::RVNGInputStream *input);
30 const librevenge::RVNGPropertyList &getMetaData();
31
32 private:
33 VSDMetaData(const VSDMetaData &);
34 VSDMetaData &operator=(const VSDMetaData &);
35
36 void readPropertySetStream(librevenge::RVNGInputStream *input);
37 void readPropertySet(librevenge::RVNGInputStream *input, uint32_t offset, char *FMTID);
38 void readPropertyIdentifierAndOffset(librevenge::RVNGInputStream *input);
39 void readTypedPropertyValue(librevenge::RVNGInputStream *input, uint32_t index, uint32_t offset, char *FMTID);
40 librevenge::RVNGString readCodePageString(librevenge::RVNGInputStream *input);
41
42 uint32_t getCodePage();
43
44 std::vector< std::pair<uint32_t, uint32_t> > m_idsAndOffsets;
45 std::map<uint16_t, uint16_t> m_typedPropertyValues;
46 librevenge::RVNGPropertyList m_metaData;
47 };
48
49 } // namespace libvisio
50
51 #endif // __VSDMETADATA_H__
52 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libvisio::appendUCS4
void appendUCS4(librevenge::RVNGString &text, UChar32 ucs4Character)
Definition: libvisio_utils.cpp:132
PIDDSI_CONTENTSTATUS
Definition: VSDMetaData.cpp:55
PIDSI_APPNAME
Definition: VSDMetaData.cpp:79
PIDDSI_CCHWITHSPACES
Definition: VSDMetaData.cpp:47
libvisio::VSDMetaData::parse
bool parse(librevenge::RVNGInputStream *input)
Definition: VSDMetaData.cpp:83
PIDDSI_HLINKS
Definition: VSDMetaData.cpp:50
PIDSI_TEMPLATE
Definition: VSDMetaData.cpp:68
PIDSI_LASTSAVE_DTM
Definition: VSDMetaData.cpp:74
PIDDSI_LINKSDIRTY
Definition: VSDMetaData.cpp:46
PIDSI_COMMENTS
Definition: VSDMetaData.cpp:67
libvisio::VSDMetaData::readTypedPropertyValue
void readTypedPropertyValue(librevenge::RVNGInputStream *input, uint32_t index, uint32_t offset, char *FMTID)
Definition: VSDMetaData.cpp:169
PIDSI_WORDCOUNT
Definition: VSDMetaData.cpp:76
libvisio::VSDMetaData::VSDMetaData
VSDMetaData()
Definition: VSDMetaData.cpp:20
libvisio::VSDMetaData::readCodePageString
librevenge::RVNGString readCodePageString(librevenge::RVNGInputStream *input)
Definition: VSDMetaData.cpp:242
libvisio::VSDMetaData::~VSDMetaData
~VSDMetaData()
Definition: VSDMetaData.cpp:25
libvisio::VSDMetaData::operator=
VSDMetaData & operator=(const VSDMetaData &)
PIDSI_LASTAUTHOR
Definition: VSDMetaData.cpp:69
PIDDSI_NOTECOUNT
Definition: VSDMetaData.cpp:38
PIDSI_PAGECOUNT
Definition: VSDMetaData.cpp:75
PIDSI_EDITTIME
Definition: VSDMetaData.cpp:71
PIDDSI_CATEGORY
Definition: VSDMetaData.cpp:32
VT_LPSTR
#define VT_LPSTR
Definition: VSDMetaData.cpp:167
libvisio::readU32
uint32_t readU32(librevenge::RVNGInputStream *input)
Definition: libvisio_utils.cpp:53
PIDSI_CHARCOUNT
Definition: VSDMetaData.cpp:77
libvisio::readU8
uint8_t readU8(librevenge::RVNGInputStream *input)
Definition: libvisio_utils.cpp:16
PIDDSI_SCALE
Definition: VSDMetaData.cpp:41
PIDDSI_PRESFORMAT
Definition: VSDMetaData.cpp:33
PIDDSI_HYPERLINKSCHANGED
Definition: VSDMetaData.cpp:51
libvisio::VSDMetaData::m_idsAndOffsets
std::vector< std::pair< uint32_t, uint32_t > > m_idsAndOffsets
Definition: VSDMetaData.h:44
libvisio::readU16
uint16_t readU16(librevenge::RVNGInputStream *input)
Definition: libvisio_utils.cpp:32
PIDDSI_HEADINGPAIR
Definition: VSDMetaData.cpp:42
PIDDSI_HIDDENCOUNT
Definition: VSDMetaData.cpp:39
PIDSI_REVNUMBER
Definition: VSDMetaData.cpp:70
libvisio::VSDMetaData
Definition: VSDMetaData.h:23
libvisio::getRemainingLength
unsigned long getRemainingLength(librevenge::RVNGInputStream *input)
Definition: libvisio_utils.cpp:110
PIDDSI_MMCLIPCOUNT
Definition: VSDMetaData.cpp:40
PIDSI_KEYWORDS
Definition: VSDMetaData.cpp:66
CODEPAGE_PROPERTY_IDENTIFIER
Definition: VSDMetaData.cpp:62
MAX_BUFFER
#define MAX_BUFFER
Definition: VSDFieldList.cpp:55
PIDDSI
PIDDSI
Definition: VSDMetaData.cpp:29
PIDDSI_DOCVERSION
Definition: VSDMetaData.cpp:57
libvisio::VSDMetaData::m_metaData
librevenge::RVNGPropertyList m_metaData
Definition: VSDMetaData.h:46
PIDDSI_COMPANY
Definition: VSDMetaData.cpp:45
PIDDSI_BYTECOUNT
Definition: VSDMetaData.cpp:34
VT_I2
#define VT_I2
Definition: VSDMetaData.cpp:166
PIDDSI_LANGUAGE
Definition: VSDMetaData.cpp:56
libvisio::VSDMetaData::readPropertySet
void readPropertySet(librevenge::RVNGInputStream *input, uint32_t offset, char *FMTID)
Definition: VSDMetaData.cpp:124
VSDMetaData.h
PIDSI_LASTPRINTED
Definition: VSDMetaData.cpp:72
PIDDSI_LINECOUNT
Definition: VSDMetaData.cpp:35
PIDDSI_LINKBASE
Definition: VSDMetaData.cpp:49
PIDDSI_MANAGER
Definition: VSDMetaData.cpp:44
PIDDSI_CONTENTTYPE
Definition: VSDMetaData.cpp:54
libvisio::VSDMetaData::readPropertySetStream
void readPropertySetStream(librevenge::RVNGInputStream *input)
Definition: VSDMetaData.cpp:93
libvisio::VSDMetaData::getMetaData
const librevenge::RVNGPropertyList & getMetaData()
Definition: VSDMetaData.cpp:350
libvisio::VSDMetaData::parseTimes
bool parseTimes(librevenge::RVNGInputStream *input)
Definition: VSDMetaData.cpp:298
PIDSI
PIDSI
Definition: VSDMetaData.cpp:60
PIDSI_DOC_SECURITY
Definition: VSDMetaData.cpp:80
PIDSI_THUMBNAIL
Definition: VSDMetaData.cpp:78
PIDSI_AUTHOR
Definition: VSDMetaData.cpp:65
PIDSI_SUBJECT
Definition: VSDMetaData.cpp:64
libvisio::VSDMetaData::m_typedPropertyValues
std::map< uint16_t, uint16_t > m_typedPropertyValues
Definition: VSDMetaData.h:45
libvisio::readU64
uint64_t readU64(librevenge::RVNGInputStream *input)
Definition: libvisio_utils.cpp:74
PIDDSI_SLIDECOUNT
Definition: VSDMetaData.cpp:37
PIDDSI_VERSION
Definition: VSDMetaData.cpp:52
libvisio_utils.h
PIDDSI_DIGSIG
Definition: VSDMetaData.cpp:53
PIDDSI_CODEPAGE
Definition: VSDMetaData.cpp:31
PIDSI_TITLE
Definition: VSDMetaData.cpp:63
PIDDSI_SHAREDDOC
Definition: VSDMetaData.cpp:48
PIDSI_CREATE_DTM
Definition: VSDMetaData.cpp:73
libvisio
Definition: libvisio_utils.h:48
libvisio::VSDMetaData::readPropertyIdentifierAndOffset
void readPropertyIdentifierAndOffset(librevenge::RVNGInputStream *input)
Definition: VSDMetaData.cpp:159
PIDDSI_DOCPARTS
Definition: VSDMetaData.cpp:43
libvisio::VSDMetaData::getCodePage
uint32_t getCodePage()
Definition: VSDMetaData.cpp:144
PIDDSI_PARACOUNT
Definition: VSDMetaData.cpp:36