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

Public Types | |
| enum | { kDefaultIID = IID_ICELLCONTENTMGR } |
| enum | ECreateRelative { eNone, eLeft, eRight, eTop, eBottom } |
Public Member Functions | |
Main API | |
| virtual void | Create (const GridArea &area, const ECreateRelative relative)=0 |
| virtual void | Destroy (const GridArea &area)=0 |
| virtual PMString | GetName () const =0 |
| virtual CellType | GetType () const =0 |
Table model specific API | |
| virtual ImplementationID | GetKey () const =0 |
| virtual void | AttachingToTableModel (UID modelUID)=0 |
| virtual TableMementoPiece * | Copy (const GridArea &cells) const =0 |
| virtual TableMementoPiece * | Cut (const GridArea &cells)=0 |
| virtual bool16 | CanClear (const GridArea &cells) const =0 |
| virtual void | Clear (const GridArea &cells)=0 |
| virtual void | PrePaste (const GridAddress &atAnchor, TableMementoPiece *piece)=0 |
| virtual void | Paste (const GridAddress &atAnchor, TableMementoPiece *piece, TableMementoPiece *notificationPiece=nil)=0 |
| virtual ITableModel * | QueryTableModel (void) const =0 |
| virtual void | ConcatenateContentForMerge (const GridArea &cells)=0 |
| virtual ErrorCode | Scale (const PMReal &xScale, const PMReal &yScale)=0 |
| virtual void | PreConcatenateContentForMerge (const GridArea &cells, const CellType &mergedCellType)=0 |
| virtual UID | PreConvertExtractData (GridAddress cell, const CellType destType)=0 |
| virtual void | PostConvertPushData (GridAddress cell, UID data)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Abstract interface, exposes API for creating and destroying cell bosses. See ITableStrand and ITableModel for more information on the table-model specific API.
| pure virtual |
Pre-condition to calling self.Clear
| cells | operate on cells contained wholly within this area |
| pure virtual |
Remove underlying content associated with given area. Pre: self.CanClear
| cells | operate on cells contained wholly within this area |
| pure virtual |
Called to concatenate the content of cells to be merged.
| pure virtual |
Take copy of underlying content associated with given cells.
| cells | operate on cells contained wholly within this area |
| pure virtual |
Called by core when cell-content boss objects should be created.
For instance, in a 4x4 table a call to ITableModel::InsertRows(RowRange(2,3), eAfter) will result in a call to ICellContentManager::Create(GridArea(3,0,6,4), eTop). The text content manager might use this info to propagate text attributes of row 2 to the newly created text content for row 3 through 6.
| area | |
| relative | enum is used to indicate which edge of the GridArea the creation is relative to. The content manager may use this to decide how to propagate attributes of the content. |
| pure virtual |
Remove underlying content associated with given area, returning a memento for pasting. Final state is as if a Destroy() was performed.
| cells | operate on cells contained wholly within this area |
| pure virtual |
| pure virtual |
| pure virtual |
Returns a user readable description of the content type, eg "Text", "Image", etc.
| pure virtual |
Returns type described cell-content type. Existing possibilities are e.g. kNoContentType, kTextContentType. Note: CellType is effectively alias of ClassID.
| pure virtual |
Add underlying content mapping to given location in table. PrePaste should be called before calling paste
| atAnchor | specifying location in table where content to be pasted |
| piece | memento from previous cut or copy operation |
| notificationPiece | notification memento from previous cut or copy operation |
| pure virtual |
Called after converting the type of cell
The content managers can preserve data with appropriate conversion, if possible. After converting cell type, the preserved object need to be push into the cell.
| cell,: | cell which is going to be converted |
| UID,: | UID of object that needs to be inserted in the cell, if possible, after cell type conversion. |
| pure virtual |
Called before calling concatenating the content of cells to be merged. The content managers can preserve data with appropriate conversion, if possible.
| cells,: | cells which are going to be merged |
| cell | type: cell type of the final merged cell |
| pure virtual |
Called before converting the type of cell
It will return the UID of object to be preserved during conversion
| cell,: | cell which is going to be converted |
| destType,: | cell type to which cell will be converted |
| pure virtual |
This should be called before calling paste. It creates the content for pasting.
| atAnchor | specifying location in table where content to be pasted |
| piece | memento from previous cut or copy operation |
| pure virtual |
| return | reference-count incremented pointer to table model associated with this |