1/*
2 Copyright (c) 2012 Montel Laurent <montel@kde.org>
3
4 This library is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Library General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or (at your
7 option) any later version.
8
9 This library is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 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 the
16 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 02110-1301, USA.
18
19*/
20
21#ifndef KPIMTEXTEDIT_TABLEACTIONMENU_H
22#define KPIMTEXTEDIT_TABLEACTIONMENU_H
23
24#include <KActionMenu>
25
26class KActionCollection;
27
28namespace KPIMTextEdit {
29
30class TextEdit;
31class TableActionMenuPrivate;
32
33class TableActionMenu : public KActionMenu
34{
35 Q_OBJECT
36 public:
37 explicit TableActionMenu( KActionCollection *ac, TextEdit *textEdit );
38 ~TableActionMenu();
39
40 private:
41 TableActionMenuPrivate * const d;
42 friend class TableActionMenuPrivate;
43
44 Q_PRIVATE_SLOT( d, void _k_slotInsertRowBelow() )
45 Q_PRIVATE_SLOT( d, void _k_slotInsertRowAbove() )
46 Q_PRIVATE_SLOT( d, void _k_slotInsertColumnBefore() )
47 Q_PRIVATE_SLOT( d, void _k_slotInsertColumnAfter() )
48 Q_PRIVATE_SLOT( d, void _k_slotInsertTable() )
49 Q_PRIVATE_SLOT( d, void _k_slotRemoveRowBelow() )
50 Q_PRIVATE_SLOT( d, void _k_slotRemoveRowAbove() )
51 Q_PRIVATE_SLOT( d, void _k_slotRemoveColumnBefore() )
52 Q_PRIVATE_SLOT( d, void _k_slotRemoveColumnAfter() )
53 Q_PRIVATE_SLOT( d, void _k_slotRemoveCellContents() )
54 Q_PRIVATE_SLOT( d, void _k_slotMergeCell() )
55 Q_PRIVATE_SLOT( d, void _k_slotMergeSelectedCells() )
56 Q_PRIVATE_SLOT( d, void _k_slotTableCellFormat() )
57 Q_PRIVATE_SLOT( d, void _k_slotTableFormat() )
58 Q_PRIVATE_SLOT( d, void _k_slotSplitCell() )
59 Q_PRIVATE_SLOT( d, void _k_updateActions(bool forceUpdate = false) )
60};
61
62}
63
64#endif // KPIMTEXTEDIT_TABLEACTIONMENU_H
65