Class TGenericHTMLDocGenerator
Unit
Declaration
type TGenericHTMLDocGenerator = class(TDocGenerator)
Description
generates HTML documentation
Extends TDocGenerator and overwrites many of its methods to generate output in HTML (HyperText Markup Language) format.
Hierarchy
- TObject
- TPersistent
- TComponent
- TDocGenerator
- TGenericHTMLDocGenerator
Overview
Methods
function MakeHead: string; |
|
function MakeBodyBegin: string; virtual; |
|
function MakeBodyEnd: string; virtual; |
|
function ConvertString(const s: string): string; override; |
|
function ConvertChar(c: char): string; override; |
|
procedure WriteUnit(const HL: integer; const U: TPasUnit); override; |
|
function HtmlString(const S: string): string; override; |
|
function FormatPascalCode(const Line: string): string; override; |
|
function FormatComment(AString: string): string; override; |
|
function FormatHex(AString: string): string; override; |
|
function FormatNumeric(AString: string): string; override; |
|
function FormatFloat(AString: string): string; override; |
|
function FormatString(AString: string): string; override; |
|
function FormatKeyWord(AString: string): string; override; |
|
function FormatCompilerComment(AString: string): string; override; |
|
function CodeString(const s: string): string; override; |
|
function CreateLink(const Item: TBaseItem): string; override; |
|
procedure WriteStartOfCode; override; |
|
procedure WriteEndOfCode; override; |
|
procedure WriteAnchor(const AName: string); overload; |
|
procedure WriteAnchor(const AName, Caption: string); overload; |
|
function Paragraph: string; override; |
|
function EnDash: string; override; |
|
function EmDash: string; override; |
|
function LineBreak: string; override; |
|
function URLLink(const URL: string): string; override; |
|
function URLLink(const URL, LinkDisplay: string): string; override; |
|
procedure WriteExternalCore(const ExternalItem: TExternalItem; const Id: TTranslationID); override; |
|
function MakeItemLink(const Item: TBaseItem; const LinkCaption: string; const LinkContext: TLinkContext): string; override; |
|
function EscapeURL(const AString: string): string; virtual; |
|
function FormatSection(HL: integer; const Anchor: string; const Caption: string): string; override; |
|
function FormatAnchor(const Anchor: string): string; override; |
|
function FormatBold(const Text: string): string; override; |
|
function FormatItalic(const Text: string): string; override; |
|
function FormatWarning(const Text: string): string; override; |
|
function FormatNote(const Text: string): string; override; |
|
function FormatPreformatted(const Text: string): string; override; |
|
function FormatImage(FileNames: TStringList): string; override; |
|
function FormatList(ListData: TListData): string; override; |
|
function FormatTable(Table: TTableData): string; override; |
|
function FormatTableOfContents(Sections: TStringPairVector): string; override; |
|
constructor Create(AOwner: TComponent); override; |
|
destructor Destroy; override; |
|
function GetFileExtension: string; override; |
|
procedure WriteDocumentation; override; |
Properties
property Header: string read FHeader write FHeader; |
|
property Footer: string read FFooter write FFooter; |
|
property HtmlBodyBegin: string read FHtmlBodyBegin write FHtmlBodyBegin; |
|
property HtmlBodyEnd: string read FHtmlBodyEnd write FHtmlBodyEnd; |
|
property HtmlHead: string read FHtmlHead write FHtmlHead; |
|
property CSS: string read FCSS write FCSS; |
|
property NumericFilenames: boolean read FNumericFilenames write FNumericFilenames
default false; |
|
property UseTipueSearch: boolean read FUseTipueSearch write FUseTipueSearch
default False; |
Description
Methods
function MakeHead: string; |
|
Return common HTML content that goes inside <head>. |
function MakeBodyBegin: string; virtual; |
|
Return common HTML content that goes right after <body>. |
function MakeBodyEnd: string; virtual; |
|
Return common HTML content that goes right before </body>. |
function ConvertString(const s: string): string; override; |
|
function ConvertChar(c: char): string; override; |
|
Called by ConvertString to convert a character. Will convert special characters to their html escape sequence -> test |
procedure WriteUnit(const HL: integer; const U: TPasUnit); override; |
|
function HtmlString(const S: string): string; override; |
|
overrides TDocGenerator.HtmlString.HtmlString to return the string verbatim (TDocGenerator.HtmlString discards those strings) |
function FormatPascalCode(const Line: string): string; override; |
|
FormatPascalCode will cause Line to be formatted in the way that Pascal code is formatted in Delphi. |
function FormatComment(AString: string): string; override; |
|
FormatComment will cause AString to be formatted in the way that comments other than compiler directives are formatted in Delphi. See: FormatCompilerComment. |
function FormatHex(AString: string): string; override; |
|
FormatHex will cause AString to be formatted in the way that Hex are formatted in Delphi. |
function FormatNumeric(AString: string): string; override; |
|
FormatNumeric will cause AString to be formatted in the way that Numeric are formatted in Delphi. |
function FormatFloat(AString: string): string; override; |
|
FormatFloat will cause AString to be formatted in the way that Float are formatted in Delphi. |
function FormatString(AString: string): string; override; |
|
FormatKeyWord will cause AString to be formatted in the way that strings are formatted in Delphi. |
function FormatKeyWord(AString: string): string; override; |
|
FormatKeyWord will cause AString to be formatted in the way that reserved words are formatted in Delphi. |
function FormatCompilerComment(AString: string): string; override; |
|
FormatCompilerComment will cause AString to be formatted in the way that compiler directives are formatted in Delphi. |
function CodeString(const s: string): string; override; |
|
Makes a String look like a coded String, i.e. <CODE>TheString</CODE> in Html. |
function CreateLink(const Item: TBaseItem): string; override; |
|
Returns a link to an anchor within a document. HTML simply concatenates the strings with a "#" character between them. |
procedure WriteStartOfCode; override; |
|
procedure WriteEndOfCode; override; |
|
procedure WriteAnchor(const AName: string); overload; |
|
procedure WriteAnchor(const AName, Caption: string); overload; |
|
Write an anchor. Note that the Caption is assumed to be already processed with the ConvertString. |
function Paragraph: string; override; |
|
function EnDash: string; override; |
|
function EmDash: string; override; |
|
function LineBreak: string; override; |
|
function URLLink(const URL: string): string; override; |
|
function URLLink(const URL, LinkDisplay: string): string; override; |
|
procedure WriteExternalCore(const ExternalItem: TExternalItem; const Id: TTranslationID); override; |
|
function MakeItemLink(const Item: TBaseItem; const LinkCaption: string; const LinkContext: TLinkContext): string; override; |
|
function EscapeURL(const AString: string): string; virtual; |
|
function FormatSection(HL: integer; const Anchor: string; const Caption: string): string; override; |
|
function FormatAnchor(const Anchor: string): string; override; |
|
function FormatBold(const Text: string): string; override; |
|
function FormatItalic(const Text: string): string; override; |
|
function FormatWarning(const Text: string): string; override; |
|
function FormatNote(const Text: string): string; override; |
|
function FormatPreformatted(const Text: string): string; override; |
|
function FormatImage(FileNames: TStringList): string; override; |
|
function FormatList(ListData: TListData): string; override; |
|
function FormatTable(Table: TTableData): string; override; |
|
function FormatTableOfContents(Sections: TStringPairVector): string; override; |
|
constructor Create(AOwner: TComponent); override; |
|
destructor Destroy; override; |
|
function GetFileExtension: string; override; |
|
Returns HTML file extension ".htm". |
procedure WriteDocumentation; override; |
|
The method that does everything - writes documentation for all units and creates overview files. |
Properties
property Header: string read FHeader write FHeader; |
|
some HTML code to be written as header for every page |
property Footer: string read FFooter write FFooter; |
|
some HTML code to be written as footer for every page |
property HtmlBodyBegin: string read FHtmlBodyBegin write FHtmlBodyBegin; |
|
property HtmlBodyEnd: string read FHtmlBodyEnd write FHtmlBodyEnd; |
|
property HtmlHead: string read FHtmlHead write FHtmlHead; |
|
property CSS: string read FCSS write FCSS; |
|
the content of the cascading stylesheet |
property NumericFilenames: boolean read FNumericFilenames write FNumericFilenames
default false; |
|
if set to true, numeric filenames will be used rather than names with multiple dots |
property UseTipueSearch: boolean read FUseTipueSearch write FUseTipueSearch
default False; |
|
Enable Tiptue fulltext search. See [https://github.com/pasdoc/pasdoc/wiki/UseTipueSearchOption] |
Generated by PasDoc 0.16.0.