Harbour Reference Guide

 

TTroff()

Troff Class

Syntax

oTroff:=TTrof():New(<cFile>) --> oTrf

Arguments

<cFile> Name of the Troff file to create

Returns

<oTrf> instance of the TTroff Class

Description

TTroff() is a class that creates the TROFF Documentation Source Code of the same name you pass to the constructor.
The class methods are as follows:
New(<cFile>) Create a new instance of the THtml class Close() Close the created file
WriteTitle(<cTopic>,<cTitle>) Write the file title
WritePar(<cPar>) Write a paragraph
WriteParBold(<cPar>) Same as WritePar(), but the text is
WriteLink(<cLink>) Write a link to another topic
WriteText() Writes text without formating
Examples
      FUNCTION MAIN()

      LOCAL oTroff
      oTroff := TTroff():New( "tr\harbour.ngi" )
      oTroff:WriteTitle( "Harbour Reference Guide" )
      oTroff:WritePar( "HARBOUR" )
      oTroff:WriteLink( "OverView" )
      oTroff:WriteLink( "License" )

      oTroff:WritePar( "See the Links Above" )
      oTroff:Close()

      RETURN Nil
Status

Ready

Compliance

This is a new Harbour Tools class

Platforms

ALL

See Also

 




[Source Forge]

Other Docs Categories

Advantage Database RDD
Array
Binary conversion
Classes
Code Block
Console input
Conversion
Conversion Tools
DOS
Data input and output
Database
Database Tools
Date
Dos Tools
Environment
Error recovery
Events
File management
GT
Harbour Tools
Internal
Low Level
Math
Misc
Miscellaneous
Nation
Object manipulation
Operating System Specific
Parameter Checks
String Tools
Strings
TBrowse Method
TBrowse class
Terminal
Time
Utility
Variable Management

 

Last updated on 2001/07/30