1 /* libgsf-1.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gsf", gir_namespace = "Gsf", gir_version = "1", lower_case_cprefix = "gsf_")]
5 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_blob_get_type ()")]
6 public class Blob : GLib.Object {
7 [CCode (has_construct_function = false)]
8 public Blob ([CCode (array_length_cname = "size", array_length_pos = 0.5, array_length_type = "gsize")] uint8[] data_to_copy) throws GLib.Error;
9 public size_t get_size ();
10 public void* peek_data ();
12 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_clip_data_get_type ()")]
13 public class ClipData : GLib.Object {
14 [CCode (has_construct_function = false)]
15 public ClipData (Gsf.ClipFormat format, Gsf.Blob data_blob);
16 public Gsf.Blob get_data_blob ();
17 public Gsf.ClipFormat get_format ();
18 public Gsf.ClipFormatWindows get_windows_clipboard_format () throws GLib.Error;
19 public void* peek_real_data (size_t ret_size) throws GLib.Error;
21 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_doc_meta_data_get_type ()")]
22 public class DocMetaData : GLib.Object {
23 [CCode (has_construct_function = false)]
24 public DocMetaData ();
25 public void @foreach ([CCode (type = "GHFunc")] GLib.HFunc<string,Gsf.DocProp> func);
26 public void insert (owned string name, owned GLib.Value value);
27 public unowned Gsf.DocProp? lookup (string name);
28 [Version (since = "1.14.24")]
29 public void odf_subtree (Gsf.XMLIn doc);
30 [Version (since = "1.14.24")]
31 public GLib.Error read_from_msole (Gsf.Input @in);
32 [Version (since = "1.14.24")]
33 public GLib.Error read_from_odf (Gsf.Input input);
34 public void remove (string name);
35 public size_t size ();
36 public Gsf.DocProp? steal (string name);
37 public void store (Gsf.DocProp prop);
38 [Version (since = "1.14.24")]
39 public bool write_to_msole (Gsf.Output @out, bool doc_not_component);
40 [Version (since = "1.14.24")]
41 public bool write_to_odf (Gsf.XMLOut output);
43 [CCode (cheader_filename = "gsf/gsf.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gsf_doc_prop_get_type ()")]
45 public class DocProp {
46 [CCode (has_construct_function = false)]
47 public DocProp (owned string name);
51 public unowned string? get_link ();
52 public unowned string get_name ();
53 public unowned GLib.Value? get_val ();
54 public void set_link (owned string link);
55 public void set_val (owned GLib.Value val);
56 public GLib.Value? swap_val (owned GLib.Value val);
58 [CCode (cheader_filename = "gsf/gsf.h", lower_case_csuffix = "docprop_vector", type_id = "gsf_docprop_vector_get_type ()")]
59 public class DocPropVector : GLib.Object {
60 [CCode (has_construct_function = false)]
61 public DocPropVector ();
62 public void append (GLib.Value value);
63 public string as_string ();
65 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_infile_get_type ()")]
66 public abstract class Infile : Gsf.Input {
67 [CCode (has_construct_function = false)]
69 public Gsf.Input child_by_aname ([CCode (array_length = false, array_null_terminated = true)] string[] names);
70 public Gsf.Input child_by_index (int i);
71 public Gsf.Input child_by_name (string name);
72 public Gsf.Input child_by_vaname (va_list names);
73 public virtual unowned string? name_by_index (int i);
74 public virtual int num_children ();
76 [CCode (cheader_filename = "gsf/gsf.h", lower_case_csuffix = "infile_msole", type_id = "gsf_infile_msole_get_type ()")]
77 public class InfileMSOle : Gsf.Infile {
78 [CCode (has_construct_function = false, type = "GsfInfile*")]
79 public InfileMSOle (Gsf.Input source) throws GLib.Error;
80 public bool get_class_id (uint8 res);
82 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_infile_msvba_get_type ()")]
83 public class InfileMSVBA : Gsf.Infile {
84 [CCode (has_construct_function = false, type = "GsfInfile*")]
85 public InfileMSVBA (Gsf.Infile source) throws GLib.Error;
86 public unowned GLib.HashTable<string,uint8[]?> get_modules ();
87 public GLib.HashTable<string,uint8[]?> steal_modules ();
89 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_infile_stdio_get_type ()")]
90 public class InfileStdio : Gsf.Infile {
91 [CCode (has_construct_function = false, type = "GsfInfile*")]
92 public InfileStdio (string root) throws GLib.Error;
94 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_infile_tar_get_type ()")]
95 public class InfileTar : Gsf.Infile {
96 [CCode (has_construct_function = false, type = "GsfInfile*")]
97 public InfileTar (Gsf.Input source) throws GLib.Error;
99 public Gsf.Input source { owned get; construct; }
101 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_infile_zip_get_type ()")]
102 public class InfileZip : Gsf.Infile {
103 [CCode (has_construct_function = false, type = "GsfInfile*")]
104 public InfileZip (Gsf.Input source) throws GLib.Error;
106 public int compression_level { get; }
108 public Gsf.InfileZip internal_parent { construct; }
110 public Gsf.Input source { owned get; construct; }
112 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_input_get_type ()")]
113 public abstract class Input : GLib.Object {
114 public Gsf.off_t cur_offset;
115 [CCode (has_construct_function = false)]
117 public bool copy (Gsf.Output output);
118 public void dump (bool dump_as_hex);
119 [CCode (vfunc_name = "Dup")]
120 public virtual Gsf.Input dup () throws GLib.Error;
121 public static GLib.Quark error_id ();
122 public Gsf.InfileMSVBA find_vba () throws GLib.Error;
123 public unowned GLib.DateTime get_modtime ();
124 [CCode (cname = "gsf_input_mmap_new", has_construct_function = false)]
125 public Input.mmap_new (string filename) throws GLib.Error;
126 [CCode (array_length = false, vfunc_name = "Read")]
127 public virtual unowned uint8[]? read (size_t num_bytes, [CCode (array_length = false)] uint8[]? optional_buffer);
128 [CCode (array_length_pos = 1.1, array_length_type = "gsize")]
129 public uint8[] read0 (size_t num_bytes);
130 [CCode (vfunc_name = "Seek")]
131 public virtual bool seek (Gsf.off_t offset, GLib.SeekType whence);
132 public bool seek_emulate (Gsf.off_t pos);
133 public bool set_container (Gsf.Infile? container);
134 public bool set_modtime (GLib.DateTime? modtime);
135 public bool set_modtime_from_stat (void* st);
136 public bool set_name (string? name);
137 public bool set_name_from_filename (string filename);
138 public bool set_size (Gsf.off_t size);
139 [CCode (vfunc_name = "OpenSibling")]
140 public virtual Gsf.Input sibling (string name) throws GLib.Error;
141 public Gsf.off_t tell ();
142 public Gsf.Input uncompress ();
144 public Gsf.Infile container { owned get; }
146 public bool eof { get; }
147 public GLib.DateTime modtime { get; }
149 public string name { owned get; }
151 public int64 position { get; }
153 public int64 remaining { get; }
155 public int64 size { get; }
157 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_input_gzip_get_type ()")]
158 public class InputGZip : Gsf.Input {
159 [CCode (has_construct_function = false, type = "GsfInput*")]
160 public InputGZip (Gsf.Input source) throws GLib.Error;
162 public bool raw { get; construct; }
164 public Gsf.Input source { owned get; construct; }
166 public int64 uncompressed_size { get; construct; }
168 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_input_gio_get_type ()")]
169 public class InputGio : Gsf.Input {
170 [CCode (has_construct_function = false, type = "GsfInput*")]
171 public InputGio (GLib.File file) throws GLib.Error;
172 [CCode (has_construct_function = false, type = "GsfInput*")]
173 public InputGio.for_path (string path) throws GLib.Error;
174 [CCode (has_construct_function = false, type = "GsfInput*")]
175 public InputGio.for_uri (string uri) throws GLib.Error;
177 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_input_http_get_type ()")]
178 public class InputHTTP : Gsf.Input {
179 [CCode (has_construct_function = false, type = "GsfInput*")]
180 public InputHTTP (string url) throws GLib.Error;
181 public string get_content_type ();
182 public string get_url ();
183 public string content_type { owned get; construct; }
184 public string url { owned get; construct; }
186 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_input_memory_get_type ()")]
187 public class InputMemory : Gsf.Input {
188 [CCode (has_construct_function = false, type = "GsfInput*")]
189 public InputMemory ([CCode (array_length_cname = "length", array_length_pos = 1.5)] uint8[] buf, bool needs_free);
190 [CCode (has_construct_function = false, type = "GsfInput*")]
191 public InputMemory.clone ([CCode (array_length_cname = "length", array_length_pos = 1.1)] uint8[] buf);
192 [CCode (has_construct_function = false, type = "GsfInput*")]
193 public InputMemory.from_bzip (Gsf.Input source) throws GLib.Error;
194 [CCode (has_construct_function = false, type = "GsfInput*")]
195 public InputMemory.from_iochannel (GLib.IOChannel channel) throws GLib.Error;
197 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_input_proxy_get_type ()")]
198 public class InputProxy : Gsf.Input {
199 [CCode (has_construct_function = false, type = "GsfInput*")]
200 public InputProxy (Gsf.Input source);
201 [CCode (has_construct_function = false, type = "GsfInput*")]
202 public InputProxy.section (Gsf.Input source, Gsf.off_t offset, Gsf.off_t size);
204 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_input_stdio_get_type ()")]
205 public class InputStdio : Gsf.Input {
206 [CCode (has_construct_function = false, type = "GsfInput*")]
207 public InputStdio (string filename) throws GLib.Error;
208 [CCode (has_construct_function = false, type = "GsfInput*")]
209 public InputStdio.FILE (string filename, owned void* file, bool keep_open);
211 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_input_textline_get_type ()")]
212 public class InputTextline : Gsf.Input {
213 [CCode (has_construct_function = false, type = "GsfInput*")]
214 public InputTextline (Gsf.Input source);
215 [CCode (array_length = false)]
216 public unowned uint8[]? ascii_gets ();
217 [CCode (array_length = false)]
218 public unowned uint8[]? utf8_gets ();
220 [CCode (cheader_filename = "gsf/gsf.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", lower_case_csuffix = "msole_sorting_key", type_id = "gsf_msole_sorting_key_get_type ()")]
222 public class MSOleSortingKey {
223 [CCode (has_construct_function = false)]
224 public MSOleSortingKey (string name);
225 public int cmp (Gsf.MSOleSortingKey b);
229 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_odf_out_get_type ()")]
230 public class ODFOut : Gsf.XMLOut {
231 [CCode (has_construct_function = false)]
233 public int get_version ();
234 public string get_version_string ();
236 public int odf_version { get; construct; }
238 [CCode (cheader_filename = "gsf/gsf.h", has_type_id = false)]
240 public class OpenPkgRel {
241 public unowned string get_target ();
242 public unowned string get_type ();
243 public bool is_extern ();
245 [CCode (cheader_filename = "gsf/gsf.h", has_type_id = false)]
247 public class OpenPkgRels {
249 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_outfile_get_type ()")]
250 public abstract class Outfile : Gsf.Output {
251 [CCode (has_construct_function = false)]
252 protected Outfile ();
253 public Gsf.Output new_child (string name, bool is_dir);
254 public Gsf.Output new_child_full (string name, bool is_dir, ...);
255 [CCode (vfunc_name = "new_child")]
256 public virtual Gsf.Output new_child_varg (string name, bool is_dir, string first_property_name, va_list args);
257 public Gsf.Output open_pkg_add_rel (string name, string content_type, Gsf.Outfile parent, string type);
259 [CCode (cheader_filename = "gsf/gsf.h", lower_case_csuffix = "outfile_msole", type_id = "gsf_outfile_msole_get_type ()")]
260 public class OutfileMSOle : Gsf.Outfile {
261 [CCode (has_construct_function = false, type = "GsfOutfile*")]
262 public OutfileMSOle (Gsf.Output sink);
263 [CCode (has_construct_function = false, type = "GsfOutfile*")]
264 public OutfileMSOle.full (Gsf.Output sink, uint bb_size, uint sb_size);
265 public bool set_class_id ([CCode (array_length = false)] uint8 clsid[16]);
267 public uint big_block_size { get; construct; }
269 public Gsf.Output sink { owned get; construct; }
271 public uint small_block_size { get; construct; }
273 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_outfile_open_pkg_get_type ()")]
274 public class OutfileOpenPkg : Gsf.Outfile {
275 [CCode (has_construct_function = false, type = "GsfOutfile*")]
276 public OutfileOpenPkg (Gsf.Outfile sink);
277 public unowned string add_extern_rel (string target, string content_type);
278 public unowned string relate (Gsf.OutfileOpenPkg parent, string type);
279 public void set_content_type (string content_type);
280 public void set_sink (Gsf.Output sink);
282 public string content_type { owned get; construct; }
284 public bool is_dir { get; construct; }
286 public Gsf.Outfile sink { owned get; construct; }
288 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_outfile_stdio_get_type ()")]
289 public class OutfileStdio : Gsf.Outfile {
290 [CCode (has_construct_function = false, type = "GsfOutfile*")]
291 public OutfileStdio (string root) throws GLib.Error;
293 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_outfile_zip_get_type ()")]
294 public class OutfileZip : Gsf.Outfile {
295 [CCode (has_construct_function = false, type = "GsfOutfile*")]
296 public OutfileZip (Gsf.Output sink) throws GLib.Error;
297 public bool set_compression_method (Gsf.ZipCompressionMethod method);
299 public int compression_level { get; construct; }
301 public int deflate_level { get; construct; }
303 public string entry_name { owned get; construct; }
305 public Gsf.Output sink { owned get; construct; }
307 public int zip64 { get; construct; }
309 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_output_get_type ()")]
310 public abstract class Output : GLib.Object {
311 public Gsf.off_t cur_offset;
312 public Gsf.off_t cur_size;
313 public weak GLib.Error err;
314 public weak string printf_buf;
315 public int printf_buf_size;
316 public weak GLib.Object wrapped_by;
317 [CCode (has_construct_function = false)]
319 [CCode (vfunc_name = "Close")]
320 public virtual bool close ();
321 public unowned GLib.Error error ();
322 public static GLib.Quark error_id ();
323 public unowned GLib.DateTime get_modtime ();
324 public bool printf (string format, ...);
325 public bool puts (string line);
326 [CCode (vfunc_name = "Seek")]
327 public virtual bool seek (Gsf.off_t offset, GLib.SeekType whence);
328 public bool set_container (Gsf.Outfile container);
329 public bool set_error (int code, string format, ...);
330 public bool set_modtime (GLib.DateTime? modtime);
331 public bool set_name (string name);
332 public bool set_name_from_filename (string filename);
333 public Gsf.off_t tell ();
334 public static bool unwrap (GLib.Object wrapper, Gsf.Output wrapee);
335 [CCode (vfunc_name = "Vprintf")]
336 public virtual Gsf.off_t vprintf (string format, va_list args);
337 public static bool wrap (GLib.Object wrapper, Gsf.Output wrapee);
338 [CCode (vfunc_name = "Write")]
339 public virtual bool write ([CCode (array_length_cname = "num_bytes", array_length_pos = 0.5, array_length_type = "gsize")] uint8[] data);
341 public Gsf.Outfile container { owned get; set; }
343 public bool is_closed { get; }
344 public GLib.DateTime modtime { get; construct; }
346 public string name { owned get; set; }
348 public int64 position { get; }
350 public int64 size { get; }
352 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_output_bzip_get_type ()")]
353 public class OutputBzip : Gsf.Output {
354 [CCode (has_construct_function = false, type = "GsfOutput*")]
355 public OutputBzip (Gsf.Output sink) throws GLib.Error;
357 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_output_csv_get_type ()")]
358 public class OutputCsv : Gsf.Output {
359 public weak GLib.StringBuilder buf;
360 public size_t eol_len;
361 public bool fields_on_line;
362 public size_t quote_len;
363 public size_t separator_len;
364 [CCode (has_construct_function = false)]
365 protected OutputCsv ();
366 public bool write_eol ();
367 public bool write_field (string field, size_t len);
369 public string eol { owned get; set construct; }
371 public string quote { owned get; set construct; }
373 public Gsf.OutputCsvQuotingMode quoting_mode { get; set construct; }
375 public bool quoting_on_whitespace { get; set; }
377 public string quoting_triggers { owned get; set; }
379 public string separator { owned get; set construct; }
381 public Gsf.Output sink { owned get; set; }
383 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_output_gzip_get_type ()")]
384 public class OutputGZip : Gsf.Output {
385 [CCode (has_construct_function = false, type = "GsfOutput*")]
386 public OutputGZip (Gsf.Output sink) throws GLib.Error;
388 public bool raw { get; construct; }
390 public Gsf.Output sink { owned get; construct; }
392 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_output_gio_get_type ()")]
393 public class OutputGio : Gsf.Output {
394 [CCode (has_construct_function = false, type = "GsfOutput*")]
395 public OutputGio (GLib.File file);
396 [CCode (has_construct_function = false, type = "GsfOutput*")]
397 public OutputGio.for_path (string path) throws GLib.Error;
398 [CCode (has_construct_function = false, type = "GsfOutput*")]
399 public OutputGio.for_uri (string uri) throws GLib.Error;
401 [CCode (cheader_filename = "gsf/gsf.h", lower_case_csuffix = "output_iochannel", type_id = "gsf_output_iochannel_get_type ()")]
402 public class OutputIOChannel : Gsf.Output {
403 [CCode (has_construct_function = false, type = "GsfOutput*")]
404 public OutputIOChannel (GLib.IOChannel channel);
406 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_output_iconv_get_type ()")]
407 public class OutputIconv : Gsf.Output {
408 [CCode (has_construct_function = false, type = "GsfOutput*")]
409 public OutputIconv (Gsf.Output sink, string dst, string src);
411 public string fallback { owned get; set; }
413 public string input_charset { owned get; construct; }
415 public string output_charset { owned get; construct; }
417 public Gsf.Output sink { owned get; construct; }
419 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_output_memory_get_type ()")]
420 public class OutputMemory : Gsf.Output {
421 [CCode (has_construct_function = false, type = "GsfOutput*")]
422 public OutputMemory ();
423 [CCode (array_length = false)]
424 public unowned uint8[]? get_bytes ();
426 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_output_stdio_get_type ()")]
427 public class OutputStdio : Gsf.Output {
428 [CCode (has_construct_function = false, type = "GsfOutput*")]
429 public OutputStdio (string filename) throws GLib.Error;
430 [CCode (has_construct_function = false, type = "GsfOutput*")]
431 public OutputStdio.FILE (string filename, owned void* file, bool keep_open);
432 [CCode (has_construct_function = false, type = "GsfOutput*")]
433 public OutputStdio.full (string filename, ...) throws GLib.Error;
434 [CCode (has_construct_function = false, type = "GsfOutput*")]
435 public OutputStdio.valist (string filename, GLib.Error err, string first_property_name, va_list var_args);
437 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_shared_memory_get_type ()")]
438 public class SharedMemory : GLib.Object {
440 public bool needs_free;
441 public bool needs_unmap;
442 public Gsf.off_t size;
443 [CCode (has_construct_function = false)]
444 public SharedMemory (void* buf, Gsf.off_t size, bool needs_free);
445 [CCode (cname = "gsf_shared_memory_mmapped_new", has_construct_function = false)]
446 public SharedMemory.mmapped_new (void* buf, Gsf.off_t size);
448 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_structured_blob_get_type ()")]
449 public class StructuredBlob : Gsf.Infile {
450 [CCode (has_construct_function = false)]
451 protected StructuredBlob ();
452 public static Gsf.StructuredBlob read (Gsf.Input input);
453 public bool write (Gsf.Outfile container);
455 [CCode (cheader_filename = "gsf/gsf.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gsf_timestamp_get_type ()")]
457 public class Timestamp {
458 public GLib.Date date;
460 public weak GLib.StringBuilder time_zone;
462 [CCode (has_construct_function = false)]
464 public string as_string ();
465 public Gsf.Timestamp copy ();
466 public bool equal (Gsf.Timestamp b);
470 [Version (since = "1.14.24")]
471 public int load_from_string (string spec);
472 public void set_time (uint64 t);
473 [Version (since = "1.14.24")]
474 public void to_value (GLib.Value value);
476 [CCode (cheader_filename = "gsf/gsf.h", has_type_id = false)]
478 public class XMLBlob {
480 [CCode (cheader_filename = "gsf/gsf.h", has_type_id = false)]
483 public weak GLib.StringBuilder content;
484 public weak Gsf.XMLInDoc doc;
485 public weak Gsf.XMLInNode node;
486 public weak GLib.SList<void*> node_stack;
487 public void* user_state;
488 public unowned string? check_ns (string str, uint ns_id);
489 public unowned Gsf.Input get_input ();
490 public bool namecmp (string str, uint ns_id, string name);
491 public void push_state (Gsf.XMLInDoc doc, void* new_state, Gsf.XMLInExtDtor dtor, [CCode (array_length = false)] string[] attrs);
492 public void set_silent_unknowns (bool silent);
494 [CCode (cheader_filename = "gsf/gsf.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gsf_xml_in_doc_get_type ()")]
496 public class XMLInDoc {
497 [CCode (has_construct_function = false)]
498 public XMLInDoc ([CCode (array_length = false, array_null_terminated = true)] Gsf.XMLInNode[] nodes, [CCode (array_length = false, array_null_terminated = true)] Gsf.XMLInNS[] ns);
499 public void add_nodes ([CCode (array_length = false, array_null_terminated = true)] Gsf.XMLInNode[] nodes);
502 public bool parse (Gsf.Input input, void* user_state);
503 public void set_unknown_handler (Gsf.XMLInUnknownFunc handler);
505 [CCode (cheader_filename = "gsf/gsf.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gsf_xml_in_ns_get_type ()")]
507 public class XMLInNS {
509 public weak string uri;
511 [CCode (cheader_filename = "gsf/gsf.h", has_type_id = false)]
513 public class XMLInNode {
514 public uint check_children_for_ns;
515 public GLib.Callback end;
516 public Gsf.XMLContent has_content;
517 public weak string id;
518 public weak string name;
520 public weak string parent_id;
521 public uint share_children_with_parent;
522 public GLib.Callback start;
523 [CCode (cname = "user_data.v_blob")]
524 public void* user_data_v_blob;
525 [CCode (cname = "user_data.v_bool")]
526 public bool user_data_v_bool;
527 [CCode (cname = "user_data.v_int")]
528 public int user_data_v_int;
529 [CCode (cname = "user_data.v_str")]
530 public weak string user_data_v_str;
532 [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_xml_out_get_type ()")]
533 public class XMLOut : GLib.Object {
534 public weak Gsf.Output output;
535 [CCode (has_construct_function = false)]
536 public XMLOut (Gsf.Output output);
537 public void add_base64 (string? id, [CCode (array_length_cname = "len", array_length_pos = 2.1, array_length_type = "guint")] uint8[] data);
538 public void add_bool (string? id, bool val);
539 public void add_color (string? id, uint r, uint g, uint b);
540 public void add_cstr (string? id, string? val_utf8);
541 public void add_cstr_unchecked (string? id, string? val_utf8);
542 public void add_enum (string? id, GLib.Type etype, int val);
543 public void add_float (string? id, double val, int precision);
544 public void add_gvalue (string? id, GLib.Value val);
545 public void add_int (string? id, int val);
546 public void add_uint (string? id, uint val);
547 public unowned string end_element ();
548 public unowned Gsf.Output get_output ();
549 public bool get_pretty_print ();
550 public void set_doc_type (string type);
551 public bool set_pretty_print (bool pp);
552 public void simple_element (string id, string content);
553 public void simple_float_element (string id, double val, int precision);
554 public void simple_int_element (string id, int val);
555 public void start_element (string id);
556 public bool pretty_print { get; set; }
558 public Gsf.Output sink { owned get; construct; }
560 [CCode (cheader_filename = "gsf/gsf.h", cname = "gsf_off_t")]
561 [GIR (name = "gsf_off_t")]
563 public struct off_t : int64 {
565 [CCode (cheader_filename = "gsf/gsf.h", cprefix = "GSF_CLIP_FORMAT_", has_type_id = false)]
566 public enum ClipFormat {
571 CLIPBOARD_FORMAT_NAME,
574 [CCode (cheader_filename = "gsf/gsf.h", cprefix = "GSF_CLIP_FORMAT_WINDOWS_", has_type_id = false)]
575 public enum ClipFormatWindows {
582 [CCode (cheader_filename = "gsf/gsf.h", cprefix = "GSF_OUTPUT_CSV_QUOTING_MODE_", type_id = "gsf_output_csv_quoting_mode_get_type ()")]
583 public enum OutputCsvQuotingMode {
588 [CCode (cheader_filename = "gsf/gsf.h", cprefix = "GSF_XML_", has_type_id = false)]
589 public enum XMLContent {
595 [CCode (cheader_filename = "gsf/gsf.h", cprefix = "GSF_ZIP_", has_type_id = false)]
596 public enum ZipCompressionMethod {
599 [CCode (cname = "GSF_ZIP_REDUCEDx1")]
601 [CCode (cname = "GSF_ZIP_REDUCEDx2")]
603 [CCode (cname = "GSF_ZIP_REDUCEDx3")]
605 [CCode (cname = "GSF_ZIP_REDUCEDx4")]
613 [CCode (cheader_filename = "gsf/gsf.h", cprefix = "GSF_ERROR_")]
614 public errordomain Error {
617 public static GLib.Quark quark ();
619 [CCode (cheader_filename = "gsf/gsf.h", instance_pos = 2.9)]
620 public delegate void OpenPkgIter (Gsf.Input opkg, Gsf.OpenPkgRel rel);
621 [CCode (cheader_filename = "gsf/gsf.h", has_target = false)]
622 public delegate void XMLInExtDtor (Gsf.XMLIn xin, void* old_state);
623 [CCode (cheader_filename = "gsf/gsf.h", has_target = false)]
624 public delegate bool XMLInUnknownFunc (Gsf.XMLIn xin, [CCode (type = "const xmlChar*")] string elem, [CCode (array_length = false, type = "const xmlChar**")] string[] attrs);
625 [CCode (cheader_filename = "gsf/gsf.h", has_target = false)]
626 public delegate bool XMLProbeFunc ([CCode (type = "const xmlChar*")] string name, [CCode (type = "const xmlChar*")] string prefix, [CCode (type = "const xmlChar*")] string URI, [CCode (array_length_cname = "nb_namespaces", array_length_pos = 3.5, type = "const xmlChar**")] string[] namespaces, int nb_defaulted, [CCode (array_length_cname = "nb_attributes", array_length_pos = 4.5, type = "const xmlChar**")] string[] attributes);
627 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_BYTE_COUNT")]
628 public const string META_NAME_BYTE_COUNT;
629 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_CASE_SENSITIVE")]
630 public const string META_NAME_CASE_SENSITIVE;
631 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_CATEGORY")]
632 public const string META_NAME_CATEGORY;
633 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_CELL_COUNT")]
634 public const string META_NAME_CELL_COUNT;
635 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_CHARACTER_COUNT")]
636 public const string META_NAME_CHARACTER_COUNT;
637 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_CODEPAGE")]
638 public const string META_NAME_CODEPAGE;
639 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_COMPANY")]
640 public const string META_NAME_COMPANY;
641 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_CREATOR")]
642 public const string META_NAME_CREATOR;
643 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_DATE_CREATED")]
644 public const string META_NAME_DATE_CREATED;
645 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_DATE_MODIFIED")]
646 public const string META_NAME_DATE_MODIFIED;
647 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_DESCRIPTION")]
648 public const string META_NAME_DESCRIPTION;
649 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_DICTIONARY")]
650 public const string META_NAME_DICTIONARY;
651 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_DOCUMENT_PARTS")]
652 public const string META_NAME_DOCUMENT_PARTS;
653 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_EDITING_DURATION")]
654 public const string META_NAME_EDITING_DURATION;
655 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_GENERATOR")]
656 public const string META_NAME_GENERATOR;
657 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_HEADING_PAIRS")]
658 public const string META_NAME_HEADING_PAIRS;
659 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_HIDDEN_SLIDE_COUNT")]
660 public const string META_NAME_HIDDEN_SLIDE_COUNT;
661 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_IMAGE_COUNT")]
662 public const string META_NAME_IMAGE_COUNT;
663 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_INITIAL_CREATOR")]
664 public const string META_NAME_INITIAL_CREATOR;
665 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_KEYWORD")]
666 public const string META_NAME_KEYWORD;
667 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_KEYWORDS")]
668 public const string META_NAME_KEYWORDS;
669 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_LANGUAGE")]
670 public const string META_NAME_LANGUAGE;
671 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_LAST_PRINTED")]
672 public const string META_NAME_LAST_PRINTED;
673 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_LAST_SAVED_BY")]
674 public const string META_NAME_LAST_SAVED_BY;
675 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_LINE_COUNT")]
676 public const string META_NAME_LINE_COUNT;
677 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_LINKS_DIRTY")]
678 public const string META_NAME_LINKS_DIRTY;
679 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_LOCALE_SYSTEM_DEFAULT")]
680 public const string META_NAME_LOCALE_SYSTEM_DEFAULT;
681 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_MANAGER")]
682 public const string META_NAME_MANAGER;
683 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_MM_CLIP_COUNT")]
684 public const string META_NAME_MM_CLIP_COUNT;
685 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_MSOLE_UNKNOWN_17")]
686 public const string META_NAME_MSOLE_UNKNOWN_17;
687 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_MSOLE_UNKNOWN_18")]
688 public const string META_NAME_MSOLE_UNKNOWN_18;
689 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_MSOLE_UNKNOWN_19")]
690 public const string META_NAME_MSOLE_UNKNOWN_19;
691 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_MSOLE_UNKNOWN_20")]
692 public const string META_NAME_MSOLE_UNKNOWN_20;
693 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_MSOLE_UNKNOWN_21")]
694 public const string META_NAME_MSOLE_UNKNOWN_21;
695 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_MSOLE_UNKNOWN_22")]
696 public const string META_NAME_MSOLE_UNKNOWN_22;
697 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_MSOLE_UNKNOWN_23")]
698 public const string META_NAME_MSOLE_UNKNOWN_23;
699 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_NOTE_COUNT")]
700 public const string META_NAME_NOTE_COUNT;
701 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_OBJECT_COUNT")]
702 public const string META_NAME_OBJECT_COUNT;
703 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_PAGE_COUNT")]
704 public const string META_NAME_PAGE_COUNT;
705 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_PARAGRAPH_COUNT")]
706 public const string META_NAME_PARAGRAPH_COUNT;
707 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_PRESENTATION_FORMAT")]
708 public const string META_NAME_PRESENTATION_FORMAT;
709 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_PRINTED_BY")]
710 public const string META_NAME_PRINTED_BY;
711 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_PRINT_DATE")]
712 public const string META_NAME_PRINT_DATE;
713 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_REVISION_COUNT")]
714 public const string META_NAME_REVISION_COUNT;
715 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_SCALE")]
716 public const string META_NAME_SCALE;
717 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_SECURITY")]
718 public const string META_NAME_SECURITY;
719 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_SLIDE_COUNT")]
720 public const string META_NAME_SLIDE_COUNT;
721 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_SPREADSHEET_COUNT")]
722 public const string META_NAME_SPREADSHEET_COUNT;
723 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_SUBJECT")]
724 public const string META_NAME_SUBJECT;
725 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_TABLE_COUNT")]
726 public const string META_NAME_TABLE_COUNT;
727 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_TEMPLATE")]
728 public const string META_NAME_TEMPLATE;
729 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_THUMBNAIL")]
730 public const string META_NAME_THUMBNAIL;
731 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_TITLE")]
732 public const string META_NAME_TITLE;
733 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_WORD_COUNT")]
734 public const string META_NAME_WORD_COUNT;
735 [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_PARAM_STATIC")]
736 public const int PARAM_STATIC;
737 [CCode (cheader_filename = "gsf/gsf.h")]
738 public static size_t base64_decode_simple ([CCode (array_length = false)] uint8[] data, size_t len);
739 [CCode (cheader_filename = "gsf/gsf.h")]
740 public static size_t base64_decode_step ([CCode (array_length = false)] uint8[] @in, size_t len, [CCode (array_length = false)] uint8[] @out, ref int state, ref uint save);
741 [CCode (cheader_filename = "gsf/gsf.h")]
742 public static size_t base64_encode_close ([CCode (array_length_cname = "inlen", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] @in, bool break_lines, [CCode (array_length = false)] uint8[] @out, ref int state, ref uint save);
743 [CCode (cheader_filename = "gsf/gsf.h")]
744 public static uint8 base64_encode_simple ([CCode (array_length = false)] uint8[] data, size_t len);
745 [CCode (cheader_filename = "gsf/gsf.h")]
746 public static size_t base64_encode_step ([CCode (array_length = false)] uint8[] @in, size_t len, bool break_lines, [CCode (array_length = false)] uint8[] @out, ref int state, ref uint save);
747 [CCode (cheader_filename = "gsf/gsf.h")]
748 public static bool debug_flag (string flag);
749 [CCode (cheader_filename = "gsf/gsf.h")]
750 public static void doc_meta_dump (Gsf.DocMetaData meta);
751 [CCode (cheader_filename = "gsf/gsf.h")]
752 public static unowned string extension_pointer (string path);
753 [CCode (cheader_filename = "gsf/gsf.h")]
754 public static string filename_to_utf8 (string filename, bool quoted);
755 [CCode (cheader_filename = "gsf/gsf.h")]
756 public static void init ();
757 [CCode (cheader_filename = "gsf/gsf.h")]
758 public static void init_dynamic (GLib.TypeModule module);
759 [CCode (cheader_filename = "gsf/gsf.h")]
760 public static double le_get_double (void* p);
761 [CCode (cheader_filename = "gsf/gsf.h")]
762 public static float le_get_float (void* p);
763 [CCode (cheader_filename = "gsf/gsf.h")]
764 public static uint64 le_get_guint64 (void* p);
765 [CCode (cheader_filename = "gsf/gsf.h")]
766 public static void le_set_double (void* p, double d);
767 [CCode (cheader_filename = "gsf/gsf.h")]
768 public static void le_set_float (void* p, float f);
769 [CCode (cheader_filename = "gsf/gsf.h")]
770 public static void mem_dump (uint8 ptr, size_t len);
771 [CCode (cheader_filename = "gsf/gsf.h")]
772 public static uint msole_codepage_to_lid (int codepage);
773 [CCode (cheader_filename = "gsf/gsf.h")]
774 public static int msole_iconv_win_codepage ();
775 [CCode (cheader_filename = "gsf/gsf.h")]
776 public static GLib.ByteArray msole_inflate (Gsf.Input input, Gsf.off_t offset);
777 [CCode (cheader_filename = "gsf/gsf.h")]
778 public static unowned string msole_language_for_lid (uint lid);
779 [CCode (cheader_filename = "gsf/gsf.h")]
780 public static uint msole_lid_for_language (string? lang);
781 [CCode (cheader_filename = "gsf/gsf.h")]
782 public static int msole_lid_to_codepage (uint lid);
783 [CCode (cheader_filename = "gsf/gsf.h")]
784 public static string msole_lid_to_codepage_str (uint lid);
785 [CCode (cheader_filename = "gsf/gsf.h")]
786 [Version (since = "1.14.24")]
787 public static unowned Gsf.XMLInNS odf_get_ns ();
788 [CCode (cheader_filename = "gsf/gsf.h")]
789 [Version (since = "1.14.24")]
790 public static short odf_get_version ();
791 [CCode (cheader_filename = "gsf/gsf.h")]
792 [Version (since = "1.14.24")]
793 public static unowned string odf_get_version_string ();
794 [CCode (cheader_filename = "gsf/gsf.h")]
795 public static int open_pkg_error_id ();
796 [CCode (cheader_filename = "gsf/gsf.h")]
797 public static void open_pkg_foreach_rel (Gsf.Input opkg, Gsf.OpenPkgIter func);
798 [CCode (cheader_filename = "gsf/gsf.h")]
799 public static Gsf.Input open_pkg_open_rel (Gsf.Input opkg, Gsf.OpenPkgRel rel) throws GLib.Error;
800 [CCode (cheader_filename = "gsf/gsf.h")]
801 public static Gsf.Input open_pkg_open_rel_by_id (Gsf.Input opkg, string id) throws GLib.Error;
802 [CCode (cheader_filename = "gsf/gsf.h")]
803 public static Gsf.Input open_pkg_open_rel_by_type (Gsf.Input opkg, string type) throws GLib.Error;
804 [CCode (cheader_filename = "gsf/gsf.h")]
805 public static GLib.Error open_pkg_parse_rel_by_id (Gsf.XMLIn xin, string id, Gsf.XMLInNode dtd, Gsf.XMLInNS ns);
806 [CCode (cheader_filename = "gsf/gsf.h")]
807 public static unowned GLib.Parameter? property_settings_find (string name, [CCode (array_length_cname = "n_params", array_length_pos = 2.1, array_length_type = "gsize")] GLib.Parameter[] @params);
808 [CCode (cheader_filename = "gsf/gsf.h")]
809 public static void property_settings_free ([CCode (array_length_cname = "n_params", array_length_pos = 1.1, array_length_type = "gsize")] owned GLib.Parameter[] @params);
810 [CCode (cheader_filename = "gsf/gsf.h")]
811 public static void shutdown ();
812 [CCode (cheader_filename = "gsf/gsf.h")]
813 public static void shutdown_dynamic (GLib.TypeModule module);
814 [CCode (cheader_filename = "gsf/gsf.h")]
815 public static GLib.ValueArray value_get_docprop_varray (GLib.Value value);
816 [CCode (cheader_filename = "gsf/gsf.h")]
817 public static unowned Gsf.DocPropVector value_get_docprop_vector (GLib.Value value);
818 [CCode (cheader_filename = "gsf/gsf.h")]
819 public static uint8 vba_inflate (Gsf.Input input, Gsf.off_t offset, int size, bool add_null_terminator);
820 [CCode (cheader_filename = "gsf/gsf.h")]
821 public static int xmlDocFormatDump (Gsf.Output output, Xml.Doc cur, string? encoding, bool format);
822 [CCode (cheader_filename = "gsf/gsf.h")]
823 public static bool xml_gvalue_from_str (GLib.Value res, GLib.Type t, string str);
824 [CCode (cheader_filename = "gsf/gsf.h")]
825 public static bool xml_probe (Gsf.Input input, Gsf.XMLProbeFunc func);