kaddressbook Library API Documentation

KABPrinting::PrintingWizard Class Reference

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

#include <printingwizard.h>

List of all members.

Public Member Functions

 PrintingWizard (KPrinter *printer, KABC::AddressBook *ab, const QStringList &selection, QWidget *parent=0, const char *name=0)
void registerStyles ()
void print ()
KABC::AddressBook * addressBook ()
KPrinter * printer ()

Protected Slots

void slotStyleSelected (int)

Protected Member Functions

void accept ()

Protected Attributes

QPtrList< PrintStyleFactorymStyleFactories
QPtrList< PrintStylemStyleList
Filter::List mFilters
KPrinter * mPrinter
KABC::AddressBook * mAddressBook
QStringList mSelection
PrintStylemStyle
StylePage * mStylePage
SelectionPage * mSelectionPage


Detailed Description

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

Definition at line 50 of file printingwizard.h.


Constructor & Destructor Documentation

PrintingWizard::PrintingWizard KPrinter *  printer,
KABC::AddressBook *  ab,
const QStringList &  selection,
QWidget *  parent = 0,
const char *  name = 0
 

Construct a printing wizard.

Give the addressbook instance to print.

Definition at line 55 of file printingwizard.cpp.

References registerStyles(), and slotStyleSelected().


Member Function Documentation

void PrintingWizard::registerStyles  ) 
 

Modify this method to add a new PrintStyle.

Definition at line 97 of file printingwizard.cpp.

Referenced by PrintingWizard().

void PrintingWizard::print  ) 
 

Perform the actual printing.

Definition at line 151 of file printingwizard.cpp.

References addressBook(), and KABPrinting::PrintStyle::print().

Referenced by accept().

KABC::AddressBook * PrintingWizard::addressBook  ) 
 

Retrieve the document object.

Definition at line 141 of file printingwizard.cpp.

Referenced by print().

KPrinter * PrintingWizard::printer  ) 
 

Retrieve the printer to be used.

Definition at line 146 of file printingwizard.cpp.

void PrintingWizard::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 108 of file printingwizard.cpp.

References KABPrinting::PrintStyleFactory::create(), KABPrinting::PrintStyleFactory::description(), KABPrinting::PrintStyle::hidePages(), KABPrinting::PrintStyle::preferredSortField(), KABPrinting::PrintStyle::preferredSortType(), KABPrinting::PrintStyle::preview(), and KABPrinting::PrintStyle::showPages().

Referenced by PrintingWizard().

void PrintingWizard::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 91 of file printingwizard.cpp.

References print().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kaddressbook Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 28 23:58:09 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003