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

#include <ITableTarget.h>

Inheritance diagram for ITableTarget:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_ITABLETARGET }
 

Public Member Functions

virtual void SetModel (const ITableModel *model)=0
 
virtual void SetModel (const UIDRef &tableRef)=0
 
virtual ITableModelQueryModel () const =0
 
virtual UIDRef GetModel () const =0
 
virtual void SetRange (const GridArea &cells)=0
 
virtual const GridAreaGetRange () const =0
 
virtual void SetTargetUnManaged (const ITableModel *model, const GridArea &cells)=0
 
virtual void Clear (void)=0
 
virtual bool16 HasContent (void) const =0
 
virtual void Initialize (IDataBase *db)=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

This is a rectangular target area in a table. This target is usually set up so you can preform actions on this area.

Member Function Documentation

virtual void ITableTarget::Clear (void )
pure virtual

Clears the target.

virtual UIDRef ITableTarget::GetModel () const
pure virtual

Returns the UIDRef of the ITableModel this target is in.

virtual const GridArea& ITableTarget::GetRange () const
pure virtual

Returns the rectangular area of the table this target is in.

virtual bool16 ITableTarget::HasContent (void ) const
pure virtual

Returns kTrue if this target is valid.

virtual void ITableTarget::Initialize (IDataBasedb)
pure virtual

Initialize

Parameters
dbDatabase the target is associated with.
virtual ITableModel* ITableTarget::QueryModel () const
pure virtual

Returns the ITableModel this target is in.

virtual void ITableTarget::SetModel (const ITableModelmodel)
pure virtual

Sets the ITableModel this target is in.

Parameters
modelThe ITableModel
virtual void ITableTarget::SetModel (const UIDReftableRef)
pure virtual

Sets the ITableModel this target is in.

Parameters
tableRefThe model UIDRef
virtual void ITableTarget::SetRange (const GridAreacells)
pure virtual

Sets the rectangular area of the table this target is in.

Parameters
cellsGridArea range of cells
virtual void ITableTarget::SetTargetUnManaged (const ITableModelmodel,
const GridAreacells 
)
pure virtual

Sets up the table target with a model and a GridArea, but it doesn't add the cell focus (representing the target) to the cell focus manager. This should only be used when doing one time opporations with the TableTarget – using this when the model changes under in the GridArea of the target will cause crashes. After SetTargetUnManaged has been called, SetModel can never be called!

Parameters
modelthe ITableModel being unmanaged
cellsthe GridArea being unmanaged