27 #ifndef __SCRIPTINGID__ 28 #define __SCRIPTINGID__ 30 #include "CrossPlatformTypes.h" 31 #include "IDFactory.h" 32 #include "FormatNumber.h" 34 #define kScriptingPrefix RezLong(0x7700) 39 #define kScriptIconResID 129 40 #define kScriptingStringsRsrcID 7000 41 #define kScriptingStringsNoTransRsrcID 7100 42 #define kScriptErrorStringTableRsrcID 7002 47 #define kScriptPluginName "Scripting" 80 #define kDontShowEventListenerErrorAlert kScriptingPrefix + 1 89 #define kFirstScriptErrorWithoutString kScriptingPrefix + 1 90 #define kLastScriptErrorWithoutString kScriptingPrefix + 5 93 #define kFirstScriptArchitectureError kScriptingPrefix + 6 97 #define kLastScriptArchitectureError kScriptingPrefix + 149 102 #define kFirstUserOrientedScriptError kScriptingPrefix + 150 104 #define kLastUserOrientedScriptError kScriptingPrefix + 255 111 #define kScriptInfoFirstBaseType kScriptingPrefix + 0 116 #define kScriptInfoLastBaseType kScriptingPrefix + 15 117 #define kScriptInfoAbstractArrayType kScriptInfoLastBaseType + 1 143 enum ScriptingScriptIDs
145 t_IDUIColorType =
'IDCT',
146 t_TransformMatrixType =
'MTXT',
147 t_RectangleBoundsType =
'RBDT',
148 t_PathPointType =
'PPTT',
149 t_PointType =
'PNTT',
150 t_GeoPathType =
'GPTT',
151 t_KeyValuePairType =
'KVPT',
152 t_GeometryType =
'GEOT',
153 t_UnitPointType =
'UPTT',
154 t_UnitRecBoundsType =
'URBT',
155 t_NameValuePairType =
'NVPT',
157 c_NonIDBased =
'noID',
163 c_PrefsObject =
'PObj',
164 c_PrefsObjects =
'Prfs',
167 c_EventListener =
'EvLi',
168 c_EventListeners =
'EvLs',
169 c_IdleEvent =
'IdEv',
170 c_MutationEvent =
'EvMu',
172 c_IdleTasks =
'ITks',
174 e_AddEventListener =
'eAEL',
175 e_RemoveEventListener =
'eREL',
176 e_StopPropagation =
'eStP',
177 e_PreventDefault =
'ePrD',
180 e_AfterAttributeChanged =
'AfAC',
181 e_BeforeNew =
'bfNw',
183 e_BeforeDelete =
'BfDl',
184 e_AfterDelete =
'AfDl',
185 e_BeforeMove =
'BfMv',
186 e_AfterMove =
'AfMv',
188 f_HandleEvent =
'eHEv',
190 p_EventType =
'pEvT',
192 p_EventData =
'pEvD',
194 p_CurrentTarget =
'pCur',
195 p_EventPhase =
'pEvP',
198 p_Cancelable =
'pCan',
199 p_TimeStamp =
'pTim',
200 p_PropagationStopped =
'pPSp',
201 p_DefaultPrevented =
'pDPr',
202 p_AttributeName =
'Xatn',
203 p_AttributeValue =
'AtVl',
205 p_TimeAllocated =
'TmAl',
210 en_EventPhase =
'enEP',
211 en_NotDispatching =
'enND',
212 en_CapturingPhase =
'enCp',
213 en_AtTarget =
'enAT',
214 en_BubblingPhase =
'enBu',
215 en_DoneDispatching =
'enDD',
218 en_UndoMode =
'eSUM',
219 en_UndoScriptRequest =
'eSrU',
220 en_UndoEntireScript =
'eScU',
221 en_AutoUndoScript =
'eSaU',
222 en_FastUndoEntireScript =
'eSfU',
224 p_UserInteraction =
'UIAc',
225 en_UserInteraction =
'elnt',
226 en_NeverInteract =
'eNvr',
227 en_InteractWithSelf =
'eInS',
228 en_InteractWithLocal =
'eInL',
229 en_InteractWithAll =
'eInA',
230 en_InteractWithAlerts =
'eInB',
232 m_HideFromPublishedDOM =
'HFPD',
233 m_SkipVerification =
'SkpV',
234 m_AddNothingEnumToProperties =
'ANEP',
235 m_DontAddNothingEnum =
'DANE',
236 m_IgnoreForGetProperties =
'IFGP',
237 m_AllowWithModalDialog =
'AWMD',
240 p_ScriptPrefs =
'pScr',
241 p_ScriptsList =
'Slst',
242 p_ScriptsFolder =
'SFdr',
243 p_CurrentScriptUndoMode =
'CSUM',
244 p_MeasurementUnit =
'MtUt',
247 en_AttachableEventCount =
'AECt',
248 en_AttachedScriptsCount =
'ASCt',
249 en_DispatchEventTime =
'DETm',
254 #define kObjects_CLSID { 0xcf550cea, 0x6b35, 0x47b3, { 0x91, 0x49, 0x58, 0x19, 0xbf, 0x3e, 0x7f, 0x35 } } 256 #define kObject_CLSID { 0xc6c9874c, 0x8b6, 0x4901, { 0x95, 0x3, 0x86, 0xb2, 0x83, 0xbd, 0x28, 0xbe } } 258 #define kNonIDBasedObject_CLSID { 0x5919318d, 0xff15, 0x43f7, { 0x88, 0x70, 0x48, 0x95, 0x72, 0x87, 0x60, 0x84 } } 260 #define kIDBasedObject_CLSID { 0x53658867, 0xdc21, 0x4eac, { 0x9b, 0xde, 0xf5, 0x31, 0xa4, 0x82, 0x68, 0x80 } } 262 #define kUIDBasedObject_CLSID { 0xd8035c7e, 0xe73c, 0x4615, { 0xb2, 0x77, 0x5c, 0xbf, 0x27, 0xe5, 0xc1, 0x25 } } 264 #define kRootObject_CLSID { 0x88eb691e, 0x8fe2, 0x4f37, { 0xbd, 0xdf, 0x5, 0x44, 0x17, 0x48, 0xb1, 0x80 } } 266 #define kPrefsObject_CLSID { 0x4964c0c5, 0x3dda, 0x425b, { 0xb9, 0x43, 0x3b, 0xca, 0x84, 0x69, 0xe6, 0xb9 } } 268 #define kPrefsObjects_CLSID { 0xd6f21922, 0xa644, 0x46cf, { 0x8b, 0x21, 0xb7, 0x11, 0x2a, 0xcd, 0xd6, 0x9b } } 270 #define kScriptPrefs_CLSID { 0x3c5d982b, 0xf5f2, 0x40d7, { 0xac, 0x27, 0x99, 0x1d, 0x1a, 0x53, 0x2e, 0x4 } } 272 #define kScriptArgs_CLSID { 0xa02e541b, 0x40b3, 0x44a9, { 0x92, 0x1c, 0x9d, 0xec, 0x8, 0x98, 0xea, 0xb2 } } 274 #define kEventListener_CLSID { 0x83e3cee7, 0x839d, 0x460b, { 0xb0, 0x14, 0x97, 0x8c, 0x2, 0xc, 0x95, 0xcf } } 276 #define kEventListeners_CLSID { 0x66503a71, 0x3620, 0x4c50, { 0xaf, 0xd2, 0x16, 0x74, 0x33, 0x53, 0xd5, 0xa5 } } 278 #define kEvent_CLSID { 0xcd89e052, 0x7ced, 0x474a, { 0xb1, 0x83, 0xcc, 0x35, 0x3b, 0x4b, 0xfe, 0x3a } } 280 #define kEvents_CLSID { 0x7e528261, 0x8ea4, 0x42d0, { 0x99, 0x55, 0x8c, 0xed, 0x43, 0x3, 0x17, 0xc9 } } 282 #define kIdleEvent_CLSID { 0xda1486fd, 0x37b4, 0x4642, { 0xa7, 0x51, 0x2, 0x33, 0x22, 0xd1, 0x7e, 0xc2 } } 284 #define kMutationEvent_CLSID { 0x507774aa, 0xee26, 0x4d66, { 0xb0, 0x35, 0xb1, 0x57, 0x45, 0xa7, 0xe1, 0x2a } } 286 #define kIdleTask_CLSID { 0xf66681fe, 0x7936, 0x42c2, { 0x89, 0x28, 0xec, 0xf5, 0xbc, 0x17, 0xdc, 0x4 } } 288 #define kIdleTasks_CLSID { 0x1e048fe5, 0x5927, 0x4698, { 0xa6, 0x86, 0x5e, 0x13, 0xf6, 0x8f, 0x2, 0x50 } }