QXP1Header.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 QXP1HEADER_H_INCLUDED
#define QXP1HEADER_H_INCLUDED
#include "QXPHeader.h"
namespace libqxp
{
class QXP1Header : public QXPHeader, public std::enable_shared_from_this<QXP1Header>
{
public:
QXP1Header();
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;
unsigned pages() const
{
return m_pages;
}
double pageHeight() const
{
return m_pageHeight;
}
double pageWidth() const
{
return m_pageWidth;
}
private:
unsigned m_pages;
double m_pageHeight;
double m_pageWidth;
};
}
#endif // QXP1HEADER_H_INCLUDED
/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
QXPHeader.h
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::QXPHeader
QXPHeader(const boost::optional< QXPDocument::Type > &fileType=boost::none)
Definition QXPHeader.cpp:17
libqxp
Definition libqxp_utils.cpp:25