nsIHTMLInlineTableEditor.idl 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. #include "nsISupports.idl"
  6. #include "domstubs.idl"
  7. [scriptable, uuid(eda2e65c-a758-451f-9b05-77cb8de74ed2)]
  8. interface nsIHTMLInlineTableEditor : nsISupports
  9. {
  10. /**
  11. * boolean indicating if inline table editing is enabled in the editor.
  12. * When inline table editing is enabled, and when the selection is
  13. * contained in a table cell, special buttons allowing to add/remove
  14. * a line/column are available on the cell's border.
  15. */
  16. attribute boolean inlineTableEditingEnabled;
  17. /**
  18. * Shows inline table editing UI around a table cell
  19. * @param aCell [IN] a DOM Element being a table cell, td or th
  20. */
  21. void showInlineTableEditingUI(in nsIDOMElement aCell);
  22. /**
  23. * Hide all inline table editing UI
  24. */
  25. void hideInlineTableEditingUI();
  26. /**
  27. * Modifies the table containing the selection according to the
  28. * activation of an inline table editing UI element
  29. * @param aUIAnonymousElement [IN] the inline table editing UI element
  30. */
  31. void doInlineTableEditingAction(in nsIDOMElement aUIAnonymousElement);
  32. /**
  33. * Refresh already visible inline table editing UI
  34. */
  35. void refreshInlineTableEditingUI();
  36. };