editor/idl/nsIHTMLInlineTableEditor.idl

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:b60f949a9259
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6 #include "nsISupports.idl"
7 #include "domstubs.idl"
8
9 [scriptable, uuid(eda2e65c-a758-451f-9b05-77cb8de74ed2)]
10
11 interface nsIHTMLInlineTableEditor : nsISupports
12 {
13 /**
14 * boolean indicating if inline table editing is enabled in the editor.
15 * When inline table editing is enabled, and when the selection is
16 * contained in a table cell, special buttons allowing to add/remove
17 * a line/column are available on the cell's border.
18 */
19 attribute boolean inlineTableEditingEnabled;
20
21 /**
22 * Shows inline table editing UI around a table cell
23 * @param aCell [IN] a DOM Element being a table cell, td or th
24 */
25 void showInlineTableEditingUI(in nsIDOMElement aCell);
26
27 /**
28 * Hide all inline table editing UI
29 */
30 void hideInlineTableEditingUI();
31
32 /**
33 * Modifies the table containing the selection according to the
34 * activation of an inline table editing UI element
35 * @param aUIAnonymousElement [IN] the inline table editing UI element
36 */
37 void doInlineTableEditingAction(in nsIDOMElement aUIAnonymousElement);
38
39 /**
40 * Refresh already visible inline table editing UI
41 */
42 void refreshInlineTableEditingUI();
43 };
44

mercurial