lib

KoPageLayoutColumns.h
1/* This file is part of the KDE project
2 * Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@kde.org>
3 * Copyright (C) 2005 Thomas Zander <zander@kde.org>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; version 2.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 */
19
20// Description: Page Layout Dialog (sources)
21
22#ifndef kopagelayoutcolumns_h
23#define kopagelayoutcolumns_h
24
25#include <KoUnit.h>
26#include <KoPageLayout.h>
27#include <KoPageLayoutColumnsBase.h>
28
29class TQWidget;
31class KoPagePreview;
32
36class KoPageLayoutColumns : public KoPageLayoutColumnsBase {
37 TQ_OBJECT
38
39
40public:
48 KoPageLayoutColumns(TQWidget *parent, const KoColumns& columns, KoUnit::Unit unit, const KoPageLayout& layout);
49
54 void setLayout(KoPageLayout &layout);
55public slots:
56
61 void setEnableColumns(bool on);
62
63signals:
64 void propertyChange(KoColumns &columns);
65
66protected:
67 KoColumns m_columns;
68 KoPagePreview *m_preview;
69 KoUnitDoubleSpinBox *m_spacing;
70
71private slots:
72 void nColChanged( int );
73 void nSpaceChanged( double );
74};
75
76#endif
KoPageLayoutColumns(TQWidget *parent, const KoColumns &columns, KoUnit::Unit unit, const KoPageLayout &layout)
Contructor.
void setEnableColumns(bool on)
Enable the user to edit the columns.
void setLayout(KoPageLayout &layout)
Update the page preview widget with the param layout.
KoPagePreview.
Spin box for double precision numbers with unit display.
Unit
Length units supported by KOffice.
Definition KoUnit.h:63
structure for columns
This structure defines the page layout, including its size in pt, its format (e.g.