• 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
  • compact
compactstyle.h
Go to the documentation of this file.
1 /*
2  This file is part of KAddressBook.
3  Copyright (c) 2011 Mario Scheel <zweistein12@gmx.de>
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 
19  As a special exception, permission is given to link this program
20  with any edition of Qt, and distribute the resulting executable,
21  without including the source code for Qt in the source distribution.
22 */
23 
24 #ifndef COMPACTSTYLE_H
25 #define COMPACTSTYLE_H
26 
27 #include "printstyle.h"
28 
29 namespace KABPrinting {
30 
31 class CompactStyleForm;
32 
33 class CompactStyle : public PrintStyle
34 {
35  Q_OBJECT
36 
37 public:
38  explicit CompactStyle( PrintingWizard *parent );
39  ~CompactStyle();
40 
44  void print( const KABC::Addressee::List &, PrintProgress * );
45 
46 private:
47  QString contactsToHtml( const KABC::Addressee::List &contacts ) const;
48 
49  CompactStyleForm *mPageSettings;
50 
54  bool withAlternating;
55  bool withBusinessAddress;
56  bool withHomeAddress;
57  bool withBirthday;
58  bool withEMail;
59  QColor firstColor;
60  QColor secondColor;
61 
62 private Q_SLOTS:
67  void setAlternatingColors();
68 };
69 
70 class CompactStyleFactory : public PrintStyleFactory
71 {
72 public:
73  explicit CompactStyleFactory( PrintingWizard *parent );
74 
75  PrintStyle *create() const;
76  QString description() const;
77 };
78 
79 }
80 
81 #endif
KABPrinting::CompactStyleFactory::description
QString description() const
Overload this method to provide a one-liner description for your print style.
Definition: compactstyle.cpp:224
KABPrinting::CompactStyleFactory::create
PrintStyle * create() const
Definition: compactstyle.cpp:219
KABPrinting::PrintingWizard
The PrintingWizard combines pages common for all print styles and those provided by the respective st...
Definition: printingwizard.h:55
KABPrinting::CompactStyle
Definition: compactstyle.h:33
KABPrinting::CompactStyleFactory
Definition: compactstyle.h:70
KABPrinting::PrintStyle
The abstract interface to the PrintingWizards style objects.
Definition: printstyle.h:67
KABPrinting::CompactStyle::CompactStyle
CompactStyle(PrintingWizard *parent)
Definition: compactstyle.cpp:128
KABPrinting::CompactStyleFactory::CompactStyleFactory
CompactStyleFactory(PrintingWizard *parent)
Definition: compactstyle.cpp:214
printstyle.h
KABPrinting::CompactStyle::~CompactStyle
~CompactStyle()
Definition: compactstyle.cpp:161
QString
QColor
KABPrinting::CompactStyle::print
void print(const KABC::Addressee::List &, PrintProgress *)
prints the contacts
Definition: compactstyle.cpp:165
KABPrinting::PrintProgress
This defines a simple widget to display print progress information.
Definition: printprogress.h:41
KABPrinting::PrintStyleFactory
The factories are used to have all object of the respective print style created in one place...
Definition: printstyle.h:171
QObject::parent
QObject * parent() const
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