Unit HTMLWrtr

Classes

EHTMLError - Class for all HTML errors
EHTMLException - Base class for all HTML exceptions
EHTMLWarning - Class for all HTML warnings
THTMLDictionary - Field/value pairs for dynamic insertion of values into HTML templates
THTMLFieldValue - Field value for dynamic insertion of values into HTML templates
THTMLWriter - The HTML writer class that allows HTML to be generated

Functions

Percent - Convert value to indicate its use as a percentage
Register - Register the THTMLWriter component with Delphi

Types

THTMLAlignHoriz
THTMLAlignImage
THTMLAlignVert
THTMLClear
THTMLErrors
THTMLErrorSet
THTMLFontChange
THTMLFontSize
THTMLFormMethod
THTMLHeadingLevel
THTMLInputField
THTMLListCheck
THTMLListItem
THTMLListType
THTMLMarqueeBehave
THTMLMarqueeDirection
THTMLNumberScheme
THTMLShapes
THTMLSpecialChar
THTMLTagCategory
THTMLTextEffect

Constants

clDefault
DefaultFilename
TagCategory

Variables


Functions


function Percent(iValue: Integer): Integer;

Convert value to indicate its use as a percentage

procedure Register;

Register the THTMLWriter component with Delphi

Types


THTMLAlignHoriz = (ahDefault, ahLeft, ahCentre, ahRight);
Horizontal alignment values
THTMLAlignImage = (aiDefault, aiTop, aiMiddle, aiBottom, aiLeft, aiRight);
Image alignment values
THTMLAlignVert = (avDefault, avTop, avMiddle, avBottom);
Vertical alignment values
THTMLClear = (crDefault, crLeft, crRight, crAll);
Clear options for line breaks
THTMLErrors = (erErrors, erWarnings, erNetscape, erIExplorer, erHTML3);
Error/warning levels
THTMLErrorSet = set of THTMLErrors

THTMLFontChange = (fcAbsolute, fcSmaller, fcBigger);
Font variations
THTMLFontSize = 1..7
Font sizes
THTMLFormMethod = (fmGet, fmPost);
Form methods
THTMLHeadingLevel = 1..6
Heading levels available
THTMLInputField = (ifText, ifPassword, ifCheckbox, ifRadio, ifSubmit,
    ifReset, ifImage, ifHidden);
Input field types
THTMLListCheck = record
ListType : THTMLListType;
Elements : Boolean;
end;
List processing
THTMLListItem = (liNormal, liTerm, liDefinition);
List items
THTMLListType = (ltUnordered, ltOrdered, ltMenu, ltDirectory, ltGlossary);
List types
THTMLMarqueeBehave = (mbScroll, mbSlide, mbAlternate);
Marquee behaviour
THTMLMarqueeDirection = (mdLeft, mdRight);
Marquee direction
THTMLNumberScheme = (nsDefault, nsLargeLetters, nsSmallLetters,
    nsLargeRoman, nsSmallRoman, nsNumbers);
List number schema
THTMLShapes = (shDefault, shRect, shCircle, shPolygon);
Shapes for inline maps
THTMLSpecialChar = (scLessThan, scGreaterThan, scAmpersand, scQuote,
    scNBSpace, scCopyright, scRegistered, scCent, scPound, scYen, scHalf,
    scQuarter, scThreeQuarter, scAELig, scAAcute, scACirc, scAGrave, scARing,
    scATilde, scAUml, scCCedil, scEth, scEAcute, scECirc, scEGrave, scEUml,
    scIAcute, scICirc, scIGrave, scIUml, scNTilde, scOAcute, scOCirc,
    scOGrave, scOSlash, scOTilde, scOUml, scThorn, scUAcute, scUCirc, scUGrave,
    scUUml, scYAcute, scaeLigL, scaAcuteL, scaCircL, scaGraveL, scaRingL,
    scaTildeL, scaUmlL, sccCedilL, scethL, sceAcuteL, sceCircL, sceGraveL,
    sceUmlL, sciAcuteL, sciCircL, sciGraveL, sciUmlL, scnTildeL, scoAcuteL,
    scoCircL, scoGraveL, scoSlashL, scoTildeL, scoUmlL, scthornL, scszLigL,
    scuAcuteL, scuCircL, scuGraveL, scuUmlL, scyAcuteL, scyUmlL);
Special characters
THTMLTagCategory = (tcContent, tcHead, tcTitle, tcIsIndex, tcBase, tcMeta,
    tcBody, tcHeading, tcParagraph, tcImage, tcMap, tcList, tcBreak, tcEffect,
    tcLink, tcForm, tcTable, tcFile);
Tag categories - for exceptions
THTMLTextEffect = (efBold, efItalic, efUnderlined, efFixedPitch,
    efEmphasised, efStrong, efCode, efSample, efKeyboard, efCitation,
    efDefinition, efVariable, efBlockQuote, efBlink, efNonBreaking,
    efSuperscript, efSubscript, efInserted, efDeleted, efSmall,
    efBig, efAddress, efPreformat, efCentre);
Text effects

Constants

clDefault = $00FE09F1

Unusual colour to use as no value specified - some sort of purple

DefaultFilename = 'htmlwrtr.htm'

Default filename for output

TagCategory = ('Content', 'Head', 'Title', 'IsIndex', 'Base', 'Meta', 'Body', 'Heading', 'Paragraph', 'Image', 'Map', 'List', 'Break', 'Effect', 'Link', 'Form', 'Table', 'File')

Descriptions of the tag categories

Variables