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