InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
PstLstUIDList Class Reference
Inheritance diagram for PstLstUIDList:
CPMUnknown< IPstLstUIDList >IPstLstUIDListIPMUnknown

Public Member Functions

 PstLstUIDList (IPMUnknown *boss)
 
virtual ~PstLstUIDList ()
 
virtual void Append (const UID &uid)
 
virtual void Remove (const UID &uid)
 
virtual const UIDListGetUIDList ()
 
virtual UIDRef GetRef (int32 index)
 
virtual IDataBaseGetDataBase ()
 
virtual void ReadWrite (IPMStream *s, ImplementationID prop)
 
- Public Member Functions inherited from CPMUnknown< IPstLstUIDList >
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 IPstLstUIDList
enum  { kDefaultIID = IID_IPSTLSTUIDLIST }
 
- Protected Member Functions inherited from CPMUnknown< IPstLstUIDList >
 CPMUnknown (IPMUnknown *boss)
 
- Protected Attributes inherited from CPMUnknown< IPstLstUIDList >
HelperInterface fHelperInterface
 

Detailed Description

A persistent IPstLstUIDList implementation, which is aggregated in kDrawablePageItemBoss. When this plug-in is loaded, a page item will carry this UID list which contains UIDs of all associated persistent list items. UIDs of persistent list items are added to the list by processing kPstLstNewDataCmdBoss. PstLstUIDList allows adding/removing of a UID to/from the list. In the UI plug-in (persistentlistui), a user can see this list of UIDs as children of drawable page item node on the plug-in's panel.

Constructor & Destructor Documentation

PstLstUIDList::PstLstUIDList (IPMUnknownboss)

Constructor.

Parameters
bossinterface ptr from boss object on which this interface is aggregated.
PstLstUIDList::~PstLstUIDList ()
virtual

Destructor. The UIDList is deleted.

Member Function Documentation

void PstLstUIDList::Append (const UIDuid)
virtual

Appends a UID of an object to the UID list of persistent list items.

NOTE: This method must be called from within a command, as it internally dirties the database. Client code must process the kPstLstNewDataCmdBoss instead of calling this method directly.

Parameters
uidIN The UID of the object to be appened to the UID list.
See Also
kPstLstNewDataCmdBoss

Implements IPstLstUIDList.

IDataBase * PstLstUIDList::GetDataBase (void )
virtual

Gets the database associated with the persistent list.

Returns
the database that stores the UID list

Implements IPstLstUIDList.

UIDRef PstLstUIDList::GetRef (int32 index)
virtual

Given an index, this routine will return the corresponding object's UIDRef.

Parameters
indexIN The index of the object in the persistent item list.
Returns
The UIDRef of the desired object.

Implements IPstLstUIDList.

const UIDList * PstLstUIDList::GetUIDList ()
virtual

Gets the list of persistent list items maintained.

Returns
UIDList maintained by this class.

Implements IPstLstUIDList.

void PstLstUIDList::ReadWrite (IPMStreams,
ImplementationID prop 
)
virtual

Because this is a persistent interface, it must support the ReadWrite method. This method is used for both writing data out to the database and reading data from the database. The infomation it reads/writes include the current selected UID and the whole UID list of persistent list items associated.

Parameters
sIN Contains the stream to read or write.
propIN The implementation ID to read or write
void PstLstUIDList::Remove (const UIDuid)
virtual

Removes a UID of an object from the UID list of persistent list items.

NOTE: This method must be called from within a command, as it internally dirties the database. Client code must process the kPstLstDeleteDataCmdBoss instead of calling this method directly.

Parameters
uidIN The UID of the object to be removed from the UID list.
See Also
kPstLstDeleteDataCmdBoss

Implements IPstLstUIDList.