blob: c5486bb7b0fb21edbdca0f7694975bb207f8b4f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
unit dvHelpers;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils;
const
OWN_HELP_MARKER = '[DOCVIEWHELP]';
function GetOwnHelpFileName: String;
function FindHelpFile(const AFilename: string): string;
implementation
uses
fpg_utils
;
function GetOwnHelpFileName: String;
//var
// tmpLanguage : String;
begin
//tmpLanguage := getLanguage;
//if tmpLanguage = '' then
//begin
// tmpLanguage := GetEnv(LanguageEnvironmentVar)
//end;
//
//result := FindDefaultLanguageHelpFile('NewView', tmpLanguage);
{ TODO -oGraeme -cown help : Improve own help file location }
result := fpgExtractFilePath(ParamStr(0)) + 'docview.inf';
end;
// Given a "filename" which may include a path, find it in various paths and extensions
function FindHelpFile(const AFilename: string): string;
begin
{ TODO -ograemeg -csearch files : Implement searching know locations }
Result := AFileName;
end;
end.
|