Okular

pagesize.h
1 /***************************************************************************
2  * Copyright (C) 2007 by Pino Toscano <[email protected]> *
3  * *
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU General Public License as published by *
6  * the Free Software Foundation; either version 2 of the License, or *
7  * (at your option) any later version. *
8  ***************************************************************************/
9 
10 #ifndef _OKULAR_PAGESIZE_H_
11 #define _OKULAR_PAGESIZE_H_
12 
13 #include <QList>
14 #include <QSharedDataPointer>
15 #include <QString>
16 
17 #include "okularcore_export.h"
18 
19 namespace Okular
20 {
21 class PageSizePrivate;
22 
26 class OKULARCORE_EXPORT PageSize
27 {
28 public:
29  typedef QList<PageSize> List;
30 
35  PageSize();
40  PageSize(double width, double height, const QString &name);
44  PageSize(const PageSize &pageSize);
45  ~PageSize();
46 
50  double width() const;
54  double height() const;
58  QString name() const;
59 
63  bool isNull() const;
64 
65  PageSize &operator=(const PageSize &pageSize);
66 
70  bool operator==(const PageSize &pageSize) const;
71 
72  bool operator!=(const PageSize &pageSize) const;
73 
74 private:
76  friend class PageSizePrivate;
79 };
80 
81 }
82 
83 #endif
global.h
Definition: action.h:19
A small class that represents the size of a page.
Definition: pagesize.h:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Sep 19 2020 22:35:53 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.