okular
fontinfo.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef _OKULAR_FONTINFO_H_
00011 #define _OKULAR_FONTINFO_H_
00012
00013 #include <QtCore/QList>
00014 #include <QtCore/QMetaType>
00015 #include <QtCore/QSharedDataPointer>
00016 #include <QtCore/QString>
00017
00018 #include <okular/core/okular_export.h>
00019
00020 namespace Okular {
00021
00022 class FontInfoPrivate;
00023
00027 class OKULAR_EXPORT FontInfo
00028 {
00029 public:
00030 typedef QList<FontInfo> List;
00031
00035 enum FontType
00036 {
00037 Unknown,
00038 Type1,
00039 Type1C,
00040 Type1COT,
00041 Type3,
00042 TrueType,
00043 TrueTypeOT,
00044 CIDType0,
00045 CIDType0C,
00046 CIDType0COT,
00047 CIDTrueType,
00048 CIDTrueTypeOT
00049 };
00050
00054 enum EmbedType
00055 {
00056 NotEmbedded,
00057 EmbeddedSubset,
00058 FullyEmbedded
00059 };
00060
00064 FontInfo();
00068 FontInfo( const FontInfo &fi );
00072 ~FontInfo();
00073
00077 QString name() const;
00081 void setName( const QString& name );
00082
00086 FontType type() const;
00090 void setType( FontType type );
00091
00095 EmbedType embedType() const;
00099 void setEmbedType( EmbedType type );
00100
00105 QString file() const;
00106 void setFile( const QString& file );
00107
00108 FontInfo& operator=( const FontInfo &fi );
00109
00113 bool operator==( const FontInfo &fi ) const;
00114
00115 bool operator!=( const FontInfo &fi ) const;
00116
00117 private:
00119 friend class FontInfoPrivate;
00121 QSharedDataPointer<FontInfoPrivate> d;
00122 };
00123
00124 }
00125
00126 Q_DECLARE_METATYPE(Okular::FontInfo)
00127
00128 #endif