kpresenter

KPrPrinterDlg.h

00001 /*
00002 *
00003 * Copyright (C) 2005  Fredrik Edemar
00004 *                     f_edemar@linux.se
00005 *
00006 * This program is free software; you can redistribute it and/or modify
00007 * it under the terms of the GNU General Public License as published by
00008 * the Free Software Foundation; either version 2 of the License, or
00009 * (at your option) any later version.
00010 * 
00011 * This program is distributed in the hope that it will be useful,
00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 * GNU General Public License for more details.
00015 * 
00016 * You should have received a copy of the GNU General Public License
00017 * along with this program; if not, write to the Free Software
00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019  * Boston, MA 02110-1301, USA.
00020 *
00021 */
00022 
00023 #ifndef kpresenterprintdlg_included
00024 #define kpresenterprintdlg_included
00025 
00026 #include <kdeprint/kprintdialogpage.h>
00027 #include <knuminput.h>
00028 
00029 #include <qcheckbox.h>
00030 #include <qlabel.h>
00031 
00032 class KPrPrinterDlg : public KPrintDialogPage
00033 {
00034   Q_OBJECT
00035   public:
00037     KPrPrinterDlg( QWidget *parent = 0, const char *name = 0 );
00038 
00040     void getOptions( QMap<QString, QString>& opts, bool include_def = false );
00042     void setOptions( const QMap<QString, QString>& opts );
00044     bool isValid( const QString& msg );
00045 
00046   private slots:
00047     void txtRows_valueChanged( int );
00048     void txtColumns_valueChanged( int );
00049 
00050   private:
00051     KIntNumInput *txtRows;
00052     KIntNumInput *txtColumns;
00053     QCheckBox *drawBorder;
00054 };
00055 
00056 #endif //kpresenterprinterdlg_included
KDE Home | KDE Accessibility Home | Description of Access Keys