|
rpm-build |
9243a4 |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
rpm-build |
9243a4 |
/*
|
|
rpm-build |
9243a4 |
* This file is part of the libmspub project.
|
|
rpm-build |
9243a4 |
*
|
|
rpm-build |
9243a4 |
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
rpm-build |
9243a4 |
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
rpm-build |
9243a4 |
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
rpm-build |
9243a4 |
*/
|
|
rpm-build |
9243a4 |
|
|
rpm-build |
9243a4 |
#ifndef INCLUDED_MSPUBMETADATA_H
|
|
rpm-build |
9243a4 |
#define INCLUDED_MSPUBMETADATA_H
|
|
rpm-build |
9243a4 |
|
|
rpm-build |
9243a4 |
#include <map>
|
|
rpm-build |
9243a4 |
#include <utility>
|
|
rpm-build |
9243a4 |
#include <vector>
|
|
rpm-build |
9243a4 |
|
|
rpm-build |
9243a4 |
#include <librevenge/librevenge.h>
|
|
rpm-build |
9243a4 |
|
|
rpm-build |
9243a4 |
#include <librevenge-stream/librevenge-stream.h>
|
|
rpm-build |
9243a4 |
|
|
rpm-build |
9243a4 |
namespace libmspub
|
|
rpm-build |
9243a4 |
{
|
|
rpm-build |
9243a4 |
|
|
rpm-build |
9243a4 |
class MSPUBMetaData
|
|
rpm-build |
9243a4 |
{
|
|
rpm-build |
9243a4 |
public:
|
|
rpm-build |
9243a4 |
MSPUBMetaData();
|
|
rpm-build |
9243a4 |
~MSPUBMetaData();
|
|
rpm-build |
9243a4 |
bool parse(librevenge::RVNGInputStream *input);
|
|
rpm-build |
9243a4 |
bool parseTimes(librevenge::RVNGInputStream *input);
|
|
rpm-build |
9243a4 |
const librevenge::RVNGPropertyList &getMetaData();
|
|
rpm-build |
9243a4 |
|
|
rpm-build |
9243a4 |
private:
|
|
rpm-build |
9243a4 |
MSPUBMetaData(const MSPUBMetaData &);
|
|
rpm-build |
9243a4 |
MSPUBMetaData &operator=(const MSPUBMetaData &);
|
|
rpm-build |
9243a4 |
|
|
rpm-build |
9243a4 |
void readPropertySetStream(librevenge::RVNGInputStream *input);
|
|
rpm-build |
9243a4 |
void readPropertySet(librevenge::RVNGInputStream *input, uint32_t offset, char *FMTID);
|
|
rpm-build |
9243a4 |
void readPropertyIdentifierAndOffset(librevenge::RVNGInputStream *input);
|
|
rpm-build |
9243a4 |
void readTypedPropertyValue(librevenge::RVNGInputStream *input, uint32_t index, uint32_t offset, char *FMTID);
|
|
rpm-build |
9243a4 |
librevenge::RVNGString readCodePageString(librevenge::RVNGInputStream *input);
|
|
rpm-build |
9243a4 |
|
|
rpm-build |
9243a4 |
uint32_t getCodePage();
|
|
rpm-build |
9243a4 |
|
|
rpm-build |
9243a4 |
std::vector< std::pair<uint32_t, uint32_t> > m_idsAndOffsets;
|
|
rpm-build |
9243a4 |
std::map<uint16_t, uint16_t> m_typedPropertyValues;
|
|
rpm-build |
9243a4 |
librevenge::RVNGPropertyList m_metaData;
|
|
rpm-build |
9243a4 |
};
|
|
rpm-build |
9243a4 |
|
|
rpm-build |
9243a4 |
} // namespace libmspub
|
|
rpm-build |
9243a4 |
|
|
rpm-build |
9243a4 |
#endif // INCLUDED_MSPUBMETADATA_H
|
|
rpm-build |
9243a4 |
|
|
rpm-build |
9243a4 |
/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
|