source: branches/1.2/workflow/js/fckeditor/editor/_source/commandclasses/fcktablecommand.js @ 1349

Revision 1349, 1.6 KB checked in by niltonneto, 15 years ago (diff)

Ticket #561 - Inclusão do módulo Workflow faltante nessa versão.

  • Property svn:executable set to *
Line 
1/*
2 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
3 * Copyright (C) 2003-2007 Frederico Caldeira Knabben
4 *
5 * == BEGIN LICENSE ==
6 *
7 * Licensed under the terms of any of the following licenses at your
8 * choice:
9 *
10 *  - GNU General Public License Version 2 or later (the "GPL")
11 *    http://www.gnu.org/licenses/gpl.html
12 *
13 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
14 *    http://www.gnu.org/licenses/lgpl.html
15 *
16 *  - Mozilla Public License Version 1.1 or later (the "MPL")
17 *    http://www.mozilla.org/MPL/MPL-1.1.html
18 *
19 * == END LICENSE ==
20 *
21 * FCKPastePlainTextCommand Class: represents the
22 * "Paste as Plain Text" command.
23 */
24
25var FCKTableCommand = function( command )
26{
27        this.Name = command ;
28}
29
30FCKTableCommand.prototype.Execute = function()
31{
32        FCKUndo.SaveUndoStep() ;
33
34        switch ( this.Name )
35        {
36                case 'TableInsertRow' :
37                        FCKTableHandler.InsertRow() ;
38                        break ;
39                case 'TableDeleteRows' :
40                        FCKTableHandler.DeleteRows() ;
41                        break ;
42                case 'TableInsertColumn' :
43                        FCKTableHandler.InsertColumn() ;
44                        break ;
45                case 'TableDeleteColumns' :
46                        FCKTableHandler.DeleteColumns() ;
47                        break ;
48                case 'TableInsertCell' :
49                        FCKTableHandler.InsertCell() ;
50                        break ;
51                case 'TableDeleteCells' :
52                        FCKTableHandler.DeleteCells() ;
53                        break ;
54                case 'TableMergeCells' :
55                        FCKTableHandler.MergeCells() ;
56                        break ;
57                case 'TableSplitCell' :
58                        FCKTableHandler.SplitCell() ;
59                        break ;
60                case 'TableDelete' :
61                        FCKTableHandler.DeleteTable() ;
62                        break ;
63                default :
64                        alert( FCKLang.UnknownCommand.replace( /%1/g, this.Name ) ) ;
65        }
66}
67
68FCKTableCommand.prototype.GetState = function()
69{
70        return FCK_TRISTATE_OFF ;
71}
Note: See TracBrowser for help on using the repository browser.