source: trunk/essentials/sys-apps/texinfo/makeinfo/insertion.h

Last change on this file was 2617, checked in by bird, 19 years ago

GNU Texinfo 4.8

File size: 2.9 KB
Line 
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. */
24enum 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
38typedef 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
51extern int insertion_level;
52extern INSERTION_ELT *insertion_stack;
53extern int in_menu;
54extern int in_detailmenu;
55extern int had_menu_commentary;
56extern int in_paragraph;
57
58extern int headitem_flag;
59extern int after_headitem;
60
61extern void init_insertion_stack (void);
62extern void command_name_condition (void);
63extern void cm_ifdocbook (void), cm_ifnotdocbook(void), cm_docbook (int arg);
64extern void cm_ifhtml (void), cm_ifnothtml(void), cm_html (int arg);
65extern void cm_ifinfo (void), cm_ifnotinfo (void);
66extern void cm_ifplaintext (void), cm_ifnotplaintext(void);
67extern void cm_iftex (void), cm_ifnottex (void), cm_tex (void);
68extern void cm_ifxml (void), cm_ifnotxml (void), cm_xml (int arg);
69extern void handle_verbatim_environment (int find_end_verbatim);
70extern void begin_insertion (enum insertion_type type);
71extern void pop_insertion (void);
72extern void discard_insertions (int specials_ok);
73
74extern int is_in_insertion_of_type (int type);
75extern int command_needs_braces (char *cmd);
76
77extern enum insertion_type find_type_from_name (char *name);
78#endif /* !INSERTION_H */
Note: See TracBrowser for help on using the repository browser.