InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
PstLstPhase2Conversion Class Reference
Inheritance diagram for PstLstPhase2Conversion:
CResponderIResponderIPMUnknown

Public Member Functions

 PstLstPhase2Conversion (IPMUnknown *boss)
 
virtual void Respond (ISignalMgr *signalMgr)
 
- Public Member Functions inherited from CResponder
 CResponder (IPMUnknown *boss)
 
virtual ServiceID GetResponderService ()
 
virtual void SignalFailed (ISignalMgr *signalMgr)
 

Additional Inherited Members

- Public Types inherited from IResponder
enum  { kDefaultIID = IID_IRESPONDER }
 

Detailed Description

IResponder implementation for phase 2 conversion (see IPhase2Conversion). Static changes to the format of persistent data in a plug-in can be handled by schema based conversion (see kPstLstConversionProviderBoss). Dynamic changes require the database being converted to be manipulated in some way that can't be handled by a static mapping.

Format changes at InDesign CS2:

FormatID(kPstLstAddParentReferenceUIDMajorFormat, kPstLstAddParentReferenceUIDMinorFormat) This plug-in added a back reference to PstLstDataPersist that refers by UID to the boss that owns a kPstLstDataBoss object. When a database containing data of an earlier format is opened the back reference will be kInvalidUID. The code below (see PstLstPhase2Conversion::AddParentReferenceUID) scans all the kPstLstDataBoss objects in the document and fixes this up so each object has a back reference to its parent.

Note: It's likely that most of your plug-in's persistent data format changes can be handled by schema based conversion (see kPstLstConversionProviderBoss for sample code). Check it out and see if it can meet your needs. Only implement a phase 2 converter like that below if your data reallys needs it.

See Also
IPhase2Conversion

Constructor & Destructor Documentation

PstLstPhase2Conversion::PstLstPhase2Conversion (IPMUnknownboss)
inline

Constructor

Parameters
bosson which this interface is aggregated.

Member Function Documentation

void PstLstPhase2Conversion::Respond (ISignalMgrsignalMgr)
virtual

Respond to phase 2 database conversion signals and convert this plug-in's dynamic persistent data.

Parameters
signalMgr

Reimplemented from CResponder.