kspread

kspread_dlg_paperlayout.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2002-2003 Ariya Hidayat <ariya@kde.org>
00003              (C) 2002-2003 Norbert Andres <nandres@web.de>
00004              (C) 2002-2003 Philipp Mueller <philipp.mueller@gmx.de>
00005              (C) 2002 Laurent Montel <montel@kde.org>
00006    
00007    This library is free software; you can redistribute it and/or
00008    modify it under the terms of the GNU Library General Public
00009    License as published by the Free Software Foundation; either
00010    version 2 of the License, or (at your option) any later version.
00011 
00012    This library is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015    Library General Public License for more details.
00016 
00017    You should have received a copy of the GNU Library General Public License
00018    along with this library; see the file COPYING.LIB.  If not, write to
00019    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020  * Boston, MA 02110-1301, USA.
00021 */
00022 
00023 #ifndef __kspread_dlg_paperlayout__
00024 #define __kspread_dlg_paperlayout__
00025 
00026 #include <kdialogbase.h>
00027 #include <KoPageLayoutDia.h>
00028 
00029 class QCheckBox;
00030 class QComboBox;
00031 class QRadioButton;
00032 class QLineEdit;
00033 
00034 namespace KSpread
00035 {
00036 class Sheet;
00037 class View;
00038 
00039 class PaperLayout: public KoPageLayoutDia
00040 {
00041   Q_OBJECT
00042 public:
00043   PaperLayout( QWidget* parent, const char* name,
00044                       const KoPageLayout& layout,
00045                       const KoHeadFoot& headfoot,
00046                       int tabs, KoUnit::Unit unit,
00047                       Sheet * sheet, View *view);
00048 
00049   bool eventFilter( QObject* obj, QEvent* ev );
00050 
00051 protected slots:
00052   virtual void slotOk();
00053   virtual void slotCancel();
00054   void slotSelectionChanged();
00055 
00056 protected:
00057   void initTab();
00058 
00059 protected:
00060   virtual void closeEvent ( QCloseEvent * );
00061 
00062 private slots:
00063     void slotChooseZoom( int index );
00064     void slotChoosePageLimit( int index );
00065 
00066 private:
00067   void initGeneralOptions( QWidget * tab, QVBoxLayout * vbox );
00068   void initRanges( QWidget * tab, QVBoxLayout * vbox );
00069   void initScaleOptions( QWidget * tab, QVBoxLayout * vbox );
00070 
00071   Sheet * m_pSheet;
00072   View  * m_pView;
00073 
00074   QCheckBox * pApplyToAll;
00075   QCheckBox * pPrintGrid;
00076   QCheckBox * pPrintCommentIndicator;
00077   QCheckBox * pPrintFormulaIndicator;
00078   QCheckBox * pPrintObjects;
00079   QCheckBox * pPrintCharts;
00080   QCheckBox * pPrintGraphics;
00081   QLineEdit * ePrintRange;
00082   QLineEdit * eRepeatCols;
00083   QLineEdit * eRepeatRows;
00084   QLineEdit * m_focus;
00085   QComboBox * m_cZoom;
00086   QComboBox * m_cLimitPagesX;
00087   QComboBox * m_cLimitPagesY;
00088   QRadioButton * m_rScalingZoom;
00089   QRadioButton * m_rScalingLimitPages;
00090 };
00091 
00092 } // namespace KSpread
00093 
00094 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys