source: trunk/NewView/MiscUnit.pas@ 18

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

+ newview source

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