1999-12-15 08:12:18 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
2012-05-21 15:12:37 +04:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
1999-12-15 08:12:18 +03:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
2015-04-22 03:09:14 +03:00
|
|
|
interface nsIDOMNode;
|
|
|
|
|
|
|
|
[scriptable, uuid(35BE2D7E-F29B-48EC-BF7E-80A30A724DE3)]
|
1999-12-15 08:12:18 +03:00
|
|
|
interface nsIContentViewerEdit : nsISupports
|
|
|
|
{
|
2000-07-19 03:13:07 +04:00
|
|
|
void clearSelection();
|
|
|
|
void selectAll();
|
1999-12-15 08:12:18 +03:00
|
|
|
|
2000-07-19 03:13:07 +04:00
|
|
|
void copySelection();
|
1999-12-15 08:12:18 +03:00
|
|
|
readonly attribute boolean copyable;
|
|
|
|
|
2001-04-18 10:06:31 +04:00
|
|
|
void copyLinkLocation();
|
|
|
|
readonly attribute boolean inLink;
|
|
|
|
|
2005-03-11 14:12:15 +03:00
|
|
|
const long COPY_IMAGE_TEXT = 0x0001;
|
|
|
|
const long COPY_IMAGE_HTML = 0x0002;
|
|
|
|
const long COPY_IMAGE_DATA = 0x0004;
|
|
|
|
const long COPY_IMAGE_ALL = -1;
|
|
|
|
void copyImage(in long aCopyFlags);
|
2001-04-18 10:06:31 +04:00
|
|
|
readonly attribute boolean inImage;
|
|
|
|
|
2003-04-23 00:06:19 +04:00
|
|
|
AString getContents(in string aMimeType, in boolean aSelectionOnly);
|
|
|
|
readonly attribute boolean canGetContents;
|
2015-04-22 03:09:14 +03:00
|
|
|
|
|
|
|
// Set the node that will be the subject of the editing commands above.
|
|
|
|
// Usually this will be the node that was context-clicked.
|
|
|
|
void setCommandNode(in nsIDOMNode aNode);
|
2001-04-18 10:06:31 +04:00
|
|
|
};
|