00001 #ifndef __AIPhotoshopPrefs_h__
00002 #define __AIPhotoshopPrefs_h__
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 
00032 
00033 
00034 
00035 
00036 
00037 
00038 
00039 
00040 
00041 
00042 
00043 
00044 
00045 
00046 
00047 
00048 #include "AIRaster.h"
00049 
00050 #include "AIHeaderBegin.h"
00051 
00052 
00053 
00054 
00055 
00056 const ai::uint8 kRasterizeToRGB = 1;
00057 const ai::uint8 kRasterizeToCMYK = 2;
00058 const ai::uint8 kRasterizeToGrayscale = 3;
00059 const ai::uint8 kRasterizeToBitmap = 4;
00060 
00061 
00062 
00063 
00064 
00065 
00066 
00067 
00068 
00069 enum PSDPluginColorMode         
00070 {
00071         ePluginRGB                      = kRasterizeToRGB,
00072         ePluginCMYK                     = kRasterizeToCMYK,
00073         ePluginGrayscale        = kRasterizeToGrayscale,
00074         ePluginDummy            = 0xFFFFFFFF
00075 }; 
00076 
00077 enum PSDExportFormat
00078 {
00079         eTextNotLive                                    = 0,                    
00080         eUnsupportedTextFormat                  = eTextNotLive, 
00081         ePhotoshop8                                             = 1 << 0,
00082         ePhotoshop6                                             = 1 << 1
00083 };
00084 
00085 enum AntiAliasOptions
00086 {
00087         ANTIALIAS_NONE = 0,
00088         ANTIALIAS_AGM = 1,
00089         ANTIALIAS_SUPERSAMPLING
00090 };
00091 
00092 
00093 
00094 
00095 
00096 
00097 
00098 
00099 #define kPSDPreferencePrefix                                    "PhotoshopFileFormat"
00100 
00101 #define kPSDFormatName                                                  "Photoshop psd"
00102 #define kPSDExportFormatName                                    "Photoshop PSD Export"
00103 #define kPSDImportFormatName                                    "Photoshop PSD Import"
00104 #define kPSDFormatExtn                                                  "psd,psb,pdd"
00105 
00106 
00107 #define kPSDImportOption                                                "PSD Import Option"
00108 #define kDefaultPSDImportOption                                 1 //rbansal 20010528 dfaukt option change to Layers to Objects
00109 
00110 #define kPSDImportImageMaps                                             "ImageMaps"
00111 #define kDefaultPSDImportImageMaps                              true
00112 
00113 #define kPSDImportSlices                                                "Slices"
00114 #define kDefaultPSDImportSlices                                 true
00115 
00116 
00117 #define kPSDImportHiddenLayers                                  "HiddenLayers"
00118 #define kDefaultPSDImportHiddenLayers                   false
00119 
00120 
00121 #define kPSDShowPreview                                                 "ShowPreview"
00122 #define kDefaultPSDShowPreview                                  true            
00123 
00124 #define kPSDSelectedLayerCompID                                 "SelectedLayerCompID"
00125 #define kPSDDefaultSelectedLayerCompID          -1
00126 
00127 #define kPSDSelectedLayerCompName                               "SelectedLayerCompName"
00128 #define kPSDDefaultLayerCompName                                ""
00129 
00130 #define kPSDAntiAliasPref                                               "AntiAlias"
00131 #define kPSDDefaultAntiAliasPref                                ANTIALIAS_SUPERSAMPLING
00132 
00133 #define kPSDColorModelPref                                              "ColorModel"
00134 #define kPSDDefaultColorModelPref                               ePluginRGB
00135 
00136 #define kPSDExportFormatPref                                    "ExportFormat"
00137 #define kPSDDefaultExportFormatPref                             ePhotoshop8
00138 
00139 #define kPSDDPIPref                                                             "DPI"
00140 #define kPSDDefaultDPIPref                                              _ShortToAIReal(150)
00141 
00142 
00143 
00144 
00145 #define kPSDOtherDPIPref                                                "CustomDpi"
00146 
00147 #define kPSDWriteLayersPref                                             "WriteLayers"
00148 #define kPSDDefaultWriteLayerPref                               true
00149 
00150 #define kPSDWhichProfile                                                "WhichProfile"
00151 
00152 #define kPSDHiddenLayersPref                                    "HiddenLayers"
00153 #define kPSDDefaultHiddenLayersPref                             false
00154 
00155 #define kPSDWriteNestedLayersAsLayersPref               "NestedLayers"
00156 #define kPSDDefaultWriteNestedLayersPref                true
00157 
00158 #define kPSDLiveTextPref                                                "LiveText"
00159 #define kPSDDefaultLiveTextPref                                 true
00160 
00161 #define kPSDWriteSlicesPref                                             "Slices"
00162 #define kPSDDefaultWriteSlicesPref                              true
00163 
00164 #define kPSDWriteImageMapsPref                                  "ImageMaps"
00165 #define kPSDDefaultImageMapsPref                                true
00166 
00167 #define kPSDWriteCompoundShapesPref                             "CompoundShapes"
00168 #define kPSDDefaultCompoundShapesPref                   true
00169 
00170 #define kPSDWriteMaxEditabilityPref                             "Maximize Ediability"
00171 #define kPSDDefaultMaxEditabilityPref                   true
00172 
00173 
00174 #define kPSDNoHiddenLayersWarning                               "NoHiddenLayersWarning"
00175 #define kPSDNo100LayersWarning                                  "No100LayersWarning"
00176 #define kPSDNoImageMapsWarning                                  "NoImageMapsWarning"
00177 #define kPSDNoSelectiveMergeWarning                             "NoSelectiveMergeWarning"
00178 
00179 #define kPSDSuppressUnsupportedDepthWarning             "SuppressUnsupportedDepthWarning"
00180 #define kPSDApplyPixelAspectRatio                               "PixelAspectRatio"
00181 
00182 #define kPSDDefaultTurnOffWarningPref                   false
00183 
00184 
00185 #define kPSDPreserveSotColors                                   "PreserveSpotColors"
00186 
00187 #define kPSDSpotOptionsApplyToAll                               "SpotOptionApplyToAll"
00188 #define kPSDSpotOptions                                                 "SpotOptions"
00189 #define kPSDSuppressSwatchConflictWarning               "SuppressSwatchConflictWarning"
00190 
00191 #define kPSDSuppressNonSquarePixelWarning               "SuppressNonSquarePixelWarning"
00192 #define kPSDSuppressLibrarySpotInkWarning               "LibrarySpotInkWarning"
00193 #define kAIPSScriptCallSelector                                 "AI Script"
00194 
00195 
00196 struct PSDExportPrefs           
00197 {
00198         ai::int32                       mWhichProfile;
00199         AntiAliasOptions                        mAntiAlias;
00200         AIBoolean                       mWriteLayers;
00201         AIReal                          mResolution;    
00202         PSDPluginColorMode  mColorModel;
00203         AIBoolean                       mIncludeHiddenLayers;
00204         AIBoolean                       mWriteNestedLayersAsLayers;     
00205         AIBoolean                       mLiveText;
00206         AIBoolean                       mNo100LayersWarning;
00207         AIBoolean                       mNoImageMapsWarning;
00208         AIBoolean                       bHasSelectiveMerge;
00209         AIBoolean                       mNoSelectiveMergeWarning;       
00210         AIBoolean                       mNoHiddenLayersWarning;
00211         AIBoolean                       mWriteSlices;                   
00212         AIBoolean                       mWriteImageMaps;                
00213         AIBoolean                       mWriteCompoundShapes;   
00214         AIReal                          mOtherResolution;               
00215         ai::int32                       mExportFormat;
00216         AIBoolean                       mMaxEditability;
00217         AIBoolean                       mPreserveSpotColors;
00218 };
00219 
00220 
00221 
00222 
00223 enum PSDImportOptions
00224 {
00225         noImport = 0,
00226         psLayersToAIObjects = 1,
00227         psLayersToAIFlat = 2
00228 };
00229 
00230 enum PSDUpdateLinkOptions
00231 {
00232         psKeepLayerVisibilityOverrides = 0,
00233         psUsePhotoshopLayerVisibility = 1,
00234         psUpdateLinkNotApplicable = 2   
00235 };
00236 
00237 struct PSDImportPrefs
00238 {
00239         
00240         PSDImportOptions                mImportOption;
00241         PSDUpdateLinkOptions    mUpdateLinkOption;
00242         AIBoolean                       bImportImageMaps;
00243         AIBoolean                       bImportSlices;
00244 
00245         
00246         
00247         AIBoolean                       mHasReadableLayers;
00248         AIBoolean                       bPreviousImportImageMaps;
00249         AIBoolean                       bPreviousImportSlices;
00250         PSDImportOptions        mPreviousOption;
00251         AIBoolean                       mDontChangePreviousIMapImportStatus;
00252         AIBoolean                       mDontChangePreviousSliceImportStatus;
00253         AIBoolean                       mDontChangePreviousHiddenLayerImportStatus;
00254 
00255         AIBoolean                       bNotDragDrop;
00256         AIBoolean           mColorModeMismatch;
00257 
00258         AIBoolean           bApplyPixelAspectRatioCorrection;
00259         AIBoolean           bCBPixelAspectRatioChecked;
00260         AIReal                          mPixelAspectRatio;
00261 
00262         AIBoolean                       bShowLayerCompsPreview;
00263         AIBoolean                       bImportHiddenLayers;
00264         AIBoolean                       bPreviousImportHiddenLayers;
00265         AIBoolean                       bReadImageDone;
00266         ai::int32                               iSelectedLayerCompIndex;
00267 };
00268 
00269 #include "AIHeaderEnd.h"
00270 
00271 #endif //__AIPhotoshopPrefs_h__