@@ -27,22 +27,17 @@ interface
2727 // / <summary>Type of handler for events triggered by TSaveSourceDlg to check
2828 // / if a file type supports syntax highlighting.</summary>
2929 // / <param name="Sender">TObject [in] Object triggering event.</param>
30- // / <param name="Ext">string [in] Extension that defines type of file being
31- // / queried.</param>
3230 // / <param name="CanHilite">Boolean [in/out] Set to true if file type
3331 // / supports syntax highlighting.</param>
34- THiliteQuery = procedure(Sender: TObject; const Ext: string;
35- var CanHilite: Boolean) of object ;
32+ THiliteQuery = procedure(Sender: TObject; var CanHilite: Boolean) of object ;
3633
3734type
3835 // / <summary>Type of handler for event triggered by TSaveSourceDlg to get
3936 // / list of encodings supported for a file type.</summary>
4037 // / <param name="Sender">TObject [in] Object triggering event.</param>
41- // / <param name="FilterIdx">string [in] Filter index that specifies the type
42- // / of file being queried.</param>
4338 // / <param name="Encodings">TSourceFileEncodings [in/out] Assigned an array
4439 // / of records that specify supported encodings.</param>
45- TEncodingQuery = procedure(Sender: TObject; const FilterIdx: Integer;
40+ TEncodingQuery = procedure(Sender: TObject;
4641 var Encodings: TSourceFileEncodings) of object ;
4742
4843type
@@ -475,7 +470,7 @@ procedure TSaveSourceDlg.DoTypeChange;
475470 // Update enabled state of syntax highlighter checkbox
476471 CanHilite := False;
477472 if Assigned(fOnHiliteQuery) then
478- fOnHiliteQuery(Self, SelectedExt, CanHilite);
473+ fOnHiliteQuery(Self, CanHilite);
479474 fChkSyntaxHilite.Enabled := CanHilite;
480475
481476 // Store selected type
@@ -485,7 +480,7 @@ procedure TSaveSourceDlg.DoTypeChange;
485480 // handle OnEncodingQuery)
486481 SetLength(Encodings, 0 );
487482 if Assigned(fOnEncodingQuery) then
488- fOnEncodingQuery(Self, FilterIndex, Encodings);
483+ fOnEncodingQuery(Self, Encodings);
489484 if Length(Encodings) = 0 then
490485 Encodings := TSourceFileEncodings.Create(
491486 TSourceFileEncoding.Create(etSysDefault, sANSIEncoding)
0 commit comments