![]() |
AIToolbox.hGo to the documentation of this file.00001 #ifndef __AIToolbox__ 00002 #define __AIToolbox__ 00003 00004 /* 00005 * Name: AIToolbox.h 00006 * $Revision: 14 $ 00007 * Author: Paul Asente 00008 * Date: 3/19/96 00009 * Purpose: Adobe Illustrator Toolbox Suite. 00010 * 00011 * ADOBE SYSTEMS INCORPORATED 00012 * Copyright 1986-2007 Adobe Systems Incorporated. 00013 * All rights reserved. 00014 * 00015 * NOTICE: Adobe permits you to use, modify, and distribute this file 00016 * in accordance with the terms of the Adobe license agreement 00017 * accompanying it. If you have received this file from a source other 00018 * than Adobe, then your use, modification, or distribution of it 00019 * requires the prior written permission of Adobe. 00020 * 00021 */ 00022 00023 00024 /******************************************************************************* 00025 ** 00026 ** Imports 00027 ** 00028 **/ 00029 00030 00031 #ifndef __AITypes__ 00032 #include "AITypes.h" 00033 #endif 00034 00035 #ifndef __AIPlugin__ 00036 #include "AIPlugin.h" 00037 #endif 00038 00039 #ifndef __AITool__ 00040 #include "AITool.h" 00041 #endif 00042 00043 #include "AIHeaderBegin.h" 00044 00048 /******************************************************************************* 00049 ** 00050 ** Constants 00051 ** 00052 **/ 00053 00054 #define kAIToolboxSuite "AI Toolbox Suite" 00055 #define kAIToolboxVersion6 AIAPI_VERSION(6) 00056 #define kAIToolboxVersion kAIToolboxVersion6 00057 #define kAIToolboxSuiteVersion kAIToolboxVersion 00058 00061 #define kCallerAIToolbox "AI Toolbox" 00062 00068 #define kSelectorAIStartToolbox "AI Toolbox Start Toolbox" 00069 00073 #define kSelectorAIEndToolbox "AI Toolbox End Toolbox" 00074 00079 #define kSelectorAIStartToolGroup "AI Toolbox Start Tool Group" 00080 00084 #define kSelectorAIEndToolGroup "AI Toolbox End Tool Group" 00085 00090 #define kSelectorAIStartToolSet "AI Toolbox Start Tool Set" 00091 00095 #define kSelectorAIEndToolSet "AI Toolbox End Tool Set" 00096 00100 #define kSelectorAIAddTool "AI Toolbox Add Tool" 00101 00105 #define kSelectorAIAddRollover "AI Toolbox Add Rollover" 00106 00110 #define kSelectorAIToolSelected "AI Toolbox Tool Selected" 00111 00115 #define kSelectorAIAlternateToolActionSelected "AI Toolbox Alternate Tool Action Selected" 00116 00121 #define kSelectorAICycleTool "AI Toolbox Cycle Tool" 00122 00128 #define kSelectorAISoftCycleTool "AI Toolbox Soft Cycle Tool" 00129 00130 /******************************************************************************* 00131 ** 00132 ** Types 00133 ** 00134 **/ 00135 00137 typedef struct _t_AIToolboxOpaque *AIToolboxHandle; 00138 00139 00142 typedef struct { 00144 SPMessageData d; 00146 AIToolboxHandle toolbox; 00148 AIToolType tool; 00150 AIDataStackRef iconResourceDictionary; 00152 char *name; 00154 char *title; 00156 char *tooltip; 00158 ASHelpID helpID; 00159 } AIToolboxMessage; 00160 00161 /******************************************************************************* 00162 ** 00163 ** Suite 00164 ** 00165 **/ 00166 00197 struct AIToolboxSuite { 00206 AIAPI AIErr (*AddToolbox) (SPPluginRef self, const char *name, 00207 AIToolboxHandle *toolbox); 00208 00213 AIAPI AIErr (*SetTool) (AIToolboxHandle toolbox, AIToolType tool); 00214 00220 AIAPI AIErr (*AlternateAction) (AIToolboxHandle toolbox, AIToolType tool ); 00221 00226 AIAPI AIErr (*CycleTool) (AIToolboxHandle toolbox, AIToolType tool); 00227 00232 AIAPI AIErr (*CountToolboxes) (ai::int32 *count); 00233 00239 AIAPI AIErr (*GetNthToolbox) (ai::int32 n, AIToolboxHandle *toolbox); 00240 00246 AIAPI AIErr (*GetCurrentToolType) (AIToolType *toolNum); 00247 00248 }; 00249 00250 00251 #include "AIHeaderEnd.h" 00252 00253 00254 #endif 00255 |
||||||
|
![]() |
|