My Project
C:/Users/Lab_411_02/Desktop/Violet1 - dox/violet/violet/ThisAddIn.Designer.cs
查看本檔案說明文件.
1 //------------------------------------------------------------------------------
2 // <auto-generated>
3 // 這段程式碼是由工具產生的。
4 // 執行階段版本:4.0.30319.18444
5 //
6 // 對這個檔案所做的變更可能會造成錯誤的行為,而且如果重新產生程式碼,
7 // 變更將會遺失。
8 // </auto-generated>
9 //------------------------------------------------------------------------------
10 
11 #pragma warning disable 414
12 namespace violet {
13 
14 
16  [Microsoft.VisualStudio.Tools.Applications.Runtime.StartupObjectAttribute(0)]
17  [global::System.Security.Permissions.PermissionSetAttribute(global::System.Security.Permissions.SecurityAction.Demand, Name="FullTrust")]
18  public sealed partial class ThisAddIn : Microsoft.Office.Tools.AddInBase {
19 
20  internal Microsoft.Office.Tools.CustomTaskPaneCollection CustomTaskPanes;
21 
22  internal Microsoft.Office.Tools.SmartTagCollection VstoSmartTags;
23 
24  [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "12.0.0.0")]
25  private global::System.Object missing = global::System.Type.Missing;
26 
27  [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "12.0.0.0")]
28  internal Microsoft.Office.Interop.Word.Application Application;
29 
31  [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
32  [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
33  public ThisAddIn(global::Microsoft.Office.Tools.Word.ApplicationFactory factory, global::System.IServiceProvider serviceProvider) :
34  base(factory, serviceProvider, "AddIn", "ThisAddIn") {
35  Globals.Factory = factory;
36  }
37 
39  [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
40  [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "12.0.0.0")]
41  [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
42  protected override void Initialize() {
43  base.Initialize();
44  this.Application = this.GetHostItem<Microsoft.Office.Interop.Word.Application>(typeof(Microsoft.Office.Interop.Word.Application), "Application");
45  Globals.ThisAddIn = this;
46  global::System.Windows.Forms.Application.EnableVisualStyles();
47  this.InitializeCachedData();
48  this.InitializeControls();
49  this.InitializeComponents();
50  this.InitializeData();
51  }
52 
54  [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
55  [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "12.0.0.0")]
56  [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
57  protected override void FinishInitialization() {
58  this.InternalStartup();
59  this.OnStartup();
60  }
61 
63  [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
64  [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "12.0.0.0")]
65  [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
66  protected override void InitializeDataBindings() {
67  this.BeginInitialization();
68  this.BindToData();
69  this.EndInitialization();
70  }
71 
73  [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
74  [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "12.0.0.0")]
75  [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
76  private void InitializeCachedData() {
77  if ((this.DataHost == null)) {
78  return;
79  }
80  if (this.DataHost.IsCacheInitialized) {
81  this.DataHost.FillCachedData(this);
82  }
83  }
84 
86  [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
87  [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "12.0.0.0")]
88  [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
89  private void InitializeData() {
90  }
91 
93  [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
94  [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "12.0.0.0")]
95  [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
96  private void BindToData() {
97  }
98 
100  [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
101  [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
102  private void StartCaching(string MemberName) {
103  this.DataHost.StartCaching(this, MemberName);
104  }
105 
107  [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
108  [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
109  private void StopCaching(string MemberName) {
110  this.DataHost.StopCaching(this, MemberName);
111  }
112 
114  [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
115  [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
116  private bool IsCached(string MemberName) {
117  return this.DataHost.IsCached(this, MemberName);
118  }
119 
121  [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
122  [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "12.0.0.0")]
123  [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
124  private void BeginInitialization() {
125  this.BeginInit();
126  this.CustomTaskPanes.BeginInit();
127  this.VstoSmartTags.BeginInit();
128  }
129 
131  [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
132  [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "12.0.0.0")]
133  [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
134  private void EndInitialization() {
135  this.VstoSmartTags.EndInit();
136  this.CustomTaskPanes.EndInit();
137  this.EndInit();
138  }
139 
141  [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
142  [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "12.0.0.0")]
143  [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
144  private void InitializeControls() {
145  this.CustomTaskPanes = Globals.Factory.CreateCustomTaskPaneCollection(null, null, "CustomTaskPanes", "CustomTaskPanes", this);
146  this.VstoSmartTags = Globals.Factory.CreateSmartTagCollection(null, null, "VstoSmartTags", "VstoSmartTags", this);
147  }
148 
150  [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
151  [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "12.0.0.0")]
152  [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
153  private void InitializeComponents() {
154  }
155 
157  [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
158  [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
159  private bool NeedsFill(string MemberName) {
160  return this.DataHost.NeedsFill(this, MemberName);
161  }
162 
164  [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
165  [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "12.0.0.0")]
166  [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
167  protected override void OnShutdown() {
168  this.VstoSmartTags.Dispose();
169  this.CustomTaskPanes.Dispose();
170  base.OnShutdown();
171  }
172  }
173 
175  [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
176  [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "12.0.0.0")]
177  internal sealed partial class Globals {
178 
180  private Globals() {
181  }
182 
183  private static ThisAddIn _ThisAddIn;
184 
185  private static global::Microsoft.Office.Tools.Word.ApplicationFactory _factory;
186 
188 
189  internal static ThisAddIn ThisAddIn {
190  get {
191  return _ThisAddIn;
192  }
193  set {
194  if ((_ThisAddIn == null)) {
195  _ThisAddIn = value;
196  }
197  else {
198  throw new System.NotSupportedException();
199  }
200  }
201  }
202 
203  internal static global::Microsoft.Office.Tools.Word.ApplicationFactory Factory {
204  get {
205  return _factory;
206  }
207  set {
208  if ((_factory == null)) {
209  _factory = value;
210  }
211  else {
212  throw new System.NotSupportedException();
213  }
214  }
215  }
216 
217  internal static ThisRibbonCollection Ribbons {
218  get {
219  if ((_ThisRibbonCollection == null)) {
220  _ThisRibbonCollection = new ThisRibbonCollection(_factory.GetRibbonFactory());
221  }
222  return _ThisRibbonCollection;
223  }
224  }
225  }
226 
228  [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
229  [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "12.0.0.0")]
230  internal sealed partial class ThisRibbonCollection : Microsoft.Office.Tools.Ribbon.RibbonCollectionBase {
231 
233  internal ThisRibbonCollection(global::Microsoft.Office.Tools.Ribbon.RibbonFactory factory) :
234  base(factory) {
235  }
236  }
237 }
bool NeedsFill(string MemberName)
static ThisRibbonCollection _ThisRibbonCollection
internal ThisRibbonCollection(global::Microsoft.Office.Tools.Ribbon.RibbonFactory factory)
override void Initialize()
static internal ThisRibbonCollection Ribbons
internal Microsoft.Office.Interop.Word.Application Application
internal Microsoft.Office.Tools.SmartTagCollection VstoSmartTags
static global::Microsoft.Office.Tools.Word.ApplicationFactory _factory
bool IsCached(string MemberName)
void StopCaching(string MemberName)
使UNIX上開發的C程式移植到windows上 /summary>
Definition: Form1.cs:19
static internal global::Microsoft.Office.Tools.Word.ApplicationFactory Factory
override void InitializeDataBindings()
override void OnShutdown()
internal Microsoft.Office.Tools.CustomTaskPaneCollection CustomTaskPanes
static internal ThisAddIn ThisAddIn
static ThisAddIn _ThisAddIn
override void FinishInitialization()
void StartCaching(string MemberName)
Microsoft.Office.Core Office
Definition: ThisAddIn.cs:7
global::System.Object missing
ThisAddIn(global::Microsoft.Office.Tools.Word.ApplicationFactory factory, global::System.IServiceProvider serviceProvider)
void InternalStartup()
此為設計工具支援所需的方法 - 請勿使用程式碼編輯器 修改這個方法的內容。
Definition: ThisAddIn.cs:37