kaddressbook
#include <printingwizard.h>
Public Member Functions | |
PrintingWizard (QPrinter *printer, QItemSelectionModel *selectionModel, QWidget *parent=0) | |
~PrintingWizard () | |
void | print () |
QPrinter * | printer () |
int | printingStyle () const |
void | registerStyles () |
void | setDefaultAddressBook (const Akonadi::Collection &addressBook) |
int | sortOrder () const |
Protected Slots | |
void | slotStyleSelected (int) |
Protected Member Functions | |
void | accept () |
Protected Attributes | |
QPrinter * | mPrinter |
PrintProgress * | mProgress |
ContactSelectionWidget * | mSelectionPage |
PrintStyle * | mStyle |
QList< PrintStyleFactory * > | mStyleFactories |
QList< PrintStyle * > | mStyleList |
StylePage * | mStylePage |
Detailed Description
The PrintingWizard combines pages common for all print styles and those provided by the respective style.
Definition at line 55 of file printingwizard.h.
Constructor & Destructor Documentation
PrintingWizard::PrintingWizard | ( | QPrinter * | printer, |
QItemSelectionModel * | selectionModel, | ||
QWidget * | parent = 0 |
||
) |
Creates a new printing wizard.
- Parameters
-
printer The configured printer. selectionModel The selection model to get the selected contacts from. parent The parent widget.
Definition at line 55 of file printingwizard.cpp.
PrintingWizard::~PrintingWizard | ( | ) |
Destroys the printing wizard.
Definition at line 87 of file printingwizard.cpp.
Member Function Documentation
|
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 113 of file printingwizard.cpp.
void PrintingWizard::print | ( | ) |
Performs the actual printing.
Definition at line 218 of file printingwizard.cpp.
QPrinter * PrintingWizard::printer | ( | ) |
Returns the printer to use for printing.
Definition at line 203 of file printingwizard.cpp.
int PrintingWizard::printingStyle | ( | ) | const |
Returns the index of the selected style.
Definition at line 208 of file printingwizard.cpp.
void PrintingWizard::registerStyles | ( | ) |
Registers all available printing styles.
Definition at line 161 of file printingwizard.cpp.
void PrintingWizard::setDefaultAddressBook | ( | const Akonadi::Collection & | addressBook | ) |
Sets the default addressbook of the contact selection.
Definition at line 108 of file printingwizard.cpp.
|
protectedslot |
A print style has been selected.
The argument is the index in the cbStyle combo and in styles.
Definition at line 176 of file printingwizard.cpp.
int PrintingWizard::sortOrder | ( | ) | const |
Returns the sort order of addressBook.
Definition at line 213 of file printingwizard.cpp.
Member Data Documentation
|
protected |
Definition at line 116 of file printingwizard.h.
|
protected |
Definition at line 118 of file printingwizard.h.
|
protected |
Definition at line 121 of file printingwizard.h.
|
protected |
Definition at line 117 of file printingwizard.h.
|
protected |
Definition at line 114 of file printingwizard.h.
|
protected |
Definition at line 115 of file printingwizard.h.
|
protected |
Definition at line 120 of file printingwizard.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:34 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.