InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
TableCellData Class Reference
Inheritance diagram for TableCellData:
CPMUnknown< ITableCellData >ITableCellDataIPMUnknown

Public Member Functions

 TableCellData (IPMUnknown *boss)
 
virtual ~TableCellData ()
 
virtual void ReadWrite (IPMStream *s, ImplementationID prop)
 
virtual int32 GetMaxColumn (void) const
 
virtual int32 GetMaxRow (void) const
 
virtual int32 GetCellNumberOfColumns (void) const
 
virtual int32 GetCellNumberOfRows (void) const
 
virtual int32 GetTableWidth (void) const
 
virtual int32 GetTableHeight (void) const
 
virtual int32 GetCellWidth (void) const
 
virtual int32 GetCellHeight (void) const
 
virtual int32 GetViewTopRow (void) const
 
virtual void SetViewTopRow (const int32 row)
 
virtual int32 GetViewLeftColumn (void) const
 
virtual void SetViewLeftColumn (const int32 column)
 
virtual int32 GetSelectRow (void) const
 
virtual void SetSelectRow (const int32 row)
 
virtual int32 GetSelectColumn (void) const
 
virtual void SetSelectColumn (const int32 column)
 
virtual bool isSelection (const int32 column, const int32 row) const
 
virtual const WideStringGetCellString (int32 column, int32 row) const
 
virtual const WideStringGetCellString (void) const
 
virtual bool16 SetCellString (const WideString &string, int32 column, int32 row)
 
virtual bool SetCellString (const WideString &string)
 
virtual void Invalidate (bool16 forceInvalidate)
 
virtual PMPoint ConstrainDimensions (const PMPoint &desiredDimen) const
 
- Public Member Functions inherited from CPMUnknown< ITableCellData >
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 ITableCellData
enum  { kDefaultIID = IID_ITABLECELLDATA }
 
enum  { kNoSelected = -1 }
 
- Protected Member Functions inherited from CPMUnknown< ITableCellData >
 CPMUnknown (IPMUnknown *boss)
 
- Protected Attributes inherited from CPMUnknown< ITableCellData >
HelperInterface fHelperInterface
 

Detailed Description

TableCellData is an interface for an implementation that manages the data in TableCell.

Constructor & Destructor Documentation

TableCellData::TableCellData (IPMUnknownboss)

Constructor.

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

Destructor.

Member Function Documentation

PMPoint TableCellData::ConstrainDimensions (const PMPointdesiredDimen) const
virtual

Before resizing a table of panel widget, Calculate height and width of the table for resizing of the panel. The client can ask if the size makes sense by calling this method. Return size constraints. This method is called from ConstrainDimensions method of panel view widget.

Parameters
desiredDimenThe size of the adjusted table

Implements ITableCellData.

int32 TableCellData::GetCellHeight (void ) const
virtual

Get the height of each cell.

Implements ITableCellData.

int32 TableCellData::GetCellNumberOfColumns (void ) const
virtual

Calculate of how many cells go into each column of the table.

Implements ITableCellData.

int32 TableCellData::GetCellNumberOfRows (void ) const
virtual

Calculate of how many cells go into each row of the table.

Implements ITableCellData.

const WideString & TableCellData::GetCellString (int32 column,
int32 row 
) const
virtual

Acquire the string data of specified cell.

Parameters
columnSpecifies the column number of the cell.
rowSpecifiesthe row number of the cell.
Returns
String of the specified cell

Implements ITableCellData.

const WideString & TableCellData::GetCellString (void ) const
virtual

Acquire the string data of chosen Cell.

Implements ITableCellData.

int32 TableCellData::GetCellWidth (void ) const
virtual

Get the width of each cell.

Implements ITableCellData.

int32 TableCellData::GetMaxColumn (void ) const
virtual

Get the maximum number of columns.

Implements ITableCellData.

int32 TableCellData::GetMaxRow (void ) const
virtual

Get the maximum number of rows.

Implements ITableCellData.

int32 TableCellData::GetSelectColumn (void ) const
virtual

Acquire column of chosen cell.

Implements ITableCellData.

int32 TableCellData::GetSelectRow (void ) const
virtual

Acquire row of chosen cell.

Implements ITableCellData.

int32 TableCellData::GetTableHeight (void ) const
virtual

Calculate the height of the table.

Implements ITableCellData.

int32 TableCellData::GetTableWidth (void ) const
virtual

Calculate the width of the table.

Implements ITableCellData.

int32 TableCellData::GetViewLeftColumn (void ) const
virtual

Get the column to show at the left of the visible area.

Implements ITableCellData.

int32 TableCellData::GetViewTopRow (void ) const
virtual

Get the row to show at the top of the visible area.

Implements ITableCellData.

void TableCellData::Invalidate (bool16 forceInvalidate)
virtual

Invalidate the table cells by calling IControlView::Invalidate() on the kTableCellWidgetID widget.

Parameters
forceInvalidatedefault is false.

Implements ITableCellData.

bool TableCellData::isSelection (const int32 column,
const int32 row 
) const
virtual

Examine whether cell is chosen.

Parameters
rowSpecify row number to examine.
columnSpecify column number to examine.

Implements ITableCellData.

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

ReadWrite of Persistance

bool16 TableCellData::SetCellString (const WideStringstring,
int32 column,
int32 row 
)
virtual

Set up the string data of specified Cell.

Parameters
stringString to set in specified cell.
columnSpecifies the column number of the cell.
rowSpecifies the row number of the cell.

Implements ITableCellData.

bool TableCellData::SetCellString (const WideStringstring)
virtual

Set up a string in chosen cell.

Parameters
stringString to set in selected cell.

Implements ITableCellData.

void TableCellData::SetSelectColumn (const int32 column)
virtual

Set up column number of chosen cell.

Parameters
rowis 32 bit integer.

Implements ITableCellData.

void TableCellData::SetSelectRow (const int32 row)
virtual

Set up row number of chosen cell.

Parameters
rowis 32 bit integer.

Implements ITableCellData.

void TableCellData::SetViewLeftColumn (const int32 column)
virtual

Set up column to show at the left of the visible area.

Parameters
columnis 32 bit integer.

Implements ITableCellData.

void TableCellData::SetViewTopRow (const int32 row)
virtual

Set up row to show at the top of the visible area.

Parameters
Rowis 32 bit integer.

Implements ITableCellData.