ScroogeXHTML for Object Pascal 8.5
Loading...
Searching...
No Matches
TXHTML10TransitionalTranslator Class Reference

XHTML 1.0 Transitional Translator. More...

Inheritance diagram for TXHTML10TransitionalTranslator:
TXHTMLTranslator TCustomTranslator ISxTranslator

Public Member Functions

string GetDocType ()
 
string GetDocTypeName ()
 
string GetParagraphStyle (const TParagraphProperties PP)
 Returns the HTML for a P element (paragraph).
 
Boolean IsTransitional ()
 
Boolean SupportsElement (const string elementName)
 
- Public Member Functions inherited from TXHTMLTranslator
string FormatElement (const string AText, const TCharacterProperties CP)
 Returns text with formatting CSS/XHTML tags.
 
string GetCloseEmptyElement ()
 Returns " />".
 
string GetRootElement (const string Language='')
 Returns the document root element.
 
Boolean IsXml ()
 Returns True because all subclasses are XML based.
 
- Public Member Functions inherited from TCustomTranslator
 TCustomTranslator (const IMarginBuilding AMarginBuilder)
 
string BuildLangAttribute (const string Language)
 Returns lang attribute.
 
string Encode (const string S)
 Encode Unicode string using UTF-8.
 
string FormatElement (const string AText, const TCharacterProperties CP)
 Returns text with formatting CSS/HTML/XHTML tags.
 
string GetCharacterStyles (const string AText, const TCharacterProperties CP)
 Returns text with styles applied for the given character properties.
 
string GetCloseEmptyElement ()
 Returns the correct closing bracket for an empty element.
 
string GetDocType ()
 Get the DOCTYPE definition.
 
string GetDocTypeName ()
 Get the name of the doctype.
 
string GetFontSizeStyle (const Integer Pt)
 Returns a CSS style for the given font size.
 
string GetIndentAndDirectionStyle (const TParagraphProperties PP)
 Returns a indent and direction style for the paragraph.
 
string GetMargin ()
 Returns a sequence of spaces (the left margin).
 
string GetParagraph (const string AdditionalStyle, const string AdditionalParams='')
 returns the start tag for a paragraph element
 
string GetParagraphStyle (const TParagraphProperties PP)
 Converts the paragraph properties to a style definition.
 
string GetRootElement (const string Language='')
 Returns the HTML / XHTML document root element.
 
string GetStyleParam (const string AdditionalStyle)
 Get style parameter.
 
Boolean IsDocTypeRequired ()
 Returns True if a DOCTYPE declaration is required (see XHTML 1.1).
 
boolean IsTransitional ()
 Returns True if the document type is a transitional version.
 
Boolean IsXml ()
 Returns True if it is an XML based Translator.
 
 SetFontSizeScale (const TFontSizeScale FSS)
 Setter for the font size scale.
 
 SetParOpen (const string TagAndClass)
 Setter for the 'paragraph open' tag.
 
Boolean SupportsElement (const string ElementName)
 Returns True if the element is supported by the current doctype.
 
Boolean SupportsParameter (const string ElementName, const string ParamName)
 Returns True if the element supports the given parameter.
 

Detailed Description

XHTML 1.0 Transitional Translator.

Member Function Documentation

◆ GetDocType()

string TXHTML10TransitionalTranslator::GetDocType ( )

Implements ISxTranslator.

◆ GetDocTypeName()

class string TXHTML10TransitionalTranslator::GetDocTypeName ( )

◆ GetParagraphStyle()

string TXHTML10TransitionalTranslator::GetParagraphStyle ( const TParagraphProperties PP)

Returns the HTML for a P element (paragraph).

Note
XHTML 1.0 Transitional supports the 'classic' HTML parameter align="..." for left or right aligned and centered paragraphs for the P element (see: xhtml1-transitional.dtd). To be backward compatible with older HTML browsers, this parameter will be used where possible. For justified paragraphs, a CSS style parameter will be used.

Implements ISxTranslator.

◆ IsTransitional()

Boolean TXHTML10TransitionalTranslator::IsTransitional ( )

Implements ISxTranslator.

◆ SupportsElement()

Boolean TXHTML10TransitionalTranslator::SupportsElement ( const string elementName)

Implements ISxTranslator.