{$include category.lib.pas} //Include the library var exportData : String; //this field holds the exported data var exportCounter : Integer; //this field holds the current number of already exported points var lastCategory : String; //this field holds the name of the last exported category {This function returns the extension of the exported file} function ExportExtension: string; begin result := 'HTML'; end; {This function returns the description of this export format} function ExportDescription: string; begin result := 'HTML list - sorted by category'; end; {This function returns the data about one point, which should be written to the body of the export file} function ExportPoint: string; begin //Only divide points in to categories, do not generate any output yet! CatAddGC(GC,GC.CacheType); //Register the processed point to the category library. Use the cachetype as the category Result := ''; //We are using category library as a workaround. No data must be exported to the file at this stage. end; {This function generates the HTML output based on the given TGeo} function GenerateOutputGeo(geo :TGeo): string; var n: integer; wcnt: integer; begin wcnt := 0; for n := 0 to geo.Waypoints.Count - 1 do if geo.Waypoints[n].IsListed then inc(wcnt); Result := '