kviewshell
kprintDialogPage_pageoptions.h
Go to the documentation of this file.00001 // -*- C++ -*- 00002 // KPrintDialogPage_PageOptions.h 00003 // 00004 // Part of KVIEWSHELL - A framework for multipage text/gfx viewers 00005 // 00006 // (C) 2005 Stefan Kebekus 00007 // Distributed under the GPL 00008 00009 // Add header files alphabetically 00010 00011 #ifndef KPRINTDIALOGPAGE_PAGEOPTIONS_H 00012 #define KPRINTDIALOGPAGE_PAGEOPTIONS_H 00013 00014 #include <kdeprint/kprintdialogpage.h> 00015 00016 class QCheckBox; 00017 class QVBoxLayout; 00018 00019 00020 // This is a fairly standard KPrintDialogPage that allows the user to 00021 // chose page size & placement options: center page on paper, shrink 00022 // oversized pages, and expand small pages 00023 00024 class KPrintDialogPage_PageOptions : public KPrintDialogPage 00025 { 00026 public: 00027 KPrintDialogPage_PageOptions( QWidget *parent = 0, const char *name = 0 ); 00028 00029 void getOptions( QMap<QString,QString>& opts, bool incldef = false ); 00030 void setOptions( const QMap<QString,QString>& opts ); 00031 bool isValid( QString& msg ); 00032 00033 QCheckBox* checkBox_center; 00034 QCheckBox* checkBox_rotate; 00035 QCheckBox* checkBox_shrink; 00036 QCheckBox* checkBox_expand; 00037 00038 private: 00039 QVBoxLayout* kprintDialogPage_pageoptions_baseLayout; 00040 }; 00041 00042 00043 #endif // KPRINTDIALOGPAGE_PAGEOPTIONS_H