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 <libkdepim/configmanager.h>
00036 using KPIM::ConfigManager;
00037
00038 #include <qpaintdevicemetrics.h>
00039
00040 class QString;
00041 class QFont;
00042
00043 namespace KMail {
00044
00045 class CSSHelper : public ConfigManager {
00046 public:
00047 CSSHelper( const QPaintDeviceMetrics & pdm, QObject * parent=0, const char * name=0 );
00048 virtual ~CSSHelper();
00049
00051 void commit();
00053 void rollback();
00055 bool hasPendingChanges() const;
00056
00059 QString htmlHead( bool fixedFont=false ) const;
00060
00062 QString cssDefinitions( bool fixedFont=false ) const;
00063
00066 QString quoteFontTag( int level ) const;
00069 QString nonQuotedFontTag() const;
00070
00071 QFont bodyFont( bool fixedFont=false, bool printing=false ) const;
00072
00073 private:
00074 class Private;
00075 friend class Private;
00076 Private * d;
00077 Private * s;
00078
00079 const QPaintDeviceMetrics mMetrics;
00080 };
00081
00082 }
00083
00084 #endif // __KMAIL_CSSHELPER_H__
This file is part of the documentation for kmail Library Version 3.3.2.