![]() | InDesign SDK 20.5 |
#include <ITableAttrAccessor.h>

Classes | |
| class | CellOverridesCallback |
| class | CellStrokeOverridesCallback |
Public Types | |
| enum | { kDefaultIID = IID_ITABLEATTRACCESSOR } |
| kDefaultIID | |
Public Member Functions | |
Cell Styles. | |
| virtual const AttributeBossList * | GetAttributesFromCellStyle (const GridAddress &element, GridArea *runArea=nil) const =0 |
| virtual const AttributeBossList * | GetAttributesFromRegionalCellStyle (const GridAddress &element, GridArea *runArea=nil) const =0 |
| virtual UID | GetCellStyle (const GridAddress &element, int32 *priority=nil, GridArea *runArea=nil) const =0 |
| virtual UID | GetRegionalCellStyle (const GridAddress &element, GridArea *runArea=nil) const =0 |
| virtual const IPMUnknown * | QueryCellStyleForAttr (const GridAddress &element, const ClassID &whichAttr, const PMIID &iid, GridArea *surroundingRun=nil) const =0 |
Row attributes. | |
| virtual const IPMUnknown * | QueryRowAttribute (int32 row, ClassID whichAttr, PMIID iid) const =0 |
| virtual const IPMUnknown * | QueryRowOverride (int32 row, ClassID whichAttr, PMIID id) const =0 |
| virtual DataWrapper < AttributeBossList > | QueryRowOverrides (int32 row, int32 *runLength=nil) const =0 |
Column attributes. | |
| virtual const IPMUnknown * | QueryColAttribute (int32 col, ClassID whichAttr, PMIID id) const =0 |
| virtual const IPMUnknown * | QueryColOverride (int32 col, ClassID whichAttr, PMIID id) const =0 |
| virtual DataWrapper < AttributeBossList > | QueryColOverrides (int32 col, int32 *runLength=nil) const =0 |
Cell attributes. | |
| virtual const IPMUnknown * | QueryCellAttribute (const GridAddress &element, ClassID whichAttr, PMIID iid, GridArea *surroundingRun=nil, bool16 isPreserveOverride=kTrue) const =0 |
| virtual const IPMUnknown * | QueryCellOverride (const GridAddress &element, ClassID whichAttr, PMIID iid, GridArea *surroundingRun=nil) const =0 |
| virtual DataWrapper < AttributeBossList > | QueryCellOverrides (const GridAddress &element, GridArea *surroundingRun=nil) const =0 |
| virtual void | IterateCellOverrides (CellOverridesCallback &callBack) const =0 |
| virtual void | IterateCellStrokeOverrides (Tables::ERowColumn patternType, CellStrokeOverridesCallback &callBack) const =0 |
Table attributes. | |
| virtual UID | GetTableStyle (void) const =0 |
| virtual const IPMUnknown * | QueryTableAttribute (ClassID whichAttr, PMIID iid) const =0 |
| virtual const AttributeBossList * | GetTableAttributesResolved (void) const =0 |
| virtual const ITableAttributes * | QueryTableOverrides (void) const =0 |
Cell content type attributes. | |
| virtual CellType | GetCellType (const GridAddress &anchor) const =0 |
| virtual CellType | GetDefaultCellType (void) const =0 |
Caches. | |
| virtual void | ClearCaches (void)=0 |
| virtual void | FirstColLeftStrokeChanged ()=0 |
| virtual void | LastColRightStrokeChanged ()=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Stroke & fill attributes. | |
| enum | { kLowestPriority = 0 } |
| virtual PMReal | GetElementStrokeWeight (const GridAddress &element, Tables::ECellEdge edge, bool16 *isOverride=nil, GridArea *runArea=nil) const =0 |
| virtual ITableLineType::SType | GetElementStrokeType (const GridAddress &element, Tables::ECellEdge edge, bool16 *isOverride=nil, GridArea *runArea=nil) const =0 |
| virtual UID | GetElementStrokeColor (const GridAddress &element, Tables::ECellEdge edge, bool16 *isOverride=nil, GridArea *runArea=nil) const =0 |
| virtual PMReal | GetElementStrokeTint (const GridAddress &element, Tables::ECellEdge edge, bool16 *isOverride=nil, GridArea *runArea=nil) const =0 |
| virtual bool16 | GetElementStrokeOverprint (const GridAddress &element, Tables::ECellEdge edge, bool16 *isOverride=nil, GridArea *runArea=nil) const =0 |
| virtual UID | GetElementStrokeGapColor (const GridAddress &element, Tables::ECellEdge edge, bool16 *isOverride=nil, GridArea *runArea=nil) const =0 |
| virtual PMReal | GetElementStrokeGapTint (const GridAddress &element, Tables::ECellEdge edge, bool16 *isOverride=nil, GridArea *runArea=nil) const =0 |
| virtual bool16 | GetElementStrokeGapOverprint (const GridAddress &element, Tables::ECellEdge edge, bool16 *isOverride=nil, GridArea *runArea=nil) const =0 |
| virtual int32 | GetElementStrokePriority (const GridAddress &element, Tables::ECellEdge edge) const =0 |
| virtual PMReal | GetCellMaxStrokeWeight (const GridAddress &anchor, Tables::ECellEdge edge) const =0 |
| virtual void | GetCellStrokeWeightAndType (const GridAddress &anchor, Tables::ECellEdge edge, TableAttrStrokeWeightAndTypeList *swtList) const =0 |
| virtual PMReal | GetFirstColMaxLeftStrokeWeight () const =0 |
| virtual PMReal | GetLastColMaxRightStrokeWeight () const =0 |
| virtual UID | GetFillColor (const GridAddress &anchor) const =0 |
| virtual PMReal | GetFillTint (const GridAddress &anchor) const =0 |
| virtual bool16 | GetFillOverprint (const GridAddress &anchor) const =0 |
Interface to access attributes in the table model.
| pure virtual |
For internal use by table model.
| cols |
| pure virtual |
For internal use by table model.
| pure virtual |
Gets the attributes for a given cell that are from the cell style applied to the cell. Its not sufficient to simply get the attributes of the cell style to determine which attributes are actually being shown because for a given cell its cell strokes may come from the cell style applied to the cell, or its neighbor. The attributes returned by this function are not necessarily the attributes used in the cell. To get what is actually used you can call GetAttributesFromRegionalCellStyle, this function, and QueryCellOverrides to get all the cell attributes applied to a single cell.
| element | [IN] the address of the cell to get the cell style attributes from |
| runArea | [OUT] optional, the run area for the cell style attributes |
| pure virtual |
Gets the attributes for a given cell that are from the regional cell style that is applied through the table style. Its not sufficient to simply get the attributes of the regional cell style to determine which attributes are actually being shown because for a given cell its cell strokes may come from the regional cell style applied to the cell, or its neighbor. The attributes returned by this function are not necessarily the attributes used in the cell. To get what is actually used you can call this function, GetAttributesFromCellStyle, and QueryCellOverrides to get all the cell attributes applied to a single cell.
| element | [IN] the address of the cell to get the regional cell style attributes from |
| runArea | [OUT] optional, the run area for the regional cell style attributes |
| pure virtual |
Determine the max effective stroke weight for a cell's specified edge. For an edge to have an effective stroke it must have a non-zero stroke weight and a valid stroke type.
| anchor,anchor | location of the anchor (top-left of cell) in underlying table grid. see GridAddress for more information on anchors versus elements. |
| edge,specifies | whether left, top right or bottom edge. |
| pure virtual |
Fills in the swtList with effective stroke weight and line type for all elements along the specified edge of the cell. For an edge to have an effective stroke it must have a non-zero stroke weight and a valid stroke type.
| anchor,anchor | location of the anchor (top-left of cell) in underlying table grid. see GridAddress for more information on anchors versus elements. |
| edge,specifies | whether left, top right or bottom edge. |
| swtList,the | list to be filled in with Stroke Weight and LineType. |
| pure virtual |
Gets the cell style for the given GridAddress. Because cells do not necessarily have a style, this function can return kInvalidUID, which is treated the same as the root cell style.
| element | [IN] the GridAddress of the cell to retrieve the style from, this should be a valid grid address of the table |
| priority | [OUT] optional, the cell style priority |
| runArea | [OUT] optional, the run area |
UID of the applied cell style, may be kInvalidUID
| pure virtual |
Might be removed. Returns the CellType associated with anchor.
| anchor | Cell whose type is to be returned. |
| pure virtual |
Query to determine what the default cell-type
| pure virtual |
Determine the stroke color for the specified element on the given edge.
| element | specifies a location within underlying grid |
| OUT,: | isOverride whether result is an override attribute |
| OUT,: | Only Valid is isOverride is true, it is the runArea area over the attribute if it is an override |
| pure virtual |
Determine the stroke gap color for the specified element on the given edge.
| element | specifies a location within underlying grid |
| OUT,: | isOverride whether result is an override attribute |
| OUT,: | Only Valid is isOverride is true, it is the runArea area over the attribute if it is an override |
| pure virtual |
Determine whether the grid-element at the given address has an associated stroke gap overprint. This will use inheritance resolution to take account of any overrides applied.
| element | co-ordinate of cell of interest |
| edge | specifies which edge of the cell are to be considered |
| OUT,: | isOverride whether result is an override attribute |
| OUT,: | Only Valid is isOverride is true, it is the runArea area over the attribute if it is an override |
| pure virtual |
Determine for stroke gap tint associated with a grid-element. This will use inheritance resolution to take account of any overrides applied.
| element | specifies a location within underlying grid |
| edge | specifies whether left, top right or bottom |
| OUT,: | isOverride whether result is an override attribute |
| OUT,: | Only Valid is isOverride is true, it is the runArea area over the attribute if it is an override |
| pure virtual |
Determine whether the grid-element at the given address has an associated stroke overprint. This will use inheritance resolution to take account of any overrides applied.
| element | co-ordinate of cell of interest |
| edge | specifies which edge of the cell are to be considered |
| OUT,: | isOverride whether result is an override attribute |
| OUT,: | Only Valid is isOverride is true, it is the runArea area over the attribute if it is an override |
| pure virtual |
Returns the stroke draw priority. Larger number draws on top of smaller ones.
| pure virtual |
Determine for stroke tint associated with a grid-element. This will use inheritance resolution to take account of any overrides applied.
| element | specifies a location within underlying grid |
| edge | specifies whether left, top right or bottom |
| OUT,: | isOverride whether result is an override attribute |
| OUT,: | Only Valid is isOverride is true, it is the runArea area over the attribute if it is an override |
| pure virtual |
Determine the stroke type associated with specified element and given edge.
| element | specifies location within underlying grid |
| edge | specifies whether left, top right or bottom |
| OUT,: | isOverride whether result is an override attribute |
| OUT,: | Only Valid is isOverride is true, it is the runArea area over the attribute if it is an override |
| pure virtual |
Determine the stroke weight at a given location for specified edge.
| element | specifies location within underlying grid |
| edge | specifies whether left, top right or bottom |
| OUT,: | isOverride whether result is an override attribute |
| OUT,: | Only Valid is isOverride is true, it is the runArea area over the attribute if it is an override |
| pure virtual |
Determine the fill of the given anchor; see GridAddress for more information on anchors versus elements.
| anchor | location of the anchor (top-left of cell) in underlying table grid |
| pure virtual |
Returns the overprint of the fill for anchor.
| anchor | location of the anchor (top-left of cell) within the underlying grid |
| pure virtual |
Returns the tint of the fill for anchor.
| anchor | location of the anchor (top-left of cell) in underlying table grid |
| pure virtual |
Determine the max effective stroke weight for the left edge of the table. For an edge to have an effective stroke it must have a non-zero stroke weight and a valid stroke type.
| pure virtual |
Determine the max effective stroke weight for the right edge of the table. For an edge to have an effective stroke it must have a non-zero stroke weight and a valid stroke type.
| pure virtual |
Gets the regional cell style for the given GridAddress.
| element | [IN] the address of the cell |
| runArea | [OUT] optional, the regional style's area |
| pure virtual |
Acquire the list of table attributes after resolving table style and overrides. Caller does not own the storage here and should not attempt to release as this is not a reference-bumped ptr that would be returned from a query.
| pure virtual |
Returns the table style of this table
| pure virtual |
Function to walk all cell overrides efficiently.
| callBack | Callback for iterating cell overrides. callBack.VisitRun is called for each run area See CellOverridesCallback for more info. |
| pure virtual |
Function to walk all cell stroke overrides efficiently.
| patternType | Whether we are searching or a row or a column override |
| callBack | Callback for iterating cell overrides. callBack.VisitRun is called for each run area See CellOverridesCallback for more info. |
| pure virtual |
Returns cell attribute fully resolving inheritance of table style, table attribute overrides.
| element | Grid element for which attribute is to be returned. |
| whicAttr | ClassID of the attribute boss. |
| iid | Interface ID of interface on attribute boss to be returned. The result may be cast to the 'type' identified by iid. |
| surroundingRun | Value will be returned if non nil. Return value is the absolute value of the run that the element is in. All elements in this range have the same value for whichAttr. This can be used for optimizations. |
| isPreserveOverride | Preserve local overrides ON or OFF. This is used to govern whether cell overrides are to be taken into consideration or not (required in EPUB/HTML export.) |
| pure virtual |
Returns cell override WITHOUT any inheritance resolution. Returns nil if the attribute is not overriden.
| element | Grid element for which attribute is to be returned. |
| whicAttr | ClassID of the attribute boss. |
| iid | Interface ID of interface on attribute boss to be returned. The result may be cast to the 'type' identified by iid. |
| surroundingRun | Will be set if non nil. Is the absolute value of the run that the element is in. All elements in this range have the same value for whichAttr. This can be used for optimizations. |
| pure virtual |
Returns all cell overrides WITHOUT any inheritance resolution.
| element | Grid element for which attribute is to be returned. |
| surroundingRun | Value will be returned if non nil. Return value is the absolute value of the run that the element is in. All elements in this range have the same value for whichAttr. This can be used for optimizations. |
| pure virtual |
Queries the cell style and regional cell style for a particular attribute. The attriubte returned by this function may not be the attribute that is visible, an override may be applied to the cell.
| [IN] | the cell to get the attribute for |
| whichAttr | [IN] the cell attribute to retrieve |
| iid | [IN] the attribute's PMIID |
| surroundingRun | [IN] optional, the surrounding run |
| pure virtual |
Query for column attribute, fully resolving inheritance of table style, table attribute overrides and rules. Returns interface ptr that has reference count incremented.
| col | Column for which attribute is to be returned. |
| whicAttr | ClassID of the attribute boss of interest |
| iid | Interface ID of interface on attribute boss to be returned. The result may be cast to the 'type' identified by iid. |
| pure virtual |
Query for a column override WITHOUT any inheritance resolution. Returns interface ptr that has reference count incremented
| col | Column for which attribute is to be returned. |
| whicAttr | ClassID of the attribute boss. |
| iid | Interface ID of interface on attribute boss to be returned. The result may be cast to the 'type' identified by iid. |
| pure virtual |
Returns all column overrides WITHOUT any inheritance resolution.
| col | Column for which attribute is to be returned. |
| runLength | Value will be returned if non nil. Return value is the count of the columns starting with 'col' that have the same attribute. This can be used for optimizations. |
| pure virtual |
Returns row attribute fully resolving inheritance of table style, table attribute overrides and rules.
| row | Row for which attribute is to be returned. |
| whicAttr | ClassID of the attribute boss of interest |
| iid | Interface ID of interface on attribute boss to be returned. The result may be cast to the 'type' identified by iid. |
| pure virtual |
Query for a row override WITHOUT any inheritance resolution. Returns interface ptr that has reference count incremented.
| row | row for which attribute is to be returned. |
| whicAttr | ClassID of the attribute boss. |
| iid | Interface ID of interface on attribute boss to be returned. The result may be cast to the 'type' identified by iid. |
| pure virtual |
Returns all row overrides WITHOUT any inheritance resolution.
| row | Row for which attribute is to be returned. |
| runLength | Value will be returned if non nil. Return value is the count of the rows starting with 'row' that have the same attribute. This can be used for optimizations. |
| pure virtual |
Query for table attribute fully resolving inheritance of table style and table attribute overrides. Get back interface ptr which has reference count incremented.
| whicAttr | ClassID of the attribute boss. |
| iid | Interface ID of interface on attribute boss to be returned. The result may be cast to the 'type' identified by iid. |
| pure virtual |
Query for the list of table attribute overrides. Caller should call release.