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
15 namespace libqxp
16{
17
18 class QXP1Header : public QXPHeader, public std::enable_shared_from_this<QXP1Header>
19{
20 public:
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
44 private:
45 unsigned m_pages;
46 double m_pageHeight;
47 double m_pageWidth;
48};
49
50}
51
52#endif // QXP1HEADER_H_INCLUDED
53
54/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
QXPHeader.h
libqxp::QXP1Header
Definition QXP1Header.h:19
libqxp::QXP1Header::m_pages
unsigned m_pages
Definition QXP1Header.h:45
libqxp::QXP1Header::m_pageHeight
double m_pageHeight
Definition QXP1Header.h:46
libqxp::QXP1Header::load
bool load(const std::shared_ptr< librevenge::RVNGInputStream > &input) override
Definition QXP1Header.cpp:24
libqxp::QXP1Header::pages
unsigned pages() const
Definition QXP1Header.h:29
libqxp::QXP1Header::m_pageWidth
double m_pageWidth
Definition QXP1Header.h:47
libqxp::QXP1Header::pageHeight
double pageHeight() const
Definition QXP1Header.h:34
libqxp::QXP1Header::getType
QXPDocument::Type getType() const override
Definition QXP1Header.cpp:41
libqxp::QXP1Header::createParser
std::unique_ptr< QXPParser > createParser(const std::shared_ptr< librevenge::RVNGInputStream > &input, librevenge::RVNGDrawingInterface *painter) override
Definition QXP1Header.cpp:46
libqxp::QXP1Header::pageWidth
double pageWidth() const
Definition QXP1Header.h:39
libqxp::QXP1Header::QXP1Header
QXP1Header()
Definition QXP1Header.cpp:17
libqxp::QXPHeader
Definition QXPHeader.h:41
libqxp
Definition libqxp_utils.cpp:25