okular
pagesize.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef _OKULAR_PAGESIZE_H_
00011 #define _OKULAR_PAGESIZE_H_
00012
00013 #include <QtCore/QList>
00014 #include <QtCore/QSharedDataPointer>
00015 #include <QtCore/QString>
00016
00017 #include <okular/core/okular_export.h>
00018
00019 namespace Okular {
00020
00021 class PageSizePrivate;
00022
00026 class OKULAR_EXPORT PageSize
00027 {
00028 public:
00029 typedef QList<PageSize> List;
00030
00035 PageSize();
00040 PageSize( double width, double height, const QString &name );
00044 PageSize( const PageSize &pageSize );
00045 ~PageSize();
00046
00050 double width() const;
00054 double height() const;
00058 QString name() const;
00059
00063 bool isNull() const;
00064
00065 PageSize& operator=( const PageSize &pageSize );
00066
00070 bool operator==( const PageSize &pageSize ) const;
00071
00072 bool operator!=( const PageSize &pageSize ) const;
00073
00074 private:
00076 friend class PageSizePrivate;
00078 QSharedDataPointer<PageSizePrivate> d;
00079 };
00080
00081 }
00082
00083 #endif