kaddressbook
printingwizard.cpp
Go to the documentation of this file.
137 const QString themeInfoFile = dirIt.filePath() + QDir::separator() + QLatin1String("theme.desktop");
int printingStyle() const
Returns the index of the selected style.
Definition: printingwizard.cpp:208
Definition: stylepage.h:37
bool isValid() const
QList< PrintStyle * > mStyleList
Definition: printingwizard.h:115
void setDefaultAddressBook(const Akonadi::Collection &addressBook)
Sets the default addressbook.
Definition: contactselectionwidget.cpp:68
virtual PrintStyle * create() const =0
bool contains(const QString &str, Qt::CaseSensitivity cs) const
void setDefaultAddressBook(const Akonadi::Collection &addressBook)
Sets the default addressbook of the contact selection.
Definition: printingwizard.cpp:108
Definition: contactsorter.h:26
QChar separator()
virtual QString description() const =0
Overload this method to provide a one-liner description for your print style.
Qt::SortOrder preferredSortOrder() const
Returns the preferred order that shall be used for sorting.
Definition: printstyle.cpp:123
int count(const T &value) const
void append(const T &value)
QList< PrintStyleFactory * > mStyleFactories
Definition: printingwizard.h:114
void setMessageText(const QString &message)
Sets the message text.
Definition: contactselectionwidget.cpp:63
A widget to select a group of contacts.
Definition: contactselectionwidget.h:44
void hidePages()
Hides all style specific pages in the printing wizard.
Definition: printstyle.cpp:105
Definition: mikesstyle.h:46
bool isEmpty() const
virtual void print(const KABC::Addressee::List &contacts, PrintProgress *progress)=0
This method must be reimplemented to actually print something.
ContactList selectedContacts() const
Returns the list of selected contacts.
Definition: contactselectionwidget.cpp:73
ContactSelectionWidget * mSelectionPage
Definition: printingwizard.h:121
void setSortField(ContactFields::Field field)
Set the sort criterion field.
Definition: stylepage.cpp:82
void sort(QList< KABC::Addressee > &contacts) const
Definition: contactsorter.cpp:85
ContactFields::Field sortField() const
Returns the sort criterion field.
Definition: stylepage.cpp:96
This defines a simple widget to display print progress information.
Definition: printprogress.h:41
The factories are used to have all object of the respective print style created in one place...
Definition: printstyle.h:171
QString fromLatin1(const char *str, int size)
const QPixmap & preview() const
This method should be reimplemented to provide a preview of what the printed page will look like...
Definition: printstyle.cpp:46
PrintingWizard(QPrinter *printer, QItemSelectionModel *selectionModel, QWidget *parent=0)
Creates a new printing wizard.
Definition: printingwizard.cpp:55
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
ContactFields::Field preferredSortField() const
Returns the preferred contact field that shall be used for sorting.
Definition: printstyle.cpp:118
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
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.