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