kspread
kspread_dlg_paperlayout.h00001
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 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 }
00093
00094 #endif
|