kaddressbook Library API Documentation

detailledstyle.h

00001 /* -*- C++ -*-
00002    This file declares the detailed print style.
00003 
00004    the KDE addressbook
00005 
00006    $ Author: Mirko Boehm $
00007    $ Copyright: (C) 1996-2002, Mirko Boehm $
00008    $ Contact: mirko@kde.org
00009          http://www.kde.org $
00010    $ License: LGPL with the following explicit clarification:
00011          This code may be linked against any version of the Qt toolkit
00012          from Troll Tech, Norway. $
00013 
00014    $Revision: 1.7 $
00015 */
00016 
00017 #ifndef DETAILLEDSTYLE_H
00018 #define DETAILLEDSTYLE_H
00019 
00020 #include <kabc/addressee.h>
00021 
00022 #include "printstyle.h"
00023 #include "kabentrypainter.h"
00024 
00025 class AppearancePage;
00026 
00027 namespace KABPrinting {
00028 
00029     class DetailledPrintStyle : public PrintStyle
00030     {
00031         Q_OBJECT
00032     public:
00033         DetailledPrintStyle(PrintingWizard* parent, const char* name=0);
00034         ~DetailledPrintStyle();
00035         void print(QStringList contacts, PrintProgress*);
00036     protected:
00037         bool printEntries(const QStringList& contacts,
00038                           KPrinter *printer,
00039                           QPainter *painter,
00040                           const QRect& window);
00041         bool printEntry(const KABC::Addressee& contact,
00042                         const QRect& window,
00043                         QPainter *painter,
00044                         int top, bool fake, QRect *brect);
00045     private:
00046         AppearancePage *mPageAppearance;
00047         KABEntryPainter *mEPntr;
00048         PrintProgress *mPrintProgress;
00049     };
00050 
00051     class DetailledPrintStyleFactory : public PrintStyleFactory
00052     {
00053     public:
00054         DetailledPrintStyleFactory(PrintingWizard* parent_,
00055                                    const char* name_=0);
00056         PrintStyle *create();
00057         QString description();
00058     };
00059 
00060 }
00061 
00062 #endif
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 15 11:40:36 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001