csshelper.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #ifndef __KMAIL_CSSHELPER_H__
00033 #define __KMAIL_CSSHELPER_H__
00034
00035 #include "configmanager.h"
00036
00037 #include <qpaintdevicemetrics.h>
00038
00039 class QString;
00040 class QFont;
00041
00042 namespace KMail {
00043
00044 class CSSHelper : public ConfigManager {
00045 public:
00046 CSSHelper( const QPaintDeviceMetrics & pdm, QObject * parent=0, const char * name=0 );
00047 virtual ~CSSHelper();
00048
00050 void commit();
00052 void rollback();
00054 bool hasPendingChanges() const;
00055
00058 QString htmlHead( bool fixedFont=false ) const;
00059
00061 QString cssDefinitions( bool fixedFont=false ) const;
00062
00065 QString quoteFontTag( int level ) const;
00068 QString nonQuotedFontTag() const;
00069
00070 QFont bodyFont( bool fixedFont=false, bool printing=false ) const;
00071
00072 private:
00073 class Private;
00074 friend class Private;
00075 Private * d;
00076 Private * s;
00077
00078 const QPaintDeviceMetrics mMetrics;
00079 };
00080
00081 }
00082
00083 #endif // __KMAIL_CSSHELPER_H__
This file is part of the documentation for kmail Library Version 3.2.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Mar 6 17:18:16 2004 by
doxygen 1.3.6-20040222 written by
Dimitri van Heesch, © 1997-2003