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.
|
|
|
|
*/
|
|
|
|
|
2015-05-21 23:50:09 +03:00
|
|
|
[scriptable, uuid(438307fd-0c68-4d79-922a-f6cc9550cd02)]
|
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
|
|
|
|
* @param aClipboardID, the ID of the clipboard to copy to
|
|
|
|
* (eg. kSelectionClipboard -- see nsIClipboard.idl)
|
|
|
|
*/
|
2015-05-21 23:50:09 +03:00
|
|
|
void copyStringToClipboard(in AString aString, 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
|
|
|
|
*/
|
2015-05-21 23:50:09 +03:00
|
|
|
void copyString(in AString aString);
|
2001-05-10 06:35:00 +04:00
|
|
|
};
|