kword

KWStartupWidget.h

00001 /* This file is part of the KOffice project
00002  * Copyright (C) 2005 Thomas Zander <zander@kde.org>
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Library General Public
00006  * License as published by the Free Software Foundation; version 2.
00007 
00008  * This library is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011  * Library General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU Library General Public License
00014  * along with this library; see the file COPYING.LIB.  If not, write to
00015  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016  * Boston, MA 02110-1301, USA.
00017  */
00018 #ifndef kw_startup_widget_h
00019 #define kw_startup_widget_h
00020 
00021 #include <KWStartupWidgetBase.h>
00022 #include <KoPageLayout.h>
00023 
00024 class KoPageLayoutSize;
00025 class KoPageLayoutColumns;
00026 class KWDocument;
00027 
00033 class KWStartupWidget : public KWStartupWidgetBase {
00034     Q_OBJECT
00035 public:
00042     KWStartupWidget(QWidget *parent, KWDocument *doc, const KoColumns &columns);
00043 
00044 private slots:
00045     void sizeUpdated(KoPageLayout &layout);
00046     void columnsUpdated(KoColumns &columns);
00047     void buttonClicked();
00048 
00049 signals:
00051     void documentSelected();
00052 
00053 private:
00054     KoPageLayoutSize *m_sizeWidget;
00055     KoPageLayoutColumns *m_columnsWidget;
00056 
00057     KoPageLayout m_layout;
00058     KoColumns m_columns;
00059     KWDocument *m_doc;
00060 };
00061 
00062 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys