Commands N-R (C++)

Command identifiers N-R for C++.

  • IDM_OPEN
  • IDM_ORDERLIST
  • IDM_OUTDENT
  • IDM_OVERWRITE
  • IDM_PARAGRAPH
  • IDM_PASTE
  • IDM_PASTECONTENTONLY
  • IDM_PASTETEXTONLY
  • IDM_RADIOBUTTON
  • IDM_REDO
  • IDM_REFRESH
  • IDM_REMOVEFORMAT
  • IDM_REMOVEPARAFORMAT

IDM_OPEN

Not supported.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_OPEN
Header file mshtmcid.h

IDM_ORDERLIST

Toggles the text selection between an ordered list and a normal format block.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_ORDERLIST
Header file mshtmcid.h

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    Set to OLECMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    VARIANT of type VT_BSTR that specifies an id attribute for the ordered list. May be set to NULL or omitted.

  • pvaOut
    Set to NULL.

If the previous format block is already an ordered list, this command identifier will append the current format block to that previous ordered list. If the text selection contains named objects, they are replaced by the list.

The following example converts the paragraphs of a document into a list:

var tr = document.body.createTextRange();
tr.execCommand("InsertOrderedList", false, 'listId'); 

IDM_OUTDENT

Decreases by one increment the indentation of the format block in which the current selection is located.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_OUTDENT
Header file mshtmcid.h

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    Set to OLECMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    Set to NULL.

  • pvaOut
    Set to NULL.

IDM_OVERWRITE

Toggles the text-entry mode between insert and overwrite.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_OVERWRITE
Header file mshtmcid.h

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    Set to OLECMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    VARIANT of type VT_BOOL that specifies the text-entry mode. If this value is set to TRUE or NULL, the text-entry mode is overwrite. If this value is set to FALSE (the default), the text-entry mode is insert.

  • pvaOut
    Set to NULL.

IDM_PARAGRAPH

Overwrites a line break on the text selection.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_PARAGRAPH
Header file mshtmcid.h

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    Set to OLECMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    VARIANT of type VT_BSTR that specifies an id attribute for the paragraph. May be set to NULL or omitted.

  • pvaOut
    Set to NULL.

IDM_PASTE

Overwrites the contents of the clipboard on the current selection.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_PASTE
Header file mshtmcid.h

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    Set to OLECMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    Set to NULL.

  • pvaOut
    Set to NULL.

IDM_PASTECONTENTONLY

Removes styling and font and paragraph formatting (such as font size, alignment, and indentation) while retaining links, images, lists, and tables.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_PASTECONTENTONLY
Header file mshtmcid.h

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    Set to OLECMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    Set to NULL.

  • pvaOut
    Set to NULL.

IDM_PASTETEXTONLY

Uses text formats on the clipboard instead of HTML or image formats, resulting in only text being pasted. If there is only HTML on the clipboard, this command will not paste anything.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_PASTETEXTONLY
Header file mshtmcid.h

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    Set to OLECMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    Set to NULL.

  • pvaOut
    Set to NULL.

IDM_RADIOBUTTON

Overwrites a radio control on the text selection.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_RADIOBUTTON
Header file mshtmcid.h

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    Set to OLECMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    VARIANT of type VT_BSTR that specifies an id attribute for the radio control. May be set to NULL or omitted.

  • pvaOut
    Set to NULL.

IDM_REDO

Not supported.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_REDO
Header file mshtmcid.h

IDM_REFRESH

Refreshes the current document.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_REFRESH
Header file mshtmcid.h

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    Set to OLECMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    Set to NULL.

  • pvaOut
    Set to NULL.

IDM_REMOVEFORMAT

Removes the formatting tags from the current selection.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_REMOVEFORMAT
Header file mshtmcid.h

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    Set to OLECMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    Set to NULL.

  • pvaOut
    Set to NULL.

IDM_REMOVEPARAFORMAT

Not supported.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_REMOVEPARAFORMAT
Header file mshtmcid.h