insertion.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /* insertion.h -- declarations for insertion.c.
  2. $Id: insertion.h,v 1.16 2009-01-01 07:24:57 olegkat Exp $
  3. Copyright (C) 1998, 1999, 2001, 2002, 2003, 2007, 2008
  4. Free Software Foundation, Inc.
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 3 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  15. #ifndef INSERTION_H
  16. #define INSERTION_H
  17. /* Must match list in insertion.c. */
  18. enum insertion_type
  19. {
  20. cartouche, copying, defcv, deffn, defivar, defmac, defmethod, defop,
  21. defopt, defspec, deftp, deftypecv, deftypefn, deftypefun, deftypeivar,
  22. deftypemethod, deftypeop, deftypevar, deftypevr, defun, defvar, defvr,
  23. detailmenu, direntry, display, documentdescription, enumerate,
  24. example, floatenv, flushleft, flushright, format, ftable, group,
  25. ifclear, ifdocbook, ifhtml, ifinfo, ifnotdocbook, ifnothtml, ifnotinfo,
  26. ifnotplaintext, ifnottex, ifnotxml, ifplaintext, ifset, iftex, ifxml,
  27. itemize, lisp, menu, multitable, quotation, raggedcenter, raggedleft,
  28. raggedright, rawdocbook, rawhtml, rawtex,
  29. rawxml, smalldisplay, smallexample, smallformat, smalllisp, verbatim,
  30. table, tex, vtable, titlepage, bad_type
  31. };
  32. extern const char default_item_function[];
  33. typedef struct istack_elt
  34. {
  35. struct istack_elt *next;
  36. char *item_function;
  37. char *filename;
  38. int line_number;
  39. int filling_enabled;
  40. int indented_fill;
  41. int insertion;
  42. int inhibited;
  43. int in_fixed_width_font;
  44. } INSERTION_ELT;
  45. extern int insertion_level;
  46. extern INSERTION_ELT *insertion_stack;
  47. extern int in_menu;
  48. extern int in_detailmenu;
  49. extern int had_menu_commentary;
  50. extern int in_paragraph;
  51. extern int headitem_flag;
  52. extern int after_headitem;
  53. extern void init_insertion_stack (void);
  54. extern void command_name_condition (void);
  55. extern void cm_ifdocbook (void), cm_ifnotdocbook(void), cm_docbook (int arg);
  56. extern void cm_ifhtml (void), cm_ifnothtml(void), cm_html (int arg);
  57. extern void cm_ifinfo (void), cm_ifnotinfo (void);
  58. extern void cm_ifplaintext (void), cm_ifnotplaintext(void);
  59. extern void cm_iftex (void), cm_ifnottex (void), cm_tex (void);
  60. extern void cm_ifxml (void), cm_ifnotxml (void), cm_xml (int arg);
  61. extern void handle_verbatim_environment (int find_end_verbatim);
  62. extern void begin_insertion (enum insertion_type type);
  63. extern void pop_insertion (void);
  64. extern void discard_insertions (int specials_ok);
  65. extern int is_in_insertion_of_type (int type);
  66. extern int command_needs_braces (char *cmd);
  67. extern enum insertion_type find_type_from_name (char *name);
  68. extern char *get_item_function (void);
  69. #endif /* !INSERTION_H */