/usr/share/gtk-doc/html/libanjuta/libanjuta-IAnjutaDocumentManager.html is in libanjuta-dev 2:3.14.0-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>IAnjutaDocumentManager</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="Anjuta Developers Reference Manual">
<link rel="up" href="plugin-interfaces.html" title="Plugin interfaces">
<link rel="prev" href="libanjuta-IAnjutaDocument.html" title="IAnjutaDocument">
<link rel="next" href="libanjuta-IAnjutaEditor.html" title="IAnjutaEditor">
<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="libanjuta-IAnjutaDocument.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="plugin-interfaces.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">Anjuta Developers Reference Manual</th>
<td><a accesskey="n" href="libanjuta-IAnjutaEditor.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#libanjuta-IAnjutaDocumentManager.synopsis" class="shortcut">Top</a>
|
<a href="#libanjuta-IAnjutaDocumentManager.description" class="shortcut">Description</a>
|
<a href="#libanjuta-IAnjutaDocumentManager.object-hierarchy" class="shortcut">Object Hierarchy</a>
</td></tr>
</table>
<div class="refentry">
<a name="libanjuta-IAnjutaDocumentManager"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libanjuta-IAnjutaDocumentManager.top_of_page"></a>IAnjutaDocumentManager</span></h2>
<p>IAnjutaDocumentManager — Interface for plugin that manages all the editors</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="libanjuta-IAnjutaDocumentManager.stability-level"></a><h2>Stability Level</h2>
Unstable, unless otherwise indicated
</div>
<div class="refsynopsisdiv">
<a name="libanjuta-IAnjutaDocumentManager.synopsis"></a><h2>Synopsis</h2>
<a name="IAnjutaDocumentManagerError"></a><pre class="synopsis">
#include <libanjuta/interfaces/ianjuta-document-manager.h>
#define <a class="link" href="libanjuta-IAnjutaDocumentManager.html#IANJUTA-DOCUMENT-MANAGER-CURRENT-DOCUMENT:CAPS" title="IANJUTA_DOCUMENT_MANAGER_CURRENT_DOCUMENT">IANJUTA_DOCUMENT_MANAGER_CURRENT_DOCUMENT</a>
enum <a class="link" href="libanjuta-IAnjutaDocumentManager.html#IAnjutaDocumentManagerError-enum" title="enum IAnjutaDocumentManagerError">IAnjutaDocumentManagerError</a>;
struct <a class="link" href="libanjuta-IAnjutaDocumentManager.html#IAnjutaDocumentManagerIface" title="struct IAnjutaDocumentManagerIface">IAnjutaDocumentManagerIface</a>;
<a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> <a class="link" href="libanjuta-IAnjutaDocumentManager.html#ianjuta-document-manager-error-quark" title="ianjuta_document_manager_error_quark ()">ianjuta_document_manager_error_quark</a>
(<em class="parameter"><code><span class="type">void</span></code></em>);
<span class="returnvalue">void</span> <a class="link" href="libanjuta-IAnjutaDocumentManager.html#ianjuta-document-manager-add-bookmark" title="ianjuta_document_manager_add_bookmark ()">ianjuta_document_manager_add_bookmark</a>
(<em class="parameter"><code><span class="type">IAnjutaDocumentManager</span> *obj</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GFile.html"><span class="type">GFile</span></a> *file</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> line</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
<span class="returnvalue">IAnjutaEditor</span> * <a class="link" href="libanjuta-IAnjutaDocumentManager.html#ianjuta-document-manager-add-buffer" title="ianjuta_document_manager_add_buffer ()">ianjuta_document_manager_add_buffer</a> (<em class="parameter"><code><span class="type">IAnjutaDocumentManager</span> *obj</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *content</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libanjuta-IAnjutaDocumentManager.html#ianjuta-document-manager-add-document" title="ianjuta_document_manager_add_document ()">ianjuta_document_manager_add_document</a>
(<em class="parameter"><code><span class="type">IAnjutaDocumentManager</span> *obj</code></em>,
<em class="parameter"><code><span class="type">IAnjutaDocument</span> *document</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
<span class="returnvalue">IAnjutaDocument</span> * <a class="link" href="libanjuta-IAnjutaDocumentManager.html#ianjuta-document-manager-find-document-with-file" title="ianjuta_document_manager_find_document_with_file ()">ianjuta_document_manager_find_document_with_file</a>
(<em class="parameter"><code><span class="type">IAnjutaDocumentManager</span> *obj</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GFile.html"><span class="type">GFile</span></a> *file</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
<span class="returnvalue">IAnjutaDocument</span> * <a class="link" href="libanjuta-IAnjutaDocumentManager.html#ianjuta-document-manager-get-current-document" title="ianjuta_document_manager_get_current_document ()">ianjuta_document_manager_get_current_document</a>
(<em class="parameter"><code><span class="type">IAnjutaDocumentManager</span> *obj</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * <a class="link" href="libanjuta-IAnjutaDocumentManager.html#ianjuta-document-manager-get-doc-widgets" title="ianjuta_document_manager_get_doc_widgets ()">ianjuta_document_manager_get_doc_widgets</a>
(<em class="parameter"><code><span class="type">IAnjutaDocumentManager</span> *obj</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
<a href="http://library.gnome.org/devel/gio/unstable/GFile.html"><span class="returnvalue">GFile</span></a> * <a class="link" href="libanjuta-IAnjutaDocumentManager.html#ianjuta-document-manager-get-file" title="ianjuta_document_manager_get_file ()">ianjuta_document_manager_get_file</a> (<em class="parameter"><code><span class="type">IAnjutaDocumentManager</span> *obj</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filename</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
<span class="returnvalue">IAnjutaEditor</span> * <a class="link" href="libanjuta-IAnjutaDocumentManager.html#ianjuta-document-manager-goto-file-line" title="ianjuta_document_manager_goto_file_line ()">ianjuta_document_manager_goto_file_line</a>
(<em class="parameter"><code><span class="type">IAnjutaDocumentManager</span> *obj</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GFile.html"><span class="type">GFile</span></a> *file</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> lineno</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
<span class="returnvalue">IAnjutaEditor</span> * <a class="link" href="libanjuta-IAnjutaDocumentManager.html#ianjuta-document-manager-goto-file-line-mark" title="ianjuta_document_manager_goto_file_line_mark ()">ianjuta_document_manager_goto_file_line_mark</a>
(<em class="parameter"><code><span class="type">IAnjutaDocumentManager</span> *obj</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GFile.html"><span class="type">GFile</span></a> *file</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> lineno</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> mark</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="libanjuta-IAnjutaDocumentManager.html#ianjuta-document-manager-remove-document" title="ianjuta_document_manager_remove_document ()">ianjuta_document_manager_remove_document</a>
(<em class="parameter"><code><span class="type">IAnjutaDocumentManager</span> *obj</code></em>,
<em class="parameter"><code><span class="type">IAnjutaDocument</span> *document</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> save_before</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libanjuta-IAnjutaDocumentManager.html#ianjuta-document-manager-set-current-document" title="ianjuta_document_manager_set_current_document ()">ianjuta_document_manager_set_current_document</a>
(<em class="parameter"><code><span class="type">IAnjutaDocumentManager</span> *obj</code></em>,
<em class="parameter"><code><span class="type">IAnjutaDocument</span> *document</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="libanjuta-IAnjutaDocumentManager.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
GEnum
+----IAnjutaDocumentManagerError
</pre>
</div>
<div class="refsect1">
<a name="libanjuta-IAnjutaDocumentManager.description"></a><h2>Description</h2>
</div>
<div class="refsect1">
<a name="libanjuta-IAnjutaDocumentManager.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="IANJUTA-DOCUMENT-MANAGER-CURRENT-DOCUMENT:CAPS"></a><h3>IANJUTA_DOCUMENT_MANAGER_CURRENT_DOCUMENT</h3>
<pre class="programlisting">#define IANJUTA_DOCUMENT_MANAGER_CURRENT_DOCUMENT "document_manager_current_document"
</pre>
<p>
Anjuta shell value set by document manager to the current document
</p>
</div>
<hr>
<div class="refsect2">
<a name="IAnjutaDocumentManagerError-enum"></a><h3>enum IAnjutaDocumentManagerError</h3>
<pre class="programlisting">typedef enum {
IANJUTA_DOCUMENT_MANAGER_DOESNT_EXIST
} IAnjutaDocumentManagerError;
</pre>
<p>
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><a name="IANJUTA-DOCUMENT-MANAGER-DOESNT-EXIST:CAPS"></a><span class="term"><code class="literal">IANJUTA_DOCUMENT_MANAGER_DOESNT_EXIST</code></span></p></td>
<td>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="IAnjutaDocumentManagerIface"></a><h3>struct IAnjutaDocumentManagerIface</h3>
<pre class="programlisting">struct IAnjutaDocumentManagerIface {
GTypeInterface g_iface;
/* Signal */
void (*document_added) (IAnjutaDocumentManager *obj, IAnjutaDocument* doc);
/* Signal */
void (*document_removed) (IAnjutaDocumentManager *obj, IAnjutaDocument* doc);
void (*add_bookmark) (IAnjutaDocumentManager *obj, GFile* file, gint line, GError **err);
IAnjutaEditor* (*add_buffer) (IAnjutaDocumentManager *obj, const gchar *name, const gchar* content, GError **err);
void (*add_document) (IAnjutaDocumentManager *obj, IAnjutaDocument* document, GError **err);
IAnjutaDocument* (*find_document_with_file) (IAnjutaDocumentManager *obj, GFile* file, GError **err);
IAnjutaDocument* (*get_current_document) (IAnjutaDocumentManager *obj, GError **err);
GList* (*get_doc_widgets) (IAnjutaDocumentManager *obj, GError **err);
GFile* (*get_file) (IAnjutaDocumentManager *obj, const gchar *filename, GError **err);
IAnjutaEditor* (*goto_file_line) (IAnjutaDocumentManager *obj, GFile* file, gint lineno, GError **err);
IAnjutaEditor* (*goto_file_line_mark) (IAnjutaDocumentManager *obj, GFile* file, gint lineno, gboolean mark, GError **err);
gboolean (*remove_document) (IAnjutaDocumentManager *obj, IAnjutaDocument *document, gboolean save_before, GError **err);
void (*set_current_document) (IAnjutaDocumentManager *obj, IAnjutaDocument *document, GError **err);
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="ianjuta-document-manager-error-quark"></a><h3>ianjuta_document_manager_error_quark ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> ianjuta_document_manager_error_quark
(<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="ianjuta-document-manager-add-bookmark"></a><h3>ianjuta_document_manager_add_bookmark ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> ianjuta_document_manager_add_bookmark
(<em class="parameter"><code><span class="type">IAnjutaDocumentManager</span> *obj</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GFile.html"><span class="type">GFile</span></a> *file</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> line</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="ianjuta-document-manager-add-buffer"></a><h3>ianjuta_document_manager_add_buffer ()</h3>
<pre class="programlisting"><span class="returnvalue">IAnjutaEditor</span> * ianjuta_document_manager_add_buffer (<em class="parameter"><code><span class="type">IAnjutaDocumentManager</span> *obj</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *content</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
<p>
Creates a new editor buffer of the given name and sets the given
content as its initial content.
</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>obj</code></em> :</span></p></td>
<td>Self</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>Name of the editor buffer.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>content</code></em> :</span></p></td>
<td>Initial content of the buffer.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
<td>Error propagation and reporting.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the IAnjutaEditor instance that has been added. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ianjuta-document-manager-add-document"></a><h3>ianjuta_document_manager_add_document ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> ianjuta_document_manager_add_document
(<em class="parameter"><code><span class="type">IAnjutaDocumentManager</span> *obj</code></em>,
<em class="parameter"><code><span class="type">IAnjutaDocument</span> *document</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
<p>
Adds a document to the document manager. This will open a new
Notebook tab and show the document there
</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>obj</code></em> :</span></p></td>
<td>Self</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>document</code></em> :</span></p></td>
<td>the document to add</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
<td>Error propagation and reporting.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ianjuta-document-manager-find-document-with-file"></a><h3>ianjuta_document_manager_find_document_with_file ()</h3>
<pre class="programlisting"><span class="returnvalue">IAnjutaDocument</span> * ianjuta_document_manager_find_document_with_file
(<em class="parameter"><code><span class="type">IAnjutaDocumentManager</span> *obj</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GFile.html"><span class="type">GFile</span></a> *file</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
<p>
Finds the document that has the file loaded. Only
the editor that matches the file will be searched.
</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>obj</code></em> :</span></p></td>
<td>Self</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>file</code></em> :</span></p></td>
<td>The file to find.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
<td>Error propagation and reporting.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the document that corresponds to given file. NULL if
there is no editor loaded with this file. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ianjuta-document-manager-get-current-document"></a><h3>ianjuta_document_manager_get_current_document ()</h3>
<pre class="programlisting"><span class="returnvalue">IAnjutaDocument</span> * ianjuta_document_manager_get_current_document
(<em class="parameter"><code><span class="type">IAnjutaDocumentManager</span> *obj</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
<p>
Gets the current document.
</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>obj</code></em> :</span></p></td>
<td>Self</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
<td>Error propagation and reporting.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the currently active document. NULL if none is there. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ianjuta-document-manager-get-doc-widgets"></a><h3>ianjuta_document_manager_get_doc_widgets ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * ianjuta_document_manager_get_doc_widgets
(<em class="parameter"><code><span class="type">IAnjutaDocumentManager</span> *obj</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
<p>
Gets a list of widgets for open documents. Each widget is
a GTK_WIDGET(IAnjutaDocument*)
</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>obj</code></em> :</span></p></td>
<td>Self</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
<td>Error propagation and reporting.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a list of widgets for
all open documents. The returned list (but not the data in the list) must be
freed after use. <span class="annotation">[<a href="http://foldoc.org/element-type"><span class="acronym">element-type</span></a> GtkWidget][<a href="http://foldoc.org/transfer%20container"><span class="acronym">transfer container</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ianjuta-document-manager-get-file"></a><h3>ianjuta_document_manager_get_file ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/gio/unstable/GFile.html"><span class="returnvalue">GFile</span></a> * ianjuta_document_manager_get_file (<em class="parameter"><code><span class="type">IAnjutaDocumentManager</span> *obj</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filename</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
<p>
Given the short filename, finds the file of the filename, if the
editor that has it loaded is found. If there is no editor that has
this file opened, returns NULL.
</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>obj</code></em> :</span></p></td>
<td>Self</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>short filename</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
<td>Error propagation and reporting.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the GFile for the given short filename. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ianjuta-document-manager-goto-file-line"></a><h3>ianjuta_document_manager_goto_file_line ()</h3>
<pre class="programlisting"><span class="returnvalue">IAnjutaEditor</span> * ianjuta_document_manager_goto_file_line
(<em class="parameter"><code><span class="type">IAnjutaDocumentManager</span> *obj</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GFile.html"><span class="type">GFile</span></a> *file</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> lineno</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
<p>
Loads the given file if not loaded yet, set its editor as current editor
and moves cursor to the given line in the editor.
</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>obj</code></em> :</span></p></td>
<td>Self</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>file</code></em> :</span></p></td>
<td>file to go to.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>lineno</code></em> :</span></p></td>
<td>the line number in the file to go to.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
<td>Error propagation and reporting.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the editor where the mark has been put. NULL if none. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ianjuta-document-manager-goto-file-line-mark"></a><h3>ianjuta_document_manager_goto_file_line_mark ()</h3>
<pre class="programlisting"><span class="returnvalue">IAnjutaEditor</span> * ianjuta_document_manager_goto_file_line_mark
(<em class="parameter"><code><span class="type">IAnjutaDocumentManager</span> *obj</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GFile.html"><span class="type">GFile</span></a> *file</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> lineno</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> mark</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
<p>
Loads the given file if not loaded yet, set its editor as current editor
and moves cursor to the given line in the editor. Optionally also marks
the line with line marker if <em class="parameter"><code>mark</code></em> is given TRUE.
</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>obj</code></em> :</span></p></td>
<td>Self</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>file</code></em> :</span></p></td>
<td>file to go to.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>lineno</code></em> :</span></p></td>
<td>the line number in the file to go to.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mark</code></em> :</span></p></td>
<td>TRUE if the line should be marked with a marker.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
<td>Error propagation and reporting</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the editor where the mark has been put. NULL if none. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ianjuta-document-manager-remove-document"></a><h3>ianjuta_document_manager_remove_document ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> ianjuta_document_manager_remove_document
(<em class="parameter"><code><span class="type">IAnjutaDocumentManager</span> *obj</code></em>,
<em class="parameter"><code><span class="type">IAnjutaDocument</span> *document</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> save_before</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
<p>
Closes and removes the given document. If <em class="parameter"><code>save_before</code></em> is TRUE, also
saves the document before closing.
</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>obj</code></em> :</span></p></td>
<td>Self</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>document</code></em> :</span></p></td>
<td>Document to close.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>save_before</code></em> :</span></p></td>
<td>If true, saves the document before closing.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
<td>Error propagation and reporting.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE if the document was removed, else FALSE.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ianjuta-document-manager-set-current-document"></a><h3>ianjuta_document_manager_set_current_document ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> ianjuta_document_manager_set_current_document
(<em class="parameter"><code><span class="type">IAnjutaDocumentManager</span> *obj</code></em>,
<em class="parameter"><code><span class="type">IAnjutaDocument</span> *document</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
<p>
Sets the given document as current document.
</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>obj</code></em> :</span></p></td>
<td>Self</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>document</code></em> :</span></p></td>
<td>the document to set as current.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
<td>Error propagation and reporting.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.19</div>
</body>
</html>
|