michael@0: /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * 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: michael@0: [scriptable, uuid(AF13EA3A-D488-4308-B843-526E055AB943)] michael@0: interface nsIContentViewerEdit : nsISupports michael@0: { michael@0: void clearSelection(); michael@0: void selectAll(); michael@0: michael@0: void copySelection(); michael@0: readonly attribute boolean copyable; michael@0: michael@0: void copyLinkLocation(); michael@0: readonly attribute boolean inLink; michael@0: michael@0: const long COPY_IMAGE_TEXT = 0x0001; michael@0: const long COPY_IMAGE_HTML = 0x0002; michael@0: const long COPY_IMAGE_DATA = 0x0004; michael@0: const long COPY_IMAGE_ALL = -1; michael@0: void copyImage(in long aCopyFlags); michael@0: readonly attribute boolean inImage; michael@0: michael@0: AString getContents(in string aMimeType, in boolean aSelectionOnly); michael@0: readonly attribute boolean canGetContents; michael@0: };