kspread Library API Documentation

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., 59 Temple Place - Suite 330,
00020    Boston, MA 02111-1307, 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 KSpreadSheet;
00030 class QCheckBox;
00031 class QComboBox;
00032 class QRadioButton;
00033 class QLineEdit;
00034 class KSpreadView;
00035 
00036 class KSpreadPaperLayout: public KoPageLayoutDia
00037 {
00038   Q_OBJECT
00039 public:
00040   KSpreadPaperLayout( QWidget* parent, const char* name,
00041                       const KoPageLayout& layout,
00042                       const KoHeadFoot& headfoot,
00043                       int tabs, KoUnit::Unit unit,
00044                       KSpreadSheet * sheet, KSpreadView *view);
00045 
00046   bool eventFilter( QObject* obj, QEvent* ev );
00047 
00048 protected slots:
00049   virtual void slotOk();
00050   virtual void slotCancel();
00051   void slotSelectionChanged( KSpreadSheet* _sheet, const QRect& _selection );
00052 
00053 protected:
00054   void initTab();
00055 
00056 protected:
00057   virtual void closeEvent ( QCloseEvent * );
00058 
00059 private slots:
00060     void slotChooseZoom( int index );
00061     void slotChoosePageLimit( int index );
00062 
00063 private:
00064   void initGeneralOptions( QWidget * tab, QVBoxLayout * vbox );
00065   void initRanges( QWidget * tab, QVBoxLayout * vbox );
00066   void initScaleOptions( QWidget * tab, QVBoxLayout * vbox );
00067 
00068   KSpreadSheet * m_pSheet;
00069   KSpreadView  * m_pView;
00070 
00071   QCheckBox * pApplyToAll;
00072   QCheckBox * pPrintGrid;
00073   QCheckBox * pPrintCommentIndicator;
00074   QCheckBox * pPrintFormulaIndicator;
00075   QLineEdit * ePrintRange;
00076   QLineEdit * eRepeatCols;
00077   QLineEdit * eRepeatRows;
00078   QLineEdit * m_focus;
00079   QComboBox * m_cZoom;
00080   QComboBox * m_cLimitPagesX;
00081   QComboBox * m_cLimitPagesY;
00082   QRadioButton * m_rScalingZoom;
00083   QRadioButton * m_rScalingLimitPages;
00084 };
00085 
00086 #endif
KDE Logo
This file is part of the documentation for kspread Library Version 1.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Feb 13 09:43:02 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003