kspread

kspread_dlg_paperlayout.h
1/* This file is part of the KDE project
2 Copyright (C) 2002-2003 Ariya Hidayat <ariya@kde.org>
3 (C) 2002-2003 Norbert Andres <nandres@web.de>
4 (C) 2002-2003 Philipp Mueller <philipp.mueller@gmx.de>
5 (C) 2002 Laurent Montel <montel@kde.org>
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
16
17 You should have received a copy of the GNU Library General Public License
18 along with this library; see the file COPYING.LIB. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301, USA.
21*/
22
23#ifndef __kspread_dlg_paperlayout__
24#define __kspread_dlg_paperlayout__
25
26#include <kdialogbase.h>
27#include <KoPageLayoutDia.h>
28
29class TQCheckBox;
30class TQComboBox;
31class TQRadioButton;
32class TQLineEdit;
33
34namespace KSpread
35{
36class Sheet;
37class View;
38
39class PaperLayout: public KoPageLayoutDia
40{
41 TQ_OBJECT
42
43public:
44 PaperLayout( TQWidget* parent, const char* name,
45 const KoPageLayout& layout,
46 const KoHeadFoot& headfoot,
47 int tabs, KoUnit::Unit unit,
48 Sheet * sheet, View *view);
49
50 bool eventFilter( TQObject* obj, TQEvent* ev );
51
52protected slots:
53 virtual void slotOk();
54 virtual void slotCancel();
55 void slotSelectionChanged();
56
57protected:
58 void initTab();
59
60protected:
61 virtual void closeEvent ( TQCloseEvent * );
62
63private slots:
64 void slotChooseZoom( int index );
65 void slotChoosePageLimit( int index );
66
67private:
68 void initGeneralOptions( TQWidget * tab, TQVBoxLayout * vbox );
69 void initRanges( TQWidget * tab, TQVBoxLayout * vbox );
70 void initScaleOptions( TQWidget * tab, TQVBoxLayout * vbox );
71
72 Sheet * m_pSheet;
73 View * m_pView;
74
75 TQCheckBox * pApplyToAll;
76 TQCheckBox * pPrintGrid;
77 TQCheckBox * pPrintCommentIndicator;
78 TQCheckBox * pPrintFormulaIndicator;
79 TQCheckBox * pPrintObjects;
80 TQCheckBox * pPrintCharts;
81 TQCheckBox * pPrintGraphics;
82 TQLineEdit * ePrintRange;
83 TQLineEdit * eRepeatCols;
84 TQLineEdit * eRepeatRows;
85 TQLineEdit * m_focus;
86 TQComboBox * m_cZoom;
87 TQComboBox * m_cLimitPagesX;
88 TQComboBox * m_cLimitPagesY;
89 TQRadioButton * m_rScalingZoom;
90 TQRadioButton * m_rScalingLimitPages;
91};
92
93} // namespace KSpread
94
95#endif
The View class displays a KSpread document.
The KSpread namespace.
Definition commands.h:39