InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ICmdCollection Class Referenceabstract

#include <ICmdCollection.h>

Inheritance diagram for ICmdCollection:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_ICMDCOLLECTION }
 

Public Member Functions

virtual void Append (ICommand *addThis)=0
 
virtual void Prepend (ICommand *addThis)=0
 
virtual int32 Length () const =0
 
virtual ICommandGetNthCommand (int32 i)=0
 
virtual bool8 Preallocate (int32 newLen)=0
 
virtual void Clear ()=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

Interface for managing collections of commands.

Member Function Documentation

virtual void ICmdCollection::Append (ICommandaddThis)
pure virtual

Add the command to the collection. NOTE: This interface takes ownership of the reference on addThis!!

virtual void ICmdCollection::Clear ()
pure virtual

Clears the list.

virtual ICommand* ICmdCollection::GetNthCommand (int32 i)
pure virtual

Return a pointer to the n'th sub command.

virtual int32 ICmdCollection::Length () const
pure virtual

Return the number of sub commands.

virtual bool8 ICmdCollection::Preallocate (int32 newLen)
pure virtual

Make sure that there is enough space for the requested number of items.

virtual void ICmdCollection::Prepend (ICommandaddThis)
pure virtual

Add the command to the collection. NOTE: This interface takes ownership of the reference on addThis!!