BaseFont, ForceFont, BodyTag, HeadTag properties
Applies to
TPlusToHTML component
Declaration
property BaseFont: Boolean;
property ForceFont: Boolean;
property BodyTag: Boolean;
property HeadTag: Boolean;
Description
These property whether whether particular html structuring tags are generated by the TPlusToHtml component.
Property BaseFont controls the output of a base font tag just before generation of html code corresponding to the PlusMemo content. A basefont tag has the following structure:
<BASEFONT fontparameter1="value1" fontparameter2="value2" ...>
If BaseFont is True, the parameter values placed in this tag are those of the PlusMemo.Font properties. If BaseFont is False, no font information is generated and the html code produced will inherit the font characteristics of the destination viewer, unless ForceFont is True. The default value is True. Set it to False if you intend to merge many html code portions generated by TPlusToHtml.
Property ForceFont controls whether the entire body code is surrounded by a FONT tag (<FONT ...>....</FONT>). Set it to True to get such a surrounding font tag, False to not have it (its default value). This property has no effect if BaseFont is True. The motive for implementation of this property is that MS Word does not obey the BASEFONT command, so having a particular font face and size for html documents loaded into it requires a FONT tag.
Property BodyTag controls the generation of body tags surrounding the body html code, of the form
<Body>
...
</Body>
Such body tags are generated only if the complete content of PlusMemo is being processed. They won't appear when reading Selection if only part of the content is selected. The default value of BodyTag is True. Set it to False if you intend to merge the code produced by THtmlHighlighter with other html sources.
Property HeadTag plays a similar role as BodyTag, but for the header section. This head tag has the following structure:
<Html>
<Head>
(title tag, if property Title so specifies)
</Head>
code representing the content, including body
and basefont tags if properties so specifies
</Html>
The default value of HeadTag is True. Set it to False if you intend to merge the code produced by THtmlHighlighter with other html sources.