2001-05-10 02:35:00 +00:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
2012-05-21 11:12:37 +00: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 02:35:00 +00:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
#include "nsIClipboard.idl"
|
|
|
|
|
|
|
|
%{ C++
|
2002-03-23 22:26:36 +00:00
|
|
|
#include "nsString.h" // needed for AString -> nsAString, unfortunately
|
2001-05-10 02:35:00 +00:00
|
|
|
%}
|
|
|
|
|
2012-04-17 02:14:01 +00:00
|
|
|
interface nsIDOMDocument;
|
|
|
|
|
2001-05-10 02:35:00 +00:00
|
|
|
/**
|
|
|
|
* helper service for common uses of nsIClipboard.
|
|
|
|
*/
|
|
|
|
|
2012-07-01 18:18:23 +00:00
|
|
|
[scriptable, uuid(c9d5a750-c3a8-11e1-9b21-0800200c9a66)]
|
2001-05-10 02:35:00 +00:00
|
|
|
interface nsIClipboardHelper : nsISupports
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* copy string to given clipboard
|
|
|
|
*
|
|
|
|
* @param aString, the string to copy to the clipboard
|
2012-04-17 02:14:01 +00:00
|
|
|
* @param aDoc, the source document for the string, if available
|
2001-05-10 02:35:00 +00:00
|
|
|
* @param aClipboardID, the ID of the clipboard to copy to
|
|
|
|
* (eg. kSelectionClipboard -- see nsIClipboard.idl)
|
|
|
|
*/
|
2012-07-01 18:18:23 +00:00
|
|
|
void copyStringToClipboard(in AString aString, in long aClipboardID, [optional] in nsIDOMDocument aDoc);
|
2001-05-10 02:35:00 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* copy string to (default) clipboard
|
|
|
|
*
|
|
|
|
* @param aString, the string to copy to the clipboard
|
2012-04-17 02:14:01 +00:00
|
|
|
* @param aDoc, the source document for the string, if available
|
2001-05-10 02:35:00 +00:00
|
|
|
*/
|
2012-04-17 02:14:01 +00:00
|
|
|
void copyString(in AString aString, [optional] in nsIDOMDocument aDoc);
|
2001-05-10 02:35:00 +00:00
|
|
|
|
|
|
|
};
|