1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/editor/idl/nsIHTMLInlineTableEditor.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,44 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#include "nsISupports.idl" 1.10 +#include "domstubs.idl" 1.11 + 1.12 +[scriptable, uuid(eda2e65c-a758-451f-9b05-77cb8de74ed2)] 1.13 + 1.14 +interface nsIHTMLInlineTableEditor : nsISupports 1.15 +{ 1.16 + /** 1.17 + * boolean indicating if inline table editing is enabled in the editor. 1.18 + * When inline table editing is enabled, and when the selection is 1.19 + * contained in a table cell, special buttons allowing to add/remove 1.20 + * a line/column are available on the cell's border. 1.21 + */ 1.22 + attribute boolean inlineTableEditingEnabled; 1.23 + 1.24 + /** 1.25 + * Shows inline table editing UI around a table cell 1.26 + * @param aCell [IN] a DOM Element being a table cell, td or th 1.27 + */ 1.28 + void showInlineTableEditingUI(in nsIDOMElement aCell); 1.29 + 1.30 + /** 1.31 + * Hide all inline table editing UI 1.32 + */ 1.33 + void hideInlineTableEditingUI(); 1.34 + 1.35 + /** 1.36 + * Modifies the table containing the selection according to the 1.37 + * activation of an inline table editing UI element 1.38 + * @param aUIAnonymousElement [IN] the inline table editing UI element 1.39 + */ 1.40 + void doInlineTableEditingAction(in nsIDOMElement aUIAnonymousElement); 1.41 + 1.42 + /** 1.43 + * Refresh already visible inline table editing UI 1.44 + */ 1.45 + void refreshInlineTableEditingUI(); 1.46 +}; 1.47 +