InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
BehaviorID.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Mark VerMurlen
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __BehaviorID_h__
25 #define __BehaviorID_h__
26 
27 #include "CrossPlatformTypes.h"
28 #include "IDFactory.h"
29 
30 #define kBehaviorPrefix RezLong(0x15600)
31 
32 // ----- Define a new ID space
33 
34 #define kBehaviorEventIDSpace kBehaviorPrefix + 1
35 #define kBehaviorIDSpace kBehaviorPrefix + 2
36 
37 // ----- Plug-in ID -----
38 
39 #define kBehaviorPluginName "Behavior"
40 
41 // ----- Class IDs -----
42 
43 
44 
45 
46 
47 
48 
49 
50 //gap
51 
52 
53 
54 
55 
56 
57 
58 
59 
60 
61 
62 
63 
64 
65 
66 
67 
68 
69 
70 
71 
72 
73 //gap
74 
75 
76 
77 
78 
79 
80 
81 
82 
83  // More Action bosses...
84 
85 
86 
87 
88 
89 // ----- Interface IDs -----
90 
91 
92 
93 // ----- Implementatin IDs -----
94 
95 
96 
97 
98 
99 
100 
101 
102 
103 
104 
105 
106 
107 
108 
109 
110 
111 
112 
113 
114 
115 
116 
117 
118 
119 
120 
121 
122 
123 
124 
125 
126 
127 
128 //gap
129 
130 
131 
132 
133 
134 
135 
136 
137 
138 
139 
140 
141 
142 // ----- Widget IDs -----
143 
144 // ----- Action IDs -----
145 
146 // ----- Service IDs -----
147 
148 
149 // ----- Error IDs -----
150 
151 
152 // ----- Behavior Event IDs (these include the all supported events for a PDF-style action) -----
153 
154 
155 
156 
157 
158 // ----- Behavior IDs (these include the all supported PDF-style actions) -----
159 
160 
161 
162 
163 
164 
165 
166 
167 
168 //
169 //Script Element IDs
170 //
171 
172 //Suites
173 
174 //Objects
175 //gap
176 //gap
177 
178 //Events
179 
180 //Properties
181 //gap
182 //gap
183 
184 //Enums
185 //gap
186 
187 
188 enum BehaviorsScriptClasses
189 {
190  c_BehaviorsApplication = 'BAPP',
191 
192  c_Behavior = 'bhvr',
193  c_Behaviors = 'bhvs',
194 
195  c_GoToPageBehavior = 'bgsp',
196  c_GoToPageBehaviors = 'bgps',
197 
198  c_GoToFirstPageBehavior = 'bgfp',
199  c_GoToFirstPageBehaviors = 'bgfs',
200 
201  c_GoToLastPageBehavior = 'bglp',
202  c_GoToLastPageBehaviors = 'bgls',
203 
204  c_GoToNextPageBehavior = 'bgnp',
205  c_GoToNextPageBehaviors = 'bgns',
206 
207  c_GoToPreviousPageBehavior = 'pgpp',
208  c_GoToPreviousPageBehaviors = 'pgps',
209 
210  c_GoToNextViewBehavior = 'bgnv',
211  c_GoToNextViewBehaviors = 'bnvs',
212 
213  c_GoToPreviousViewBehavior = 'pgpv',
214  c_GoToPreviousViewBehaviors = 'ppvs',
215 
216  c_GoToURLBehavior = 'bgur',
217  c_GoToURLBehaviors = 'bgus',
218 
219  c_GoToAnchorBehavior = 'bgan',
220  c_GoToAnchorBehaviors = 'bgas',
221 
222  c_MovieBehavior = 'bmov',
223  c_MovieBehaviors = 'bmos',
224 
225  c_SoundBehavior = 'bsnd',
226  c_SoundBehaviors = 'bsns',
227 
228  c_ShowHideFieldsBehavior = 'bshF',
229  c_ShowHideFieldsBehaviors = 'bshS',
230 
231  c_ImportDataBehavior = 'bimd',
232  c_ImportDataBehaviors = 'bims',
233 
234  c_ResetFormBehavior = 'bref',
235  c_ResetFormBehaviors = 'bres',
236 
237  c_SubmitFormBehavior = 'bsuf',
238  c_SubmitFormBehaviors = 'bsus',
239 
240  c_OpenFileBehavior = 'bopf',
241  c_OpenFileBehaviors = 'bops',
242 
243  c_CloseBehavior = 'bclo',
244  c_CloseBehaviors = 'bcls',
245 
246  c_QuitBehavior = 'bext',
247  c_QuitBehaviors = 'bexs',
248 
249  c_JavaScriptBehavior = 'bjas',
250  c_JavaScriptBehaviors = 'bjss',
251 
252  c_FormulaBehavior = 'frml',
253  c_FormulaBehaviors = 'frms',
254 
255  c_ValidateRangeBehavior = 'vdrg',
256  c_ValidateRangeBehaviors = 'vdrs',
257 
258  c_MarkReadOnlyBehavior = 'mron',
259  c_MarkReadOnlyBehaviors = 'mros',
260 
261  c_FormatNumberBehavior = 'bfrn',
262  c_FormatNumberBehaviors = 'bfns',
263 
264  c_FormatDateBehavior = 'fmdt',
265  c_FormatDateBehaviors = 'fmds',
266 
267  c_FormatPercentBehavior = 'fmpc',
268  c_FormatPercentBehaviors = 'fmps',
269 
270  c_FormatTimeBehavior = 'fmtm',
271  c_FormatTimeBehaviors = 'tmts',
272 
273  c_FormatSpecialBehavior = 'fmsp',
274  c_FormatSpecialBehaviors = 'fmss',
275 
276  c_ViewZoomBehavior = 'vzom',
277  c_ViewZoomBehaviors = 'vzms',
278 
279  c_AnimationBehavior = 'aniB',
280  c_AnimationBehaviors = 'ansB',
281 
282  c_GoToNextStateBehavior = 'gnxB',
283  c_GoToNextStateBehaviors = 'gnsB',
284 
285  c_GoToPreviousStateBehavior = 'gprB',
286  c_GoToPreviousStateBehaviors = 'gpsB',
287 
288  c_GoToStateBehavior = 'gstB',
289  c_GoToStateBehaviors = 'gssB',
290 
291  c_PrintFormBehavior = 'bpfm',
292  c_PrintFormBehaviors = 'bpfs',
293 
294 };
295 
296 enum BehaviorsScriptProperties
297 {
298  p_Event = 'evnt', //obsoleted in Cobalt to avoid conflicting with c_Event
299  p_BehaviorEvent = 'Bevt', //added in Cobalt to avoid conflicting with c_Event
300  p_EnableBehavior = 'enbh',
301  p_GoToZoom = 'gtzm',
302  p_URL = 'gurl',
303  p_AnchorName = 'gaan',
304  p_Anchor = 'gaao',
305  p_Movie = 'movi',
306  p_Operation = 'oper',
307  p_Sound = 'soun',
308  p_FieldsToShow = 'ftos',
309  p_FieldsToHide = 'ftoh',
310  p_Fields = 'frst',
311  p_FieldsToReset = p_Fields,
312  p_FormFormat = 'bffm',
313  p_IncludeFieldData = 'bifd',
314  p_IncludeComments = 'bifc',
315  p_ExportIncrementalChanges = 'beic',
316  p_IncludeEmptyFields = 'bief',
317  p_ConvertDatesToStandardFormat = 'bcdt',
318  p_FieldsToSubmit = p_Fields,
319  p_DecimalStyle = 'bdes',
320  p_CurrencySymbol = 'bcur',
321  p_NegativeStyle = 'bnes',
322  p_CurrencyPrepend = 'bcpe',
323  p_DateStyle = 'bdst',
324  p_TimeStyle = 'btst',
325  p_SpecialStyle = 'bspc',
326  p_LowerBound = 'blwb',
327  p_UpperBound = 'bupb',
328  p_FieldsToMarkReadOnly = p_Fields,
329  p_Formula = 'bfor',
330  p_FieldsInFormula = p_Fields,
331  p_ViewZoom = 'vzmp',
332  p_JavaScript = 'jScr',
333  p_LinkToFile = 'sLnk',
334  p_ScriptName = 'sNam',
335  p_Animation = 'anim',
336  p_AutoReverseOnRollOff = 'aurv',
337  p_MultiStateObject = 'gmso',
338  p_GoBackOnRollOff = 'gbro',
339  p_LoopToNextPrevState = 'gslp',
340  p_GotoStateName = 'gtsn',
341  p_NavigationPointID = 'npid'
342 };
343 
344 enum BehaviorsScriptEnumerations
345 {
346  en_BehaviorEvents = 'bhev',
347  en_MouseUpEvent = 'muev',
348  en_MouseDownEvent = 'mdev',
349  en_MouseEnterEvent = 'meev',
350  en_MouseExitEvent = 'mxev',
351  en_OnFocusEvent = 'ofev',
352  en_OnBlurEvent = 'obev',
353 
354  en_PlayOperations = 'mvop',
355  en_AnimationPlayOperations = 'anop',
356  en_MoviePlayOperations = 'otop',
357  en_Play = 'play',
358  en_PlayFromNavigationPoint = 'plnv',
359  en_Stop = 'stop',
360  en_Pause = 'paus',
361  en_Resume = 'resu',
362  en_Reverse = 'reve',
363  en_StopAll = 'stpa',
364 
365  en_GoToZoomOptions = 'zmop',
366 
367  en_SubmitFormFormatOptions = 'sffo',
368  en_FDF = 'sfdf',
369 
370  en_DecimalStyleOptions = 'bdcs',
371  en_CommaPeriod = 'cmpe',
372  en_NothingPeriod = 'nope',
373  en_PeriodComma = 'pecm',
374  en_NothingComma = 'nocm',
375 
376  en_NegativeStyleOptions = 'negs',
377  en_Minus = 'minu',
378  en_Parenthesized = 'parn',
379  en_RedParenthesized = 'redp',
380 
381  en_TimeStyleOptions = 'tist',
382  en_24Hour = '24 ',
383  en_12Hour = '12 ',
384  en_24HourWithSeconds = '24sc',
385  en_12HourWithSeconds = '12sc',
386 
387  en_SpecialStyleOptions = 'spco',
388  en_ZipCode = 'zipc',
389  en_ZipCodePlus4 = 'zipp',
390  en_PhoneNumber = 'phon',
391  en_SocialSecurityNumber = 'ssn ',
392 
393  en_ViewZoomStyleOptions = 'vzst',
394  en_ViewZoomFullScreen = 'vzfs',
395  en_ViewZoomReflow = 'vzrf',
396  en_ViewZoomSinglePage = 'vzsp',
397  en_ViewZoomOneColumn = 'vzoc',
398  en_ViewZoomTwoColumns = 'vztc',
399  en_ViewZoomRotateCW = 'vzrc',
400  en_ViewZoomRotateCCW = 'vzrw'
401 };
402 
403 #endif // __BehaviorID_h__