You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.
nsIClipboardCommands
This interface allows for embedding clients to interact with the system-wide OS clipboard. Gecko does not use a private clipboard: instead it places its data directly onto the system clipboard. The webshell implements this interface. It is scriptable.
Determines if there is a selection that it is not read-only.
Syntax:
boolean nsIClipboardCommands::canCutSelection()
Parameters:
Returns:
Determines if there is a selection that is copyable.
Syntax:
boolean nsIClipboardCommands::canCopySelection()Parameters:
Returns:
Determines if there is a selection that is a copyable link location.
Syntax:
boolean nsIClipboardCommands::canCopyLinkLocation()Parameters:
Returns:
Determines whether the current contents of the clipboard can be pasted and if the current selection is not read-only.
Parameters:
Returns:
Determines if there is a selection that is a copyable image location.
Syntax:
boolean nsIClipboardCommands::canCopyImageLocation()Parameters:
Returns:
Determines if the current contents of the clipboard can be pasted and if the current selection is not read-only
Syntax:
boolean nsIClipboardCommands::canPaste()Parameters:
Returns:
Cuts the current selection onto the clipboard.
Syntax:
void nsIClipboardCommands::cutSelection()Parameters:
nsresult:
Copies the current selection onto the clipboard.
Syntax:
void nsIClipboardCommands::copySelection()Parameters:
nsresult:
Copies the link location of the current selection (e.g., the
href
attribute of a selecteda
tag).Syntax:
void nsIClipboardCommands::copyLinkLocation()Parameters:
nsresult:
Copies the location of the selected image.
Syntax:
void nsIClipboardCommands::copyImageLocation()Parameters:
nsresult:
Copies the contents of the selected image.
Syntax:
void nsIClipboardCommands::copyImageContents()Parameters:
nsresult:
Pastes the contents of the clipboard into the current selection.
void nsIClipboardCommands::paste()Parameters:
nsresult:
Syntax:
void nsIClipboardCommands::selectAll()
Parameters:
nsresult:
Clears the current selection (if any). The insertion point ends up at beginning of current selection.
Syntax:
void nsIClipboardCommands::selectNone()Parameters:
nsresult:
Written by:Ellen Evans | Comments, questions, complaints?
Bug 143387 |