home *** CD-ROM | disk | FTP | other *** search
-
-
- TABLE OF CONTENTS
-
- html.datatype/--datasheet--
- html.datatype/DTM_ASYNCLAYOUT
- html.datatype/DTM_GOTO
- html.datatype/DTM_PROCLAYOUT
- html.datatype/GM_LAYOUT
- html.datatype/OM_DISPOSE
- html.datatype/OM_NEW
- html.datatype/OM_NOTIFY
- html.datatype/OM_SET
- html.datatype/OM_UPDATE
-
-
- html.datatype/--datasheet-- html.datatype/--datasheet--
-
- NAME
- html.datatype -- hypertext datatype for HTML documents
-
- SUPERCLASS
- hypertext.datatype
-
- DESCRIPTION
- This datatype is used to handle HTML documents. It uses all features
- the hypertext.datatype offers. But NOTE in the unregistered version of
- HTDS you can only use five HTML documents at one time.
-
- METHODS
- OM_NEW -- create a html Object.
-
- OM_DISPOSE -- dispose the html Object.
-
- OM_SET -- passes the method to the superclass and performs a refresh
- if needed.
-
- OM_UPDATE -- passes the method to the superclass and performs a refresh
- if needed.
-
- OM_NOTIFY -- snoops the HTDTA_ShowLink attribute to convert HTML path
- definitions to Amiga paths.
-
- GM_LAYOUT -- passes the method to the superclass and performs a
- asynchron layout request if needed.
-
- DTM_GOTO -- converts HTML path definitions to Amiga path definitions and
- calls then the superclass for this method.
-
- DTM_ASYNCLAYOUT -- do the asynchron layout method.
-
- DTM_PROCLAYOUT -- layout method in a process context.
-
- ATTRIBUTES
- None.
-
- NOTE
- See html_hdtc.hguide for supported HTML tags and HTML tag attributes.
-
- SEE ALSO
- hypertext.datatype, HTDS.hguide, html_hdtc.hguide
-
- html.datatype/DTM_ASYNCLAYOUT html.datatype/DTM_ASYNCLAYOUT
-
- NAME
- DTM_ASYNCLAYOUT -- asynchronously layout the object
-
- FUNCTION
- This method performs now really the layout of the object.
-
- INPUTS
- None.
-
- RESULT
- Total number of vertical units.
-
- SEE ALSO
- DTM_PROCLAYOUT, GM_LAYOUT, hypertext.datatype/GM_LAYOUT,
- hypertext.datatype/HTDTM_LAYOUT
-
- html.datatype/DTM_GOTO html.datatype/DTM_GOTO
-
- NAME
- DTM_GOTO -- load and display an other object
-
- FUNCTION
- This method only converts HTML/Unix style file pathes to AmigaDOS
- style pathes. It converts the URL to be loaded into an AmigaDOS
- path and then calls the superclass with the converted path for
- this method.
-
- INPUTS
- struct dtGoto
- {
- ULONG MethodID;
- struct GadgetInfo *dtg_GInfo;
- STRPTR dtg_NodeName;
- struct TagItem *dtg_AttrList;
- };
-
- dtg_NodeName -- name of the node to go to. This also can be a complete
- filename.
- dtg_AttrList -- list of attributes, which specifies the object to go to.
-
- RESULTS
- None defined.
-
- SEE ALSO
- hypertext.datatype/DTM_GOTO
-
- html.datatype/DTM_PROCLAYOUT html.datatype/DTM_PROCLAYOUT
-
- NAME
- DTM_PROCLAYOUT -- performs a layout on a process context
-
- FUNCTION
- This method performs a layout on a process context. Thus this method
- must only be invoked from a process! It first calls the superclass
- DTM_PROCLAYOUT method and then falls through the DTM_ASYNCLAYOUT
- method.
-
- INPUTS
- None.
-
- RESULT
- None.
-
- EXAMPLE
- ...
- case DTM_PROCLAYOUT:
- /* Tell everyone that we are busy doing things */
- NotifyAttrs(obj, ((struct gpLayout *) msg)->gpl_GInfo, NULL,
- GA_ID, ((struct Gadget *) obj)->GadgetID,
- DTA_Busy, TRUE,
- TAG_DONE);
-
- /* Let the super-class partake and then fall through to our layout
- method */
- DoSuperMethodA (cl, obj, msg);
- case DTM_ASYNCLAYOUT:
- /* perform the layout now! */
- break;
- ...
-
- SEE ALSO
- datatypes.library/DoAsyncLayout(), DTM_ASYNCLAYOUT,
- hypertext.datatype/GM_LAYOUT
-
- html.datatype/GM_LAYOUT html.datatype/GM_LAYOUT
-
- NAME
- GM_LAYOUT -- starts layout of the HTML object
-
- FUNCTION
- This method is directly passed to its superclass. If the superclass
- returns zero the object needs to be layouted, which is done
- asynchronously by calling the DoAsyncLayout() function. If it returns
- non zero nothing has to be done.
-
- INPUTS
- struct gpLayout
- {
- ULONG MethodID;
- struct GadgetInfo *gpl_GInfo;
- ULONG gpl_Initial;
- };
-
- gpl_Initial - First call of GM_LAYOUT for this object
-
- RESULT
- 0 - start the asynchronous layout
- !=0 - do nothing
-
- SEE ALSO
- DTM_PROCLAYOUT, DTM_ASYNCLAYOUT, hypertext.datatype/GM_LAYOUT,
- datatypes.library/DoAsyncLayout(), hypertext.datatype/HTDTM_LAYOUT
-
- html.datatype/OM_DISPOSE html.datatype/OM_DISPOSE
-
- NAME
- OM_DISPOSE -- frees all allocated resources of a HTML object
-
- FUNCTION
- This method frees all allocated resources of a HTML object.
- After this it calls the superclass OM_DISPOSE method.
-
- INPUTS
- None.
-
- RESULT
- None.
-
- SEE ALSO
- hypertext.datatype/OM_DISPOSE, datatypes.library/DisposeDTObject(),
- OM_NEW
-
- html.datatype/OM_NEW html.datatype/OM_NEW
-
- NAME
- OM_NEW -- create a HTML object.
-
- FUNCTION
- This method first calls the superclass OM_NEW method and if this
- returns a valid Object pointer it sets some HTML specific values,
- like underlining links instead of making buttons for links.
-
- INPUTS
- struct opSet {
- ULONG MethodID;
- struct TagItem *ops_AttrList;
- struct GadgetInfo *ops_GInfo;
- };
-
- ops_AttrList -- initial attribute values
- ops_GInfo -- always NULL for OM_NEW
-
- RESULT
- pointer to the newly created HTML object or NULL for a failure.
- If this method fails, a possible reason for failure is provided via
- the IoErr() function.
-
- SEE ALSO
- hypertext.datatype/OM_NEW, OM_DISPOSE, OM_SET
-
- html.datatype/OM_NOTIFY html.datatype/OM_NOTIFY
-
- NAME
- OM_NOTIFY -- notify attributes changes to the object
-
- FUNCTION
- This method is used to convert all URL's to AmigaDOS style pathes,
- which are notified to the object using the DTA_Title tag, if the
- HTDTA_ShowLink occurs in the opu_AttrList.
-
- INPUTS
- struct opUpdate
- {
- ULONG MethodID;
- struct TagItem *opu_AttrList;
- struct GadgetInfo *opu_GInfo;
- ULONG opu_Flags;
- };
-
- opu_AttrList -- list of notification attributes
- opu_GInfo -- GadgetInfo structure
- opu_Flags -- flag OPUF_INTERIM or zero
-
- RESULTS
- superclass results
-
- SEE ALSO
- hypertext.datatype/OM_NOTIFY, rootclass/OM_NOTIFY,
- rootclass/OM_UPDATE, OM_UPDATE
-
- html.datatype/OM_SET html.datatype/OM_SET
-
- NAME
- OM_SET -- sets attributes of a HTML object
-
- FUNCTION
- The OM_SET method is used to set attributes of a html.datatype
- object. This method is processed first and then passed to its
- superclass. If the result is non zero it calls the HTDTM_RENDER
- method, which invokes the GM_RENDER method on the separate hypertext
- process.
-
- INPUTS
- struct opSet
- {
- ULONG MethodID;
- struct TagItem *ops_AttrList;
- struct GadgetInfo *ops_GInfo;
- };
-
- ops_AttrList - list of new attributes
- ops_GInfo - GadgetInfo structure
-
- RESULT
- non zero if the HTML object needs rendering, zero if not.
-
- ATTRIBUTES
- None.
-
- SEE ALSO
- hypertext.datatype/OM_SET, OM_UPDATE, OM_NEW,
- datatypes.library/SetDTAttrsA()
-
- html.datatype/OM_UPDATE html.datatype/OM_UPDATE
-
- NAME
- OM_UPDATE -- updates attributes of a HTML object.
-
- FUNCTION
- The OM_UPDATE method is used to update attributes of a HTML object.
- This method is processed first and then passed to the superclass. This
- method falls directly through the OM_SET method, thus all attributes
- of this method are also supported. The following ATTRIBUTES section
- lists all attributes, which are only supported by the the OM_UPDATE
- method. If the result is non zero it calls the HTDTM_RENDER method,
- which invokes the GM_RENDER method on the separate hypertext process.
-
- INPUTS
- struct opUpdate
- {
- ULONG MethodID;
- struct TagItem *opu_AttrList;
- struct GadgetInfo *opu_GInfo;
- ULONG opu_Flags;
- };
-
- opu_AttrList -- list of new attributes
- opu_GInfo -- GadgetInfo structure
- opu_Flags -- flags indicating the status of this update method
-
- ATTRIBUTES
- None.
-
- RESULT
- Non zero if the object needs to be rendered. Zero if there has nothing
- changed, so that rendering isn't needed.
-
- SEE ALSO
- hypertext.datatype/OM_UPDATE, OM_SET, rootclass/OM_NOTIFY
-
-