InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CListControlDataOf< T > Class Template Reference
Inheritance diagram for CListControlDataOf< T >:
CPMUnknown< IListControlDataOf< T > >IListControlDataOf< T >IListControlDataIPMUnknown

Public Member Functions

 CListControlDataOf (IPMUnknown *boss)
 
void ReadWrite (IPMStream *s, ImplementationID prop)
 
virtual void Add (const T &item, int32 at, bool16 invalidate, bool16 notifyOfChange)
 
virtual void Add (const K2Vector< T > &items, bool16 invalidate, bool16 notifyOfChange)
 
virtual void Remove (int32 index, bool16 invalidate, bool16 notifyOfChange)
 
virtual void Replace (const T &item, int32 index, bool16 invalidate, bool16 notifyOfChange)
 
virtual void Clear (bool16 invalidate, bool16 notifyOfChange)
 
virtual T operator[] (int32 index) const
 
virtual int32 Length () const
 
virtual void Refresh () const
 
- Public Member Functions inherited from CPMUnknown< IListControlDataOf< T > >
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
 

Protected Member Functions

virtual void ItemAdded (const T &item, int32 at, bool16 invalidate)
 
virtual void ItemRemoved (int32 index, bool16 invalidate)
 
virtual void ItemReplaced (const T &item, int32 index, bool16 invalidate)
 
virtual void ItemsCleared (bool16 invalidate, bool16 notifyOfChange)
 
virtual void NotifyOfChange (bool16 invalidate, bool16 notifyOfChange, int32 changeMessage)
 
- Protected Member Functions inherited from CPMUnknown< IListControlDataOf< T > >
 CPMUnknown (IPMUnknown *boss)
 

Additional Inherited Members

- Public Types inherited from IListControlDataOf< T >
enum  { kBeginning = 0, kEnd = -2 }
 
- Protected Attributes inherited from CPMUnknown< IListControlDataOf< T > >
HelperInterface fHelperInterface
 

Member Function Documentation

template<class T >
virtual void CListControlDataOf< T >::Add (const T & item,
int32 at,
bool16 invalidate,
bool16 notifyOfChange 
)
virtual

Add an item to the list.

Parameters
itementity to add to the list
atposition to add item at
invalidatespecifies whether control should be invalidated
notifyOfChangespecifies whether registered observers should be notified of this change to the data model

Implements IListControlDataOf< T >.

template<class T >
virtual void CListControlDataOf< T >::Add (const K2Vector< T > & items,
bool16 invalidate,
bool16 notifyOfChange 
)
virtual

Add a list of items to the list.

Parameters
itemscollection of new items to add into list
invalidatespecifies whether control should be invalidated
notifyOfChangespecifies whether registered observers should be notified of this change to the data model

Implements IListControlDataOf< T >.

template<class T >
virtual void CListControlDataOf< T >::Clear (bool16 invalidate,
bool16 notifyOfChange 
)
virtual

Clear the list, that is, remove all elements.

Parameters
invalidatespecifies whether control should be invalidated
notifyOfChangespecifies if registered observers should be notified about this change to the data model

Implements IListControlData.

template<class T >
virtual int32 CListControlDataOf< T >::Length () const
virtual

How many items are in the list?

Returns
count of items in the list

Implements IListControlData.

template<class T >
virtual T CListControlDataOf< T >::operator[] (int32 index) const
virtual

Return the nth item.

Returns
item at given position in the list

Implements IListControlDataOf< T >.

template<class T >
virtual void CListControlDataOf< T >::Refresh () const
virtual

Synchronize the data stored in IListControlData with the tree control.

Note: Refresh is acutally an implementation detail and doesn't seem right to be in this interface.

Implements IListControlData.

template<class T >
virtual void CListControlDataOf< T >::Remove (int32 index,
bool16 invalidate,
bool16 notifyOfChange 
)
virtual

Remove item by index.

Parameters
indexposition of item to remove from list
invalidatespecifies whether control should be invalidated
notifyOfChangespecifies if registered observers should be notified about this change to the data model

Implements IListControlData.

template<class T >
virtual void CListControlDataOf< T >::Replace (const T & item,
int32 index,
bool16 invalidate,
bool16 notifyOfChange 
)
virtual

Replace the nth item.

Parameters
itemspecifies new item
indexspecifies position where item to be replaced is
invalidatespecifies whether control should be invalidated
notifyOfChangespecifies whether registered observers should be notified of this change to the data model

Implements IListControlDataOf< T >.