@@ -34,7 +34,7 @@ interface
34
34
// / <para>The methods a declared in the type library that is defined in
35
35
// / External.idl.</para>
36
36
// / </remarks>
37
- TWBExternal = class (TAutoIntfObject, IWBExternal12 , ISetNotifier)
37
+ TWBExternal = class (TAutoIntfObject, IWBExternal13 , ISetNotifier)
38
38
strict private
39
39
var
40
40
// / <summary>Object used to call application code in response to
@@ -77,43 +77,39 @@ TWBExternal = class(TAutoIntfObject, IWBExternal12, ISetNotifier)
77
77
// / </param>
78
78
// / <remarks>
79
79
// / <para>The named snippet must be user defined.</para>
80
- // / <para>Method of IWBExternal12 .</para>
80
+ // / <para>Method of IWBExternal13 .</para>
81
81
// / </remarks>
82
82
procedure EditSnippet (const SnippetName: WideString); safecall;
83
83
84
- // / <summary>Displays the Donate dialogue box.</summary>
85
- // / <remarks>Method of IWBExternal12.</remarks>
86
- procedure Donate ; safecall;
87
-
88
84
// / <summary>Displays a named category.</summary>
89
85
// / <param name="CatID">WideString [in] ID of category to be displayed.
90
86
// / </param>
91
87
// / <param name="NewTab">WordBool [in] Whether to display category in a new
92
88
// / tab.</param>
93
- // / <remarks>Method of IWBExternal12 .</remarks>
89
+ // / <remarks>Method of IWBExternal13 .</remarks>
94
90
procedure DisplayCategory (const CatID: WideString; NewTab: WordBool);
95
91
safecall;
96
92
97
93
// / <summary>Opens Snippet Editor ready to create a new snippet.</summary>
98
- // / <remarks>Method of IWBExternal12 .</remarks>
94
+ // / <remarks>Method of IWBExternal13 .</remarks>
99
95
procedure NewSnippet ; safecall;
100
96
101
97
// / <summary>Shows latest news items from CodeSnip news feed.</summary>
102
- // / <remarks>Method of IWBExternal12 .</remarks>
98
+ // / <remarks>Method of IWBExternal13 .</remarks>
103
99
procedure ShowNews ; safecall;
104
100
105
101
// / <summary>Checks for program updates.</summary>
106
- // / <remarks>Method of IWBExternal12 .</remarks>
102
+ // / <remarks>Method of IWBExternal13 .</remarks>
107
103
procedure CheckForUpdates ; safecall;
108
104
109
105
// / <summary>Displays the program's About Box.</summary>
110
- // / <remarks>Method of IWBExternal12 .</remarks>
106
+ // / <remarks>Method of IWBExternal13 .</remarks>
111
107
procedure ShowAboutBox ; safecall;
112
108
113
109
// / <summary>Displays specified page of the Preferences dialogue.</summary>
114
110
// / <param name="ClsName">WideString [in] Class name of the frame that
115
111
// / implements the required preferences page.</param>
116
- // / <remarks>Method of IWBExternal12 .</remarks>
112
+ // / <remarks>Method of IWBExternal13 .</remarks>
117
113
procedure ShowPrefsPage (const ClsName: WideString); safecall;
118
114
119
115
// / <summary>Records the notifier object that is used to call application
@@ -166,7 +162,7 @@ constructor TWBExternal.Create;
166
162
ExeName := TAppInfo.AppExeFilePath;
167
163
OleCheck(LoadTypeLib(PWideChar(ExeName), TypeLib));
168
164
// Create the object using type library
169
- inherited Create(TypeLib, IWBExternal12 );
165
+ inherited Create(TypeLib, IWBExternal13 );
170
166
end ;
171
167
172
168
procedure TWBExternal.DisplayCategory (const CatID: WideString;
@@ -191,16 +187,6 @@ procedure TWBExternal.DisplaySnippet(const SnippetName: WideString;
191
187
end ;
192
188
end ;
193
189
194
- procedure TWBExternal.Donate ;
195
- begin
196
- try
197
- if Assigned(fNotifier) then
198
- fNotifier.Donate;
199
- except
200
- HandleException;
201
- end ;
202
- end ;
203
-
204
190
procedure TWBExternal.EditSnippet (const SnippetName: WideString);
205
191
begin
206
192
try
0 commit comments