Debian Codegraph @

src/lib/QXP33Header.h

raw
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
17 namespace libqxp
18 {
19
20 class QXP33Header : public QXP3HeaderBase, public std::enable_shared_from_this<QXP33Header>
21 {
22 public:
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
37 private:
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: */