InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SnipRunScriptingDefs.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Adobe Developer Technologies
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 // Defines Scripting IDs used by the SnipRun plug-in.
24 //
25 //========================================================================================
26 
27 #ifndef __SnipRunScriptingDefs_h__
28 #define __SnipRunScriptingDefs_h__
29 
30 
31 // Suite ScriptIDs
32 enum SnipRunScriptSuites
33 {
34  s_SnipRunSuite = 'SRSU' // The snippet runner suite
35 };
36 
37 /*
38 // SnippetRunner IDs
39 */
40 
41 // GUID for kSnipRunObjectScriptElement script object (only one GUID needed cause it's a singlteton)
42 // {6EB7D3B3-64A0-4319-900A-ED1103671EC1}
43 #define kSnipRun_CLSID { 0x6eb7d3b3, 0x64a0, 0x4319, { 0x90, 0xa, 0xed, 0x11, 0x3, 0x67, 0x1e, 0xc1 } }
44 
45 // ScriptIDs
46 // New ScriptIDs must be registered with Adobe Developer Support to prevent conflict with other scriptable plug-ins.
47 // See the Making Your Plug-in Scriptable tech note.
48 
49 // Class ScriptIDs
50 enum SnipRunScriptClasses
51 {
52  c_SnipRun = 'SRSR' // The snippet runner object
53 };
54 
55 // Event ScriptIDs
56 enum SnipRunScriptEvents
57 {
58  e_SnipRunIsSnippetRegistered = 'SRir', // is snippet registered
59  e_SnipRunGetSnipLog = 'SRgl', // get sniplog text
60  e_SnipRunClearSnipLog = 'SRcl', // clear sniplog
61  e_SnipRunSaveSnipLog = 'SRsl' // save sniplog to file
62 };
63  // Property ScriptIDs
64 enum SnipRunScriptProperties
65 {
66  p_SnipRun = 'SRob', // The snippet runner object property to hang off of Application
67  p_SnipRunPanelVisibility = 'SRpv', // snippet runner panel visibility
68  p_SnipRunTraceMode = 'SRtM' // snippet runner trace mode (you can set it on in debug build only)
69 };
70 // Parameter ScriptIDs
71 enum SnipRunScriptParameters
72 {
73  p_SnipRunSnippetToCheck = 'SRtc' // snippet to check
74 };
75 // Enum ScriptIDs
76 enum SnipRunScriptEnums
77 {
78  en_SnipRunPanelVisibility = 'SRvi', // visibiilty enums
79  en_SnipRunPanelVisible = 'SRvs',
80  en_SnipRunPanelInvisible = 'SRin',
81  en_SnipRunTraceMode = 'SRtm', // trace mode enums
82  en_SnipRunTraceOn = 'SRtn',
83  en_SnipRunTraceOff = 'SRtF'
84 };
85 
86 /*
87 // Snippet IDs
88 */
89 
90 // GUIDs kSnpRunnableObjectScriptElement script object (two GUIDs needed cause it has a collection)
91 // {F10D1BE5-6222-4c54-BCED-65785166B897}
92 #define kSnpRunnable_CLSID { 0xf10d1be5, 0x6222, 0x4c54, { 0xbc, 0xed, 0x65, 0x78, 0x51, 0x66, 0xb8, 0x97 } }
93 
94 // {9FD5648B-0308-4e11-8FF8-F4E123D7CCC2}
95 #define kSnpRunnables_CLSID { 0x9fd5648b, 0x308, 0x4e11, { 0x8f, 0xf8, 0xf4, 0xe1, 0x23, 0xd7, 0xcc, 0xc2 } }
96 
97 // ScriptIDs
98 
99 // Class ScriptIDs
100 enum SnpRunnableScriptClasses
101 {
102  c_SnpRunnable = 'SRrN', // The SnpRunnable object (a snippet)
103  c_SnpRunnables = 'SRRn' // The SnpRunnables object (plural)
104 };
105 // Event ScriptIDs
106 enum SnpRunnableScriptEvents
107 {
108  e_SnpRunnableCanRunSnippet = 'SRcr', // can snippet be run?
109  e_SnpRunnableRunSnippet = 'SRrs', // run snippet
110  e_SnpRunnableSetupContext = 'SRsc' // set up the snippet context in order to run
111 };
112 // Property ScriptIDs
113 enum SnpRunnableScriptProperties
114 {
115  p_SnpRunnableName = 'SRna', // snippet name (string)
116  p_SnpRunnableDescription = 'SRde', // snippet description (string)
117  p_SnpRunnablePreconditions = 'SRpr', // snippet preconditions (string)
118  p_SnpRunnableCategories = 'SRca' // snippet categories (array of strings)
119 };
120 // Parameter ScriptIDs
121 enum SnpRunnableScriptParameters
122 {
123  p_SnpRunnableEnableParameterDialog = 'SRep', // snippet run: enable parameter dialogs
124  p_SnpRunnableParameters = 'SRpa' // snippet run: parameters
125 };
126 #endif //#ifndef __SnipRunScriptingDefs_h__