/usr/share/gtk-doc/html/goffice-0.10/goffice-0.10-GOFileOpeners.html is in libgoffice-0.10-doc 0.10.9-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GOFileOpeners</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="GOffice Reference Manual">
<link rel="up" href="ch14.html" title="File utilities">
<link rel="prev" href="goffice-0.10-Files.html" title="Files">
<link rel="next" href="GOFileSaver.html" title="GOFileSaver">
<meta name="generator" content="GTK-Doc V1.19 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="goffice-0.10-Files.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch14.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GOffice Reference Manual</th>
<td><a accesskey="n" href="GOFileSaver.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#goffice-0.10-GOFileOpeners.synopsis" class="shortcut">Top</a>
|
<a href="#goffice-0.10-GOFileOpeners.description" class="shortcut">Description</a>
|
<a href="#goffice-0.10-GOFileOpeners.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
<a href="#goffice-0.10-GOFileOpeners.properties" class="shortcut">Properties</a>
</td></tr>
</table>
<div class="refentry">
<a name="goffice-0.10-GOFileOpeners"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="goffice-0.10-GOFileOpeners.top_of_page"></a>GOFileOpeners</span></h2>
<p>GOFileOpeners</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="goffice-0.10-GOFileOpeners.synopsis"></a><h2>Synopsis</h2>
<a name="GOFileOpener"></a><pre class="synopsis"> <a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener-struct" title="GOFileOpener">GOFileOpener</a>;
<a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpenerClass" title="GOFileOpenerClass">GOFileOpenerClass</a>;
<span class="returnvalue">void</span> (<a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpenerOpenFunc" title="GOFileOpenerOpenFunc ()">*GOFileOpenerOpenFunc</a>) (<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> const *fo</code></em>,
<em class="parameter"><code><a class="link" href="GOIOContext.html" title="GOIOContext"><span class="type">GOIOContext</span></a> *io_context</code></em>,
<em class="parameter"><code><a class="link" href="GoView.html" title="GoView"><span class="type">GoView</span></a> *view</code></em>,
<em class="parameter"><code><span class="type">GsfInput</span> *input</code></em>);
<span class="returnvalue">void</span> (<a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpenerOpenFuncWithEnc" title="GOFileOpenerOpenFuncWithEnc ()">*GOFileOpenerOpenFuncWithEnc</a>) (<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> const *fo</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> const *enc</code></em>,
<em class="parameter"><code><a class="link" href="GOIOContext.html" title="GOIOContext"><span class="type">GOIOContext</span></a> *io_context</code></em>,
<em class="parameter"><code><a class="link" href="GoView.html" title="GoView"><span class="type">GoView</span></a> *view</code></em>,
<em class="parameter"><code><span class="type">GsfInput</span> *input</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> (<a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpenerProbeFunc" title="GOFileOpenerProbeFunc ()">*GOFileOpenerProbeFunc</a>) (<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> const *fo</code></em>,
<em class="parameter"><code><span class="type">GsfInput</span> *input</code></em>,
<em class="parameter"><code><a class="link" href="goffice-0.10-Files.html#GOFileProbeLevel" title="enum GOFileProbeLevel"><span class="type">GOFileProbeLevel</span></a> pl</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="goffice-0.10-GOFileOpeners.html#go-file-opener-can-probe" title="go_file_opener_can_probe ()">go_file_opener_can_probe</a> (<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> const *fo</code></em>,
<em class="parameter"><code><a class="link" href="goffice-0.10-Files.html#GOFileProbeLevel" title="enum GOFileProbeLevel"><span class="type">GOFileProbeLevel</span></a> pl</code></em>);
<a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="returnvalue">GOFileOpener</span></a> * <a class="link" href="goffice-0.10-GOFileOpeners.html#go-file-opener-for-id" title="go_file_opener_for_id ()">go_file_opener_for_id</a> (<em class="parameter"><code><span class="type">char</span> const *id</code></em>);
<span class="returnvalue">char</span> const * <a class="link" href="goffice-0.10-GOFileOpeners.html#go-file-opener-get-description" title="go_file_opener_get_description ()">go_file_opener_get_description</a> (<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> const *fo</code></em>);
<span class="returnvalue">char</span> const * <a class="link" href="goffice-0.10-GOFileOpeners.html#go-file-opener-get-id" title="go_file_opener_get_id ()">go_file_opener_get_id</a> (<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> const *fo</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> const * <a class="link" href="goffice-0.10-GOFileOpeners.html#go-file-opener-get-mimes" title="go_file_opener_get_mimes ()">go_file_opener_get_mimes</a> (<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> const *fo</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> const * <a class="link" href="goffice-0.10-GOFileOpeners.html#go-file-opener-get-suffixes" title="go_file_opener_get_suffixes ()">go_file_opener_get_suffixes</a> (<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> const *fo</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="goffice-0.10-GOFileOpeners.html#go-file-opener-is-encoding-dependent" title="go_file_opener_is_encoding_dependent ()">go_file_opener_is_encoding_dependent</a>
(<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> const *fo</code></em>);
<a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="returnvalue">GOFileOpener</span></a> * <a class="link" href="goffice-0.10-GOFileOpeners.html#go-file-opener-new" title="go_file_opener_new ()">go_file_opener_new</a> (<em class="parameter"><code><span class="type">char</span> const *id</code></em>,
<em class="parameter"><code><span class="type">char</span> const *description</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> *suffixes</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> *mimes</code></em>,
<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpenerProbeFunc" title="GOFileOpenerProbeFunc ()"><span class="type">GOFileOpenerProbeFunc</span></a> probe_func</code></em>,
<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpenerOpenFunc" title="GOFileOpenerOpenFunc ()"><span class="type">GOFileOpenerOpenFunc</span></a> open_func</code></em>);
<a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="returnvalue">GOFileOpener</span></a> * <a class="link" href="goffice-0.10-GOFileOpeners.html#go-file-opener-new-with-enc" title="go_file_opener_new_with_enc ()">go_file_opener_new_with_enc</a> (<em class="parameter"><code><span class="type">char</span> const *id</code></em>,
<em class="parameter"><code><span class="type">char</span> const *description</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> *suffixes</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> *mimes</code></em>,
<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpenerProbeFunc" title="GOFileOpenerProbeFunc ()"><span class="type">GOFileOpenerProbeFunc</span></a> probe_func</code></em>,
<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpenerOpenFuncWithEnc" title="GOFileOpenerOpenFuncWithEnc ()"><span class="type">GOFileOpenerOpenFuncWithEnc</span></a> open_func</code></em>);
<span class="returnvalue">void</span> <a class="link" href="goffice-0.10-GOFileOpeners.html#go-file-opener-open" title="go_file_opener_open ()">go_file_opener_open</a> (<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> const *fo</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> const *opt_enc</code></em>,
<em class="parameter"><code><a class="link" href="GOIOContext.html" title="GOIOContext"><span class="type">GOIOContext</span></a> *io_context</code></em>,
<em class="parameter"><code><a class="link" href="GoView.html" title="GoView"><span class="type">GoView</span></a> *view</code></em>,
<em class="parameter"><code><span class="type">GsfInput</span> *input</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="goffice-0.10-GOFileOpeners.html#go-file-opener-probe" title="go_file_opener_probe ()">go_file_opener_probe</a> (<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> const *fo</code></em>,
<em class="parameter"><code><span class="type">GsfInput</span> *input</code></em>,
<em class="parameter"><code><a class="link" href="goffice-0.10-Files.html#GOFileProbeLevel" title="enum GOFileProbeLevel"><span class="type">GOFileProbeLevel</span></a> pl</code></em>);
<span class="returnvalue">void</span> <a class="link" href="goffice-0.10-GOFileOpeners.html#go-file-opener-register" title="go_file_opener_register ()">go_file_opener_register</a> (<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> *fo</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> priority</code></em>);
<span class="returnvalue">void</span> <a class="link" href="goffice-0.10-GOFileOpeners.html#go-file-opener-unregister" title="go_file_opener_unregister ()">go_file_opener_unregister</a> (<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> *fo</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="goffice-0.10-GOFileOpeners.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
+----GOFileOpener
</pre>
</div>
<div class="refsect1">
<a name="goffice-0.10-GOFileOpeners.properties"></a><h2>Properties</h2>
<pre class="synopsis">
"<a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener--description" title='The "description" property'>description</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write
"<a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener--id" title='The "id" property'>id</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read
"<a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener--interactive-only" title='The "interactive-only" property'>interactive-only</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
</pre>
</div>
<div class="refsect1">
<a name="goffice-0.10-GOFileOpeners.description"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1">
<a name="goffice-0.10-GOFileOpeners.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GOFileOpener-struct"></a><h3>GOFileOpener</h3>
<pre class="programlisting">typedef struct _GOFileOpener GOFileOpener;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="GOFileOpenerClass"></a><h3>GOFileOpenerClass</h3>
<pre class="programlisting">typedef struct {
GObjectClass parent_class;
/* private */
gboolean (*can_probe) (GOFileOpener const *fo,
GOFileProbeLevel pl);
gboolean (*probe) (GOFileOpener const *fo,
GsfInput *input,
GOFileProbeLevel pl);
void (*open) (GOFileOpener const *fo,
gchar const *opt_enc,
GOIOContext *io_context,
GoView *view,
GsfInput *input);
} GOFileOpenerClass;
</pre>
<p>
File opener base class.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> <em class="structfield"><code><a name="GOFileOpenerClass.parent-class"></a>parent_class</code></em>;</span></p></td>
<td>parent class.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GOFileOpenerClass.can-probe"></a>can_probe</code></em> ()</span></p></td>
<td>returns <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the files can be probed.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GOFileOpenerClass.probe"></a>probe</code></em> ()</span></p></td>
<td>probes the file.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GOFileOpenerClass.open"></a>open</code></em> ()</span></p></td>
<td>opens and reads the file.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GOFileOpenerOpenFunc"></a><h3>GOFileOpenerOpenFunc ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> (*GOFileOpenerOpenFunc) (<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> const *fo</code></em>,
<em class="parameter"><code><a class="link" href="GOIOContext.html" title="GOIOContext"><span class="type">GOIOContext</span></a> *io_context</code></em>,
<em class="parameter"><code><a class="link" href="GoView.html" title="GoView"><span class="type">GoView</span></a> *view</code></em>,
<em class="parameter"><code><span class="type">GsfInput</span> *input</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="GOFileOpenerOpenFuncWithEnc"></a><h3>GOFileOpenerOpenFuncWithEnc ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> (*GOFileOpenerOpenFuncWithEnc) (<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> const *fo</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> const *enc</code></em>,
<em class="parameter"><code><a class="link" href="GOIOContext.html" title="GOIOContext"><span class="type">GOIOContext</span></a> *io_context</code></em>,
<em class="parameter"><code><a class="link" href="GoView.html" title="GoView"><span class="type">GoView</span></a> *view</code></em>,
<em class="parameter"><code><span class="type">GsfInput</span> *input</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="GOFileOpenerProbeFunc"></a><h3>GOFileOpenerProbeFunc ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> (*GOFileOpenerProbeFunc) (<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> const *fo</code></em>,
<em class="parameter"><code><span class="type">GsfInput</span> *input</code></em>,
<em class="parameter"><code><a class="link" href="goffice-0.10-Files.html#GOFileProbeLevel" title="enum GOFileProbeLevel"><span class="type">GOFileProbeLevel</span></a> pl</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="go-file-opener-can-probe"></a><h3>go_file_opener_can_probe ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> go_file_opener_can_probe (<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> const *fo</code></em>,
<em class="parameter"><code><a class="link" href="goffice-0.10-Files.html#GOFileProbeLevel" title="enum GOFileProbeLevel"><span class="type">GOFileProbeLevel</span></a> pl</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="go-file-opener-for-id"></a><h3>go_file_opener_for_id ()</h3>
<pre class="programlisting"><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="returnvalue">GOFileOpener</span></a> * go_file_opener_for_id (<em class="parameter"><code><span class="type">char</span> const *id</code></em>);</pre>
<p>
Searches for file opener with given <em class="parameter"><code>id</code></em>, registered using
go_file_opener_register
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
<td>File opener's ID</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> object or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if opener cannot be found. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="go-file-opener-get-description"></a><h3>go_file_opener_get_description ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> const * go_file_opener_get_description (<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> const *fo</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="go-file-opener-get-id"></a><h3>go_file_opener_get_id ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> const * go_file_opener_get_id (<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> const *fo</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="go-file-opener-get-mimes"></a><h3>go_file_opener_get_mimes ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> const * go_file_opener_get_mimes (<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> const *fo</code></em>);</pre>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fo</code></em> :</span></p></td>
<td><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a></td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the supported mime types. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> char][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="go-file-opener-get-suffixes"></a><h3>go_file_opener_get_suffixes ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> const * go_file_opener_get_suffixes (<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> const *fo</code></em>);</pre>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fo</code></em> :</span></p></td>
<td><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a></td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the suffixes for the supporte file types. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> char][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="go-file-opener-is-encoding-dependent"></a><h3>go_file_opener_is_encoding_dependent ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> go_file_opener_is_encoding_dependent
(<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> const *fo</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="go-file-opener-new"></a><h3>go_file_opener_new ()</h3>
<pre class="programlisting"><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="returnvalue">GOFileOpener</span></a> * go_file_opener_new (<em class="parameter"><code><span class="type">char</span> const *id</code></em>,
<em class="parameter"><code><span class="type">char</span> const *description</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> *suffixes</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> *mimes</code></em>,
<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpenerProbeFunc" title="GOFileOpenerProbeFunc ()"><span class="type">GOFileOpenerProbeFunc</span></a> probe_func</code></em>,
<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpenerOpenFunc" title="GOFileOpenerOpenFunc ()"><span class="type">GOFileOpenerOpenFunc</span></a> open_func</code></em>);</pre>
<p>
Creates new GOFileOpener object. Optional <em class="parameter"><code>id</code></em> will be used
after registering it with go_file_opener_register function.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
<td>Optional ID of the opener (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>description</code></em> :</span></p></td>
<td>Description of supported file format</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>suffixes</code></em> :</span></p></td>
<td>List of suffixes to associate with the opener. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> char]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mimes</code></em> :</span></p></td>
<td>List of mime types to associate with the opener. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> char]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>probe_func</code></em> :</span></p></td>
<td>Optional pointer to "probe" function (or NULL). <span class="annotation">[<acronym title="The callback is valid until first called."><span class="acronym">scope async</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>open_func</code></em> :</span></p></td>
<td>Pointer to "open" function. <span class="annotation">[<acronym title="The callback is valid until first called."><span class="acronym">scope async</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>newly created GOFileOpener object. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="go-file-opener-new-with-enc"></a><h3>go_file_opener_new_with_enc ()</h3>
<pre class="programlisting"><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="returnvalue">GOFileOpener</span></a> * go_file_opener_new_with_enc (<em class="parameter"><code><span class="type">char</span> const *id</code></em>,
<em class="parameter"><code><span class="type">char</span> const *description</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> *suffixes</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> *mimes</code></em>,
<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpenerProbeFunc" title="GOFileOpenerProbeFunc ()"><span class="type">GOFileOpenerProbeFunc</span></a> probe_func</code></em>,
<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpenerOpenFuncWithEnc" title="GOFileOpenerOpenFuncWithEnc ()"><span class="type">GOFileOpenerOpenFuncWithEnc</span></a> open_func</code></em>);</pre>
<p>
Creates new GOFileOpener object. Optional <em class="parameter"><code>id</code></em> will be used
after registering it with go_file_opener_register function.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
<td>Optional ID of the opener (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>description</code></em> :</span></p></td>
<td>Description of supported file format</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>suffixes</code></em> :</span></p></td>
<td>List of suffixes to associate with the opener. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> char]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mimes</code></em> :</span></p></td>
<td>List of mime types to associate with the opener. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> char]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>probe_func</code></em> :</span></p></td>
<td>Optional pointer to "probe" function (or NULL). <span class="annotation">[<acronym title="The callback is valid until first called."><span class="acronym">scope async</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>open_func</code></em> :</span></p></td>
<td>Pointer to "open" function. <span class="annotation">[<acronym title="The callback is valid until first called."><span class="acronym">scope async</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>newly created <a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> object. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="go-file-opener-open"></a><h3>go_file_opener_open ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> go_file_opener_open (<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> const *fo</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> const *opt_enc</code></em>,
<em class="parameter"><code><a class="link" href="GOIOContext.html" title="GOIOContext"><span class="type">GOIOContext</span></a> *io_context</code></em>,
<em class="parameter"><code><a class="link" href="GoView.html" title="GoView"><span class="type">GoView</span></a> *view</code></em>,
<em class="parameter"><code><span class="type">GsfInput</span> *input</code></em>);</pre>
<p>
Reads content of <em class="parameter"><code>file_name</code></em> file into workbook <em class="parameter"><code>wbv</code></em> is attached to.
Results are reported using <em class="parameter"><code>io_context</code></em> object, use
go_io_error_occurred to find out if operation was successful.
The state of <em class="parameter"><code>wbv</code></em> and its workbook is undefined if operation fails, you
should destroy them in that case.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fo</code></em> :</span></p></td>
<td>GOFileOpener object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>opt_enc</code></em> :</span></p></td>
<td>Optional encoding</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>io_context</code></em> :</span></p></td>
<td>Context for i/o operation</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
<td><a class="link" href="GoView.html" title="GoView"><span class="type">GoView</span></a></td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>input</code></em> :</span></p></td>
<td>Gsf input stream</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="go-file-opener-probe"></a><h3>go_file_opener_probe ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> go_file_opener_probe (<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> const *fo</code></em>,
<em class="parameter"><code><span class="type">GsfInput</span> *input</code></em>,
<em class="parameter"><code><a class="link" href="goffice-0.10-Files.html#GOFileProbeLevel" title="enum GOFileProbeLevel"><span class="type">GOFileProbeLevel</span></a> pl</code></em>);</pre>
<p>
Checks if a given file is supported by the opener.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fo</code></em> :</span></p></td>
<td><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a></td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>input</code></em> :</span></p></td>
<td><span class="type">GsfInput</span></td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pl</code></em> :</span></p></td>
<td><a class="link" href="goffice-0.10-Files.html#GOFileProbeLevel" title="enum GOFileProbeLevel"><span class="type">GOFileProbeLevel</span></a></td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, if the opener can read given file and <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="go-file-opener-register"></a><h3>go_file_opener_register ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> go_file_opener_register (<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> *fo</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> priority</code></em>);</pre>
<p>
Adds <em class="parameter"><code>fo</code></em> opener to the list of available file openers, making it
available for Gnumeric i/o routines. The opener is registered with given
<em class="parameter"><code>priority</code></em>. The priority is used to determine the order in which openers
will be tried when reading a file. The higher the priority, the sooner it
will be tried. Default XML-based Gnumeric file opener is registered at
priority 50. Recommended range for <em class="parameter"><code>priority</code></em> is [0, 100].
Reference count for the opener is incremented inside the function, but
you don't have to (and shouldn't) call g_object_unref on it if it's
floating object (for example, when you pass object newly created with
go_file_opener_new and not referenced anywhere).
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fo</code></em> :</span></p></td>
<td>GOFileOpener object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>priority</code></em> :</span></p></td>
<td>Opener's priority</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="go-file-opener-unregister"></a><h3>go_file_opener_unregister ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> go_file_opener_unregister (<em class="parameter"><code><a class="link" href="goffice-0.10-GOFileOpeners.html#GOFileOpener"><span class="type">GOFileOpener</span></a> *fo</code></em>);</pre>
<p>
Removes <em class="parameter"><code>fo</code></em> opener from list of available file openers. Reference count
for the opener is decremented inside the function.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>fo</code></em> :</span></p></td>
<td>GOFileOpener object previously registered using
go_file_opener_register</td>
</tr></tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="goffice-0.10-GOFileOpeners.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GOFileOpener--description"></a><h3>The <code class="literal">"description"</code> property</h3>
<pre class="programlisting"> "description" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre>
<p>The description of the opener.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="GOFileOpener--id"></a><h3>The <code class="literal">"id"</code> property</h3>
<pre class="programlisting"> "id" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read</pre>
<p>The identifier of the opener.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="GOFileOpener--interactive-only"></a><h3>The <code class="literal">"interactive-only"</code> property</h3>
<pre class="programlisting"> "interactive-only" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre>
<p>TRUE if this opener requires interaction.</p>
<p>Default value: FALSE</p>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.19</div>
</body>
</html>
|