kaddressbook Library API Documentation

printingwizard.h

00001 /* -*- C++ -*-
00002    This file declares the printing wizard. See
00003    ../kaddressbookprinting.* for details.
00004 
00005    the KDE addressbook
00006 
00007    $ Author: Mirko Boehm $
00008    $ Copyright: (C) 1996-2002, Mirko Boehm $
00009    $ Contact: mirko@kde.org
00010          http://www.kde.org $
00011    $ License: LGPL with the following explicit clarification:
00012          This code may be linked against any version of the Qt toolkit
00013          from Troll Tech, Norway. $
00014 
00015    $Revision: 1.5.4.1 $
00016 */
00017 
00018 #ifndef PRINTINGWIZARD_H
00019 #define PRINTINGWIZARD_H
00020 
00021 #include <qptrlist.h>
00022 #include <qstringlist.h>
00023 
00024 #include "../kaddressbookprinter.h"
00025 #include "kabc/addressbook.h"
00026 #include "printstyle.h"
00027 
00028 // ----- the general page:
00029 #include "printingwizard_base.h"
00030 
00031 class KPrinter;
00032 class QVBoxLayout;
00033 
00034 namespace KABPrinting {
00035 
00039     class PrintingWizardImpl : public PrintingWizard
00040     {
00041         Q_OBJECT
00042     public:
00046         PrintingWizardImpl(KPrinter *printer,
00047                            KABC::AddressBook* doc,
00048                            const QStringList& selection,
00049                            QWidget *parent=0, const char *name=0);
00050         ~PrintingWizardImpl();
00053         void registerStyles();
00055         void print();
00057         KABC::AddressBook *document();
00059         KPrinter* printer();
00060     protected slots:
00064         void slotStyleSelected(int);
00065     protected:
00066         QPtrList<PrintStyleFactory> styleFactories;
00067         QPtrList<PrintStyle> mStyleList;
00068         PrintStyle *style;
00070         BasicPage *mBasicPage;
00071         QVBoxLayout* pageLayout;
00078         void accept();
00079     };
00080 
00081 }
00082 
00083 #endif
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Oct 18 02:47:10 2003 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001