11 #pragma warning disable 414 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 {
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;
27 [global::System.CodeDom.Compiler.GeneratedCodeAttribute(
"Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll",
"12.0.0.0")]
28 internal Microsoft.Office.Interop.Word.Application
Application;
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") {
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)]
44 this.
Application = this.GetHostItem<Microsoft.Office.Interop.Word.Application>(typeof(Microsoft.Office.Interop.Word.Application),
"Application");
46 global::System.Windows.Forms.
Application.EnableVisualStyles();
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)]
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)]
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)]
77 if ((this.DataHost ==
null)) {
80 if (this.DataHost.IsCacheInitialized) {
81 this.DataHost.FillCachedData(
this);
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)]
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)]
100 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
101 [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
103 this.DataHost.StartCaching(
this, MemberName);
107 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
108 [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
110 this.DataHost.StopCaching(
this, MemberName);
114 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
115 [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
117 return this.DataHost.IsCached(
this, MemberName);
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)]
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)]
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)]
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)]
157 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
158 [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
160 return this.DataHost.NeedsFill(
this, MemberName);
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)]
175 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
176 [global::System.CodeDom.Compiler.GeneratedCodeAttribute(
"Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll",
"12.0.0.0")]
185 private static global::Microsoft.Office.Tools.Word.ApplicationFactory
_factory;
198 throw new System.NotSupportedException();
203 internal static global::Microsoft.Office.Tools.Word.ApplicationFactory
Factory {
212 throw new System.NotSupportedException();
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 {
void BeginInitialization()
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>
void InitializeControls()
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
void InitializeCachedData()
static ThisAddIn _ThisAddIn
override void FinishInitialization()
void StartCaching(string MemberName)
Microsoft.Office.Core Office
global::System.Object missing
ThisAddIn(global::Microsoft.Office.Tools.Word.ApplicationFactory factory, global::System.IServiceProvider serviceProvider)
void InternalStartup()
此為設計工具支援所需的方法 - 請勿使用程式碼編輯器 修改這個方法的內容。
void InitializeComponents()