diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1996-09-02 19:39:24 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1996-09-02 19:39:24 -0400 |
commit | e087f6d44e87f489fcb3056e86319ebba4218156 (patch) | |
tree | d045b58011bfbbf5186d34c4fed9e0dedb363275 /WWW/Library/Implementation/HTML.h | |
download | lynx-snapshots-e087f6d44e87f489fcb3056e86319ebba4218156.tar.gz |
snapshot of project "lynx", label v2_6
Diffstat (limited to 'WWW/Library/Implementation/HTML.h')
-rw-r--r-- | WWW/Library/Implementation/HTML.h | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/WWW/Library/Implementation/HTML.h b/WWW/Library/Implementation/HTML.h new file mode 100644 index 00000000..aada006f --- /dev/null +++ b/WWW/Library/Implementation/HTML.h @@ -0,0 +1,79 @@ +/* HTML to rich text converter for libwww + THE HTML TO RTF OBJECT CONVERTER + + This interprets the HTML semantics. + + */ +#ifndef HTML_H +#define HTML_H + +#ifndef HTUTILS_H +#include "HTUtils.h" +#endif /* HTUTILS_H */ +#include "HTAnchor.h" +#include "HTMLDTD.h" + +#ifdef SHORT_NAMES +#define HTMLPresentation HTMLPren +#define HTMLPresent HTMLPres +#endif /* SHORT_NAMES */ + +extern CONST HTStructuredClass HTMLPresentation; + +/* + +HTConverter to present HTML + + */ +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; + + +/* + +Record error message as a hypertext object + + 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. + + */ +/* 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 /* HTML_H */ + |