xref: /netbsd-src/external/gpl2/texinfo/dist/makeinfo/float.h (revision 29619d2afe564e54d657b83e5a3ae89584f83720)
1*29619d2aSchristos /*	$NetBSD: float.h,v 1.1.1.1 2016/01/14 00:11:29 christos Exp $	*/
2*29619d2aSchristos 
3*29619d2aSchristos /* float.h -- declarations for the float environment.
4*29619d2aSchristos    Id: float.h,v 1.5 2004/04/11 17:56:47 karl Exp
5*29619d2aSchristos 
6*29619d2aSchristos    Copyright (C) 2003, 2004 Free Software Foundation, Inc.
7*29619d2aSchristos 
8*29619d2aSchristos    This program is free software; you can redistribute it and/or modify
9*29619d2aSchristos    it under the terms of the GNU General Public License as published by
10*29619d2aSchristos    the Free Software Foundation; either version 2, or (at your option)
11*29619d2aSchristos    any later version.
12*29619d2aSchristos 
13*29619d2aSchristos    This program is distributed in the hope that it will be useful,
14*29619d2aSchristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
15*29619d2aSchristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16*29619d2aSchristos    GNU General Public License for more details.
17*29619d2aSchristos 
18*29619d2aSchristos    You should have received a copy of the GNU General Public License
19*29619d2aSchristos    along with this program; if not, write to the Free Software
20*29619d2aSchristos    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21*29619d2aSchristos 
22*29619d2aSchristos    Written by Alper Ersoy <dirt@gtk.org>.  */
23*29619d2aSchristos 
24*29619d2aSchristos #ifndef FLOAT_H
25*29619d2aSchristos #define FLOAT_H
26*29619d2aSchristos 
27*29619d2aSchristos typedef struct float_elt
28*29619d2aSchristos {
29*29619d2aSchristos   struct float_elt *next;
30*29619d2aSchristos   char *id;
31*29619d2aSchristos   char *type;
32*29619d2aSchristos   char *title;
33*29619d2aSchristos   char *shorttitle;
34*29619d2aSchristos   char *position;
35*29619d2aSchristos   char *number;
36*29619d2aSchristos   char *section;
37*29619d2aSchristos   char *section_name;
38*29619d2aSchristos   short title_used;
39*29619d2aSchristos   int defining_line;
40*29619d2aSchristos } FLOAT_ELT;
41*29619d2aSchristos 
42*29619d2aSchristos extern void add_new_float (char *id, char *title, char *shorttitle,
43*29619d2aSchristos     char *type, char *position);
44*29619d2aSchristos extern void current_float_set_title_used (void);
45*29619d2aSchristos 
46*29619d2aSchristos /* Information retrieval about the current float env.  */
47*29619d2aSchristos extern char *current_float_id (void);
48*29619d2aSchristos extern char *current_float_title (void);
49*29619d2aSchristos extern char *current_float_shorttitle (void);
50*29619d2aSchristos extern char *current_float_type (void);
51*29619d2aSchristos extern char *current_float_position (void);
52*29619d2aSchristos extern char *current_float_number (void);
53*29619d2aSchristos extern char *get_float_ref (char *id);
54*29619d2aSchristos 
55*29619d2aSchristos extern int count_floats_of_type_in_chapter (char *type, char *chapter);
56*29619d2aSchristos extern int current_float_used_title (void);
57*29619d2aSchristos 
58*29619d2aSchristos #endif /* not FLOAT_H */
59