kword

KWDeleteDia.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; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20
21#ifndef deldia_h
22#define deldia_h
23
24#include <kdialogbase.h>
25
26class KWTableFrameSet;
27class KWView;
28
29/******************************************************************/
30/* Class: KWDeleteDia */
31/******************************************************************/
32
33class KWDeleteDia : public KDialogBase
34{
35 TQ_OBJECT
36
37
38public:
39 enum DeleteType {deleteRow, deleteColumn};
40
49 KWDeleteDia( KWView *parent, KWTableFrameSet *table, DeleteType type, TQValueList<uint> remove);
50
51protected:
52 void setupTab1();
53
54 KWView *m_view;
55 KWTableFrameSet *m_table;
56 DeleteType m_type;
57
58 TQValueList<uint> m_toRemove;
59
60protected slots:
61 virtual void slotOk();
62};
63
64#endif
65
66
This class implements tables by acting as the manager for the frame(set)s which make up the table cel...