• 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
  • grantlee
grantleeprintstyle.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2013-2015 Montel Laurent <montel@kde.org>
3 
4  This program is free software; you can redistribute it and/or modify it
5  under the terms of the GNU General Public License, version 2, as
6  published by the Free Software Foundation.
7 
8  This program is distributed in the hope that it will be useful, but
9  WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License along
14  with this program; if not, write to the Free Software Foundation, Inc.,
15  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 
18 #ifndef GRANTLEEPRINTSTYLE_H
19 #define GRANTLEEPRINTSTYLE_H
20 
21 #include "printstyle.h"
22 
23 
24 namespace KABPrinting {
25 
26 class PrintProgress;
27 class GrantleePrint;
28 
29 class GrantleePrintStyle : public PrintStyle
30 {
31  Q_OBJECT
32 
33 public:
34  explicit GrantleePrintStyle(const QString &themePath, PrintingWizard *parent );
35  ~GrantleePrintStyle();
36 
37  void print( const KABC::Addressee::List &, PrintProgress * );
38 private:
39  GrantleePrint *mGrantleePrint;
40 };
41 
42 class GrantleeStyleFactory : public PrintStyleFactory
43 {
44 public:
45  explicit GrantleeStyleFactory( const QString &name, const QString &themePath, PrintingWizard *parent );
46 
47  PrintStyle *create() const;
48  QString description() const;
49 private:
50  QString mThemePath;
51  QString mName;
52 };
53 
54 }
55 
56 #endif // GRANTLEEPRINTSTYLE_H
KABPrinting::GrantleeStyleFactory
Definition: grantleeprintstyle.h:42
KABPrinting::GrantleeStyleFactory::GrantleeStyleFactory
GrantleeStyleFactory(const QString &name, const QString &themePath, PrintingWizard *parent)
Definition: grantleeprintstyle.cpp:72
KABPrinting::PrintingWizard
The PrintingWizard combines pages common for all print styles and those provided by the respective st...
Definition: printingwizard.h:55
KABPrinting::GrantleePrintStyle::GrantleePrintStyle
GrantleePrintStyle(const QString &themePath, PrintingWizard *parent)
Definition: grantleeprintstyle.cpp:38
KABPrinting::PrintStyle
The abstract interface to the PrintingWizards style objects.
Definition: printstyle.h:67
printstyle.h
KABPrinting::GrantleeStyleFactory::create
PrintStyle * create() const
Definition: grantleeprintstyle.cpp:79
QString
KABPrinting::GrantleeStyleFactory::description
QString description() const
Overload this method to provide a one-liner description for your print style.
Definition: grantleeprintstyle.cpp:84
KABPrinting::GrantleePrintStyle::print
void print(const KABC::Addressee::List &, PrintProgress *)
This method must be reimplemented to actually print something.
Definition: grantleeprintstyle.cpp:53
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
KABPrinting::GrantleePrintStyle
Definition: grantleeprintstyle.h:29
KABPrinting::GrantleePrintStyle::~GrantleePrintStyle
~GrantleePrintStyle()
Definition: grantleeprintstyle.cpp:49
QObject::parent
QObject * parent() const
KABPrinting::GrantleePrint
Definition: grantleeprint.h:31
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