![]() | InDesign SDK 20.5 |

Public Member Functions | |
| CReferenceConverter (IPMUnknown *boss) | |
| virtual bool16 | CanConvert (ClassID) |
| virtual UID | ConvertReference (IDataBase *, UID, IDataBase *, IPMUnknown *) |
| virtual bool16 | ConvertAlways () const |
| virtual UID | GetReference (IDataBase *, UID, IDataBase *) const |
| virtual bool16 | IsMappingReference (IDataBase *, UID, IDataBase *) const |
| virtual UID | MapReference (IDataBase *, UID, IDataBase *, IPMUnknown *) |
| virtual UID | GetMappedReference (IDataBase *, UID, IDataBase *) |
Public Member Functions inherited from CPMUnknown< IReferenceConverter > | |
| IPMUnknown * | QueryInterface (PMIID interfaceID) const |
| void | AddRef () const |
| void | Release () const |
| void | PreDirty (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue) |
| void | PreDirtyNoMessage (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue) |
| CPMUnknown (const CPMUnknown &)=delete | |
| CPMUnknown & | operator= (const CPMUnknown &)=delete |
Additional Inherited Members | |
Public Types inherited from IReferenceConverter | |
| enum | { kDefaultIID = IID_IREFERENCECONVERTER } |
Protected Member Functions inherited from CPMUnknown< IReferenceConverter > | |
| CPMUnknown (IPMUnknown *boss) | |
Protected Attributes inherited from CPMUnknown< IReferenceConverter > | |
| HelperInterface | fHelperInterface |
| inlinevirtual |
Return kTrue if the converter is capable of converting objects of the class clsID.
| clsID | the class of the object being copied |
Implements IReferenceConverter.
Reimplemented in PstLstReferenceConverter.
| inlinevirtual |
Return kTrue if the converter should be called to convert every time. The default return value should be kFalse to allow K2 recognize that an item has already been converted and that when it encounters other references to the same item, it can simply use the result of the previous conversion.
Implements IReferenceConverter.
Reimplemented in PstLstReferenceConverter.
| inlinevirtual |
Convert the UID from a reference to a uid in the source database, to a reference to a UID in the target database. This may cause changes to the target database.
| sourceDB | the database we're copying from |
| convertThis | the object we're copying |
| targetDB | the database we're copying to |
| pmobject | a helper object (whatever pmobject was passed into ScrapUtils::CopyObjects or whatever other calling code set up the stream) |
Implements IReferenceConverter.
Reimplemented in PstLstReferenceConverter.
| inlinevirtual |
Like MapReference() it maps the UID from sourceDB to targetDB but it doesn't create a new UID in the targetDB if it couldn't convert it. Instead it returns kInvalidUID.
Implements IReferenceConverter.
| inlinevirtual |
Like ConvertReference() it converts the UID from sourceDB to targetDB but it doesn't create a new UID in the targetDB if it couldn't convert it. Instead it returns kInvalidUID. This method is used i.e. by Find/Change of UID based text attributes (language, font, color).
Implements IReferenceConverter.
Reimplemented in PstLstReferenceConverter.
| inlinevirtual |
Returns kTrue if reference conversion is being done for the purpose of mapping references (e.g. style mapping). The default return value for most reference converter should be kFalse. Only converters which will be doing mapping of reference for the passed "convertThis" UID, should return kTrue
| sourceDB | the database we're copying from |
| convertThis | the object whose reference we intend to convert |
| targetDB | the database we're copying to. |
Implements IReferenceConverter.
| inlinevirtual |
Map the UID from a reference to a uid in the source database, to a reference to a UID in the target database. This may cause changes to the target database.
| sourceDB | the database we're copying from |
| convertThis | the object we're mapping |
| targetDB | the database we're copying to |
| pmobject | a helper object (whatever pmobject was passed into ScrapUtils::CopyObjects or whatever other calling code set up the stream) |
Implements IReferenceConverter.