@@ -26,15 +26,15 @@ interface
26
26
27
27
28
28
type
29
- // / <summary>COM object that implements the methods of the IWBExternal12
29
+ // / <summary>COM object that implements the methods of the IWBExternal14
30
30
// / interface that extend the browser control's 'external' object.</summary>
31
31
// / <remarks>
32
32
// / <para>This class enables application code to be called from JavaScript
33
33
// / running in the browser control.</para>
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, IWBExternal13 , ISetNotifier)
37
+ TWBExternal = class (TAutoIntfObject, IWBExternal14 , ISetNotifier)
38
38
strict private
39
39
var
40
40
// / <summary>Object used to call application code in response to
@@ -54,7 +54,7 @@ TWBExternal = class(TAutoIntfObject, IWBExternal13, ISetNotifier)
54
54
constructor Create;
55
55
56
56
// / <summary>Updates database from internet.</summary>
57
- // / <remarks>Method of IWBExternal12 .</remarks>
57
+ // / <remarks>Method of IWBExternal14 .</remarks>
58
58
procedure UpdateDbase ; safecall;
59
59
60
60
// / <summary>Displays a named snippet.</summary>
@@ -64,20 +64,20 @@ TWBExternal = class(TAutoIntfObject, IWBExternal13, ISetNotifier)
64
64
// / defined.</param>
65
65
// / <param name="NewTab">WordBool [in] Whether to display snippet in a new
66
66
// / tab.</param>
67
- // / <remarks>Method of IWBExternal12 .</remarks>
67
+ // / <remarks>Method of IWBExternal14 .</remarks>
68
68
procedure DisplaySnippet (const SnippetName: WideString;
69
69
UserDefined: WordBool; NewTab: WordBool); safecall;
70
70
71
71
// / <summary>Displays the Configure Compilers dialogue box.</summary>
72
- // / <remarks>Method of IWBExternal12 .</remarks>
72
+ // / <remarks>Method of IWBExternal14 .</remarks>
73
73
procedure ConfigCompilers ; safecall;
74
74
75
75
// / <summary>Edits a named snippet.</summary>
76
76
// / <param name="SnippetName">WideString [in] Name of snippet to be edited.
77
77
// / </param>
78
78
// / <remarks>
79
79
// / <para>The named snippet must be user defined.</para>
80
- // / <para>Method of IWBExternal13 .</para>
80
+ // / <para>Method of IWBExternal14 .</para>
81
81
// / </remarks>
82
82
procedure EditSnippet (const SnippetName: WideString); safecall;
83
83
@@ -86,30 +86,26 @@ TWBExternal = class(TAutoIntfObject, IWBExternal13, ISetNotifier)
86
86
// / </param>
87
87
// / <param name="NewTab">WordBool [in] Whether to display category in a new
88
88
// / tab.</param>
89
- // / <remarks>Method of IWBExternal13 .</remarks>
89
+ // / <remarks>Method of IWBExternal14 .</remarks>
90
90
procedure DisplayCategory (const CatID: WideString; NewTab: WordBool);
91
91
safecall;
92
92
93
93
// / <summary>Opens Snippet Editor ready to create a new snippet.</summary>
94
- // / <remarks>Method of IWBExternal13 .</remarks>
94
+ // / <remarks>Method of IWBExternal14 .</remarks>
95
95
procedure NewSnippet ; safecall;
96
96
97
97
// / <summary>Shows latest news items from CodeSnip news feed.</summary>
98
- // / <remarks>Method of IWBExternal13 .</remarks>
98
+ // / <remarks>Method of IWBExternal14 .</remarks>
99
99
procedure ShowNews ; safecall;
100
100
101
- // / <summary>Checks for program updates.</summary>
102
- // / <remarks>Method of IWBExternal13.</remarks>
103
- procedure CheckForUpdates ; safecall;
104
-
105
101
// / <summary>Displays the program's About Box.</summary>
106
- // / <remarks>Method of IWBExternal13 .</remarks>
102
+ // / <remarks>Method of IWBExternal14 .</remarks>
107
103
procedure ShowAboutBox ; safecall;
108
104
109
105
// / <summary>Displays specified page of the Preferences dialogue.</summary>
110
106
// / <param name="ClsName">WideString [in] Class name of the frame that
111
107
// / implements the required preferences page.</param>
112
- // / <remarks>Method of IWBExternal13 .</remarks>
108
+ // / <remarks>Method of IWBExternal14 .</remarks>
113
109
procedure ShowPrefsPage (const ClsName: WideString); safecall;
114
110
115
111
// / <summary>Records the notifier object that is used to call application
@@ -133,16 +129,6 @@ implementation
133
129
134
130
{ TWBExternal }
135
131
136
- procedure TWBExternal.CheckForUpdates ;
137
- begin
138
- try
139
- if Assigned(fNotifier) then
140
- fNotifier.CheckForUpdates;
141
- except
142
- HandleException;
143
- end ;
144
- end ;
145
-
146
132
procedure TWBExternal.ConfigCompilers ;
147
133
begin
148
134
try
@@ -162,7 +148,7 @@ constructor TWBExternal.Create;
162
148
ExeName := TAppInfo.AppExeFilePath;
163
149
OleCheck(LoadTypeLib(PWideChar(ExeName), TypeLib));
164
150
// Create the object using type library
165
- inherited Create(TypeLib, IWBExternal13 );
151
+ inherited Create(TypeLib, IWBExternal14 );
166
152
end ;
167
153
168
154
procedure TWBExternal.DisplayCategory (const CatID: WideString;
0 commit comments