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