kaddressbook Library API Documentation

kaddressbookprinter.h

00001 #ifndef KADDRESSBOOKPRINTER_H
00002 #define KADDRESSBOOKPRINTER_H
00003 
00004 /*
00005     This file is part of KAddressBook.
00006     Copyright (c) 2002 Mike Pilone <mpilone@slac.com>
00007               (c) 2002 Mirko Boehm <mirko@kde.org>
00008 
00009     This program is free software; you can redistribute it and/or modify
00010     it under the terms of the GNU General Public License as published by
00011     the Free Software Foundation; either version 2 of the License, or
00012     (at your option) any later version.
00013 
00014     This program is distributed in the hope that it will be useful,
00015     but WITHOUT ANY WARRANTY; without even the implied warranty of
00016     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00017     GNU General Public License for more details.
00018 
00019     You should have received a copy of the GNU General Public License
00020     along with this program; if not, write to the Free Software
00021     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00022 
00023     As a special exception, permission is given to link this program
00024     with any edition of Qt, and distribute the resulting executable,
00025     without including the source code for Qt in the source distribution.
00026 */
00027 
00028 #include <kwizard.h>
00029 #include <kabc/addressbook.h>
00030 
00031 class KPrinter;
00032 
00033 namespace KABPrinting {
00034 
00041     class PrintingWizard : public KWizard
00042     {
00043     public:
00044         PrintingWizard(KPrinter *printer,
00045                        KABC::AddressBook* doc,
00046                        const QStringList& selection,
00047                        QWidget *parent=0, const char *name=0);
00048         ~PrintingWizard();
00049         virtual void registerStyles()=0;
00050         virtual void print()=0;
00051         virtual KPrinter *printer()=0;
00052         virtual KABC::AddressBook *document()=0;
00053     protected:
00059         KPrinter *mPrinter;
00060         KABC::AddressBook *mDocument;
00061         QStringList mSelection;
00062     };
00063 
00064     PrintingWizard *producePrintingWizard(
00065         KPrinter *printer,
00066         KABC::AddressBook* doc,
00067         const QStringList& selection,
00068         QWidget *parent, const char *name=0);
00069 
00070 }
00071 
00072 #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:37 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001