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