![]() | InDesign SDK 20.5 |
#include <IPreflightUtils.h>

Classes | |
| class | AutoShapeGroup |
Public Types | |
| enum | { kDefaultIID = IID_IPREFLIGHTUTILS } |
Public Member Functions | |
| virtual IPreflightManager * | QueryPreflightManager () const =0 |
| virtual IPreflightObjectModel * | QueryObjectModel () const =0 |
| virtual IPreflightRuleManager * | QueryRuleManager () const =0 |
| virtual IPreflightProcessManager * | QueryProcessManager () const =0 |
| virtual IPreflightProfileManager * | QueryProfileManager (IDocument *iDoc) const =0 |
| virtual IPreflightProfileManager * | QueryProfileManager (IDataBase *iDataBase) const =0 |
| virtual ISubject * | QueryAppMessageSubject () const =0 |
| virtual ISubject * | QueryDocumentSubject (IDataBase *iDB) const =0 |
| virtual IPreflightOptions * | QueryPreflightOptions (IDataBase *iDB) const =0 |
| virtual IPreflightProcess * | QueryProcessForDocument (IDataBase *iDocDB) const =0 |
| virtual void | ApplyOptionsToDocument (IDataBase *iDocDB, const IPreflightOptions *iNewOptions) const =0 |
| virtual IPreflightProfile * | QueryEmbeddedProfile (IDataBase *iDocDB) const =0 |
| virtual IPreflightProfile * | QueryWorkingProfile () const =0 |
| virtual IPreflightProfile * | QueryDefaultProfile () const =0 |
| virtual void | BeginShapeGroup (IGraphicsPort *iPort, UID itemUID, ClassID subpartID) const =0 |
| virtual void | EndShapeGroup (IGraphicsPort *iPort, UID itemUID, ClassID subpartID) const =0 |
| virtual bool | SelectPageItem (const UIDRef &itemRef) const =0 |
| virtual PMString | GetPageDescription (IShape *iPageShape) const =0 |
| virtual PMString | GetSpreadDescription (ISpread *iSpread) const =0 |
| virtual ErrorCode | NewProfile (IDataBase *iTargetDB, const PMString &profileName, const PMString &profileDesc, bool prepopulateRules, UID *pNewProfileUID)=0 |
| virtual ErrorCode | CopyProfileData (const UIDRef &dstProfileRef, const IPreflightProfile *iSrcProfile)=0 |
| virtual ErrorCode | SetProfileStrings (const UIDRef &dstProfileRef, bool setName, const PMString &newName, bool setDesc, const PMString &newDesc)=0 |
| virtual const IPreflightBookOptions * | QueryBookOptions (IDataBase *iBookDB) const =0 |
| virtual const IPreflightBookOptions * | QueryActiveBookOptions (IDataBase *iBookDB) const =0 |
| virtual IPreflightBookOptions * | CloneBookOptions (const IPreflightBookOptions *iSrc=nil) const =0 |
| virtual ErrorCode | SetPreflightBookOptions (IDataBase *iBookDB, const IPreflightBookOptions *iOptions)=0 |
| virtual ErrorCode | SetActivePreflightBookOptions (IDataBase *iBookDB, const IPreflightBookOptions *iOptions)=0 |
| virtual const IPreflightOptions * | QueryOptions (IDataBase *iDocumentDB) const =0 |
| virtual IPreflightOptions * | CloneOptions (const IPreflightOptions *iSrc=nil) const =0 |
| virtual ErrorCode | UpdateActivePreflightOptions (IDataBase *iDataBase, const IPreflightOptions *iOptions)=0 |
| virtual ErrorCode | SetPreflightOptions (IDataBase *iDataBase, const IPreflightOptions *iOptions)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
General (application-wide) preflight utilities. Note that there are other utility files such as IPreflightProfileUtils which address specific kinds of objects.
You normally get one of these via
Utils<IPreflightUtils> iPreflightUtils;
or if you just need a one-off call:
Utils<IPreflightUtils()->QueryPreflightManager();
| pure virtual |
Apply the given options to the document. This is a bit different from simply copying the options: The method analyzes the current and new options and determines what changes if any need to be made to the active processes. For example if the new setting is preflight-off and there is an active preflight process, that process is removed; if the profile name and/or embeddedness changes the process is modified accordingly.
In addition to the above the method also copies all of the options to the doc's preflight settings, but not via a command.
| iDocDB | IN The doucment you want to apply the settings to. |
| iNewOptions | IN The new options to apply. |
| skipDeltaAnalysis | IN True to not consider the current settings (other than reusing an existing process) but rather impose the new ones as if the old ones were in a not-necessarily accurate state. This should only be passed when setting up options for a newly opened document, because otherwise the current status should be up to date. |
| pure virtual |
Start a group in the port that marks the scope of a part of an item (eg stroke, fill).
| iPort | IN The port into which to begin the group. |
| itemUID | IN The UID of the shape object. |
| subpartID | IN The subpart identifier. |
| pure virtual |
This is a utility method designed to compliment SetPreflightBookOptions. If you want to change the options for a book, you can first make a copy of them using this method, modify the copy, and set it in via SetPreflightBookOptions. Or, if you want to specify all of the settings you can pass nil for the iSrc and you'll get a fully default set of options.
| iSrc | IN The source interface to copy from, or nil to create a fully default set. |
| pure virtual |
This is a utility method designed to compliment UpdateActivePreflightOptions and SetPreflightOptions. If you want to change the options for a document, you can first make a copy of them using this method, modify the copy, and set it in via UpdateActivePreflightOptions or SetPreflightOptions. Or, if you want to specify all of the settings you can pass nil for the iSrc and you'll get a fully default set of options.
| iSrc | IN The source interface to copy from, or nil to create a fully default set. |
| pure virtual |
Update one profile by copying all parameters from another profile. This includes everything that is a property of a profile: name, description, the list of rules and their settings, and so on. It does not change the relationship of the destination profile to its parent profile manager (if any).
The source profile doesn't need to be in a database, but the destination does since this is a command based method. (The data is copied from the source profile into the command, which is why the source profile can be memory-based.) The use of UIDRef for the destination profile is meant to reinforce this restriction.
| dstProfileRef | is the UIDRef of the destination profile to which parameters will be copied. |
| iSrcProfile | is the source profile from which parameters will be copied. This profile can be in memory or in a database. |
| pure virtual |
End a group in the port that marks the scope of a part of an item (eg stroke, fill).
| iPort | IN The port into which to begin the group. |
| itemUID | IN The UID of the shape object. |
| subpartID | IN The subpart identifier. |
Gets a description of a page (eg "1" for page 1) via IPageList.
| iPageShape | IN The page shape. |
Gets a description of a spread (eg "2-3" for spread 2/3) via IPageList.
| iSpread | IN The spread. |
| pure virtual |
Get the bounding box of the pages of the spread. This function duplicates exactly: r = iSpread->GetPagesBounds( coordSpace) Use that instead.
| iSpread | IN The spread you're interested in. |
| coordSpace | IN The space you want the coords in. |
| r | OUT Receives the bounding box.Create a new preflight profile in the specified database. This differs from the one in IPreflightFacade in that this method takes a target database. |
| iTargetDB | IN the database to create the profile in. |
| profileName | IN The name to use for the new profile. |
| profileDesc | IN The longer description of the profile. |
| prepopulateRules | IN kTrue if you want to prepopulate the rule list for the new profile with all rules registered with the rule manager; the rules will be disabled but present with default settings. If kFalse, the profile will not have any rules and will need to be added 'manually.' |
| newProfileUID | receives the UID of new profile. If profile is not created, kInvalidUID is returned. |
| pure virtual |
Given a book database, obtain its active book options, if there are any. The active book options are those assigned to the active book preflight. These represent a (possibly modified) version of those that exist at the book level (
| iBookDB | IN The database corresponding to the book. |
| pure virtual |
Obtain the global preflight nonpersistent subject, ie changes that are messages rather than model changes. The following interfaces/messages broadcast on this subject.
IID_IPREFLIGHTPROCESSMANAGER:
kPreflightProcessUpdateMsg - Something about a process changed
kPreflightProcessListChangedMsg - The list of processes changed
IID_IPREFLIGHTEVENTWATCHER
kPreflightEventAppResume - Application gained focus
| pure virtual |
Given a book database, obtain its persistent book options. Returned interface is const to reflect the fact that one should not change it except via a command (ie SetPreflightBookOptions). These options are the ones that populate the book preflight options dialog by default.
| iBookDB | IN The database corresponding to the book. |
| pure virtual |
Get the application-level default profile. This is the one called "Default Profile". This method simply asks the application profile manager to get the profile with that name and return it.
Obtain the preflight document-level (or app-level) subject related to persistent data. This subject hosts the following interested-in interfaces: IID_IPREFLIGHTPROFILEMANAGER (changes to the profile list) IID_IPREFLIGHTPROFILE (changes to individual profile) IID_IPREFLIGHTOPTIONS (changes to the preflight options) IID_IPREFLIGHTSETTINGSCHANGEINFO (app only;
| iDB | The database of the document, or nil to query the app-level subject. |
| pure virtual |
Get the document's embedded profile, if any. Currently this is just the 0th entry in the document's profile manager list, because a document either has zero or one profile. But in the future this might be more elaborate, with multiple embedded profiles possible; thus this utility method.
| iDocDB | IN The doc you want the profile for. |
| pure virtual |
Obtain the application-wide object model information interface.
| pure virtual |
Given a document or application database, obtain its active options. Returned interface is const to reflect the fact that one should not change it except via a command (ie UpdateActivePreflightOptions).
| iDocumentDB | IN The database corresponding to the document. If nil, this obtains the options defined at the application level. |
| pure virtual |
Obtain the application-wide preflight manager interface.
| pure virtual |
Obtain the preflight options for the specified database.
| iDataBase | IN The database to use; or if nil, the application-level preflight options is returned. |
| pure virtual |
Given a document, look for an active preflight process and return it. Note that this ONLY finds processes that use the kPreflightContinuousProcessSelectorID selector.
| iDocDB | IN The document in which you're interested. |
| pure virtual |
Obtain the application-wide process manager interface.
| pure virtual |
Obtain the preflight profile manager for the application-level or document-level profiles.
| iDoc | IN The document to use; or if nil, the application-level manager is returned. |
| pure virtual |
Obtain the preflight profile manager for the application-level or document-level profiles. This version takes a database pointer and will automatically query the document from there. (Unless the passed-in pointer is nil, in which case it will always get application-level.)
| iDataBase | IN The database to use; or if nil, the application-level manager is returned. |
| pure virtual |
Obtain the application-wide rule manager interface.
| pure virtual |
Get the application-level working profile. Note that this may or may not match the default profile, ie the undeletable one called "Default".
| pure virtual |
Selects the page item. This should probably be in some other util, but..
| itemRef | IN The UIDRef of the item to select. |
| pure virtual |
Set the active preflight options for a book. There must be an active preflight on the book for this to be successful. Note that changing the active options will potentially invalidate results for the book preflight since those results were based on the previous set of options.
| iBookDB | IN The database corresponding to the book. |
| iPreflightOptions | is the new option to set. |
| pure virtual |
Set the preflight options for a given book via command.
| iBookDB | IN The database corresponding to the book. |
| iPreflightOptions | is the new option to set. |
| pure virtual |
Set preflight options either in the application default or in the document.
| iDataBase | specifies either the application default or the document database. |
| iPreflightOptions | is the new option to set. |
| pure virtual |
Set the name and/or description of a preflight profile.
| dstProfileRef | is the UIDRef of the destination profile. |
| setName | IN True to set the name; false to leave it alone. |
| newname | IN The new name (if setName is true). |
| setDesc | IN True to set the description; false to leave it alone. |
| newDesc | IN The new descriptino (if setDesc is true). |
| pure virtual |
Update the active preflight options for a given database. The active preflight options are not persistent and the command is not undoable.
| iDataBase | is the database for the options. |
| iOptions | is the new option to set. |