-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.Designer.cs
More file actions
214 lines (189 loc) · 12.4 KB
/
Config.Designer.cs
File metadata and controls
214 lines (189 loc) · 12.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GSC_Legend_Renderer {
using ESRI.ArcGIS.Framework;
using ESRI.ArcGIS.ArcMapUI;
using ESRI.ArcGIS.Editor;
using ESRI.ArcGIS.esriSystem;
using System;
using System.Collections.Generic;
using ESRI.ArcGIS.Desktop.AddIns;
/// <summary>
/// A class for looking up declarative information in the associated configuration xml file (.esriaddinx).
/// </summary>
internal static class ThisAddIn {
internal static string Name {
get {
return "GSC_Legend_Renderer";
}
}
internal static string AddInID {
get {
return "{13156a20-24c7-4fe5-bee4-9a02843d1d62}";
}
}
internal static string Company {
get {
return "Natural Resources Canada";
}
}
internal static string Version {
get {
return "1.3.1";
}
}
internal static string Description {
get {
return "Legend Renderer is a specialized tool that will produce a graphic legend from an " +
"input legend table.";
}
}
internal static string Author {
get {
return "Geological Survey Canada";
}
}
internal static string Date {
get {
return "2023-12-08";
}
}
internal static ESRI.ArcGIS.esriSystem.UID ToUID(this System.String id) {
ESRI.ArcGIS.esriSystem.UID uid = new ESRI.ArcGIS.esriSystem.UIDClass();
uid.Value = id;
return uid;
}
/// <summary>
/// A class for looking up Add-in id strings declared in the associated configuration xml file (.esriaddinx).
/// </summary>
internal class IDs {
/// <summary>
/// Returns 'Natural_Resources_Canada_GSC_Legend_Renderer_GSC_Legend_Renderer', the id declared for Add-in Button class 'Button_Legend_Renderer'
/// </summary>
internal static string Button_Legend_Renderer {
get {
return "Natural_Resources_Canada_GSC_Legend_Renderer_GSC_Legend_Renderer";
}
}
}
}
internal static class ArcMap
{
private static IApplication s_app = null;
private static IDocumentEvents_Event s_docEvent;
public static IApplication Application
{
get
{
if (s_app == null)
{
s_app = Internal.AddInStartupObject.GetHook<IMxApplication>() as IApplication;
if (s_app == null)
{
IEditor editorHost = Internal.AddInStartupObject.GetHook<IEditor>();
if (editorHost != null)
s_app = editorHost.Parent;
}
}
return s_app;
}
}
public static IMxDocument Document
{
get
{
if (Application != null)
return Application.Document as IMxDocument;
return null;
}
}
public static IMxApplication ThisApplication
{
get { return Application as IMxApplication; }
}
public static IDockableWindowManager DockableWindowManager
{
get { return Application as IDockableWindowManager; }
}
public static IDocumentEvents_Event Events
{
get
{
s_docEvent = Document as IDocumentEvents_Event;
return s_docEvent;
}
}
public static IEditor Editor
{
get
{
UID editorUID = new UID();
editorUID.Value = "esriEditor.Editor";
return Application.FindExtensionByCLSID(editorUID) as IEditor;
}
}
}
namespace Internal
{
[StartupObjectAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public sealed partial class AddInStartupObject : AddInEntryPoint
{
private static AddInStartupObject _sAddInHostManager;
private List<object> m_addinHooks = null;
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
public AddInStartupObject()
{
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
protected override bool Initialize(object hook)
{
bool createSingleton = _sAddInHostManager == null;
if (createSingleton)
{
_sAddInHostManager = this;
m_addinHooks = new List<object>();
m_addinHooks.Add(hook);
}
else if (!_sAddInHostManager.m_addinHooks.Contains(hook))
_sAddInHostManager.m_addinHooks.Add(hook);
return createSingleton;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
protected override void Shutdown()
{
_sAddInHostManager = null;
m_addinHooks = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
internal static T GetHook<T>() where T : class
{
if (_sAddInHostManager != null)
{
foreach (object o in _sAddInHostManager.m_addinHooks)
{
if (o is T)
return o as T;
}
}
return null;
}
// Expose this instance of Add-in class externally
public static AddInStartupObject GetThis()
{
return _sAddInHostManager;
}
}
}
}