1/* float.h -- declarations for the float environment.
2   $Id: float.h,v 1.5 2004/04/11 17:56:47 karl Exp $
3
4   Copyright (C) 2003, 2004 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
18   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
20   Written by Alper Ersoy <dirt@gtk.org>.  */
21
22#ifndef FLOAT_H
23#define FLOAT_H
24
25typedef struct float_elt
26{
27  struct float_elt *next;
28  char *id;
29  char *type;
30  char *title;
31  char *shorttitle;
32  char *position;
33  char *number;
34  char *section;
35  char *section_name;
36  short title_used;
37  int defining_line;
38} FLOAT_ELT;
39
40extern void add_new_float (char *id, char *title, char *shorttitle,
41    char *type, char *position);
42extern void current_float_set_title_used (void);
43
44/* Information retrieval about the current float env.  */
45extern char *current_float_id (void);
46extern char *current_float_title (void);
47extern char *current_float_shorttitle (void);
48extern char *current_float_type (void);
49extern char *current_float_position (void);
50extern char *current_float_number (void);
51extern char *get_float_ref (char *id);
52
53extern int count_floats_of_type_in_chapter (char *type, char *chapter);
54extern int current_float_used_title (void);
55
56#endif /* not FLOAT_H */
57