.HTMLObjectTypeHandlers {RGtkViewers} | R Documentation |
This is a collection of S functions that are used when processing
OBJECT tags in HTML documents by viewHtml
and docView
. For each OBJECT node,
its type
attribute is extracted and matched to the names
in this list of handler functions. The corresponding
element for the matching name is called to process the node.
These functions are used by embeddedObjectHandler
.
This list can be modified and extended to add handlers for new MIME
types using addMIMEObjectHandler
.
This is a named list of functions.
Each function should accept three arguments.
The first is the GtkHTML widget in which the OBJECT node
is encountered. The second argument is the GtkHTMLEmbedded
object to be processed.
And the third argument is optional and is the environment
in which any S-language evaluations should be evaluated.
The default value of this argument should be globalenv
.
The initial elements are:
label
parameter
for the text to display and the clicked
parameter to provide a
callback.vertical
is used to indicate whether a
vertical or horizontal scale is desired. If this is missing
or is FALSE, a horizontal scale is used.
It retrieves the minimum, maximum and current
values from the min
, max
and value
parameters.
The value-changed
parameter is taken to be a callback for
the slider.
asGtkDevice
.
An init
parameter is evaluated and can draw into the
device.
This returns the device index which can be used with
dev.set
to make this the active
device.
value
parameter is used to provide the initial content.
A size
parameter is interpreted as the number of characters
the entry should display.call
parameter or simply an empty label.
If a parameter label
is specified, this is used as the
default text for the label. Alternatively, if a size
parameter is specified, this is used to provide an string of this
length made up of spaces to use as the text to ensure a particular width.init
parameter and if the result is a
GtkWidget, it adds that to the GtkHTMLEmbeded object.
This can be avoided by specifying FALSE for the addWidget
parameter.
The the result of evaluating the init
parmeter is a function,
this is called with both the GtkHTML and GtkHTMLEmbedded objects as
arguments and the function is responsible for performing the
appropriate processing and initialization.
init
tag is evaluated.
This is used as the default handler, i.e. when no other name matches
the given MIME type.
data(.HTMLObjectTypeHandlers)
http://www.omegahat.org/RGtkHTML http://www.omegahat.org/IDocs http://www.statdocs.org