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

kaddressbook

  • sources
  • kde-4.14
  • kdepim
  • kaddressbook
  • printing
printingwizard.h
Go to the documentation of this file.
1 /*
2  This file is part of KAddressBook.
3  Copyright (c) 1996-2002 Mirko Boehm <mirko@kde.org>
4  Tobias Koenig <tokoe@kde.org>
5 
6  Copyright (c) 2009-2015 Laurent Montel <montel@kde.org>
7 
8  This program is free software; you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation; either version 2 of the License, or
11  (at your option) any later version.
12 
13  This program is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License along
19  with this program; if not, write to the Free Software Foundation, Inc.,
20  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 
22  As a special exception, permission is given to link this program
23  with any edition of Qt, and distribute the resulting executable,
24  without including the source code for Qt in the source distribution.
25 */
26 
27 #ifndef PRINTINGWIZARD_H
28 #define PRINTINGWIZARD_H
29 
30 #include <KABC/Addressee>
31 #include <KAssistantDialog>
32 
33 #include <QtCore/QStringList>
34 
35 class ContactSelectionWidget;
36 class StylePage;
37 
38 class QItemSelectionModel;
39 class QPrinter;
40 
41 namespace Akonadi {
42 class Collection;
43 }
44 
45 namespace KABPrinting {
46 
47 class PrintProgress;
48 class PrintStyle;
49 class PrintStyleFactory;
50 
55 class PrintingWizard : public KAssistantDialog
56 {
57  Q_OBJECT
58 
59 public:
67  PrintingWizard( QPrinter *printer,
68  QItemSelectionModel *selectionModel,
69  QWidget *parent = 0 );
70 
74  ~PrintingWizard();
75 
79  void setDefaultAddressBook( const Akonadi::Collection &addressBook );
80 
84  void registerStyles();
85 
89  void print();
90 
94  QPrinter *printer();
95 
99  int printingStyle() const;
100 
104  int sortOrder() const;
105 
106 protected Q_SLOTS:
111  void slotStyleSelected(int);
112 
113 protected:
114  QList<PrintStyleFactory*> mStyleFactories;
115  QList<PrintStyle*> mStyleList;
116  QPrinter *mPrinter;
117  PrintStyle *mStyle;
118  PrintProgress *mProgress;
119 
120  StylePage *mStylePage;
121  ContactSelectionWidget *mSelectionPage;
122 
130  void accept();
131 
132 private:
133  void writeConfig();
134  void readConfig();
135  void loadGrantleeStyle();
136 };
137 
138 }
139 
140 #endif
KABPrinting::PrintingWizard::printingStyle
int printingStyle() const
Returns the index of the selected style.
Definition: printingwizard.cpp:208
StylePage
Definition: stylepage.h:37
QWidget
KABPrinting::PrintingWizard::mStyleList
QList< PrintStyle * > mStyleList
Definition: printingwizard.h:115
QPrinter
KABPrinting::PrintingWizard
The PrintingWizard combines pages common for all print styles and those provided by the respective st...
Definition: printingwizard.h:55
KABPrinting::PrintingWizard::setDefaultAddressBook
void setDefaultAddressBook(const Akonadi::Collection &addressBook)
Sets the default addressbook of the contact selection.
Definition: printingwizard.cpp:108
KABPrinting::PrintingWizard::accept
void accept()
Overloaded accept slot.
Definition: printingwizard.cpp:113
KABPrinting::PrintingWizard::mStylePage
StylePage * mStylePage
Definition: printingwizard.h:120
KAssistantDialog
KABPrinting::PrintingWizard::mStyleFactories
QList< PrintStyleFactory * > mStyleFactories
Definition: printingwizard.h:114
ContactSelectionWidget
A widget to select a group of contacts.
Definition: contactselectionwidget.h:44
KABPrinting::PrintingWizard::sortOrder
int sortOrder() const
Returns the sort order of addressBook.
Definition: printingwizard.cpp:213
KABPrinting::PrintStyle
The abstract interface to the PrintingWizards style objects.
Definition: printstyle.h:67
KABPrinting::PrintingWizard::mProgress
PrintProgress * mProgress
Definition: printingwizard.h:118
KABPrinting::PrintingWizard::registerStyles
void registerStyles()
Registers all available printing styles.
Definition: printingwizard.cpp:161
QList
KABPrinting::PrintingWizard::~PrintingWizard
~PrintingWizard()
Destroys the printing wizard.
Definition: printingwizard.cpp:87
KABPrinting::PrintingWizard::mSelectionPage
ContactSelectionWidget * mSelectionPage
Definition: printingwizard.h:121
KABPrinting::PrintingWizard::print
void print()
Performs the actual printing.
Definition: printingwizard.cpp:218
KABPrinting::PrintingWizard::mPrinter
QPrinter * mPrinter
Definition: printingwizard.h:116
KABPrinting::PrintProgress
This defines a simple widget to display print progress information.
Definition: printprogress.h:41
KABPrinting::PrintingWizard::mStyle
PrintStyle * mStyle
Definition: printingwizard.h:117
QItemSelectionModel
KABPrinting::PrintingWizard::PrintingWizard
PrintingWizard(QPrinter *printer, QItemSelectionModel *selectionModel, QWidget *parent=0)
Creates a new printing wizard.
Definition: printingwizard.cpp:55
KABPrinting::PrintingWizard::printer
QPrinter * printer()
Returns the printer to use for printing.
Definition: printingwizard.cpp:203
KABPrinting::PrintingWizard::slotStyleSelected
void slotStyleSelected(int)
A print style has been selected.
Definition: printingwizard.cpp:176
This file is part of the KDE documentation.
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.

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
  • pimprint

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