InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ActionID.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: lance bushore
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 // Contains IDs used by actions, menus, shortcuts.
24 //
25 //========================================================================================
26 
27 #ifndef __ActionID__
28 #define __ActionID__
29 
30 #include "CrossPlatformTypes.h"
31 #include "IDFactory.h"
32 
33 #define kActionPrefix RezLong(0xd200)
34 // note: we use 7 prefixes! d2,d3,d4,d5,d6,d7,d8 - we overflow our ActionIDs from one to the next willy-nilly
35 #define kActionPrefix8 RezLong(0x19600)
36 #define kScriptMenuActionPrefixFirst RezLong(0xff002000)
37 #define kScriptMenuActionPrefixLast RezLong(0xff003F00)
38 
39 
40 // Resource IDs
41 #define kActionsStringResID 2100
42 #define kActionsStringsNoTransRsrcID 2200
43 #define kActionsErrorStringTableRsrcID 2300
44 
45 // PluginID
46 #define kActionsPluginName "Actions"
47 
48 // <Start IDC>
49 // <Class ID>
50 // ClassIDs
51 
52 
53 // <Message ID> // note - message ids conflict with class ids.
54 
55 // <Implementation ID>
56 // ImplementationIDs
57 
58 // <Interface ID>
59 
60 // <Service ID>
61 
62 // note: we use 7 prefixes! d2,d3,d4,d5,d6,d7,d8 - we overflow our ActionIDs from one to the next willy-nilly
63 
64 // <Action ID>
65 #ifdef ID_ENABLE_DEBUGGING
66 // all the ids between kFirstTestMenuActionID and kLastTestMenuActionID are reserved.
67 //gap?
68 // ids in here reserved
69 #endif
70 
71 //intervening Action IDs are allocated dynamically by the IDynamicActionIDPool
72 
73 // <ErrorCode>
74 
75 //
76 //Script Element IDs
77 //
78 
79 //Events
80 
81 //Objects
82 //gap
83 
84 //Methods
85 
86 //Properties
87 //gap
88 
89 //Enums
90 
91 //ScriptIDs
92 enum
93 {
94  c_MenuAction = 'Actn',
95  c_MenuActions = 'Acts',
96  c_ScriptMenuAction = 'SAcn',
97  c_ScriptMenuActions = 'SAcs',
98  c_Menu = 'MeNu',
99  c_Menus = 'MeNs',
100  c_MenuElement = 'MeEl',
101  c_MenuElements = 'MeEs',
102  c_Submenu = 'SbMe',
103  c_Submenus = 'SbMs',
104  c_MenuItem = 'MeIt',
105  c_MenuItems = 'MeIs',
106  c_MenuSeparator = 'MeSp',
107  c_MenuSeparators = 'MeSs',
108  c_MenuEvent = 'MeEv',
109 
110  e_Invoke = 'Invk',
111  e_OnInvoke = 'OnIn',
112  e_BeforeInvoke = 'BfIv',
113  e_AfterInvoke = 'AfIv',
114  e_BeforeDisplay = 'BfDs',
115 
116  p_Area = 'Area',
117  p_Checked = 'Chkd',
118  p_AssociatedMenuAction = 'AssA',
119 
120  LastMenuActionScriptID
121 } ;
122 
123 //CLSIDs
124 // {FC2F7FA1-DF94-41ef-8C13-E7B51401C883}
125 #define kMenuAction_CLSID { 0xfc2f7fa1, 0xdf94, 0x41ef, { 0x8c, 0x13, 0xe7, 0xb5, 0x14, 0x1, 0xc8, 0x83 } }
126 // {81E98E8E-8825-4028-8FAD-51D5D4F68EBF}
127 #define kMenuActions_CLSID { 0x81e98e8e, 0x8825, 0x4028, { 0x8f, 0xad, 0x51, 0xd5, 0xd4, 0xf6, 0x8e, 0xbf } }
128 // {6EFFC754-5F78-43ae-9FBF-685A9CF33853}
129 #define kScriptMenuAction_CLSID { 0x6effc754, 0x5f78, 0x43ae, { 0x9f, 0xbf, 0x68, 0x5a, 0x9c, 0xf3, 0x38, 0x53 } }
130 // {31063219-95D9-4ad8-9BEC-0CE806787AF5}
131 #define kScriptMenuActions_CLSID { 0x31063219, 0x95d9, 0x4ad8, { 0x9b, 0xec, 0xc, 0xe8, 0x6, 0x78, 0x7a, 0xf5 } }
132 
133 // {3EFBCAD9-5B7D-47cc-B966-D9BC596D5F41}
134 #define kMenu_CLSID { 0x3efbcad9, 0x5b7d, 0x47cc, { 0xb9, 0x66, 0xd9, 0xbc, 0x59, 0x6d, 0x5f, 0x41 } }
135 // {AE3848F5-26F9-425f-B6CB-63C9919DE0DA}
136 #define kMenus_CLSID { 0xae3848f5, 0x26f9, 0x425f, { 0xb6, 0xcb, 0x63, 0xc9, 0x91, 0x9d, 0xe0, 0xda } }
137 // {35383B77-080D-471e-B8FB-02D6457E4576}
138 #define kMenuElement_CLSID { 0x35383b77, 0x80d, 0x471e, { 0xb8, 0xfb, 0x2, 0xd6, 0x45, 0x7e, 0x45, 0x76 } }
139 // {9BC922A4-70B0-42e3-880F-FBB9218CBE44}
140 #define kMenuElements_CLSID { 0x9bc922a4, 0x70b0, 0x42e3, { 0x88, 0xf, 0xfb, 0xb9, 0x21, 0x8c, 0xbe, 0x44 } }
141 // {5ACF4641-B36D-407e-A146-279FB1B88830}
142 #define kSubmenu_CLSID { 0x5acf4641, 0xb36d, 0x407e, { 0xa1, 0x46, 0x27, 0x9f, 0xb1, 0xb8, 0x88, 0x30 } }
143 // {915BC743-5075-4ce1-B6A3-51CF28518A91}
144 #define kSubmenus_CLSID { 0x915bc743, 0x5075, 0x4ce1, { 0xb6, 0xa3, 0x51, 0xcf, 0x28, 0x51, 0x8a, 0x91 } }
145 // {9B1C9CB0-0E2C-49ff-AEAD-E0B2D04A4E0F}
146 #define kMenuItem_CLSID { 0x9b1c9cb0, 0xe2c, 0x49ff, { 0xae, 0xad, 0xe0, 0xb2, 0xd0, 0x4a, 0x4e, 0xf } }
147 // {94A76A14-D4F0-4639-BCB0-3C58CF08DC42}
148 #define kMenuItems_CLSID { 0x94a76a14, 0xd4f0, 0x4639, { 0xbc, 0xb0, 0x3c, 0x58, 0xcf, 0x8, 0xdc, 0x42 } }
149 // {5908717A-CC47-41f9-AFFA-D89AAAFA428F}
150 #define kMenuSeparator_CLSID { 0x5908717a, 0xcc47, 0x41f9, { 0xaf, 0xfa, 0xd8, 0x9a, 0xaa, 0xfa, 0x42, 0x8f } }
151 // {E959211D-7888-4a36-86B5-C0643A8AC530}
152 #define kMenuSeparators_CLSID { 0xe959211d, 0x7888, 0x4a36, { 0x86, 0xb5, 0xc0, 0x64, 0x3a, 0x8a, 0xc5, 0x30 } }
153 
154 #endif // __ActionID__