kword

KWResizeTableDia.h

00001 /* This file is part of the KDE project
00002    Copyright (C)  2002 Montel Laurent <lmontel@mandrakesoft.com>
00003    Copyright (C)  2005 Thomas Zander <zander@kde.org>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef resizetabledia_h
00022 #define resizetabledia_h
00023 
00024 #include <kdialogbase.h>
00025 
00026 class KWTableFrameSet;
00027 class KWDocument;
00028 class QWidget;
00029 class QSpinBox;
00030 class KoUnitDoubleSpinBox;
00031 
00035 class KWResizeTableDia : public KDialogBase
00036 {
00037     Q_OBJECT
00038 public:
00046     KWResizeTableDia( QWidget *parent, KWTableFrameSet *table, KWDocument *doc, int resizeColumn);
00047 
00048 protected:
00049     void setupTab1( int resizeColumn);
00050     bool doResize();
00051     QSpinBox *m_value;
00052     KWTableFrameSet *m_table;
00053     KWDocument *m_doc;
00054     KoUnitDoubleSpinBox *m_position;
00055     double m_resetValue;
00056 protected slots:
00057     virtual void slotOk();
00058     virtual void slotApply();
00059     virtual void slotUser1();
00060     void slotValueChanged( int pos);
00061 };
00062 
00063 #endif
00064 
00065 
KDE Home | KDE Accessibility Home | Description of Access Keys