#include <opdesc.h>
Inheritance diagram for ParamOpDescriptor:
Public Member Functions | |
ParamOpDescriptor (const TCHAR *pcszToken, CCRuntimeClass *pClass, pfnGetParamState gps) | |
Constructs the new ParamOpDescriptor. | |
virtual BOOL | GetText (String_256 *Description, OpTextFlags WhichText) |
This function will use the TextID and ModuleID values to obtain a String resource describing an operation. String resources may have one or more text descriptions in them, therefore, a TextFlag can be used to identify the the appropriate text required. | |
Static Public Member Functions | |
static OpState | GetState (String_256 *psName, OpDescriptor *pOpDesc) |
Returns the state that this operation should appear in the menus or as a buttom, for example - greyed out, or ticked. | |
Private Member Functions | |
CC_DECLARE_DYNAMIC (ParamOpDescriptor) |
Definition at line 801 of file opdesc.h.
|
Constructs the new ParamOpDescriptor.
Definition at line 1683 of file opdesc.cpp. 01686 : OpDescriptor( 0, // tool ID 01687 0, // String resource ID (use same for all) 01688 pClass, //CC_RUNTIME_CLASS(PlugInOp), // Runtime class 01689 (TCHAR*) pcszToken, // OpToken 01690 NULL, // GetState function 01691 0, // help ID 01692 0, // bubble help 01693 0, // resource ID 01694 0, // control ID 01695 TRUE, // Recieve system messages 01696 FALSE, // Smart duplicate operation 01697 TRUE, // Clean operation 01698 0, // String for one copy only error 01699 (DONT_GREY_WHEN_SELECT_INSIDE | GREY_WHEN_NO_CURRENT_DOC) // Auto state flags 01700 ) 01701 { 01702 GetParamState = gps; 01703 }
|
|
|
|
Returns the state that this operation should appear in the menus or as a buttom, for example - greyed out, or ticked.
Definition at line 1725 of file opdesc.cpp. 01726 { 01727 // At present, this item is always available. 01728 OpState OpSt; 01729 01730 // OpSt.Greyed = (XPEHost::IsEditSessionRunning()); 01731 01732 return OpSt; 01733 }
|
|
This function will use the TextID and ModuleID values to obtain a String resource describing an operation. String resources may have one or more text descriptions in them, therefore, a TextFlag can be used to identify the the appropriate text required.
Reimplemented from OpDescriptor. Definition at line 1762 of file opdesc.cpp. 01763 { 01764 // Leave menu text alone 01765 return TRUE; 01766 }
|