kprintdialogpage.h
/*
* This file is part of the KDE libraries
* Copyright (c) 2001 Michael Goffioul <kdeprint@swing.be>
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License version 2 as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
**/
#ifndef KPRINTDIALOGPAGE_H
#define KPRINTDIALOGPAGE_H
#include <qwidget.h>
#include <qmap.h>
#include <kdelibs_export.h>
class KMPrinter;
class DrMain;
class KDEPRINT_EXPORT KPrintDialogPage : public QWidget
{
Q_OBJECT
public:
KPrintDialogPage(QWidget *parent = 0, const char *name = 0);
KPrintDialogPage(KMPrinter *pr, DrMain *dr = 0, QWidget *parent = 0, const char *name = 0);
virtual ~KPrintDialogPage();
virtual void getOptions(QMap<QString,QString>& opts, bool incldef = false);
virtual void setOptions(const QMap<QString,QString>& opts);
virtual bool isValid(QString& msg);
int id() const { return m_ID; }
void setId(int ID) { m_ID = ID; }
QString title() const { return m_title; }
void setTitle(const QString& txt) { m_title = txt; }
bool onlyRealPrinters() const { return m_onlyreal; }
void setOnlyRealPrinters(bool on = true) { m_onlyreal = on; }
DrMain* driver() { return m_driver; }
KMPrinter* printer() { return m_printer; }
protected:
KMPrinter *m_printer;
DrMain *m_driver;
int m_ID;
QString m_title;
bool m_onlyreal;
};
#endif
KPrintDialogPage::setId
void setId(int ID)
Set the ID of the page.
Definition: kprintdialogpage.h:141
KPrintDialogPage::id
int id() const
Get the ID of the page.
Definition: kprintdialogpage.h:135
KPrintDialogPage::onlyRealPrinters
bool onlyRealPrinters() const
Tell wether or not the page should be disable if a non real printer (special printer) is selected in ...
Definition: kprintdialogpage.h:164
KPrintDialogPage::title
QString title() const
Get the page title.
Definition: kprintdialogpage.h:147
KPrintDialogPage::setOnlyRealPrinters
void setOnlyRealPrinters(bool on=true)
Change the page state when a non real printer is selected in the print dialog.
Definition: kprintdialogpage.h:172
KPrintDialogPage::driver
DrMain * driver()
For internal use only.
Definition: kprintdialogpage.h:176
KPrintDialogPage::printer
KMPrinter * printer()
For internal use only.
Definition: kprintdialogpage.h:180
KPrintDialogPage::setTitle
void setTitle(const QString &txt)
Set the page title.
Definition: kprintdialogpage.h:154
KPrintDialogPage
This class is intended to be used as base class for customized print dialog page. ...
Definition: kprintdialogpage.h:90

KDE Home | KDE Accessibility Home | Description of Access Keys