Unit 'whtml' Package
[Overview][Constants][Classes][Index] [#fcl]

THTMLWriter

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

HTML implementation of formatting writer

Declaration

Source position: whtml.pp line 30

type THTMLWriter = class(TFormattingWriter)

public

  constructor Create(); override;

  

Creates a new HTML writer instance

  procedure TagStart();

  

Writes an opening HTML tag with optional attributes

  procedure TagEnd();

  

Writes a closing HTML tag

  function EscapeText(); override;

  

Escapes HTML special characters

  procedure DocumentStart(); override;

  

Begins an HTML document

  procedure DocumentEnd; override;

  

Ends the HTML document

  procedure HeaderStart(); override;

  

Begins HTML header tag at specified level

  procedure HeaderEnd(); override;

  

Ends HTML header tag at specified level

  procedure ParagraphStart; override;

  

Begins HTML paragraph tag

  procedure ParagraphEnd; override;

  

Ends HTML paragraph tag

  procedure LineBreak; override;

  

Inserts HTML line break tag

  procedure Rule; override;

  

Inserts HTML horizontal rule tag

  procedure BoldStart; override;

  

Begins HTML bold formatting

  procedure BoldEnd; override;

  

Ends HTML bold formatting

  procedure ItalicStart; override;

  

Begins HTML italic formatting

  procedure ItalicEnd; override;

  

Ends HTML italic formatting

  procedure UnderlineStart; override;

  

Begins HTML underline formatting

  procedure UnderlineEnd; override;

  

Ends HTML underline formatting

  procedure PreformatStart; override;

  

Begins HTML preformatted text block

  procedure PreformatEnd; override;

  

Ends HTML preformatted text block

  procedure TableStart(); override;

  

Begins HTML table with optional border

  procedure TableEnd; override;

  

Ends HTML table

  procedure RowStart; override;

  

Begins HTML table row

  procedure RowEnd; override;

  

Ends HTML table row

  procedure CellStart; override;

  

Begins HTML table cell

  procedure CellEnd; override;

  

Ends HTML table cell

  procedure HeaderCellStart; override;

  

Begins HTML table header cell

  procedure HeaderCellEnd; override;

  

Ends HTML table header cell

  procedure ListStart(); override;

  

Begins HTML list of specified type

  procedure ListEnd(); override;

  

Ends HTML list of specified type

  procedure ListItemStart; override;

  

Begins HTML list item

  procedure ListItemEnd; override;

  

Ends HTML list item

  procedure DefinitionItem(); override;

  

Creates HTML definition list item

  procedure FormStart();

  

Begins HTML form with action and method

  procedure FormEnd;

  

Ends HTML form

  procedure EmitInput();

  

Emits HTML input field

  procedure EmitPasswordInput();

  

Emits HTML password input field

  procedure EmitCheckBox();

  

Emits HTML checkbox input

  procedure EmitRadioButton();

  

Emits HTML radio button input

  procedure EmitArea();

  

Emits HTML textarea for multi-line input

  procedure EmitComboBox();

  

Emits HTML select dropdown list

  procedure EmitButton();

  

Emits HTML button input

  procedure EmitSubmitButton();

  

Emits HTML submit button

  procedure EmitResetButton();

  

Emits HTML reset button

  procedure EmitHiddenVar();

  

Emits HTML hidden input field

end;

Inheritance

THTMLWriter

  

HTML implementation of formatting writer

|

TFormattingWriter

  

Abstract base class for formatted document writers

|

TObject

Description

THTMLWriter is a concrete implementation of TFormattingWriter that generates HTML output. It implements all formatting methods to produce valid HTML markup including document structure, text formatting, tables, lists, and HTML forms. The class properly escapes HTML special characters and generates standard HTML tags.

See also

TFormattingWriter

ListTags

  

HTML tags for different list types


Documentation generated on: Jan 16 2026