kaddressbook
compactstyle.cpp
Go to the documentation of this file.
95 content += QLatin1String(" <table style=\"font-size:50%; border-width: 0px; \"width=\"100%\">\n");
116 content += QLatin1String(" <td style=\"")+ style + QLatin1String(";\">") + values.join(QLatin1String("; ")) + QLatin1String("</td>\n");
QString description() const
Overload this method to provide a one-liner description for your print style.
Definition: compactstyle.cpp:224
PrintStyle * create() const
Definition: compactstyle.cpp:219
const char * CompactStyleConfigSectionName
Definition: compactstyle.cpp:41
Definition: contactfields.h:73
QString name() const
The PrintingWizard combines pages common for all print styles and those provided by the respective st...
Definition: printingwizard.h:55
int size() const
Definition: compactstyle.h:33
Definition: contactfields.h:63
QString join(const QString &separator) const
void setPreferredSortOptions(ContactFields::Field, Qt::SortOrder sortOrder=Qt::AscendingOrder)
Sets the preferred sort options for this printing style.
Definition: printstyle.cpp:112
void addPage(QWidget *page, const QString &title)
Adds an additional page to the printing wizard, e.g.
Definition: printstyle.cpp:80
Definition: contactfields.h:44
bool setPreview(const QString &fileName)
Loads the preview image from the kaddressbook data directory.
Definition: printstyle.cpp:56
The abstract interface to the PrintingWizards style objects.
Definition: printstyle.h:67
QString trimmed() const
Definition: contactfields.h:36
CompactStyle(PrintingWizard *parent)
Definition: compactstyle.cpp:128
CompactStyleFactory(PrintingWizard *parent)
Definition: compactstyle.cpp:214
Definition: contactfields.h:64
Definition: contactfields.h:65
PrintingWizard * wizard() const
Returns the printing wizard that is responsible for this style.
Definition: printstyle.cpp:75
void setPageMargins(qreal left, qreal top, qreal right, qreal bottom, Unit unit)
void print(const KABC::Addressee::List &, PrintProgress *)
prints the contacts
Definition: compactstyle.cpp:165
static QString value(Field field, const KABC::Addressee &contact)
Returns the value for the field of the contact.
Definition: contactfields.cpp:480
This defines a simple widget to display print progress information.
Definition: printprogress.h:41
void setHtml(const QString &html)
The factories are used to have all object of the respective print style created in one place...
Definition: printstyle.h:171
void print(QPrinter *printer) const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Field
Describes the standard fields that are available for every contact.
Definition: contactfields.h:33
Definition: contactfields.h:72
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.