]> www.wagner.pp.ru Git - oss/catdoc.git/blob - src/xls.h
Recreated CVS repository from working copy
[oss/catdoc.git] / src / xls.h
1 /*****************************************************************/
2 /* Definition specific for Excel file handling                   */
3 /*                                                               */
4 /* This file is part of catdoc project                           */
5 /* (c) Victor Wagner 2003, (c) Alex Ott 2003                     */
6 /*****************************************************************/
7
8 #ifndef XLS_H
9 #define XLS_H
10
11 #include <stdio.h>
12 #include <math.h>
13 /* types of quoting */
14 #define QUOTE_NEVER 0
15 #define QUOTE_SPACES_ONLY 1
16 #define QUOTE_ALL_STRINGS 2
17 #define QUOTE_EVERYTHING 3
18
19 struct rowdescr {
20         int last, end;
21         unsigned char **cells;
22 };      
23 /* structure to hold parsed table */
24 extern struct rowdescr *rowptr;
25 extern int startrow;
26 /* xls2csv-specific configuration */
27 extern char cell_separator;
28 extern int quote_mode;
29 void print_sheet(void);
30 void free_sheet(void);
31 void print_value(unsigned char *value);
32 char *format_double(char *rec,int offset,int format_code);
33 char *format_int(int value,int format_code);
34 char *format_rk(char *rec,short int format_code);
35 char *gettypename(long rectype);
36 void parse_sst(char *sstbuf,int bufsize);
37 void process_item (int rectype, int reclen, char *rec); 
38 unsigned char **allocate(int row,int col);
39 char *copy_unicode_string(unsigned char **src);
40 char convert8to8(char *src,int count);
41 char *convert16to8(char *src,int count);
42 void do_table(FILE *input,char *filename);
43 char *mark_string(char *instr);
44
45 /* ---- added by Igor ---- */
46 void SetFormatIdxUsed(int format_code);
47 /* -- end added by Igor -- */
48
49
50 #ifdef __TURBOC__
51 #define rint(x) floor((x+0.5))
52 #endif
53 #endif