|
Last change
on this file since 32 was 18, checked in by RBRi, 19 years ago |
|
+ newview source
|
-
Property svn:eol-style
set to
native
|
|
File size:
1.3 KB
|
| Line | |
|---|
| 1 | Unit MiscUnit;
|
|---|
| 2 |
|
|---|
| 3 | // Miscellaneous objects...
|
|---|
| 4 |
|
|---|
| 5 | Interface
|
|---|
| 6 |
|
|---|
| 7 | uses
|
|---|
| 8 | HelpTopic, ACLString,
|
|---|
| 9 | NavigatePointUnit, HelpFile;
|
|---|
| 10 |
|
|---|
| 11 | // Help Notes
|
|---|
| 12 | // -----------------------------------------------------------
|
|---|
| 13 |
|
|---|
| 14 | type
|
|---|
| 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 |
|
|---|
| 30 | type
|
|---|
| 31 | TBookmark = class( TNavigatePoint )
|
|---|
| 32 | Name: string;
|
|---|
| 33 | procedure Save( Var F: TextFile );
|
|---|
| 34 | constructor Load( Var F: TextFile; HelpFile: THelpFile );
|
|---|
| 35 | end;
|
|---|
| 36 |
|
|---|
| 37 | Implementation
|
|---|
| 38 |
|
|---|
| 39 | // Help Notes
|
|---|
| 40 | // -----------------------------------------------------------
|
|---|
| 41 | constructor THelpNote.Create;
|
|---|
| 42 | begin
|
|---|
| 43 | Text := TAString.Create;
|
|---|
| 44 | InsertText := TAString.Create;
|
|---|
| 45 | Topic := nil;
|
|---|
| 46 | InsertPoint := -1;
|
|---|
| 47 | end;
|
|---|
| 48 |
|
|---|
| 49 | destructor THelpNote.Destroy;
|
|---|
| 50 | begin
|
|---|
| 51 | Text.Destroy;
|
|---|
| 52 | InsertText.Destroy;
|
|---|
| 53 | end;
|
|---|
| 54 |
|
|---|
| 55 | // Bookmarks
|
|---|
| 56 | // -----------------------------------------------------------
|
|---|
| 57 |
|
|---|
| 58 | procedure TBookmark.Save( Var F: TextFile );
|
|---|
| 59 | begin
|
|---|
| 60 | WriteLn( F, Name );
|
|---|
| 61 | inherited Save( F );
|
|---|
| 62 | end;
|
|---|
| 63 |
|
|---|
| 64 | constructor TBookmark.Load( Var F: TextFile; HelpFile: THelpFile );
|
|---|
| 65 | begin
|
|---|
| 66 | ReadLn( F, Name );
|
|---|
| 67 | inherited Load( F, HelpFile );
|
|---|
| 68 | end;
|
|---|
| 69 |
|
|---|
| 70 | Initialization
|
|---|
| 71 | End.
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.