bool EllipseObject::SpecifySaveReferences(ReferenceSaveManager& referenceSaveManager) { // if saving to previous version that used pb1 instead of pb2... DWORD saveVersion = GetSavingVersion(); if (saveVersion != 0 && saveVersion <= MAX_RELEASE_R14) { // create the pb1 instance IParamBlock* paramBlock1 = CreateParameterBlock(descVer0, NUM_PARAM_V0, 0); DbgAssert(paramBlock1 != NULL); if (paramBlock1) { // copy data from the pb2 to the pb1 int numParamsCopied = CopyParamBlock2ToParamBlock( myParamBlock, paramBlock1, descVer0, NUM_PARAM_V0); // register the reference slot replacement referenceSaveManager.ReplaceReferenceSlot(USERPBLOCK, paramBlock1); } } return SimpleSpline::SpecifySaveReferences(referenceSaveManager); }
// From ref int NumRefs() {return GetSavingVersion()==2000?1:2;}