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