InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SnipRunID.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 IDs used by the SnipRun plug-in.
24 //
25 //========================================================================================
26 
27 #ifndef __SnipRunID_h__
28 #define __SnipRunID_h__
29 
30 #include "SDKDef.h"
31 #include "SnipRunRezDefs.h"
32 
33 // Company:
34 #define kSnipRunCompanyKey kSDKDefPlugInCompanyKey // Company name used internally for menu paths and the like. Must be globally unique, only A-Z, 0-9, space and "_".
35 #define kSnipRunCompanyValue kSDKDefPlugInCompanyValue // Company name displayed externally.
36 
37 // Plug-in:
38 #define kSnipRunPluginName "SnippetRunner" // Name of this plug-in.
39 #define kSnipRunPrefixNumber 0x5D500 // Unique prefix number for this plug-in(*Must* be obtained from Adobe Developer Support).
40 #define kSnipRunVersion kSDKDefPluginVersionString // Version of this plug-in (for the About Box).
41 #define kSnipRunAuthor "Adobe Developer Technologies" // Author of this plug-in (for the About Box).
42 
43 // Plug-in Prefix: (please change kSnipRunPrefixNumber above to modify the prefix.)
44 #define kSnipRunPrefix RezLong(kSnipRunPrefixNumber) // The unique numeric prefix for all object model IDs for this plug-in.
45 #define kSnipRunStringPrefix SDK_DEF_STRINGIZE(kSnipRunPrefixNumber) // The string equivalent of the unique prefix number for this plug-in.
46 
47 // PluginID:
48 START_IDS()
49 
50 // ClassIDs:
51 
52 // InterfaceIDs:
53 
54 // ImplementationIDs:
55 
56 // ActionIDs:
57 
58 // WidgetIDs:
59 
60 // ScriptInfoIDs - SnippetRunner
61 // (NOTE: These are different from the one provided with InDesign CS online training session 16)
62 // ScriptInfoIDs - Snippet
63 
64 // ErrorCodes:
65 // (NOTE: These are different from the one provided with InDesign CS online training session 16)
66 
67 END_IDS()
68 
69 
70 // "About Plug-ins" sub-menu:
71 #define kSnipRunAboutMenuKey kSnipRunStringPrefix "kSnipRunAboutMenuKey"
72 #define kSnipRunAboutMenuPath kSDKDefStandardAboutMenuPath kSnipRunCompanyKey
73 
74 // "Plug-ins" sub-menu:
75 #define kSnipRunPluginsMenuKey kSnipRunStringPrefix "kSnipRunPluginsMenuKey"
76 #define kSnipRunPluginsMenuPath kSDKDefPlugInsStandardMenuPath kSnipRunCompanyKey kSDKDefDelimitMenuPath kSnipRunPluginsMenuKey
77 
78 // Menu item keys:
79 #define kSnipRunRunSnippetMenuItemKey kSnipRunStringPrefix "kSnipRunRunSnippetMenuItemKey"
80 #define kSnipRunShowParameterBoxMenuItemKey kSnipRunStringPrefix "kSnipRunShowParameterBoxMenuItemKey"
81 #define kSnipRunListSnippetsMenuItemKey kSnipRunStringPrefix "kSnipRunListSnippetsMenuItemKey"
82 
83 // Other StringKeys:
84 #define kSnipRunAboutBoxStringKey kSnipRunStringPrefix "kSnipRunAboutBoxStringKey"
85 #define kSnipRunPanelTitleKey kSnipRunStringPrefix "kSnipRunPanelTitleKey"
86 #define kSnipRunStaticTextKey kSnipRunStringPrefix "kSnipRunStaticTextKey"
87 #define kSnipRunInternalPopupMenuNameKey kSnipRunStringPrefix "kSnipRunInternalPopupMenuNameKey"
88 #define kSnipRunTargetMenuPath kSnipRunInternalPopupMenuNameKey
89 
90 #define kSnipRunNameStringKey kSnipRunStringPrefix "kSnipRunNameStringKey"
91 #define kSnipRunPreconditionsStringKey kSnipRunStringPrefix "kSnipRunPreconditionsStringKey"
92 #define kSnipRunParametersStringKey kSnipRunStringPrefix "kSnipRunParametersStringKey"
93 #define kSnipRunGoStringKey kSnipRunStringPrefix "kSnipRunGoStringKey"
94 #define kSnipRunLogStringKey kSnipRunStringPrefix "kSnipRunLogStringKey"
95 #define kSnipRunTraceLogStringKey kSnipRunStringPrefix "kSnipRunTraceLogStringKey"
96 #define kSnipRunGoTipStringKey kSnipRunStringPrefix "kSnipRunGoTipStringKey"
97 #define kSnipRunNameTipStringKey kSnipRunStringPrefix "kSnipRunNameTipStringKey"
98 #define kSnipRunPreconditionsTipStringKey kSnipRunStringPrefix "kSnipRunPreconditionsTipStringKey"
99 #define kSnipRunParametersTipStringKey kSnipRunStringPrefix "kSnipRunParametersTipStringKey"
100 #define kSnipRunLogTipStringKey kSnipRunStringPrefix "kSnipRunLogTipStringKey"
101 #define kSnipRunHelpTipStringKey kSnipRunStringPrefix "kSnipRunHelpTipStringKey"
102 #define kSnipRunTraceTipStringKey kSnipRunStringPrefix "kSnipRunTraceTipStringKey"
103 #define kSnipRunClearLogTipStringKey kSnipRunStringPrefix "kSnipRunClearLogTipStringKey"
104 #define kSnipRunSaveLogTipStringKey kSnipRunStringPrefix "kSnipRunSaveLogTipStringKey"
105 #define kSnipRunFamilyStringKey kSnipRunStringPrefix "kSnipRunFamilyStringKey"
106 #define kSnipRunDefaultFilenameStringKey kSnipRunStringPrefix "kSnipRunDefaultFilenameStringKey"
107 #define kSnipRunSaveDialogNameStringKey kSnipRunStringPrefix "kSnipRunSaveDialogNameStringKey"
108 #define kSnipRunSaveLogFailedStringKey kSnipRunStringPrefix "kSnipRunSaveLogFailedStringKey"
109 
110 #define kSnipRunDialogTitleKey kSnipRunStringPrefix "kSnipRunDialogTitleKey"
111 
112 #define kSnipRunSnippetNotFoundErrorCodeKey kSnipRunStringPrefix "kSnipRunSnippetNotFoundErrorCodeKey"
113 #define kSnipRunEOFErrorCodeKey kSnipRunStringPrefix "kSnipRunEOFErrorCodeKey"
114 #define kSnipRunCannotRunSnippetErrorCodeKey kSnipRunStringPrefix "kSnipRunCannotRunSnippetErrorCodeKey"
115 #define kSnipRunInvalidOperationWhenPanelIsInvisibleErrorCodeKey kSnipRunStringPrefix "kSnipRunInvalidOperationWhenPanelIsInvisibleErrorCodeKey"
116 #define kSnipRunInternalErrorStringKey kSnipRunStringPrefix "kSnipRunInternalErrorStringKey"
117 #define kSnipRunQuickApplyFilterKey kSnipRunStringPrefix "kSnipRunQuickApplyFilterKey"
118 #define kSnipRunQuickApplyNameKey kSnipRunStringPrefix "kSnipRunQuickApplyNameKey"
119 
120 
121 #define kSnipRunDefaultSnippetName "CreateDocument"
122 #define kSnipRunDefaultSnippetParameters "612 792 1 1"
123 #define kSnipRunHelloCSXSMessage "kSnipRunHelloCSXSMessage"
124 
125 // Menu item positions:
126 #define kSnipRunShowParameterBoxMenuItemPosition 1.0
127 #define kSnipRunSeparator1MenuItemPosition 10.0
128 #define kSnipRunAboutThisMenuItemPosition 11.0
129 
130 // Initial data format version numbers
131 #define kSnipRunFirstMajorFormatNumber kSDKDef_30_PersistMajorVersionNumber
132 #define kSnipRunFirstMinorFormatNumber kSDKDef_30_PersistMinorVersionNumber
133 
134 // Data format version numbers for the PluginVersion resource
135 #define kSnipRunCurrentMajorFormatNumber kSnipRunFirstMajorFormatNumber // most recent major format change
136 #define kSnipRunCurrentMinorFormatNumber kSnipRunFirstMinorFormatNumber // most recent minor format change
137 
138 #endif // __SnipRunID_h__
139 
140 // End, SnipRunID.h.