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