summaryrefslogtreecommitdiff
path: root/src/docview.lpr
blob: 32a80f3b598c828cb2dec2c491f2cd51874b76a9 (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
program docview;

{$mode objfpc}{$H+}

uses
  {$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
  {$ENDIF}{$ENDIF}
  Classes,
  {$IFDEF Timing}EpikTimer,{$ENDIF}
  fpg_main, frm_main, IPFEscapeCodes, HelpTopic, CompareWordUnit, SearchTable,
  TextSearchQuery, nvUtilities, nvNullObjects, HelpFile, SearchUnit,
  fpg_cmdlineparams, customstyle, IPFFileFormatUnit, HelpWindowDimensions,
  NewViewConstantsUnit, SettingsUnit, RichTextStyleUnit, CanvasFontManager,
  ACLStringUtility, RichTextDocumentUnit, RichTextView, RichTextLayoutUnit,
  RichTextDisplayUnit, dvconstants, dvHelpers;


procedure MainProc;
var
  frm: TMainForm;
begin
  fpgApplication.Initialize;

  // always load custom style for help viewer
  //if Assigned(fpgStyle) then
  //  fpgStyle.Free;
  //fpgStyle := TMyStyle.Create;

  frm := TMainForm.Create(nil);
  try
    frm.Show;
    fpgApplication.Run;
  finally
    frm.Free;
  end;
end;

begin
  MainProc;
end.