float.h 1.7 KB

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