QXP33Header.h
Go to the documentation of this file.
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* This file is part of the libqxp project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef QXP33HEADER_H_INCLUDED
#define QXP33HEADER_H_INCLUDED
#include "libqxp_utils.h"
#include "QXP3HeaderBase.h"
#include "QXPTypes.h"
namespace libqxp
{
class QXP33Header : public QXP3HeaderBase, public std::enable_shared_from_this<QXP33Header>
{
public:
explicit QXP33Header(const boost::optional<QXPDocument::Type> &fileType = boost::none);
bool load(const std::shared_ptr<librevenge::RVNGInputStream> &input) override;
QXPDocument::Type getType() const override;
std::unique_ptr<QXPParser> createParser(const std::shared_ptr<librevenge::RVNGInputStream> &input, librevenge::RVNGDrawingInterface *painter) override;
uint16_t pagesCount() const;
uint16_t masterPagesCount() const;
uint16_t seed() const;
uint16_t increment() const;
const QXPDocumentProperties &documentProperties() const;
private:
uint16_t m_pagesCount;
uint16_t m_masterPagesCount;
uint16_t m_seed;
uint16_t m_increment;
QXPDocumentProperties m_documentProperties;
};
}
#endif // QXP33HEADER_H_INCLUDED
/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
QXP3HeaderBase.h
QXPTypes.h
libqxp::QXP33Header::masterPagesCount
uint16_t masterPagesCount() const
Definition QXP33Header.cpp:73
libqxp::QXP33Header::load
bool load(const std::shared_ptr< librevenge::RVNGInputStream > &input) override
Definition QXP33Header.cpp:27
libqxp::QXP33Header::pagesCount
uint16_t pagesCount() const
Definition QXP33Header.cpp:68
libqxp::QXP33Header::documentProperties
const QXPDocumentProperties & documentProperties() const
Definition QXP33Header.cpp:88
libqxp::QXP33Header::QXP33Header
QXP33Header(const boost::optional< QXPDocument::Type > &fileType=boost::none)
Definition QXP33Header.cpp:17
libqxp::QXP33Header::increment
uint16_t increment() const
Definition QXP33Header.cpp:83
libqxp::QXP33Header::createParser
std::unique_ptr< QXPParser > createParser(const std::shared_ptr< librevenge::RVNGInputStream > &input, librevenge::RVNGDrawingInterface *painter) override
Definition QXP33Header.cpp:63
libqxp::QXP33Header::m_increment
uint16_t m_increment
Definition QXP33Header.h:41
libqxp::QXP33Header::m_seed
uint16_t m_seed
Definition QXP33Header.h:40
libqxp::QXP33Header::m_documentProperties
QXPDocumentProperties m_documentProperties
Definition QXP33Header.h:42
libqxp::QXP33Header::m_pagesCount
uint16_t m_pagesCount
Definition QXP33Header.h:38
libqxp::QXP33Header::m_masterPagesCount
uint16_t m_masterPagesCount
Definition QXP33Header.h:39
libqxp::QXP33Header::seed
uint16_t seed() const
Definition QXP33Header.cpp:78
libqxp::QXP33Header::getType
QXPDocument::Type getType() const override
Definition QXP33Header.cpp:58
libqxp::QXP3HeaderBase::QXP3HeaderBase
QXP3HeaderBase(const boost::optional< QXPDocument::Type > &fileType=boost::none)
Definition QXP3HeaderBase.cpp:17
libqxp_utils.h
libqxp
Definition libqxp_utils.cpp:25
libqxp::QXPDocumentProperties
Definition QXPTypes.h:561