| 1 | /******************************************************************************* |
| 2 | * Simplified Wrapper and Interface Generator (SWIG) |
| 3 | * |
| 4 | * Author : David Beazley |
| 5 | * |
| 6 | * Department of Computer Science |
| 7 | * University of Chicago |
| 8 | * 1100 E 58th Street |
| 9 | * Chicago, IL 60637 |
| 10 | * beazley@cs.uchicago.edu |
| 11 | * |
| 12 | * Please read the file LICENSE for the copyright and terms by which SWIG |
| 13 | * can be used and distributed. |
| 14 | *******************************************************************************/ |
| 15 | |
| 16 | /*********************************************************************** |
| 17 | * $Header$ |
| 18 | * |
| 19 | * html.h |
| 20 | * |
| 21 | * HTML specific functions for producing documentation. |
| 22 | ***********************************************************************/ |
| 23 | |
| 24 | class HTML : public Documentation { |
| 25 | private: |
| 26 | FILE *f_doc; |
| 27 | void print_string(char *s, String &str, int mode); |
| 28 | char *start_tag(char *); |
| 29 | char *end_tag(char *); |
| 30 | int sect_count; |
| 31 | int sect_num[20]; |
| 32 | int last_section; |
| 33 | String s_doc; |
| 34 | String s_title; |
| 35 | String contents; |
| 36 | char *tag_body; |
| 37 | char *tag_title; |
| 38 | char *tag_contents; |
| 39 | char *tag_section; |
| 40 | char *tag_subsection; |
| 41 | char *tag_subsubsection; |
| 42 | char *tag_usage; |
| 43 | char *tag_descrip; |
| 44 | char *tag_text; |
| 45 | char *tag_cinfo; |
| 46 | char *tag_preformat; |
| 47 | public: |
| 48 | HTML(); |
| 49 | void parse_args(int argc, char **argv); |
| 50 | void title(DocEntry *de); |
| 51 | void newsection(DocEntry *de, int sectnum); |
| 52 | void endsection(); |
| 53 | void print_decl(DocEntry *de); |
| 54 | void print_text(DocEntry *de); |
| 55 | void separator(); |
| 56 | void init(char *filename); |
| 57 | void close(void); |
| 58 | void style(char *name, char *value); |
| 59 | }; |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |