QXP1Header.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 QXP1HEADER_H_INCLUDED
11#define QXP1HEADER_H_INCLUDED
12
13#include "QXPHeader.h"
14
15namespace libqxp
16{
17
18class QXP1Header : public QXPHeader, public std::enable_shared_from_this<QXP1Header>
19{
20public:
21 QXP1Header();
22
23 bool load(const std::shared_ptr<librevenge::RVNGInputStream> &input) override;
24
25 QXPDocument::Type getType() const override;
26
27 std::unique_ptr<QXPParser> createParser(const std::shared_ptr<librevenge::RVNGInputStream> &input, librevenge::RVNGDrawingInterface *painter) override;
28
29 unsigned pages() const
30 {
31 return m_pages;
32 }
33
34 double pageHeight() const
35 {
36 return m_pageHeight;
37 }
38
39 double pageWidth() const
40 {
41 return m_pageWidth;
42 }
43
44private:
45 unsigned m_pages;
48};
49
50}
51
52#endif // QXP1HEADER_H_INCLUDED
53
54/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
Definition: QXP1Header.h:19
unsigned m_pages
Definition: QXP1Header.h:45
double m_pageHeight
Definition: QXP1Header.h:46
bool load(const std::shared_ptr< librevenge::RVNGInputStream > &input) override
Definition: QXP1Header.cpp:24
unsigned pages() const
Definition: QXP1Header.h:29
double m_pageWidth
Definition: QXP1Header.h:47
double pageHeight() const
Definition: QXP1Header.h:34
QXPDocument::Type getType() const override
Definition: QXP1Header.cpp:41
std::unique_ptr< QXPParser > createParser(const std::shared_ptr< librevenge::RVNGInputStream > &input, librevenge::RVNGDrawingInterface *painter) override
Definition: QXP1Header.cpp:46
double pageWidth() const
Definition: QXP1Header.h:39
QXP1Header()
Definition: QXP1Header.cpp:17
Definition: QXPHeader.h:41
Definition: libqxp_utils.cpp:25

Generated for libqxp by doxygen 1.9.6