version 2.5, 1993/04/30 16:17:39
|
version 2.6, 1993/06/18 11:03:36
|
Line 1
|
Line 1
|
<PRE> |
<HEADER> |
/* The HTML to rtf object converter HTML.h |
<TITLE>HTML to rich text converter for libwww</TITLE></HEADER> |
** -------------------------------- |
<BODY> |
*/ |
<H1>The HTML to rtf object converter</H1> |
|
<PRE>#ifndef HTML_H |
#ifndef HTML_H |
|
#define HTML_H |
#define HTML_H |
|
|
#include "HTUtils.h" |
#include "HTUtils.h" |
#include "HTAnchor.h" |
#include "HTAnchor.h" |
#include "HTMLDTD.h" |
#include "HTMLDTD.h" |
|
|
|
#ifdef SHORT_NAMES |
|
#define HTMLPresentation HTMLPren |
|
#define HTMLPresent HTMLPres |
|
#endif |
|
|
extern CONST HTStructuredClass HTMLPresentation; |
extern CONST HTStructuredClass HTMLPresentation; |
|
|
/* HTConverter to present HTML |
</PRE> |
*/ |
<H2>HTConverter to present HTML</H2> |
PUBLIC HTStream* HTMLToPlain PARAMS(( |
<PRE>PUBLIC HTStream* HTMLToPlain PARAMS(( |
HTPresentation * pres, |
HTPresentation * pres, |
HTParentAnchor * anchor, |
HTParentAnchor * anchor, |
HTStream * sink)); |
HTStream * sink)); |
Line 45 typedef enum _HTMLCharacterSet {
|
Line 48 typedef enum _HTMLCharacterSet {
|
|
|
extern void HTMLUseCharacterSet PARAMS((HTMLCharacterSet i)); |
extern void HTMLUseCharacterSet PARAMS((HTMLCharacterSet i)); |
|
|
/* Record error message as a hypertext object |
</PRE> |
** ------------------------------------------ |
<H2>Record error message as a hypertext |
** |
object</H2>The error message should be marked |
** The error message should be marked as an error so that |
as an error so that it can be reloaded |
** it can be reloaded later. |
later. This implementation just throws |
** This implementation just throws up an error message |
up an error message and leaves the |
** and leaves the document unloaded. |
document unloaded. |
** |
<PRE>/* On entry, |
** On entry, |
|
** sink is a stream to the output device if any |
** sink is a stream to the output device if any |
** number is the HTTP error number |
** number is the HTTP error number |
** message is the human readable message. |
** message is the human readable message. |
** On exit, |
** On exit, |
** a retrun code like HT_LOADED if object exists else < 0 |
** a retrun code like HT_LOADED if object exists else 60; 0 |
*/ |
*/ |
|
|
PUBLIC int HTLoadError PARAMS(( |
PUBLIC int HTLoadError PARAMS(( |
Line 67 PUBLIC int HTLoadError PARAMS((
|
Line 69 PUBLIC int HTLoadError PARAMS((
|
CONST char * message)); |
CONST char * message)); |
|
|
#endif |
#endif |
</PRE> |
|
|
</A></PRE></BODY> |