WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIClipboardHelper

IID:44073a98-1dd2-11b2-8600-d0ae854dbe93
Inherits From:nsISupports

Helper service for common uses of nsIClipboard.

This interface is intended to be used as a service. To create an object implementing this interface:

var obj = Components.classes["@mozilla.org/widget/clipboardhelper;1"].
            getService(Components.interfaces.nsIClipboardHelper);

This interface is implemented by the following components:


Methods

void copyString ( AString string ) void copyStringToClipboard ( AString string , PRInt32 clipboardID )

void copyString ( AString string )

Copy string to (default) clipboard

Arguments:
string: , the string to copy to the clipboard

void copyStringToClipboard ( AString string , PRInt32 clipboardID )

Copy string to given clipboard

Arguments:
string: , the string to copy to the clipboard
clipboardID: , the ID of the clipboard to copy to (eg. kSelectionClipboard -- see nsIClipboard.idl)

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com