File:  [Public] / libwww / Library / src / HTML.html
Revision 2.6: download - view: text, annotated - select for diffs
Fri Jun 18 11:03:36 1993 UTC (31 years ago) by timbl
Branches: MAIN
CVS tags: v2/12a, HEAD
Mods to compile under VM/CMS 8 char names

<HEADER>
<TITLE>HTML to rich text converter for libwww</TITLE></HEADER>
<BODY>
<H1>The HTML to rtf object converter</H1>
<PRE>#ifndef HTML_H
#define HTML_H

#include "HTUtils.h"
#include "HTAnchor.h"
#include "HTMLDTD.h"

#ifdef SHORT_NAMES
#define HTMLPresentation 	HTMLPren
#define HTMLPresent		HTMLPres
#endif

extern CONST HTStructuredClass HTMLPresentation;

</PRE>
<H2>HTConverter to present HTML</H2>
<PRE>PUBLIC HTStream* HTMLToPlain PARAMS((
	HTPresentation *	pres,
	HTParentAnchor *	anchor,	
	HTStream *		sink));

PUBLIC HTStream* HTMLToC PARAMS((
	HTPresentation *	pres,
	HTParentAnchor *	anchor,	
	HTStream *		sink));

PUBLIC HTStream* HTMLPresent PARAMS((
	HTPresentation *	pres,
	HTParentAnchor *	anchor,	
	HTStream *		sink));

extern HTStructured* HTML_new PARAMS((
	HTParentAnchor * anchor,
	HTFormat	format_out,
	HTStream *	target));

/*	Names for selected internal representations:
*/
typedef enum _HTMLCharacterSet {
	HTML_ISO_LATIN1,
	HTML_NEXT_CHARS,
	HTML_PC_CP950
} HTMLCharacterSet;

extern void HTMLUseCharacterSet PARAMS((HTMLCharacterSet i));

</PRE>
<H2>Record error message as a hypertext
object</H2>The error message should be marked
as an error so that it can be reloaded
later. This implementation just throws
up an error message and leaves the
document unloaded.
<PRE>/* On entry,
**	sink 	is a stream to the output device if any
**	number	is the HTTP error number
**	message	is the human readable message.
** On exit,
**	a retrun code like HT_LOADED if object exists else 60; 0
*/

PUBLIC int HTLoadError PARAMS((
	HTStream * 	sink,
	int		number,
	CONST char *	message));

#endif

</A></PRE></BODY>

Webmaster