summaryrefslogtreecommitdiff
path: root/docview
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2011-07-29 00:19:24 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2011-07-29 00:19:24 +0200
commit43af951107f1fd81ded2247c43b11b9e3ac6dce4 (patch)
tree4e0b20f8bb213030e56c132833119b665a1a4534 /docview
parentf3c08397a73d26c46d349650f59c274e4c895bd4 (diff)
downloadfpGUI-43af951107f1fd81ded2247c43b11b9e3ac6dce4.tar.xz
docview: implemented TBookmark.Save method.
Diffstat (limited to 'docview')
-rw-r--r--docview/src/HelpBookmark.pas10
1 files changed, 9 insertions, 1 deletions
diff --git a/docview/src/HelpBookmark.pas b/docview/src/HelpBookmark.pas
index 1a49cd75..8420322f 100644
--- a/docview/src/HelpBookmark.pas
+++ b/docview/src/HelpBookmark.pas
@@ -16,6 +16,7 @@ type
FContentsTopic: TTopic;
FName: string;
public
+ constructor Create;
constructor Load(var F: TextFile; HelpFile: THelpFile);
procedure Save(var F: TextFile);
property Name: string read FName write FName;
@@ -27,6 +28,12 @@ implementation
{ TBookmark }
+constructor TBookmark.Create;
+begin
+ inherited Create;
+ ContentsTopic:= nil;
+end;
+
constructor TBookmark.Load(var F: TextFile; HelpFile: THelpFile);
var
s: string;
@@ -41,7 +48,8 @@ end;
procedure TBookmark.Save(var F: TextFile);
begin
-
+ writeLn( F, Name );
+ writeLn( F, IntToStr( ContentsTopic.Index ) );
end;