1 /***************************************************************************
2 * Copyright (C) 2007 by Pino Toscano <pino@kde.org> *
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 ***************************************************************************/
15 using namespace Okular
;
17 class Okular::FontInfoPrivate
22 : type( FontInfo::Unknown
), embedType( FontInfo::NotEmbedded
),
23 canBeExtracted( false )
27 bool operator==( const FontInfoPrivate
&rhs
) const
29 return name
== rhs
.name
&&
31 embedType
== rhs
.embedType
&&
33 canBeExtracted
== rhs
.canBeExtracted
&&
34 nativeId
== rhs
.nativeId
;
38 FontInfo::FontType type
;
39 FontInfo::EmbedType embedType
;
47 : d( new FontInfoPrivate
)
51 FontInfo::FontInfo( const FontInfo
&fi
)
60 QString
FontInfo::name() const
65 void FontInfo::setName( const QString
& name
)
70 FontInfo::FontType
FontInfo::type() const
75 void FontInfo::setType( FontInfo::FontType type
)
80 FontInfo::EmbedType
FontInfo::embedType() const
85 void FontInfo::setEmbedType( FontInfo::EmbedType type
)
90 QString
FontInfo::file() const
95 void FontInfo::setFile( const QString
& file
)
100 bool FontInfo::canBeExtracted() const
102 return d
->canBeExtracted
;
105 void FontInfo::setCanBeExtracted(bool extractable
)
107 d
->canBeExtracted
= extractable
;
110 void FontInfo::setNativeId( const QVariant
&id
)
115 QVariant
FontInfo::nativeId() const
120 bool FontInfo::operator==( const FontInfo
&fi
) const
125 bool FontInfo::operator!=( const FontInfo
&fi
) const
127 return !operator==( fi
);
130 FontInfo
& FontInfo::operator=( const FontInfo
&fi
)