VSDXMetaData.h Source File documentation

VSDXMetaData.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 __VSDXMETADATA_H__
11 #define __VSDXMETADATA_H__
12
13 #include <librevenge-stream/librevenge-stream.h>
14 #include "VSDXMLHelper.h"
15
16 namespace libvisio
17 {
18
20 class VSDXMetaData
21 {
22 public:
23 VSDXMetaData();
24 ~VSDXMetaData();
25 bool parse(librevenge::RVNGInputStream *input);
26 const librevenge::RVNGPropertyList &getMetaData();
27
28 private:
29 VSDXMetaData(const VSDXMetaData &);
30 VSDXMetaData &operator=(const VSDXMetaData &);
31
32 int getElementToken(xmlTextReaderPtr reader);
33 void readCoreProperties(xmlTextReaderPtr reader);
34 librevenge::RVNGString readString(xmlTextReaderPtr reader, int stringTokenId);
35
36 librevenge::RVNGPropertyList m_metaData;
37 };
38
39 } // namespace libvisio
40
41 #endif // __VSDXMETADATA_H__
42 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
XML_DC_DESCRIPTION
const int XML_DC_DESCRIPTION
Definition: tokens.h:264
libvisio::xmlReaderForStream
std::unique_ptr< xmlTextReader, void(*)(xmlTextReaderPtr)> xmlReaderForStream(librevenge::RVNGInputStream *input, XMLErrorWatcher *const watcher, bool recover)
Definition: libvisio_xml.cpp:100
XML_DC_SUBJECT
const int XML_DC_SUBJECT
Definition: tokens.h:266
libvisio::VSDXMetaData
Parses docProps/core.xml stream of a VSDX file.
Definition: VSDXMetaData.h:21
VSD_DEBUG_MSG
#define VSD_DEBUG_MSG(M)
Definition: libvisio_utils.h:42
libvisio::VSDXMetaData::VSDXMetaData
VSDXMetaData(const VSDXMetaData &)
libvisio::VSDXMetaData::readCoreProperties
void readCoreProperties(xmlTextReaderPtr reader)
Definition: VSDXMetaData.cpp:45
VSDXMLHelper.h
XML_CP_CATEGORY
const int XML_CP_CATEGORY
Definition: tokens.h:259
VSDXMLTokenMap.h
libvisio::XMLErrorWatcher
Definition: libvisio_xml.h:25
XML_CP_COREPROPERTIES
const int XML_CP_COREPROPERTIES
Definition: tokens.h:260
XML_TEMPLATE
const int XML_TEMPLATE
Definition: tokens.h:180
libvisio::VSDXMetaData::VSDXMetaData
VSDXMetaData()
Definition: VSDXMetaData.cpp:18
XML_PROPERTIES
const int XML_PROPERTIES
Definition: tokens.h:130
VSDXMetaData.h
libvisio::VSDXMLTokenMap::getTokenId
static int getTokenId(const xmlChar *name)
Definition: VSDXMLTokenMap.cpp:21
libvisio::VSDXMetaData::parse
bool parse(librevenge::RVNGInputStream *input)
Definition: VSDXMetaData.cpp:116
XML_COMPANY
const int XML_COMPANY
Definition: tokens.h:31
libvisio::VSDXMetaData::getMetaData
const librevenge::RVNGPropertyList & getMetaData()
Definition: VSDXMetaData.cpp:159
XML_DC_CREATOR
const int XML_DC_CREATOR
Definition: tokens.h:263
libvisio::VSDXMetaData::readString
librevenge::RVNGString readString(xmlTextReaderPtr reader, int stringTokenId)
Definition: VSDXMetaData.cpp:27
libvisio::VSDXMetaData::~VSDXMetaData
~VSDXMetaData()
Definition: VSDXMetaData.cpp:23
libvisio::VSDXMetaData::getElementToken
int getElementToken(xmlTextReaderPtr reader)
Definition: VSDXMetaData.cpp:154
XML_DC_LANGUAGE
const int XML_DC_LANGUAGE
Definition: tokens.h:265
XML_DC_TITLE
const int XML_DC_TITLE
Definition: tokens.h:268
libvisio::XMLErrorWatcher::isError
bool isError() const
Definition: libvisio_xml.cpp:89
XML_DCTERMS_CREATED
const int XML_DCTERMS_CREATED
Definition: tokens.h:269
libvisio::VSDXMetaData::m_metaData
librevenge::RVNGPropertyList m_metaData
Definition: VSDXMetaData.h:36
XML_DCTERMS_MODIFIED
const int XML_DCTERMS_MODIFIED
Definition: tokens.h:270
XML_TOKEN_INVALID
const int XML_TOKEN_INVALID
Definition: tokens.h:306
libvisio_xml.h
XML_CP_LASTMODIFIEDBY
const int XML_CP_LASTMODIFIEDBY
Definition: tokens.h:262
libvisio_utils.h
libvisio
Definition: libvisio_utils.h:49
XML_CP_KEYWORDS
const int XML_CP_KEYWORDS
Definition: tokens.h:261
libvisio::VSDXMetaData::operator=
VSDXMetaData & operator=(const VSDXMetaData &)