QXP33Header.h Source File documentation

QXP33Header.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 libqxp 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 QXP33HEADER_H_INCLUDED
11#define QXP33HEADER_H_INCLUDED
12
13#include "libqxp_utils.h"
14#include "QXP3HeaderBase.h"
15#include "QXPTypes.h"
16
17namespace libqxp
18{
19
20 class QXP33Header : public QXP3HeaderBase, public std::enable_shared_from_this<QXP33Header>
21{
22public:
23 explicit QXP33Header(const boost::optional<QXPDocument::Type> &fileType = boost::none);
24
25 bool load(const std::shared_ptr<librevenge::RVNGInputStream> &input) override;
26
27 QXPDocument::Type getType() const override;
28
29 std::unique_ptr<QXPParser> createParser(const std::shared_ptr<librevenge::RVNGInputStream> &input, librevenge::RVNGDrawingInterface *painter) override;
30
31 uint16_t pagesCount() const;
32 uint16_t masterPagesCount() const;
33 uint16_t seed() const;
34 uint16_t increment() const;
35 const QXPDocumentProperties &documentProperties() const;
36
37private:
38 uint16_t m_pagesCount;
39 uint16_t m_masterPagesCount;
40 uint16_t m_seed;
41 uint16_t m_increment;
42 QXPDocumentProperties m_documentProperties;
43};
44
45}
46
47#endif // QXP33HEADER_H_INCLUDED
48
49/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
QXP3HeaderBase.h
QXPTypes.h
libqxp::QXP33Header
Definition QXP33Header.h:21
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::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
Definition QXP3HeaderBase.h:21
libqxp_utils.h
libqxp
Definition libqxp_utils.cpp:25
libqxp::QXPDocumentProperties
Definition QXPTypes.h:561