@@ -34,7 +34,7 @@ interface
3434 // / <para>The methods a declared in the type library that is defined in
3535 // / External.idl.</para>
3636 // / </remarks>
37- TWBExternal = class (TAutoIntfObject, IWBExternal12 , ISetNotifier)
37+ TWBExternal = class (TAutoIntfObject, IWBExternal13 , ISetNotifier)
3838 strict private
3939 var
4040 // / <summary>Object used to call application code in response to
@@ -77,43 +77,39 @@ TWBExternal = class(TAutoIntfObject, IWBExternal12, ISetNotifier)
7777 // / </param>
7878 // / <remarks>
7979 // / <para>The named snippet must be user defined.</para>
80- // / <para>Method of IWBExternal12 .</para>
80+ // / <para>Method of IWBExternal13 .</para>
8181 // / </remarks>
8282 procedure EditSnippet (const SnippetName: WideString); safecall;
8383
84- // / <summary>Displays the Donate dialogue box.</summary>
85- // / <remarks>Method of IWBExternal12.</remarks>
86- procedure Donate ; safecall;
87-
8884 // / <summary>Displays a named category.</summary>
8985 // / <param name="CatID">WideString [in] ID of category to be displayed.
9086 // / </param>
9187 // / <param name="NewTab">WordBool [in] Whether to display category in a new
9288 // / tab.</param>
93- // / <remarks>Method of IWBExternal12 .</remarks>
89+ // / <remarks>Method of IWBExternal13 .</remarks>
9490 procedure DisplayCategory (const CatID: WideString; NewTab: WordBool);
9591 safecall;
9692
9793 // / <summary>Opens Snippet Editor ready to create a new snippet.</summary>
98- // / <remarks>Method of IWBExternal12 .</remarks>
94+ // / <remarks>Method of IWBExternal13 .</remarks>
9995 procedure NewSnippet ; safecall;
10096
10197 // / <summary>Shows latest news items from CodeSnip news feed.</summary>
102- // / <remarks>Method of IWBExternal12 .</remarks>
98+ // / <remarks>Method of IWBExternal13 .</remarks>
10399 procedure ShowNews ; safecall;
104100
105101 // / <summary>Checks for program updates.</summary>
106- // / <remarks>Method of IWBExternal12 .</remarks>
102+ // / <remarks>Method of IWBExternal13 .</remarks>
107103 procedure CheckForUpdates ; safecall;
108104
109105 // / <summary>Displays the program's About Box.</summary>
110- // / <remarks>Method of IWBExternal12 .</remarks>
106+ // / <remarks>Method of IWBExternal13 .</remarks>
111107 procedure ShowAboutBox ; safecall;
112108
113109 // / <summary>Displays specified page of the Preferences dialogue.</summary>
114110 // / <param name="ClsName">WideString [in] Class name of the frame that
115111 // / implements the required preferences page.</param>
116- // / <remarks>Method of IWBExternal12 .</remarks>
112+ // / <remarks>Method of IWBExternal13 .</remarks>
117113 procedure ShowPrefsPage (const ClsName: WideString); safecall;
118114
119115 // / <summary>Records the notifier object that is used to call application
@@ -166,7 +162,7 @@ constructor TWBExternal.Create;
166162 ExeName := TAppInfo.AppExeFilePath;
167163 OleCheck(LoadTypeLib(PWideChar(ExeName), TypeLib));
168164 // Create the object using type library
169- inherited Create(TypeLib, IWBExternal12 );
165+ inherited Create(TypeLib, IWBExternal13 );
170166end ;
171167
172168procedure TWBExternal.DisplayCategory (const CatID: WideString;
@@ -191,16 +187,6 @@ procedure TWBExternal.DisplaySnippet(const SnippetName: WideString;
191187 end ;
192188end ;
193189
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-
204190procedure TWBExternal.EditSnippet (const SnippetName: WideString);
205191begin
206192 try
0 commit comments