kaddressbook
ringbinderstyle.cpp
Go to the documentation of this file.
95 const QString note = QLatin1String( "Note: " ) + contact.note().replace( QLatin1Char('\n'), QLatin1String("<br/>") );
104 address.formattedAddress().replace( QLatin1String("\n\n"), QLatin1String("\n") ).replace( QLatin1Char('\n'), QLatin1String("<br/>") );
105 const QString subBlock= QLatin1String("<p style=\"margin-top: 0px; margin-left: 20px\">") + data +QLatin1String( "</p>");
112 content += QLatin1String(" <td style=\"padding-left: 3px; padding-top: 3px; padding-right: 3px; "
115 content += QLatin1String(" <td style=\"padding-left: 3px; padding-top: 3px; padding-right: 3px; "
129 class RingBinderStyleAppearanceForm : public QWidget, public Ui::RingBinderStyleAppearanceForm_Base
155 mPageAppearance->cbStreetAddresses->setChecked( config.readEntry( ShowStreetAddresses, true ) );
165 void RingBinderPrintStyle::print( const KABC::Addressee::List &contacts, PrintProgress *progress )
void setupUi(QWidget *widget)
Definition: ringbinderstyle.cpp:52
void print(const KABC::Addressee::List &contacts, PrintProgress *)
This method must be reimplemented to actually print something.
Definition: ringbinderstyle.cpp:165
The PrintingWizard combines pages common for all print styles and those provided by the respective st...
Definition: printingwizard.h:55
Definition: ringbinderstyle.cpp:50
static QString contactsToHtml(const KABC::Addressee::List &contacts, int fields)
Definition: ringbinderstyle.cpp:56
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
RingBinderPrintStyle(PrintingWizard *parent)
Definition: ringbinderstyle.cpp:142
bool setPreview(const QString &fileName)
Loads the preview image from the kaddressbook data directory.
Definition: printstyle.cpp:56
void append(const T &value)
Definition: ringbinderstyle.cpp:51
Definition: contactfields.h:40
The abstract interface to the PrintingWizards style objects.
Definition: printstyle.h:67
Definition: ringbinderstyle.cpp:48
void setObjectName(const QString &name)
QString description() const
Overload this method to provide a one-liner description for your print style.
Definition: ringbinderstyle.cpp:233
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)
~RingBinderPrintStyle()
Definition: ringbinderstyle.cpp:161
QString & replace(int position, int n, QChar after)
const char * RingBinderConfigSectionName
Definition: ringbinderstyle.cpp:39
RingBinderPrintStyleFactory(PrintingWizard *parent)
Definition: ringbinderstyle.cpp:223
This defines a simple widget to display print progress information.
Definition: printprogress.h:41
void setHtml(const QString &html)
Definition: ringbinderstyle.cpp:49
The factories are used to have all object of the respective print style created in one place...
Definition: printstyle.h:171
PrintStyle * create() const
Definition: ringbinderstyle.cpp:228
void print(QPrinter *printer) const
Definition: ringbinderstyle.cpp:53
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.