1 /* 2 * $Id: io-utils.h,v 1.12 2000/08/10 21:02:50 danny Exp $ 3 * 4 * Copyright � 1992, 1999 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 software; see the file COPYING. If not, write to 18 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 19 */ 20 #ifndef IO_UTILSH 21 #define IO_UTILSH 22 23 #include "global.h" 24 #include "cell.h" 25 extern char numb_oflo[]; 26 extern char *bname[]; 27 extern char print_buf[]; 28 29 extern void init_infinity (void); 30 extern char * flt_to_str (double val); 31 extern char * flt_to_str_fmt (CELL *cp); 32 extern char * long_to_str (long val); 33 extern char * print_cell (CELL *cp); 34 extern char * cell_value_string (CELLREF row, CELLREF col, int add_quote); 35 extern char * adjust_prc (char *oldp, CELL *cp, int width, int smallwid, int just); 36 extern void set_usr_stats (int usr_n, char **usr_buf); 37 extern int usr_set_fmts (void); 38 extern void get_usr_stats (int usr_num, char **usr_buf); 39 extern char * cell_name (CELLREF rr, CELLREF cc); 40 extern char * range_name (struct rng *rng); 41 extern int get_abs_rng (char **pptr, struct rng *retp); 42 extern char * col_to_str (CELLREF col); 43 extern void clear_spreadsheet (void); 44 extern int words_imatch (char ** ptr, char * key); 45 extern int parray_len (char ** array); 46 extern int words_member (char ** keys, int len, char * check); 47 extern int prompt_len (char * prompt); 48 extern int says_default (char * str); 49 50 extern void FileSetCurrentFileName(const char *s); 51 extern char *FileGetCurrentFileName(void); 52 extern void FileCloseCurrent(void); 53 extern char *file_get_default_format(void); 54 extern char *file_get_format(int); 55 extern char *file_get_pattern(char *fmt); 56 extern void file_set_default_format(char *); 57 extern void write_file_generic(FILE *, struct rng *, char *); 58 extern void read_file_generic(FILE *, int, char *, char *); 59 60 extern void OleoSetEncoding(char *); 61 extern void OleoUserPrefEncoding(char *); 62 extern char *OleoGetEncoding(void); 63 64 #define OLEO_DEFAULT_ENCODING "ISOLatin1" 65 #endif 66