Annotation of libwww/Library/src/HTML.html, revision 2.6

2.6     ! timbl       1: <HEADER>
        !             2: <TITLE>HTML to rich text converter for libwww</TITLE></HEADER>
        !             3: <BODY>
        !             4: <H1>The HTML to rtf object converter</H1>
        !             5: <PRE>#ifndef HTML_H
2.1       timbl       6: #define HTML_H
                      7: 
                      8: #include "HTUtils.h"
                      9: #include "HTAnchor.h"
                     10: #include "HTMLDTD.h"
                     11: 
2.6     ! timbl      12: #ifdef SHORT_NAMES
        !            13: #define HTMLPresentation       HTMLPren
        !            14: #define HTMLPresent            HTMLPres
        !            15: #endif
2.1       timbl      16: 
                     17: extern CONST HTStructuredClass HTMLPresentation;
                     18: 
2.6     ! timbl      19: </PRE>
        !            20: <H2>HTConverter to present HTML</H2>
        !            21: <PRE>PUBLIC HTStream* HTMLToPlain PARAMS((
2.1       timbl      22:        HTPresentation *        pres,
                     23:        HTParentAnchor *        anchor, 
                     24:        HTStream *              sink));
                     25: 
                     26: PUBLIC HTStream* HTMLToC PARAMS((
                     27:        HTPresentation *        pres,
                     28:        HTParentAnchor *        anchor, 
                     29:        HTStream *              sink));
                     30: 
                     31: PUBLIC HTStream* HTMLPresent PARAMS((
                     32:        HTPresentation *        pres,
                     33:        HTParentAnchor *        anchor, 
                     34:        HTStream *              sink));
                     35: 
                     36: extern HTStructured* HTML_new PARAMS((
                     37:        HTParentAnchor * anchor,
2.2       timbl      38:        HTFormat        format_out,
2.1       timbl      39:        HTStream *      target));
                     40: 
                     41: /*     Names for selected internal representations:
                     42: */
                     43: typedef enum _HTMLCharacterSet {
                     44:        HTML_ISO_LATIN1,
                     45:        HTML_NEXT_CHARS,
                     46:        HTML_PC_CP950
                     47: } HTMLCharacterSet;
                     48: 
                     49: extern void HTMLUseCharacterSet PARAMS((HTMLCharacterSet i));
                     50: 
2.6     ! timbl      51: </PRE>
        !            52: <H2>Record error message as a hypertext
        !            53: object</H2>The error message should be marked
        !            54: as an error so that it can be reloaded
        !            55: later. This implementation just throws
        !            56: up an error message and leaves the
        !            57: document unloaded.
        !            58: <PRE>/* On entry,
2.1       timbl      59: **     sink    is a stream to the output device if any
                     60: **     number  is the HTTP error number
                     61: **     message is the human readable message.
                     62: ** On exit,
2.6     ! timbl      63: **     a retrun code like HT_LOADED if object exists else 60; 0
2.1       timbl      64: */
                     65: 
                     66: PUBLIC int HTLoadError PARAMS((
                     67:        HTStream *      sink,
                     68:        int             number,
                     69:        CONST char *    message));
                     70: 
                     71: #endif
2.6     ! timbl      72: 
        !            73: </A></PRE></BODY>

Webmaster