Source code

Revision control

Other Tools

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
7
#include "nsISupports.idl"
8
9
webidl Node;
10
11
[scriptable, uuid(35BE2D7E-F29B-48EC-BF7E-80A30A724DE3)]
12
interface nsIContentViewerEdit : nsISupports
13
{
14
void clearSelection();
15
void selectAll();
16
17
void copySelection();
18
readonly attribute boolean copyable;
19
20
void copyLinkLocation();
21
readonly attribute boolean inLink;
22
23
const long COPY_IMAGE_TEXT = 0x0001;
24
const long COPY_IMAGE_HTML = 0x0002;
25
const long COPY_IMAGE_DATA = 0x0004;
26
const long COPY_IMAGE_ALL = -1;
27
void copyImage(in long aCopyFlags);
28
readonly attribute boolean inImage;
29
30
AString getContents(in string aMimeType, in boolean aSelectionOnly);
31
readonly attribute boolean canGetContents;
32
33
// Set the node that will be the subject of the editing commands above.
34
// Usually this will be the node that was context-clicked.
35
void setCommandNode(in Node aNode);
36
};