• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KDEPrint

kprintdialogpage.h

Go to the documentation of this file.
00001 /*
00002  *  This file is part of the KDE libraries
00003  *  Copyright (c) 2001 Michael Goffioul <kdeprint@swing.be>
00004  *
00005  *
00006  *  This library is free software; you can redistribute it and/or
00007  *  modify it under the terms of the GNU Library General Public
00008  *  License version 2 as published by the Free Software Foundation.
00009  *
00010  *  This library is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  *  Library General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU Library General Public License
00016  *  along with this library; see the file COPYING.LIB.  If not, write to
00017  *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  *  Boston, MA 02110-1301, USA.
00019  **/
00020 
00021 #ifndef KPRINTDIALOGPAGE_H
00022 #define KPRINTDIALOGPAGE_H
00023 
00024 #include <kdeprint_export.h>
00025 
00026 #include <QtGui/QWidget>
00027 #include <QtCore/QMap>
00028 
00029 class KMPrinter;
00030 class DrMain;
00031 
00032 class KPrintDialogPagePrivate;
00091 class KDEPRINT_EXPORT KPrintDialogPage : public QWidget
00092 {
00093     Q_OBJECT
00094 public:
00098     KPrintDialogPage(QWidget *parent = 0);
00102     explicit KPrintDialogPage(KMPrinter *pr, DrMain *dr = 0, QWidget *parent = 0);
00106     virtual ~KPrintDialogPage();
00107 
00116     virtual void getOptions(QMap<QString, QString>& opts, bool incldef = false);
00122     virtual void setOptions(const QMap<QString, QString>& opts);
00130     virtual bool isValid(QString& msg);
00136     int id() const;
00142     void setId(int ID);
00148     QString title() const;
00155     void setTitle(const QString& txt);
00165     bool onlyRealPrinters() const;
00173     void setOnlyRealPrinters(bool on = true);
00177     DrMain* driver();
00181     KMPrinter* printer();
00182 
00183 protected:
00184     KMPrinter *m_printer;
00185     DrMain  *m_driver;
00186     int   m_ID;
00187     QString  m_title;
00188     bool  m_onlyreal;
00189 private:
00190     KPrintDialogPagePrivate * const d;
00191 };
00192 
00193 #endif

KDEPrint

Skip menu "KDEPrint"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  •   KDEPrint
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal