This class is derived from HtmlParser and
its main goal is to parse HTML input so that it can be displayed in
HtmlWindow. It uses a special
HtmlWinTagHandler.
The product of parsing is a HtmlCell (resp. HtmlContainer) object.
Constructor. Don’t use the default one, use constructor with
wnd parameter (wnd is pointer to associated HtmlWindow)
Adds module to the list of HtmlWinParser tag handler.
Closes the container, sets actual container to the parent one
and returns pointer to it (see Overview).
Creates font based on current setting (see
set_font_size,
set_font_bold,
set_font_italic,
set_font_fixed,
set_font_underlined)
and returns pointer to it.
If the font was already created only a pointer is returned.
Returns actual text colour.
Returns default horizontal alignment.
Returns (average) char height in standard font. It is used as DC-independent metrics.
Note: This function doesn’t return the actual height. If you want to
know the height of the current font, call GetDC -> GetCharHeight()
.
Returns average char width in standard font. It is used as DC-independent metrics.
Note: This function doesn’t return the actual width. If you want to
know the height of the current font, call GetDC -> GetCharWidth()
Returns pointer to the currently opened container (see Overview).
Common use:
Returns pointer to the DC used during parsing.
Returns EncodingConverter class used
to do conversion between input encoding
and output encoding.
Returns true if actual font is bold, false otherwise.
Returns actual font face name.
Returns true if actual font is fixed face, false otherwise.
Returns true if actual font is italic, false otherwise.
Returns actual font size (HTML size varies from -2 to +4)
Returns true if actual font is underlined, false otherwise.
Returns input encoding.
Returns actual hypertext link. (This value has a non-empty
Href string
if the parser is between <A>
and </A>
tags,
EmptyString otherwise.)
Returns the colour of hypertext link text.
Returns output encoding, i.e. closest match to document’s input encoding
that is supported by operating system.
Returns associated window (HtmlWindow). This may be NULL! (You should always
test if it is non-NULL. For example TITLE
handler sets window
title only if some window is associated, otherwise it does nothing)
Opens new container and returns pointer to it (see Overview).
Sets actual text colour. Note: this DOESN’T change the colour!
You must create HtmlColourCell yourself.
Sets default horizontal alignment (see
HtmlContainerCell#set_align_hor.)
Alignment of newly opened container is set to this value.
Allows you to directly set opened container. This is not recommended – you should use OpenContainer
wherever possible.
Sets the DC. This must be called before Parse!
pixel_scale can be used when rendering to high-resolution
DCs (e.g. printer) to adjust size of pixel metrics. (Many dimensions in
HTML are given in pixels — e.g. image sizes. 300×300 image would be only one
inch wide on typical printer. With pixel_scale = 3.0 it would be 3 inches.)
Sets bold flag of actualfont. x is either true of false.
Sets current font face to face. This affects either fixed size
font or proportional, depending on context (whether the parser is
inside <TT>
tag or not).
Sets fixed face flag of actualfont. x is either true of false.
Sets italic flag of actualfont. x is either true of false.
Sets actual font size (HTML size varies from 1 to 7)
Sets underlined flag of actualfont. x is either true of false.
Sets fonts. See HtmlWindow#set_fonts for
detailed description.
Sets input encoding. The parser uses this information to build conversion
tables from document’s encoding to some encoding supported by operating
system.
Sets actual hypertext link. Empty link is represented
by HtmlLinkInfo with Href equal
to EmptyString.
Sets colour of hypertext link.
[This page automatically generated from the Textile source at 2023-06-09 00:45:25 +0000]