![]() | InDesign SDK 20.5 |
#include <ScriptInfo.h>

Public Member Functions | |
| ObjectScriptElement (const ObjectScriptElement &, const RequestContext &) | |
| bool16 | HasSingular () const |
| bool16 | HasCollection () const |
| const PMString & | GetFormattedName (ScriptElementType as=kObjectElement) const |
| const GUID & | GetGUID () const |
| const ScriptElementID & | GetSuite () const |
| const BaseScriptInfo * | GetCollectionInfo () const |
| BaseScriptInfo * | GetCollectionInfo () |
| PMString | GetCollectionFormattedName (ScriptElementType as=kObjectElement) const |
| const GUID & | GetCollectionGUID () const |
| bool16 | IsPropertyReadOnly (const ScriptElementID &propertyID, bool16 obsoleteArg=kTrue) const |
| bool16 | IsPropertyReadOnly (const ScriptID &propertyID, bool16 obsoleteArg=kTrue) const |
| const ScriptElementID & | GetBaseObject () const |
| const ObjectScriptElement * | FindBaseObject () const |
| bool16 | IsObjectType (const ScriptElementID &id) const |
| bool16 | IsObjectType (const ScriptID &type) const |
| bool16 | IsPreferencesObject () const |
| bool16 | IsSingletonChild () const |
| ObjectElementIterator | Subclasses () const |
| const ParentProviderPacket * | FindParent (const ScriptElementID &id) const |
| const ParentProviderPacket * | FindParent (const ScriptID &id) const |
| const ParentProviderPacket * | FindParent (const PMString &name, ScriptElementType as=kObjectElement) const |
| const ChildProviderPacket * | FindChild (const ScriptElementID &id) const |
| const ChildProviderPacket * | FindChildBySingularID (const ScriptID &id) const |
| const ChildProviderPacket * | FindChildByCollectionID (const ScriptID &id) const |
| const ChildProviderPacket * | FindChildBySingularName (const PMString &name, ScriptElementType as=kObjectElement) const |
| const ChildProviderPacket * | FindChildByCollectionName (const PMString &name, ScriptElementType as=kObjectElement) const |
| const MethodProviderPacket * | FindMethod (const ScriptElementID &id) const |
| const MethodProviderPacket * | FindMethod (const ScriptID &id) const |
| const MethodProviderPacket * | FindMethod (const PMString &name, ScriptElementType as=kMethodElement) const |
| const CollectionMethodProviderPacket * | FindCollectionMethod (const ObjectScriptElement *parent, const ScriptElementID &id) const |
| const CollectionMethodProviderPacket * | FindCollectionMethod (const ObjectScriptElement *parent, const ScriptID &id) const |
| const CollectionMethodProviderPacket * | FindCollectionMethod (const ObjectScriptElement *parent, const PMString &name, ScriptElementType as=kMethodElement) const |
| const PropertyProviderPacket * | FindProperty (const ScriptElementID &id) const |
| const PropertyProviderPacket * | FindProperty (const ScriptID &id) const |
| const PropertyProviderPacket * | FindProperty (const PMString &name, ScriptElementType as=kPropertyElement) const |
| PropertyProviderIterator | FindProperties (const ClassID &attributeID) const |
| const EventProviderPacket * | FindEvent (const ScriptElementID &id) const |
| const EventProviderPacket * | FindEvent (const ScriptID &id) const |
| const EventProviderPacket * | FindEvent (const PMString &name, ScriptElementType as=kEventElement) const |
| ParentProviderIterator | Parents () const |
| ChildProviderIterator | Children () const |
| MethodProviderIterator | Methods (bool16 iterateBaseObjects=kTrue) const |
| CollectionMethodProviderIterator | CollectionMethods (const ObjectScriptElement *parent=nil) const |
| PropertyProviderIterator | Properties (bool16 iterateBaseObjects=kTrue) const |
| EventProviderIterator | Events (bool16 iterateBaseObjects=kTrue) const |
| void | AddSubclass (const ObjectScriptElement *subclass) |
| void | AddParent (const ParentProviderPacket &pp) |
| void | AddChild (const ChildProviderPacket &pp) |
| void | AddMethod (const MethodProviderPacket &pp) |
| void | AddCollectionMethod (const CollectionMethodProviderPacket &pp) |
| void | AddProperty (const PropertyProviderPacket &pp) |
| void | AddEvent (const EventProviderPacket &pp) |
| bool16 | operator== (const ObjectScriptElement &) const |
| virtual void | ReadWrite (IPMStream *s) |
| const RequestContext & | GetRequestContext () const |
| void | SortChildren (PacketComp func) |
Public Member Functions inherited from ScriptInfo::ScriptElement | |
| ScriptElement (const ScriptElementID &siid, const ScriptID &id, const PMString &name, const PMString &desc) | |
| const ElementContext & | GetContext () const |
| const ScriptElementID & | GetScriptElementID () const |
| const PluginID & | GetPluginID () const |
| const ScriptRecordData & | GetMetadata () const |
| ScriptRecordData & | GetMetadata () |
| bool16 | HasMetadata (const ScriptID &key, ScriptData &value) const |
| bool16 | HasMetadata (const ScriptIDValuePair &kvp) const |
| bool16 | operator== (const ScriptElement &) const |
| void | SetContext (const ElementContext &context) |
| void | SetPluginID (const PluginID &) |
Public Member Functions inherited from ScriptInfo::BaseScriptInfo | |
| BaseScriptInfo (const ScriptID &id, const PMString &name, const PMString &desc) | |
| BaseScriptInfo (const BaseScriptInfo &other) | |
| const ScriptID & | GetScriptID () const |
| const PMString & | GetName () const |
| void | SetName (const PMString &name) |
| const PMString & | GetFormattedName (const FormatNamePolicy &policy) const |
| virtual PMString | GetDescription () const |
| BaseScriptInfo & | operator= (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 |
ObjectScriptElement represents an object in a scripting DOM.
| void ScriptInfo::ObjectScriptElement::AddChild | ( | const ChildProviderPacket & | pp | ) |
Add a child to this object
| void ScriptInfo::ObjectScriptElement::AddCollectionMethod | ( | const CollectionMethodProviderPacket & | pp | ) |
Add a collection method to this object
| void ScriptInfo::ObjectScriptElement::AddEvent | ( | const EventProviderPacket & | pp | ) |
Add an event to this object
| void ScriptInfo::ObjectScriptElement::AddMethod | ( | const MethodProviderPacket & | pp | ) |
Add a method to this object
| void ScriptInfo::ObjectScriptElement::AddParent | ( | const ParentProviderPacket & | pp | ) |
Add a parent to this object
| void ScriptInfo::ObjectScriptElement::AddProperty | ( | const PropertyProviderPacket & | pp | ) |
Add a property to this object
| void ScriptInfo::ObjectScriptElement::AddSubclass | ( | const ObjectScriptElement * | subclass | ) |
Add a subclass object of this object
| ChildProviderIterator ScriptInfo::ObjectScriptElement::Children | ( | ) | const |
Retrieve an iterator for children of this object
| CollectionMethodProviderIterator ScriptInfo::ObjectScriptElement::CollectionMethods | ( | const ObjectScriptElement * | parent = nil | ) | const |
Retrieve an iterator for collection methods of this object
| parent | - pass valid parent to limit iteration to collection methods on a particular parent |
| EventProviderIterator ScriptInfo::ObjectScriptElement::Events | ( | bool16 | iterateBaseObjects = kTrue | ) | const |
Retrieve an iterator for events of this object
| iterateBaseObjects | - whether to include elements from base object(s) |
| const ObjectScriptElement* ScriptInfo::ObjectScriptElement::FindBaseObject | ( | ) | const |
Get the base object (or nil, if none)
| const ChildProviderPacket* ScriptInfo::ObjectScriptElement::FindChild | ( | const ScriptElementID & | id | ) | const |
Find provider information for a child of this object
| const ChildProviderPacket* ScriptInfo::ObjectScriptElement::FindChildByCollectionID | ( | const ScriptID & | id | ) | const |
Find provider information for a child of this object
| const ChildProviderPacket* ScriptInfo::ObjectScriptElement::FindChildByCollectionName | ( | const PMString & | name, |
| ScriptElementType | as = kObjectElement | ||
| ) | const |
Find provider information for a child of this object
| const ChildProviderPacket* ScriptInfo::ObjectScriptElement::FindChildBySingularID | ( | const ScriptID & | id | ) | const |
Find provider information for a child of this object
| const ChildProviderPacket* ScriptInfo::ObjectScriptElement::FindChildBySingularName | ( | const PMString & | name, |
| ScriptElementType | as = kObjectElement | ||
| ) | const |
Find provider information for a child of this object
| const CollectionMethodProviderPacket* ScriptInfo::ObjectScriptElement::FindCollectionMethod | ( | const ObjectScriptElement * | parent, |
| const ScriptElementID & | id | ||
| ) | const |
Find provider information for a collection method on a particular parent of this object
| const CollectionMethodProviderPacket* ScriptInfo::ObjectScriptElement::FindCollectionMethod | ( | const ObjectScriptElement * | parent, |
| const ScriptID & | id | ||
| ) | const |
Find provider information for a collection method on a particular parent of this object
| const CollectionMethodProviderPacket* ScriptInfo::ObjectScriptElement::FindCollectionMethod | ( | const ObjectScriptElement * | parent, |
| const PMString & | name, | ||
| ScriptElementType | as = kMethodElement | ||
| ) | const |
Find provider information for a collection method on a particular parent of this object
| const EventProviderPacket* ScriptInfo::ObjectScriptElement::FindEvent | ( | const ScriptElementID & | id | ) | const |
Find provider information for an event of this object
| const EventProviderPacket* ScriptInfo::ObjectScriptElement::FindEvent | ( | const ScriptID & | id | ) | const |
Find provider information for an event of this object
| const EventProviderPacket* ScriptInfo::ObjectScriptElement::FindEvent | ( | const PMString & | name, |
| ScriptElementType | as = kEventElement | ||
| ) | const |
Find provider information for an event of this object
| const MethodProviderPacket* ScriptInfo::ObjectScriptElement::FindMethod | ( | const ScriptElementID & | id | ) | const |
Find provider information for a method of this object
| const MethodProviderPacket* ScriptInfo::ObjectScriptElement::FindMethod | ( | const ScriptID & | id | ) | const |
Find provider information for a method of this object
| const MethodProviderPacket* ScriptInfo::ObjectScriptElement::FindMethod | ( | const PMString & | name, |
| ScriptElementType | as = kMethodElement | ||
| ) | const |
Find provider information for a method of this object
| const ParentProviderPacket* ScriptInfo::ObjectScriptElement::FindParent | ( | const ScriptElementID & | id | ) | const |
Find provider information for a parent of this object
| const ParentProviderPacket* ScriptInfo::ObjectScriptElement::FindParent | ( | const ScriptID & | id | ) | const |
Find provider information for a parent of this object
| const ParentProviderPacket* ScriptInfo::ObjectScriptElement::FindParent | ( | const PMString & | name, |
| ScriptElementType | as = kObjectElement | ||
| ) | const |
Find provider information for a parent of this object
| PropertyProviderIterator ScriptInfo::ObjectScriptElement::FindProperties | ( | const ClassID & | attributeID | ) | const |
Find provider information for properties of this object associated with a particular attribute
| const PropertyProviderPacket* ScriptInfo::ObjectScriptElement::FindProperty | ( | const ScriptElementID & | id | ) | const |
Find provider information for a property of this object
| const PropertyProviderPacket* ScriptInfo::ObjectScriptElement::FindProperty | ( | const ScriptID & | id | ) | const |
Find provider information for a property of this object
| const PropertyProviderPacket* ScriptInfo::ObjectScriptElement::FindProperty | ( | const PMString & | name, |
| ScriptElementType | as = kPropertyElement | ||
| ) | const |
Find provider information for a property of this object
| inline |
Get the id of the base object
| PMString ScriptInfo::ObjectScriptElement::GetCollectionFormattedName | ( | ScriptElementType | as = kObjectElement | ) | const |
Return the formatted collection name
| as | which kind of element |
| inline |
Get the collection GUID
| inline |
Get the collection object info
| inline |
Get the collection object info
| const PMString& ScriptInfo::ObjectScriptElement::GetFormattedName | ( | ScriptElementType | as = kObjectElement | ) | const |
Get the formatted name
| as | which type of script element |
| inline |
Get the GUID
| const RequestContext& ScriptInfo::ObjectScriptElement::GetRequestContext | ( | ) | const |
Get the request context
| inline |
Get the suite
| inline |
Returns kTrue if this object has a collection form
| inline |
Returns kTrue if this object has a singular form
| bool16 ScriptInfo::ObjectScriptElement::IsObjectType | ( | const ScriptElementID & | id | ) | const |
Returns kTrue if this object is or is based on the specified object
| id | - the base object to test |
| bool16 ScriptInfo::ObjectScriptElement::IsObjectType | ( | const ScriptID & | type | ) | const |
Returns kTrue if this object is or is based on the specified object type
| type | - the base type to test |
| inline |
Returns kTrue if this object is a preferences object
| bool16 ScriptInfo::ObjectScriptElement::IsPropertyReadOnly | ( | const ScriptElementID & | propertyID, |
| bool16 | obsoleteArg = kTrue | ||
| ) | const |
Returns kTrue if the property is read-only on this object
| propertyID | - the property to check |
| obsoleteArg | - ignored |
| bool16 ScriptInfo::ObjectScriptElement::IsPropertyReadOnly | ( | const ScriptID & | propertyID, |
| bool16 | obsoleteArg = kTrue | ||
| ) | const |
Returns kTrue if the property is read-only on this object
| propertyID | - the property to check |
| obsoleteArg | - ignored |
| inline |
Returns kTrue if this object is a singleton child object
| MethodProviderIterator ScriptInfo::ObjectScriptElement::Methods | ( | bool16 | iterateBaseObjects = kTrue | ) | const |
Retrieve an iterator for methods of this object
| iterateBaseObjects | - whether to include elements from base object(s) |
| ParentProviderIterator ScriptInfo::ObjectScriptElement::Parents | ( | ) | const |
Retrieve an iterator for parents of this object
| PropertyProviderIterator ScriptInfo::ObjectScriptElement::Properties | ( | bool16 | iterateBaseObjects = kTrue | ) | const |
Retrieve an iterator for properties of this object
| iterateBaseObjects | - whether to include elements from base object(s) |
| virtual |
Persist this object
Reimplemented from ScriptInfo::ScriptElement.
| void ScriptInfo::ObjectScriptElement::SortChildren | ( | PacketComp | func | ) |
Sort children
| ObjectElementIterator ScriptInfo::ObjectScriptElement::Subclasses | ( | ) | const |
Return an iterator of objects for which this object is a base object