![]() | InDesign SDK 20.5 |
Public Member Functions | |
| SnpCopyPasteTable () | |
| virtual | ~SnpCopyPasteTable () |
| ErrorCode | DoCopyPaste (const ITableModel *fromTable, ITableModel *toTable, const GridAddress &pasteAt, ITableModel::EWhatState whatState=ITableModel::eAll) const |
Illustrates use of command that allows a table to be copied and pasted.
Precondition: There is one table selected. The snippet will create a table in a new text frame with proper text focus and tool selected, then copy the selected table contents and paste into the new table.
| inline |
Constructor.
| inlinevirtual |
Destructor.
| ErrorCode SnpCopyPasteTable::DoCopyPaste | ( | const ITableModel * | fromTable, |
| ITableModel * | toTable, | ||
| const GridAddress & | pasteAt, | ||
| ITableModel::EWhatState | whatState = ITableModel::eAll | ||
| ) | const |
Shows how to copy a table to another table, by using CopyPasteTableCmd.
| fromTable | The source table model to copy from. |
| toTable | The destination table model to copy to. |
| pasteAt | The target grid address to copy to. |
| whatState | EWhatState enum that specifies what to copy. See {ITableModel::EWhatState} for details. |