Skip to content

NAM CONTEXT DATA

Data Type : Menu Add-In
NAM_CONTEXT_DATA - Contains import/export information.

#include <addinmen.h>

Definition :

typedef struct
   {
   FLAG Context:3;    /* Desk, View, Editor R/W, Editor R/O */
   FLAG fCanExport:1; /* TRUE if the add-in can perform an export.*/
   FLAG fCanImport:1; /* TRUE if the add-in can request an import.*/
   union
      {
      EDITIXDATA Edit;
      VIEWIXDATA View;
      } IXData;
   } NAM_CONTEXT_DATA;

Description :

This structure provides import/export data to a menu add-in program. The Context field of indicates the Notes context when the menu item was selected. It can take one of the following values:
NAM_IN_DESK In the desktop.
NAM_IN_VIEW In a view.
NAM_IN_VIEW_DESIGN Designing a view.
NAM_IN_EDIT_RO In a read only document.
NAM_IN_EDIT_RW In a document - edit mode.
NAM_IN_EDIT_DESIGN Designing a document.

The a menu add-in receives this information when processing the NAMM_COMMAND message from Notes.

See Also : NAM_xxx NAM_IN_xxx EDITIXDATA EDITIMPORTDATA EDITEXPORTDATA VIEWIXDATA NAM_COMMAND_INFO