kspread_dlg_paperlayout.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
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
This file is part of the documentation for kspread Library Version 1.4.2.