Annotation of libwww/Library/src/HTML.html, revision 2.8
2.7 timbl 1: <HTML>
2: <HEAD>
3: <TITLE>HTML to rich text converter for libwww</TITLE>
2.8 ! timbl 4: <NEXTID N="z4">
2.7 timbl 5: </HEAD>
2.6 timbl 6: <BODY>
2.8 ! timbl 7: <H1>The HTML to styled text object converter</H1>This interprets the <A
! 8: NAME="z0" HREF="../../MarkUp/MarkUp.html">HTML</A> semantics
! 9: and some HTMLPlus.<P>
! 10: Part of <A
! 11: NAME="z2" HREF="Overview.html">libwww</A> . Implemented by <A
! 12: NAME="z3" HREF="HTML.c">HTML.c</A>
2.6 timbl 13: <PRE>#ifndef HTML_H
2.1 timbl 14: #define HTML_H
15:
16: #include "HTUtils.h"
17: #include "HTAnchor.h"
2.8 ! timbl 18: #include "HTMLPDTD.h"
2.1 timbl 19:
2.8 ! timbl 20: #define DTD HTMLP_dtd
! 21:
2.6 timbl 22: #ifdef SHORT_NAMES
23: #define HTMLPresentation HTMLPren
24: #define HTMLPresent HTMLPres
25: #endif
2.1 timbl 26:
27: extern CONST HTStructuredClass HTMLPresentation;
28:
2.6 timbl 29: </PRE>
2.8 ! timbl 30: <H2>HTConverter instances to present
! 31: HTML</H2>
! 32: <PRE>/* PUBLIC HTStream* HTMLToPlain PARAMS((HTRequest * request,
! 33: HTFormat input_format,
! 34: HTFormat output_format,
! 35: HTStream * output_stream));
! 36:
! 37: PUBLIC HTStream* HTMLToC PARAMS((HTRequest * request,
! 38: HTFormat input_format,
! 39: HTFormat output_format,
! 40: HTStream * output_stream));
! 41:
! 42: PUBLIC HTStream* HTMLPresent PARAMS((HTRequest * request,
! 43: HTFormat input_format,
! 44: HTFormat output_format,
! 45: HTStream * output_stream));
! 46: */
! 47:
! 48: extern HTStructured* HTML_new PARAMS((HTRequest * request,
! 49: void * param,
! 50: HTFormat input_format,
! 51: HTFormat output_format,
! 52: HTStream * output_stream));
! 53:
2.1 timbl 54:
2.8 ! timbl 55: extern HTConverter HTMLToPlain, HTMLToC, HTMLPresent;
! 56:
! 57:
! 58: </PRE>
! 59: <H2>Selecting internal character set
! 60: representations</H2>
! 61: <PRE>typedef enum _HTMLCharacterSet {
2.1 timbl 62: HTML_ISO_LATIN1,
63: HTML_NEXT_CHARS,
64: HTML_PC_CP950
65: } HTMLCharacterSet;
66:
67: extern void HTMLUseCharacterSet PARAMS((HTMLCharacterSet i));
68:
2.6 timbl 69: </PRE>
70: <H2>Record error message as a hypertext
71: object</H2>The error message should be marked
72: as an error so that it can be reloaded
73: later. This implementation just throws
74: up an error message and leaves the
75: document unloaded.
76: <PRE>/* On entry,
2.1 timbl 77: ** sink is a stream to the output device if any
78: ** number is the HTTP error number
79: ** message is the human readable message.
80: ** On exit,
2.6 timbl 81: ** a retrun code like HT_LOADED if object exists else 60; 0
2.1 timbl 82: */
83:
84: PUBLIC int HTLoadError PARAMS((
85: HTStream * sink,
86: int number,
87: CONST char * message));
88:
89: #endif
2.6 timbl 90:
2.7 timbl 91:
2.8 ! timbl 92:
! 93:
! 94:
! 95:
! 96:
! 97:
! 98:
! 99: </PRE></BODY>
2.7 timbl 100: </HTML>
Webmaster