1 /* $Id: fmt-html.h,v 1.3 1997/03/31 21:59:42 dps Exp $ */
2 /* Shared stuff for the *TeX output format */
3 
4 #ifndef __fmt_html_h__
5 #define __fmt_html_h__
6 #include "tblock.h"
7 #include "interface.h"
8 #include "html-table.h"
9 
10 /* Anything shorter than this is not a real paragraph */
11 #define PAR_TRESHOLD_LEN 70
12 /* Less than this is not a heading */
13 #define HEADING_TRESHOLD_LEN 10
14 /* Maximum section number */
15 #define MAX_START_NUM 100
16 
17 /* Type */
18 struct embed
19 {
20     const char *key;
21     int key_len;
22     void (*handle)(const char *txt, const docfmt *fmt, FILE *out,
23 		   void *d);
24 };
25 
26 
27 /* Local data */
28 struct html_data
29 {
30     html_table *tabl;
31     int col;
32     int row;
33     const char *last_tc;
34     struct unit_info unit_d;
35     int par_flg;
36     int list_flg;
37     const char *unit_html;
38 };
39 
40 /* latex-fmt.cc */
41 extern tblock *__html_do_map(const char *s);
42 
43 /* latex-embed.cc */
44 extern void html_embed(const tok_seq::tok *t, const docfmt *fmt, FILE *out,
45 		      void *d);
46 
47 #endif  /* __fmt_html_h__ */
48 
49