InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SnipRunParameterUtils Class Reference
Inheritance diagram for SnipRunParameterUtils:
CPMUnknown< ISnipRunParameterUtils >ISnipRunParameterUtilsIPMUnknown

Public Member Functions

 SnipRunParameterUtils (IPMUnknown *boss)
 
virtual ~SnipRunParameterUtils ()
 
virtual PMString GetPMString (const PMString &prompt, const PMString &defaultValue="") const
 
virtual int32 GetInt32 (const PMString &prompt, const int32 defaultValue=0, const int32 lowerLimit=0, const int32 upperLimit=0) const
 
virtual PMReal GetPMReal (const PMString &prompt, const PMReal &defaultValue=0, const PMReal &lowerLimit=0, const PMReal &upperLimit=0) const
 
virtual int32 GetChoice (const PMString &prompt, const K2Vector< PMString > &choices, const int32 defaultChoiceIndex=0) const
 
virtual bool16 WasDialogCancelled () const
 
virtual void EnableDialog (const bool16 enable)
 
virtual bool16 IsDialogEnabled () const
 
virtual void EnableTranslation (const bool16 enable)
 
virtual bool16 IsTranslationEnabled () const
 
virtual void SetParameters (const PMString &params)
 
virtual PMString GetParameters ()
 
- Public Member Functions inherited from CPMUnknown< ISnipRunParameterUtils >
IPMUnknownQueryInterface (PMIID interfaceID) const
 
void AddRef () const
 
void Release () const
 
void PreDirty (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue)
 
void PreDirtyNoMessage (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue)
 
 CPMUnknown (const CPMUnknown &)=delete
 
CPMUnknownoperator= (const CPMUnknown &)=delete
 

Additional Inherited Members

- Public Types inherited from ISnipRunParameterUtils
enum  { kDefaultIID = IID_ISNIPRUNPARAMETERUTILS }
 
- Protected Member Functions inherited from CPMUnknown< ISnipRunParameterUtils >
 CPMUnknown (IPMUnknown *boss)
 
- Protected Attributes inherited from CPMUnknown< ISnipRunParameterUtils >
HelperInterface fHelperInterface
 

Detailed Description

Implements ISnipRunParameterUtils. Parameter gathering has three modes:

  1. Interactive; the user is prompted for parameter values via dialog as the code snippet runs. The values entered by the user are recorded and made available to the SnippetRunner user interface in its parameter edit box widget.
  2. Non-interactive; the user is not prompted for parameter values, instead parameter values are parsed from a CSV string supplied by client code. (the parameters in the parameter edit box widget in the SnippetRunner user interface are passed in).
  3. Default; the default parameter values specified by code snippets are used.
See Also
ISnipRunParameterUtils

Constructor & Destructor Documentation

SnipRunParameterUtils::SnipRunParameterUtils (IPMUnknownboss)

Constructor.

SnipRunParameterUtils::~SnipRunParameterUtils ()
virtual

Destructor.

Member Function Documentation

void SnipRunParameterUtils::EnableDialog (const bool16 enable)
virtual
void SnipRunParameterUtils::EnableTranslation (const bool16 enable)
virtual
int32 SnipRunParameterUtils::GetChoice (const PMStringprompt,
const K2Vector< PMString > & choices,
const int32 defaultChoiceIndex = 0 
) const
virtual
int32 SnipRunParameterUtils::GetInt32 (const PMStringprompt,
const int32 defaultValue = 0,
const int32 lowerLimit = 0,
const int32 upperLimit = 0 
) const
virtual
PMString SnipRunParameterUtils::GetParameters ()
virtual
PMReal SnipRunParameterUtils::GetPMReal (const PMStringprompt,
const PMRealdefaultValue = 0,
const PMReallowerLimit = 0,
const PMRealupperLimit = 0 
) const
virtual
PMString SnipRunParameterUtils::GetPMString (const PMStringprompt,
const PMStringdefaultValue = "" 
) const
virtual
bool16 SnipRunParameterUtils::IsDialogEnabled () const
virtual
bool16 SnipRunParameterUtils::IsTranslationEnabled () const
virtual
void SnipRunParameterUtils::SetParameters (const PMStringparams)
virtual
bool16 SnipRunParameterUtils::WasDialogCancelled () const
virtual