michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: #include "domstubs.idl" michael@0: michael@0: [scriptable, uuid(eda2e65c-a758-451f-9b05-77cb8de74ed2)] michael@0: michael@0: interface nsIHTMLInlineTableEditor : nsISupports michael@0: { michael@0: /** michael@0: * boolean indicating if inline table editing is enabled in the editor. michael@0: * When inline table editing is enabled, and when the selection is michael@0: * contained in a table cell, special buttons allowing to add/remove michael@0: * a line/column are available on the cell's border. michael@0: */ michael@0: attribute boolean inlineTableEditingEnabled; michael@0: michael@0: /** michael@0: * Shows inline table editing UI around a table cell michael@0: * @param aCell [IN] a DOM Element being a table cell, td or th michael@0: */ michael@0: void showInlineTableEditingUI(in nsIDOMElement aCell); michael@0: michael@0: /** michael@0: * Hide all inline table editing UI michael@0: */ michael@0: void hideInlineTableEditingUI(); michael@0: michael@0: /** michael@0: * Modifies the table containing the selection according to the michael@0: * activation of an inline table editing UI element michael@0: * @param aUIAnonymousElement [IN] the inline table editing UI element michael@0: */ michael@0: void doInlineTableEditingAction(in nsIDOMElement aUIAnonymousElement); michael@0: michael@0: /** michael@0: * Refresh already visible inline table editing UI michael@0: */ michael@0: void refreshInlineTableEditingUI(); michael@0: }; michael@0: