source: branches/2.20_branch/NewView/MiscUnit.pas@ 454

Last change on this file since 454 was 33, checked in by RBRi, 19 years ago

more uses cleanup

  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
1Unit MiscUnit;
2
3// NewView - a new OS/2 Help Viewer
4// Copyright 2003 Aaron Lawrence (aaronl at consultant dot com)
5// This software is released under the Gnu Public License - see readme.txt
6
7
8// Miscellaneous objects...
9
10Interface
11
12uses
13 HelpTopic,
14 ACLString,
15 NavigatePointUnit,
16 HelpFile;
17
18// Help Notes
19// -----------------------------------------------------------
20
21type
22 THelpNote = class
23 Text: TAString;
24 Topic: TTopic;
25 InsertPoint: longint;
26
27 // calculated
28 InsertText: TAString;
29
30 constructor Create;
31 destructor Destroy; override;
32 end;
33
34// Bookmarks
35// -----------------------------------------------------------
36
37type
38 TBookmark = class( TNavigatePoint )
39 Name: string;
40 procedure Save( Var F: TextFile );
41 constructor Load( Var F: TextFile; HelpFile: THelpFile );
42 end;
43
44Implementation
45
46// Help Notes
47// -----------------------------------------------------------
48constructor THelpNote.Create;
49begin
50 Text := TAString.Create;
51 InsertText := TAString.Create;
52 Topic := nil;
53 InsertPoint := -1;
54end;
55
56destructor THelpNote.Destroy;
57begin
58 Text.Destroy;
59 InsertText.Destroy;
60end;
61
62// Bookmarks
63// -----------------------------------------------------------
64
65procedure TBookmark.Save( Var F: TextFile );
66begin
67 WriteLn( F, Name );
68 inherited Save( F );
69end;
70
71constructor TBookmark.Load( Var F: TextFile; HelpFile: THelpFile );
72begin
73 ReadLn( F, Name );
74 inherited Load( F, HelpFile );
75end;
76
77Initialization
78End.
Note: See TracBrowser for help on using the repository browser.