PIProperties.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 //-------------------------------------------------------------------
00027 #ifndef __PIProperties_h__ // Already defined?
00028 #define __PIProperties_h__
00029 
00030 #if PRAGMA_ONCE
00031 #pragma once
00032 #endif
00033 
00034 //-------------------------------------------------------------------------------
00041 
00042 
00043 
00044 #define propNumberOfChannels  'nuch'
00045 
00049 #define propChannelName       'nmch'
00050 
00053 #define propUnicodeChannelName 'unch'
00054 
00058 #define propTargetLayerLock   'tllk'
00060 
00064 
00065 #define propTargetLayerLockNone                 0x0       
00066 #define propTargetLayerLockTransparency         0x1 << 0  
00067 #define propTargetLayerLockComposite            0x1 << 1  
00068 #define propTargetLayerLockPosition             0x1 << 2  
00070 
00073 
00075 #define propImageMode         'mode'
00076 
00079 #define propNumberOfPaths     'nupa'
00080 
00084 #define propPathName          'nmpa'
00085 
00088 #define propUnicodePathName   'unmp'
00089 
00091 
00097 #define propPathContents      'path'
00098 
00103 #define propPathContentsAI    'paAI'
00104 
00108 #define propWorkPathIndex     'wkpa'
00109 
00113 #define propClippingPathIndex 'clpa'
00114 
00118 #define propTargetPathIndex   'tgpa'
00119 
00124 #define propCaption           'capt'
00125 
00129 #define propXMP               'xmpd'
00130 
00135 #define propBigNudgeH         'bndH'                                                 
00136 
00140 #define propBigNudgeV         'bndV'
00141 
00145 #define propInterpolationMethod 'intp'
00146 
00150 #define propRulerUnits          'rulr'
00152 
00153 
00154 typedef enum
00155     {
00156     kRulerPixels,              
00157     kRulerInches,              
00158     kRulerCm,                  
00159     kRulerMillimeters,         
00160     kRulerPoints,              
00161     kRulerPicas,               
00162     kRulerPercent              
00163     } RulerUnits;
00164 
00167 
00170 #define propRulerOriginH        'rorH'
00171 
00174 #define propRulerOriginV        'rorV'
00175 
00180 #define propGridMajor           'grmj'
00181 
00184 #define propGridMinor           'grmn'
00185 
00190 #define propSerialString        'sstr'
00191 
00195 #define propSerialString2       'sstR'
00196 
00200 #define propHardwareGammaTable  'hgam'
00201 
00219 #define propInterfaceColor      'iclr'
00220 
00226 #define propWatchSuspension     'wtch'
00227 
00232 #define propCopyright           'cpyr'
00233 
00236 #define propCopyright2          'cpyR'
00237 
00244 #define propWatermark           'watr'
00245 
00248 #define propURL                 'URL '
00249 
00253 #define propTitle               'titl'
00254 
00258 #define propDocumentWidth       'docW'
00259 
00263 #define propDocumentHeight      'docH'
00264 
00269 #define propSlices              'slcs'
00270 
00274 #define propSelectedSliceID     'slid'
00275 
00279 #define propSelectedSliceIDList 'slis'
00280 
00284 #define propSelectedSliceIndex  'slin'
00285 
00286 // Whether the slice numers are show (Simple)
00290 #define propShowSliceNumbers    'slsh'
00291 
00295 #define propSliceLineColor      'sllc'
00296 
00300 #define propToolTips            'tltp'
00301 
00305 #define propPaintCursorKind     'PCrK'
00306 
00310 #define propPaintCursorShape    'PCrS'
00311 
00312 // Is the cursor crosshair always visible (Simple)
00313 // 0 - no
00314 // 1 - yes
00319 #define propPaintCursorCrosshair    'PCrC'
00320 
00321 
00330 #define propEXIFData            'EXIF'
00331 
00332 // current version of photoshop Major.Minor.Fix
00337 #define propVersion             'vers'
00338 
00339 // Is an action play in progress? actions palette or automation plug in(Simple)
00343 #define propPlayInProgress      'plip'
00344 
00345 // Get the unicode name of the document
00349 #define propUnicodeName         'unnm'
00350 
00351 // Get the unicode name of the document
00355 #define propUniStr255Name       'u25n'
00356 
00360 #define propUnicodeNameWithoutExtension 'neun'
00361 
00372 #define propDontShowAgainCount  'DSAC'
00373 
00377 #define propNumberOfLayers      'nuly'
00378 
00382 #define propTargetLayerIndex    'tgly'
00383 
00387 #define propLayerName           'lynm'
00388 
00392 #define propUnicodeLayerName    'lynu'
00393 
00397 #define propPixelScaleFactor    'pxsf'
00398 
00403 #define propDoingPlace          'DPlc'
00404 
00409 #define propRasterizingSmartObject  'RsSO'
00410 
00414 #define propAppIsModal          'aism'
00415 
00419 #define propPixelLength             'MSpl'
00420 
00424 #define propLogicalLength               'MSll'
00425 
00429 #define propMUnits              'MSun'
00430 
00431 /*
00432 * tile size in bytes (Simple, read-only)
00433 */
00434 #define propTileSize        'TSiz'
00435 
00436 /*
00437 * APE library has initialized correctly (Simple, read-only)
00438 */
00439 #define propAPEIsInitialized    'mnky'
00440 
00441 /* 
00442 * Photoshop scratch disk volumes (Complex, read-only)
00443 * A list of 4-byte volume index that users have picked as preferred scratch volumes. 
00444 * On windows, this index is 1 based, started from "A:\", so "C:" drive will be 3, "G:" will be 7, etc. 
00445 */
00446 #define propScratchVolumeList   'svls'
00447 
00459 #define propGPUFlags                'GPUF'
00460 #define kGPUFlagsModeMask           0x0003
00461 #define kGPUFlagsModeShift          0
00462 #define kGPUFlagsBasic              0
00463 #define kGPUFlagsNormal             1
00464 #define kGPUFlagsAdvanced           2
00465 #define GPUFlagsGetMode(FLAGS)      (((FLAGS) & kGPUFlagsModeMask) >> kGPUFlagsModeShift)
00466 #define GPUFlagsSetMode(MODE)       (((MODE) << kGPUFlagsModeShift) & kGPUFlagsModeMask)
00467 #define kGPUFlagsCLCompute          0x0020
00468 #define kGPUFlagsGLCompute          0x0040
00469 #define kGPUFlagsGPUEnabled         0x0080  // OpenGL checkbox is checked
00470 #define kGPUFlagsGPUPossible        0x0100  // OpenGL checkbox is not dimmed
00471 #define kGPUFlagsBasicPossible      0x0200  // Basic mode *could* be selected by the user
00472 #define kGPUFlagsNormalPossible     0x0400  // Normal mode *could* be selected by the user
00473 #define kGPUFlagsAdvancedPossible   0x0800  // Advanced mode *could* be selected by the user
00474 
00475 #define propVRAM_MB                 'VRAM'  // This returns the available VRAM in units of 1024*1024.
00476 
00480 #define propLayerIsSmart            'liss'
00481 
00482 
00484 //-------------------------------------------------------------------------------
00485 
00486 #endif // __PIProperties_h__