InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ScriptInfo::MethodParam Class Reference

#include <ScriptInfo.h>

Inheritance diagram for ScriptInfo::MethodParam:
ScriptInfo::BaseScriptInfo

Public Member Functions

 MethodParam (const ScriptID &id, const PMString &name, const PMString &desc, const TypeInfo &type, bool16 optional)
 
virtual const PMStringGetFormattedName (const RequestContext &context, ScriptElementType as=kMethodParameterElement) const
 
PMString GetFormattedDescription (const ObjectScriptElement *se) const
 
TypeInfo GetParamType (const ObjectScriptElement *) const
 
bool16 IsOptional () const
 
const ScriptDataGetDefault () const
 
bool16 operator== (const MethodParam &) const
 
virtual void ReadWrite (IPMStream *s)
 
void SetParamType (const TypeInfo &type)
 
- Public Member Functions inherited from ScriptInfo::BaseScriptInfo
 BaseScriptInfo (const ScriptID &id, const PMString &name, const PMString &desc)
 
 BaseScriptInfo (const BaseScriptInfo &other)
 
const ScriptIDGetScriptID () const
 
const PMStringGetName () const
 
void SetName (const PMString &name)
 
const PMStringGetFormattedName (const FormatNamePolicy &policy) const
 
virtual PMString GetDescription () const
 
BaseScriptInfooperator= (const BaseScriptInfo &)
 
bool16 operator== (const BaseScriptInfo &) const
 

Additional Inherited Members

- Public Types inherited from ScriptInfo::BaseScriptInfo
typedef object_type data_type
 
- Protected Types inherited from ScriptInfo::BaseScriptInfo
typedef
IDThreading::lock_guard
< IDThreading::spin_mutex
LockGuard
 
- Protected Member Functions inherited from ScriptInfo::BaseScriptInfo
PMString GetFormattedDescription (const ObjectScriptElement *) const
 
- Static Protected Member Functions inherited from ScriptInfo::BaseScriptInfo
static void FormatDescription (PMString &desc, const ObjectScriptElement *)
 
- Protected Attributes inherited from ScriptInfo::BaseScriptInfo
IDThreading::spin_mutex fMutex
 

Detailed Description

MethodParam represents a method parameter in a scripting DOM.

Member Function Documentation

const ScriptData& ScriptInfo::MethodParam::GetDefault () const
inline

Get the default value for the parameter

PMString ScriptInfo::MethodParam::GetFormattedDescription (const ObjectScriptElementse) const
inline

Get the description in the context of the supplied object

virtual const PMString& ScriptInfo::MethodParam::GetFormattedName (const RequestContextcontext,
ScriptElementType as = kMethodParameterElement 
) const
inlinevirtual

Get the formatted name

Parameters
contextthe request context in which to format the name
aswhich type of script element

Reimplemented from ScriptInfo::BaseScriptInfo.

TypeInfo ScriptInfo::MethodParam::GetParamType (const ObjectScriptElement) const

Get the type in the context of the supplied object

bool16 ScriptInfo::MethodParam::IsOptional () const
inline

Get whether the parameter is optional

virtual void ScriptInfo::MethodParam::ReadWrite (IPMStreams)
virtual

Persist this object

Reimplemented from ScriptInfo::BaseScriptInfo.

void ScriptInfo::MethodParam::SetParamType (const TypeInfotype)
inline

Set the parameter's type