![]() | InDesign SDK 20.5 |

Public Types | |
| enum | { kDefaultIID = IID_IPREFLIGHTPROFILEUTILS } |
| enum | ProfileChangeFlags { kChangedNothing = 0, kChangedName = (1L<<0), kChangedDescription = (1L<<1), kChangedRules = (1L<<2) } |
Public Member Functions | |
| virtual IPreflightProfile * | DuplicateProfile (const IPreflightProfile *iSrcProfile, IDataBase *destDB) const =0 |
| virtual void | CopyProfileData (const IPreflightProfile *iSrcProfile, IPreflightProfile *iDstProfile, bool copyNamesOnly=kFalse, ProfileChangeFlags *pChanges=nil) const =0 |
| virtual IPreflightProfile * | CreateEmptyProfile (IDataBase *db) const =0 |
| virtual IPreflightProfile * | CreatePopulatedProfile (IDataBase *db) const =0 |
| virtual void | DestroyProfile (const UIDRef &profileRef) const =0 |
| virtual ErrorCode | ExportProfileAsINX (const IPreflightProfile *iProfile, const IDFile &exportFile) const =0 |
| virtual IPreflightProfile * | ImportProfileFromINX (const IDFile &sourceFile) const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Change flags. Note that these are bitfields.
| pure virtual |
Copy the profile data from one profile to another. You can choose whether to copy only names, or copy names and all other data (basically, rules).
| iSrcProfile | is the profile from which the data is to be copied. |
| iDstProfile | is the profile to which the data is to be copied. |
| copyNamesOnly | IN True to copy only the names in IPreflightProfile. False to do a complete, deep copy including rules. |
| pChanges | OUT If not nil, receives the change flags. Note that this is somewhat expensive to calculate if there are rule settings involved (involves deep comparisons) so you should pass nil unless you really care to know this. |
| pure virtual |
Create a new preflight profile with no rules attached. Note that this does NOT automatically add the profile to the profile list for the database (if any).
| db | The database in which to create the profile. If nil, the profile is in-memory. |
| pure virtual |
Create a new preflight profile with a full set of rules attached. Note that this does NOT automatically add the profile to the profile list for the database (if any).
| db | The database in which to create the profile. If nil, the profile is in-memory. |
| pure virtual |
Destroy a profile, ie delete all its children (rules mainly) and then delete the UID. The UID of the profile and all child objects (eg rules) will no longer be valid, so be sure it has been fully removed from any references first!
Note that for in-memory profiles all the rules are also in memory so this method does not need to be called (since it takes a UIDRef you couldn't if you wanted to). Simply derefing the profile down to zero will auto-delete the children.
| profileRef | The profile you want to destroy. |
| pure virtual |
Create a new profile in the specified database and then copy all the parameters from the source profile (via CopyProfileData).
| iSrcProfile | is the profile from which the data is to be copied. |
| destDB | is the destination database in which to create the profile. If nil the profile will be created in memory. |
| pure virtual |
Export the specified profile as an InDesign preflight profile file.
| iProfile | is the preflight profile to export. |
| exporFile | is the file spec to export the profile to. |
| pure virtual |
Import the specified source InDesign preflight profile file.
| sourceFile | is the file spec to import. |