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

#include <IViewListBoxControlData.h>

Inheritance diagram for IViewListBoxControlData:
IListControlDataIPMUnknown

Public Types

enum  { kBeginning = 0, kEnd = -2 }
 
- Public Types inherited from IListControlData
enum  { kDefaultIID = IID_ILISTCONTROLDATA }
 

Public Member Functions

virtual void Add (IControlView *item, int32 at=kEnd, bool16 invalidate=kTrue, bool16 notifyOfChange=kTrue)=0
 
virtual void Add (const K2Vector< IControlView * > &items, bool16 invalidate=kTrue, bool16 notifyOfChange=kTrue)=0
 
virtual void Replace (IControlView *item, int32 index, bool16 invalidate=kTrue, bool16 notifyOfChange=kTrue)=0
 
virtual IControlViewoperator[] (int32 index) const =0
 
- Public Member Functions inherited from IListControlData
virtual void Remove (int32 index, bool16 invalidate=kTrue, bool16 notifyOfChange=kTrue)=0
 
virtual void Clear (bool16 invalidate=kTrue, bool16 notifyOfChange=kTrue)=0
 
virtual int32 Length () const =0
 
virtual void Refresh () const =0
 
virtual void Synchronize (SysControl sysControl) const =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 representing an IControlView based listbox data-model.

Member Function Documentation

virtual void IViewListBoxControlData::Add (IControlViewitem,
int32 at = kEnd,
bool16 invalidate = kTrue,
bool16 notifyOfChange = kTrue 
)
pure 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
virtual void IViewListBoxControlData::Add (const K2Vector< IControlView * > & items,
bool16 invalidate = kTrue,
bool16 notifyOfChange = kTrue 
)
pure 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
virtual IControlView* IViewListBoxControlData::operator[] (int32 index) const
pure virtual

Return the nth item.

Returns
item at given position in the list
virtual void IViewListBoxControlData::Replace (IControlViewitem,
int32 index,
bool16 invalidate = kTrue,
bool16 notifyOfChange = kTrue 
)
pure 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