~ubuntu-branches/ubuntu/quantal/gnumeric/quantal

« back to all changes in this revision

Viewing changes to plugins/excel/ms-excel-read.h

  • Committer: Bazaar Package Importer
  • Author(s): Gauvain Pocentek
  • Date: 2009-06-22 13:37:20 UTC
  • mfrom: (1.1.20 upstream) (2.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090622133720-rtdazsiz2lx5q8l7
Tags: 1.9.9-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Promoted gnumeric-doc to Recommends in gnumeric package for help to be
    installed automatically
  - gnumeric-gtk is a transitional package
  - gnumeric conflicts with gnumeric-gtk << 1.8.3-3ubuntu1
  - call initltool-update in po*
  - remove psiconv support (psiconv is in universe):
    o debian/control: remove B-D on libpsiconv-dev
    o debian/rules: don't pass --with-psiconv to ./configure
    o debian/gnumeric-plugins-extra.install: don't install the psiconv
      plugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
#include "ms-container.h"
18
18
#include <expr.h>
19
19
#include <mstyle.h>
 
20
#include <goffice-data.h>
20
21
#include <pango/pango-attributes.h>
21
22
#include <gdk-pixbuf/gdk-pixbuf.h>
22
23
 
93
94
} BiffFormatData;
94
95
 
95
96
typedef struct {
96
 
        GnmString       *content;
 
97
        GOString        *content;
97
98
        GOFormat        *markup;
98
99
} ExcelStringEntry;
99
100
 
113
114
        GHashTable       *font_data;
114
115
        GHashTable       *format_table; /* leave as a hash */
115
116
        struct {
 
117
                GnmSheetSlicer    *slicer;
 
118
                GODataSlicerField *slicer_field;
 
119
 
 
120
                GPtrArray         *cache_by_id;
 
121
                unsigned int      field_count, record_count;
 
122
 
 
123
                unsigned int      ivd_index; /* 0 = row, 1 = col, > 1 == err */
 
124
        } pivot;
 
125
        struct {
116
126
                GArray   *supbook;
117
127
                GArray   *externsheet;
118
128
        } v8; /* biff8 does this in the workbook */
124
134
        GIConv            str_iconv;
125
135
};
126
136
 
127
 
GnmValue *biff_get_error (GnmEvalPos const *pos, guint8 const err);
 
137
GnmValue *xls_value_new_err (GnmEvalPos const *pos, guint8 const err);
 
138
void      xls_read_range32  (GnmRange *r, guint8 const *data);
 
139
void      xls_read_range16  (GnmRange *r, guint8 const *data);
 
140
void      xls_read_range8   (GnmRange *r, guint8 const *data);
128
141
 
129
142
Sheet           *excel_externsheet_v7    (MSContainer const *container, gint16 i);
130
143
ExcelExternSheetV8 const *excel_externsheet_v8 (GnmXLImporter const *wb, guint16 i);
133
146
MsBiffBofData *ms_biff_bof_data_new     (BiffQuery * q);
134
147
void           ms_biff_bof_data_destroy (MsBiffBofData * data);
135
148
 
136
 
char *excel_get_chars (GnmXLImporter const *importer,
 
149
char *excel_get_chars (GnmXLImporter const *imp,
137
150
                       guint8 const *ptr, size_t length,
138
151
                       gboolean use_utf16);
139
 
char * excel_get_text (GnmXLImporter const *importer,
 
152
char * excel_get_text (GnmXLImporter const *imp,
140
153
                       guint8 const *pos, guint32 length,
141
154
                       guint32 *byte_length, guint32 maxlen);
142
 
char *excel_biff_text_1 (GnmXLImporter const *importer, const BiffQuery *q, guint32 ofs);
143
 
char *excel_biff_text_2 (GnmXLImporter const *importer, const BiffQuery *q, guint32 ofs);
 
155
char *excel_biff_text_1 (GnmXLImporter const *imp, BiffQuery const *q, guint32 ofs);
 
156
char *excel_biff_text_2 (GnmXLImporter const *imp, BiffQuery const *q, guint32 ofs);
144
157
 
145
 
GnmColor        *excel_palette_get (GnmXLImporter *importer, gint idx);
146
 
ExcelFont const *excel_font_get    (GnmXLImporter const *importer, unsigned idx);
 
158
GnmColor        *excel_palette_get (GnmXLImporter *imp, gint idx);
 
159
ExcelFont const *excel_font_get    (GnmXLImporter const *imp, unsigned idx);
147
160
GOFont const    *excel_font_get_gofont (ExcelFont const *font);
148
161
 
149
162
GdkPixbuf *excel_read_IMDATA (BiffQuery *q, gboolean keep_image);
152
165
/* A utility routine to handle unexpected BIFF records */
153
166
void excel_unexpected_biff (BiffQuery *q, char const *state, int debug_level);
154
167
 
 
168
void xls_read_SXStreamID (GnmXLImporter *imp, BiffQuery *q,
 
169
                          GsfInfile *parent);
 
170
void xls_read_SXVIEW     (BiffQuery *q, ExcelReadSheet *esheet);
 
171
void xls_read_SXVD       (BiffQuery *q, ExcelReadSheet *esheet);
 
172
void xls_read_SXIVD      (BiffQuery *q, ExcelReadSheet *esheet);
 
173
 
155
174
void excel_read_cleanup (void);
156
175
void excel_read_init (void);
157
176