htmlmap.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #include <stdio.h>
  2. #define DEF_MINBBOX 2
  3. #define DEF_MINDIST 2
  4. #define DEF_MAXPTS 99
  5. #define FILE_NAME "htmlmap"
  6. #define INITIAL_TEXT 1000
  7. #define APACHE 0 /* write output in apache/ncsa server image map format */
  8. #define NCSA 0 /* write output in apache/ncsa server image map format */
  9. #define CLIENT 1 /* write output in netscape client side image map format */
  10. #define RAW 2 /* write output in raw format */
  11. extern char *last_text;
  12. extern int last_text_len;
  13. extern char *file_name;
  14. extern int html_type;
  15. extern FILE *output;
  16. struct MapPoly
  17. {
  18. char *url;
  19. int num_pts;
  20. int *x_pts;
  21. int *y_pts;
  22. struct MapPoly *next_poly;
  23. };
  24. extern struct MapPoly *head;
  25. extern struct MapPoly **tail;
  26. /* Driver.c */
  27. extern const struct driver *HTML_Driver(void);
  28. /* Graph_Clse.c */
  29. extern void HTML_Graph_close(void);
  30. /* Graph_Set.c */
  31. extern int HTML_Graph_set(int, char **);
  32. /* Polygon.c */
  33. extern void HTML_Polygon(const int *, const int *, int);
  34. /* Text.c */
  35. extern void HTML_Text(const char *);