00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
#ifndef LOOK_HTML_H
00025
#define LOOK_HTML_H
00026
00027
#include <klocale.h>
00028
00029
#include "look_basic.h"
00030
00031
namespace KABC {
class Addressee; }
00032
namespace KPIM {
class AddresseeView; }
00033
00034
class KABHtmlView :
public KABBasicLook
00035 {
00036 Q_OBJECT
00037
00038
public:
00042 KABHtmlView( QWidget *parent = 0,
const char* name = 0 );
00043
00047
virtual ~KABHtmlView();
00048
00052
void setAddressee(
const KABC::Addressee& );
00053
00054
private slots:
00055
void phoneNumberClicked(
const QString &number );
00056
void faxNumberClicked(
const QString &number );
00057
00058
private:
00059 KPIM::AddresseeView *mView;
00060 };
00061
00062
class KABHtmlViewFactory :
public KABLookFactory
00063 {
00064
public:
00065 KABHtmlViewFactory( QWidget *parent = 0,
const char *name = 0 )
00066 : KABLookFactory( parent, name ) {}
00067
00068
KABBasicLook *create()
00069 {
00070
return new KABHtmlView( mParent, mName );
00071 }
00072
00073 QString description()
00074 {
00075
return i18n(
"HTML table style." );
00076 }
00077 };
00078
00079
#endif