Back to index

tetex-bin  3.0
float.h
Go to the documentation of this file.
00001 /* float.h -- declarations for the float environment.
00002    $Id: float.h,v 1.5 2004/04/11 17:56:47 karl Exp $
00003 
00004    Copyright (C) 2003, 2004 Free Software Foundation, Inc.
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 2, or (at your option)
00009    any later version.
00010 
00011    This program is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014    GNU General Public License for more details.
00015 
00016    You should have received a copy of the GNU General Public License
00017    along with this program; if not, write to the Free Software
00018    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00019 
00020    Written by Alper Ersoy <dirt@gtk.org>.  */
00021 
00022 #ifndef FLOAT_H
00023 #define FLOAT_H
00024 
00025 typedef struct float_elt
00026 {
00027   struct float_elt *next;
00028   char *id;
00029   char *type;
00030   char *title;
00031   char *shorttitle;
00032   char *position;
00033   char *number;
00034   char *section;
00035   char *section_name;
00036   short title_used;
00037   int defining_line;
00038 } FLOAT_ELT;
00039 
00040 extern void add_new_float (char *id, char *title, char *shorttitle,
00041     char *type, char *position);
00042 extern void current_float_set_title_used (void);
00043 
00044 /* Information retrieval about the current float env.  */
00045 extern char *current_float_id (void);
00046 extern char *current_float_title (void);
00047 extern char *current_float_shorttitle (void);
00048 extern char *current_float_type (void);
00049 extern char *current_float_position (void);
00050 extern char *current_float_number (void);
00051 extern char *get_float_ref (char *id);
00052 
00053 extern int count_floats_of_type_in_chapter (char *type, char *chapter);
00054 extern int current_float_used_title (void);
00055 
00056 #endif /* not FLOAT_H */