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

#include <ITableTextContent.h>

Public Member Functions

virtual void TransferTo (PasteDataXRefContext *xRefContext)=0
 

Detailed Description

Helper class nested in ITableTextContent for changes to the text model underlying the table.
This is an instance of the Memento pattern described in Design Patterns, Gamma et al.
Briefly: without violating encapsulation, it can be used to capture and externalize an object's internal state so that the object can be restored to this state later.
Used when:

  1. Need to save a "snapshot",
  2. Need to save state without exposing the implementation of an object. Preserves encapsulation boundaries, simplifies code, but can have relatively high storage costs.