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