Annotation of libwww/Library/src/HTextImp.html, revision 2.2
2.1 frystyk 1: <HTML>
2: <HEAD>
3: <TITLE>W3C Sample Code Library libwww Rich Hypertext Object - Dummy Implementation</TITLE>
4: </HEAD>
5: <BODY>
6: <H1>
7: Dummy Implementation of Rich HyperText Object
8: </H1>
9: <PRE>
10: /*
11: ** (c) COPYRIGHT MIT 1995.
12: ** Please first read the full copyright statement in the file COPYRIGH.
13: */
14: </PRE>
15: <P>
16: If you are not using the libwww HTML parser but you are compiling libwww
17: as a shared library then you need to include this dummy implementation of
18: the <A HREF="HText.html">HText interface</A> in order to link succesfully.
19: In order to compile it in, you can do something like this
20: <P>
21: <CODE>#ifdef LIBWWW_SHARED<BR>
22: #include "HTextImp.h"<BR>
23: #endif</CODE>
24: <P>
25: This module is a part of the <A HREF="http://www.w3.org/pub/WWW/Library/">
26: W3C Sample Code Library</A>.
27: <PRE>
28: #ifndef HTEXTIMP_H
29: #define HTEXTIMP_H
30:
31: #include "HText.h"
32: struct _HText {};
33: PUBLIC HTStyleSheet * styleSheet = NULL;
34: PUBLIC HText * HText_new2 (HTRequest * request, HTParentAnchor * anchor,
35: HTStream * stream) {return NULL;}
36: PUBLIC void HText_free (HText * me) {}
37: PUBLIC void HText_beginAnchor (HText * text, HTChildAnchor * anchor) {}
38: PUBLIC void HText_endAnchor (HText * text) {}
39: PUBLIC void HText_appendText (HText * text, const char * str) {}
40: PUBLIC void HText_appendImage (HText * text, HTChildAnchor * anchor,
41: const char *alt, const char * align, BOOL isMap) {}
42: PUBLIC void HText_appendCharacter (HText * text, char ch) {}
43: PUBLIC void HText_endAppend (HText * text) {}
44: PUBLIC void HText_setStyle (HText * text, HTStyle * style) {}
45: PUBLIC void HText_beginAppend (HText * text) {}
46: PUBLIC void HText_appendParagraph (HText * text) {}
2.2 ! frystyk 47: PUBLIC void HText_appendObject (HText * text, int element_number,
! 48: const BOOL * present, const char ** value) {}
! 49: PUBLIC void HText_appendLink (HText * text, HTChildAnchor * anchor,
! 50: const BOOL * present, const char ** value) {}
2.1 frystyk 51:
52: #endif
53: </PRE>
54: <P>
55: <HR>
56: <ADDRESS>
2.2 ! frystyk 57: @(#) $Id: HTextImp.html,v 2.1 1998/05/14 13:19:08 frystyk Exp $
2.1 frystyk 58: </ADDRESS>
59: </BODY></HTML>
Webmaster