kword

KWStartupWidget.h
1/* This file is part of the KOffice project
2 * Copyright (C) 2005 Thomas Zander <zander@kde.org>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; version 2.
7
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Library General Public License for more details.
12 *
13 * You should have received a copy of the GNU Library General Public License
14 * along with this library; see the file COPYING.LIB. If not, write to
15 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 * Boston, MA 02110-1301, USA.
17 */
18#ifndef kw_startup_widget_h
19#define kw_startup_widget_h
20
21#include <KWStartupWidgetBase.h>
22#include <KoPageLayout.h>
23
24class KoPageLayoutSize;
25class KoPageLayoutColumns;
26class KWDocument;
27
33class KWStartupWidget : public KWStartupWidgetBase {
34 TQ_OBJECT
35
36public:
43 KWStartupWidget(TQWidget *parent, KWDocument *doc, const KoColumns &columns);
44
45private slots:
46 void sizeUpdated(KoPageLayout &layout);
47 void columnsUpdated(KoColumns &columns);
48 void buttonClicked();
49
50signals:
53
54private:
55 KoPageLayoutSize *m_sizeWidget;
56 KoPageLayoutColumns *m_columnsWidget;
57
58 KoPageLayout m_layout;
59 KoColumns m_columns;
60 KWDocument *m_doc;
61};
62
63#endif
KWStartupWidget(TQWidget *parent, KWDocument *doc, const KoColumns &columns)
Constructor.
void documentSelected()
this signal is emitted (as defined by KoDocument) the moment the document is 'ready'