kaddressbook Library API Documentation

KABPrinting::PrintingWizardImpl Class Reference

The PrintingWizard combines pages common for all print styles and those provided by the respective style. More...

#include <printingwizard.h>

Inheritance diagram for KABPrinting::PrintingWizardImpl:

KABPrinting::PrintingWizard List of all members.

Public Member Functions

 PrintingWizardImpl (KPrinter *printer, KABC::AddressBook *doc, const QStringList &selection, QWidget *parent=0, const char *name=0)
 Construct a printing wizard.

void registerStyles ()
 Modify this method to add a new PrintStyle.

void print ()
 Perform the actual printing.

KABC::AddressBook * document ()
 Retrieve the document object.

KPrinter * printer ()
 Retrieve the printer to be used.


Protected Slots

void slotStyleSelected (int)
 A print style has been selected.


Protected Member Functions

void accept ()
 Overloaded accept slot.


Protected Attributes

QPtrList< PrintStyleFactorystyleFactories
QPtrList< PrintStylemStyleList
PrintStylestyle
BasicPage * mBasicPage
 The general page.

QVBoxLayoutpageLayout

Detailed Description

The PrintingWizard combines pages common for all print styles and those provided by the respective style.

Definition at line 39 of file printingwizard.h.


Constructor & Destructor Documentation

KABPrinting::PrintingWizardImpl::PrintingWizardImpl KPrinter *  printer,
KABC::AddressBook *  doc,
const QStringList selection,
QWidget parent = 0,
const char *  name = 0
 

Construct a printing wizard.

Give the document (addressbook instance) to print.

Definition at line 39 of file printingwizard.cpp.

References mBasicPage, registerStyles(), and slotStyleSelected().


Member Function Documentation

void KABPrinting::PrintingWizardImpl::registerStyles  )  [virtual]
 

Modify this method to add a new PrintStyle.

Implements KABPrinting::PrintingWizard.

Definition at line 70 of file printingwizard.cpp.

References QPtrList< PrintStyleFactory >::append(), QPtrList< PrintStyleFactory >::at(), QPtrList< PrintStyleFactory >::count(), and mBasicPage.

Referenced by PrintingWizardImpl().

void KABPrinting::PrintingWizardImpl::print  )  [virtual]
 

Perform the actual printing.

Implements KABPrinting::PrintingWizard.

Definition at line 123 of file printingwizard.cpp.

References document(), mBasicPage, and KABPrinting::PrintStyle::print().

Referenced by accept().

KABC::AddressBook * KABPrinting::PrintingWizardImpl::document  )  [virtual]
 

Retrieve the document object.

Implements KABPrinting::PrintingWizard.

Definition at line 113 of file printingwizard.cpp.

Referenced by print().

KPrinter * KABPrinting::PrintingWizardImpl::printer  )  [virtual]
 

Retrieve the printer to be used.

Implements KABPrinting::PrintingWizard.

Definition at line 118 of file printingwizard.cpp.

References KABPrinting::PrintingWizard::mPrinter.

void KABPrinting::PrintingWizardImpl::slotStyleSelected int   )  [protected, slot]
 

A print style has been selected.

The argument is the index in the cbStyle combo and in styles.

Definition at line 82 of file printingwizard.cpp.

References QPtrList< PrintStyleFactory >::at(), QPtrList< PrintStyle >::at(), QPtrList< PrintStyleFactory >::count(), KABPrinting::PrintStyleFactory::create(), KABPrinting::PrintStyleFactory::description(), KABPrinting::PrintStyle::hidePages(), QPtrList< PrintStyle >::insert(), QPixmap::isNull(), mBasicPage, KABPrinting::PrintStyle::preview(), and KABPrinting::PrintStyle::showPages().

Referenced by PrintingWizardImpl().

void KABPrinting::PrintingWizardImpl::accept  )  [protected]
 

Overloaded accept slot.

This is used to do the actual printing without having the wizard disappearing before. What happens is actually up to the print style, since it does the printing. It could display a progress window, for example (hint, hint).

Definition at line 64 of file printingwizard.cpp.

References print().


Member Data Documentation

BasicPage* KABPrinting::PrintingWizardImpl::mBasicPage [protected]
 

The general page.

Definition at line 70 of file printingwizard.h.

Referenced by print(), PrintingWizardImpl(), registerStyles(), and slotStyleSelected().


The documentation for this class was generated from the following files:
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