2001-05-10 06:35:00 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; 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/. */
|
2001-05-10 06:35:00 +04:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
#include "nsIClipboard.idl"
|
|
|
|
|
|
|
|
%{ C++
|
2002-03-24 01:26:36 +03:00
|
|
|
#include "nsString.h" // needed for AString -> nsAString, unfortunately
|
2001-05-10 06:35:00 +04:00
|
|
|
%}
|
|
|
|
|
2012-04-17 06:14:01 +04:00
|
|
|
interface nsIDOMDocument;
|
|
|
|
|
2001-05-10 06:35:00 +04:00
|
|
|
/**
|
|
|
|
* helper service for common uses of nsIClipboard.
|
|
|
|
*/
|
|
|
|
|
2012-04-17 06:14:01 +04:00
|
|
|
[scriptable, uuid(836316a9-6834-45e7-92af-5a4b9bd01a31)]
|
2001-05-10 06:35:00 +04:00
|
|
|
interface nsIClipboardHelper : nsISupports
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* copy string to given clipboard
|
|
|
|
*
|
|
|
|
* @param aString, the string to copy to the clipboard
|
2012-04-17 06:14:01 +04:00
|
|
|
* @param aDoc, the source document for the string, if available
|
2001-05-10 06:35:00 +04:00
|
|
|
* @param aClipboardID, the ID of the clipboard to copy to
|
|
|
|
* (eg. kSelectionClipboard -- see nsIClipboard.idl)
|
|
|
|
*/
|
2012-04-17 06:14:01 +04:00
|
|
|
void copyStringToClipboard(in AString aString, [optional] in nsIDOMDocument aDoc, in long aClipboardID);
|
2001-05-10 06:35:00 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* copy string to (default) clipboard
|
|
|
|
*
|
|
|
|
* @param aString, the string to copy to the clipboard
|
2012-04-17 06:14:01 +04:00
|
|
|
* @param aDoc, the source document for the string, if available
|
2001-05-10 06:35:00 +04:00
|
|
|
*/
|
2012-04-17 06:14:01 +04:00
|
|
|
void copyString(in AString aString, [optional] in nsIDOMDocument aDoc);
|
2001-05-10 06:35:00 +04:00
|
|
|
|
|
|
|
};
|