This method executes a command against the the activeX control. There is a
predefined list of commands that can be executed against the control. A list of each
command and what it does is found below.
- "copy" - Copies the selection to the clipboard.
- "cut" - Cuts the selection to the clipboard.
- "paste" - Pastes the content of the clipboard at cursor ar selection.
- "undo" - Restores the document to the state before the last change.
- "selectAll" - Selects the entire document.
- "print" - Prints the document.
- "printPreview" - Shows print preview of the document.
- "properties" - Shows properties of the page.
- "pageSetup" - Shows page setup.
- "saveAs" - Opens up save as dialog.
- "zoom" - Zooms text font of the page.
function onPasteCmd()
{
var savedFocusedBox = scene.savedFocusedBox;
if (savedFocusedBox && savedFocusedBox.boxType == "object")
{
savedFocusedBox.execCmd("paste", 0, null);
}
}