nsIContentViewerEdit.idl 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2. *
  3. * This Source Code Form is subject to the terms of the Mozilla Public
  4. * License, v. 2.0. If a copy of the MPL was not distributed with this
  5. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  6. #include "nsISupports.idl"
  7. interface nsIDOMNode;
  8. [scriptable, uuid(35BE2D7E-F29B-48EC-BF7E-80A30A724DE3)]
  9. interface nsIContentViewerEdit : nsISupports
  10. {
  11. void clearSelection();
  12. void selectAll();
  13. void copySelection();
  14. readonly attribute boolean copyable;
  15. void copyLinkLocation();
  16. readonly attribute boolean inLink;
  17. const long COPY_IMAGE_TEXT = 0x0001;
  18. const long COPY_IMAGE_HTML = 0x0002;
  19. const long COPY_IMAGE_DATA = 0x0004;
  20. const long COPY_IMAGE_ALL = -1;
  21. void copyImage(in long aCopyFlags);
  22. readonly attribute boolean inImage;
  23. AString getContents(in string aMimeType, in boolean aSelectionOnly);
  24. readonly attribute boolean canGetContents;
  25. // Set the node that will be the subject of the editing commands above.
  26. // Usually this will be the node that was context-clicked.
  27. void setCommandNode(in nsIDOMNode aNode);
  28. };