PIPicker.h
Go to the documentation of this file.
00001 // ADOBE SYSTEMS INCORPORATED
00002 // Copyright  1993 - 2005 Adobe Systems Incorporated
00003 // All Rights Reserved
00004 //
00005 // NOTICE:  Adobe permits you to use, modify, and distribute this 
00006 // file in accordance with the terms of the Adobe license agreement
00007 // accompanying it.  If you have received this file from a source
00008 // other than Adobe, then your use, modification, or distribution
00009 // of it requires the prior written permission of Adobe.
00010 //-------------------------------------------------------------------
00022 #ifndef __PIPicker__
00023 #define __PIPicker__
00024 
00025 #if PRAGMA_ONCE
00026 #pragma once
00027 #endif
00028 
00029 #include "PIActions.h"
00030 #include "PIGeneral.h"
00031 #include "SPBasic.h"
00032 
00046 /********************************************************************************/
00048 
00049 
00054 /* Operation selectors */
00062 #define pickerSelectorAbout      0
00063 
00084 #define pickerSelectorPick       1
00085 
00087 /********************************************************************************/
00088 
00089 /* Error return values. The plug-in module may also return standard Macintosh
00090    operating system error codes, or report its own errors, in which case it
00091    can return any positive integer. */
00092 
00099 
00100 
00101 
00104 #define pickerBadParameters -30800  
00107 /********************************************************************************/
00108 
00110 typedef struct PickParms
00111     {
00112     int16 sourceSpace;              
00114     int16 resultSpace;              
00117     unsigned16 colorComponents[4];  
00136     Str255 *pickerPrompt;           
00138     }
00139 PickParms;
00140 
00141 /********************************************************************************/
00148 typedef struct PIPickerParams
00149     {
00150     
00151     /* We start with the fields that are common to pretty much all of the plug-ins. */
00152     
00153     int32       serialNumber;       
00160     TestAbortProc   abortProc;     
00162     ProgressProc    progressProc;   
00164     OSType      hostSig;            
00166     HostProc    hostProc;           
00169     BufferProcs *bufferProcs;       
00173     ResourceProcs *resourceProcs;   
00177     ProcessEventProc processEvent;  
00180     DisplayPixelsProc displayPixels;
00183     HandleProcs *handleProcs;       
00187     ColorServicesProc colorServices; 
00190     ImageServicesProcs *imageServicesProcs;
00193     PropertyProcs   *propertyProcs;
00198     ChannelPortProcs *channelPortProcs;
00201     PIDescriptorParameters  *descriptorParameters;  
00203     Str255                  *errorString;           
00208     PlugInMonitor   monitor;        
00210     void        *platformData;      
00213     char reserved [4];              
00215     /* We follow this with the fields specific to this type of plug-in. */
00216 
00217     PickParms pickParms;            
00220     SPBasicSuite    *sSPBasic;      
00221     void            *plugInRef;     
00223     /* And, of course, space for future expansion. */
00224     
00225     char reservedBlock [252];      
00227     }
00228 PIPickerParams, *PickerRecordPtr;
00229 
00230 /********************************************************************************/
00231 
00232 
00233 #endif // __PIPicker_h__