nsIClipboardCommands
| IID: | b8100c90-73be-11d2-92a5-00105a1b0d64 |
| Inherits From: | nsISupports |
| Status: | FROZEN |
An interface for embedding clients who wish to interact with the system-wide OS clipboard. Mozilla does not use a private clipboard, instead it places its data directly onto the system clipboard. The webshell implements this interface.
This interface is implemented by the following components:
Methods
PRBool canCopyImageContents ( )
PRBool canCopyImageLocation ( )
PRBool canCopyLinkLocation ( )
PRBool canCopySelection ( )
PRBool canCutSelection ( )
PRBool canPaste ( )
void copyImageContents ( )
void copyImageLocation ( )
void copyLinkLocation ( )
void copySelection ( )
void cutSelection ( )
void paste ( )
void selectAll ( )
void selectNone ( )
PRBool canCopyImageContents ( )
Returns whether we can copy an image's contents.
- Returns:
trueif an image is selected,falseotherwise
PRBool canCopyImageLocation ( )
Returns whether we can copy an image location.
- Returns:
trueif an image is selected,falseotherwise.
PRBool canCopyLinkLocation ( )
Returns whether we can copy a link location.
- Returns:
trueif a link is selected,falseotherwise.
Returns whether there is a selection and it is copyable.
- Returns:
trueif there is a selection,falseotherwise.
Returns whether there is a selection and it is not read-only.
- Returns:
trueif the current selection can be cut,falseotherwise.
Returns whether the current contents of the clipboard can be pasted and if the current selection is not read-only.
- Returns:
truethere is data to paste on the clipboard and the current selection is not read-only,falseotherwise
Copy the link location of the current selection (e.g., the href attribute of a selected a tag).
Clear the current selection (if any). Insertion point ends up at beginning of current selection.
Reference documentation is generated from Mozilla's source.
