• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

kaddressbook

  • KABPrinting
  • PrintingWizard
Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
KABPrinting::PrintingWizard Class Reference

#include <printingwizard.h>

Inheritance diagram for KABPrinting::PrintingWizard:
Inheritance graph
[legend]

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
printerThe configured printer.
selectionModelThe selection model to get the selected contacts from.
parentThe 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

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 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.

void PrintingWizard::slotStyleSelected ( int  index)
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

QPrinter* KABPrinting::PrintingWizard::mPrinter
protected

Definition at line 116 of file printingwizard.h.

PrintProgress* KABPrinting::PrintingWizard::mProgress
protected

Definition at line 118 of file printingwizard.h.

ContactSelectionWidget* KABPrinting::PrintingWizard::mSelectionPage
protected

Definition at line 121 of file printingwizard.h.

PrintStyle* KABPrinting::PrintingWizard::mStyle
protected

Definition at line 117 of file printingwizard.h.

QList<PrintStyleFactory*> KABPrinting::PrintingWizard::mStyleFactories
protected

Definition at line 114 of file printingwizard.h.

QList<PrintStyle*> KABPrinting::PrintingWizard::mStyleList
protected

Definition at line 115 of file printingwizard.h.

StylePage* KABPrinting::PrintingWizard::mStylePage
protected

Definition at line 120 of file printingwizard.h.


The documentation for this class was generated from the following files:
  • printingwizard.h
  • printingwizard.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kaddressbook

Skip menu "kaddressbook"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal