/usr/share/doc/libgtk-3-doc/gtk3/GtkPrintUnixDialog.html is in libgtk-3-doc 3.4.2-0ubuntu0.9.
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 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkPrintUnixDialog</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GTK+ 3 Reference Manual">
<link rel="up" href="Printing.html" title="Printing">
<link rel="prev" href="GtkPrintJob.html" title="GtkPrintJob">
<link rel="next" href="GtkPageSetupUnixDialog.html" title="GtkPageSetupUnixDialog">
<meta name="generator" content="GTK-Doc V1.18 (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="GtkPrintJob.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="Printing.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">GTK+ 3 Reference Manual</th>
<td><a accesskey="n" href="GtkPageSetupUnixDialog.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#GtkPrintUnixDialog.synopsis" class="shortcut">Top</a>
|
<a href="#GtkPrintUnixDialog.description" class="shortcut">Description</a>
|
<a href="#GtkPrintUnixDialog.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
<a href="#GtkPrintUnixDialog.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
|
<a href="#GtkPrintUnixDialog.properties" class="shortcut">Properties</a>
</td></tr>
</table>
<div class="refentry">
<a name="GtkPrintUnixDialog"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GtkPrintUnixDialog.top_of_page"></a>GtkPrintUnixDialog</span></h2>
<p>GtkPrintUnixDialog — A print dialog</p>
</td>
<td valign="top" align="right"><img src="printdialog.png"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="GtkPrintUnixDialog.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include <gtk/gtkprintunixdialog.h>
struct <a class="link" href="GtkPrintUnixDialog.html#GtkPrintUnixDialog-struct" title="struct GtkPrintUnixDialog">GtkPrintUnixDialog</a>;
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="GtkPrintUnixDialog.html#gtk-print-unix-dialog-new" title="gtk_print_unix_dialog_new ()">gtk_print_unix_dialog_new</a> (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *title</code></em>,
<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *parent</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GtkPrintUnixDialog.html#gtk-print-unix-dialog-set-page-setup" title="gtk_print_unix_dialog_set_page_setup ()">gtk_print_unix_dialog_set_page_setup</a>
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>,
<em class="parameter"><code><a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> *page_setup</code></em>);
<a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="returnvalue">GtkPageSetup</span></a> * <a class="link" href="GtkPrintUnixDialog.html#gtk-print-unix-dialog-get-page-setup" title="gtk_print_unix_dialog_get_page_setup ()">gtk_print_unix_dialog_get_page_setup</a>
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GtkPrintUnixDialog.html#gtk-print-unix-dialog-set-current-page" title="gtk_print_unix_dialog_set_current_page ()">gtk_print_unix_dialog_set_current_page</a>
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</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> current_page</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> <a class="link" href="GtkPrintUnixDialog.html#gtk-print-unix-dialog-get-current-page" title="gtk_print_unix_dialog_get_current_page ()">gtk_print_unix_dialog_get_current_page</a>
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GtkPrintUnixDialog.html#gtk-print-unix-dialog-set-settings" title="gtk_print_unix_dialog_set_settings ()">gtk_print_unix_dialog_set_settings</a> (<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>,
<em class="parameter"><code><a class="link" href="GtkPrintSettings.html" title="GtkPrintSettings"><span class="type">GtkPrintSettings</span></a> *settings</code></em>);
<a class="link" href="GtkPrintSettings.html" title="GtkPrintSettings"><span class="returnvalue">GtkPrintSettings</span></a> * <a class="link" href="GtkPrintUnixDialog.html#gtk-print-unix-dialog-get-settings" title="gtk_print_unix_dialog_get_settings ()">gtk_print_unix_dialog_get_settings</a> (<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>);
<a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="returnvalue">GtkPrinter</span></a> * <a class="link" href="GtkPrintUnixDialog.html#gtk-print-unix-dialog-get-selected-printer" title="gtk_print_unix_dialog_get_selected_printer ()">gtk_print_unix_dialog_get_selected_printer</a>
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GtkPrintUnixDialog.html#gtk-print-unix-dialog-add-custom-tab" title="gtk_print_unix_dialog_add_custom_tab ()">gtk_print_unix_dialog_add_custom_tab</a>
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>,
<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *tab_label</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GtkPrintUnixDialog.html#gtk-print-unix-dialog-set-support-selection" title="gtk_print_unix_dialog_set_support_selection ()">gtk_print_unix_dialog_set_support_selection</a>
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> support_selection</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="GtkPrintUnixDialog.html#gtk-print-unix-dialog-get-support-selection" title="gtk_print_unix_dialog_get_support_selection ()">gtk_print_unix_dialog_get_support_selection</a>
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GtkPrintUnixDialog.html#gtk-print-unix-dialog-set-has-selection" title="gtk_print_unix_dialog_set_has_selection ()">gtk_print_unix_dialog_set_has_selection</a>
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> has_selection</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="GtkPrintUnixDialog.html#gtk-print-unix-dialog-get-has-selection" title="gtk_print_unix_dialog_get_has_selection ()">gtk_print_unix_dialog_get_has_selection</a>
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GtkPrintUnixDialog.html#gtk-print-unix-dialog-set-embed-page-setup" title="gtk_print_unix_dialog_set_embed_page_setup ()">gtk_print_unix_dialog_set_embed_page_setup</a>
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> embed</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="GtkPrintUnixDialog.html#gtk-print-unix-dialog-get-embed-page-setup" title="gtk_print_unix_dialog_get_embed_page_setup ()">gtk_print_unix_dialog_get_embed_page_setup</a>
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</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="GtkPrintUnixDialog.html#gtk-print-unix-dialog-get-page-setup-set" title="gtk_print_unix_dialog_get_page_setup_set ()">gtk_print_unix_dialog_get_page_setup_set</a>
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>);
enum <a class="link" href="GtkPrintUnixDialog.html#GtkPrintCapabilities" title="enum GtkPrintCapabilities">GtkPrintCapabilities</a>;
<span class="returnvalue">void</span> <a class="link" href="GtkPrintUnixDialog.html#gtk-print-unix-dialog-set-manual-capabilities" title="gtk_print_unix_dialog_set_manual_capabilities ()">gtk_print_unix_dialog_set_manual_capabilities</a>
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>,
<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html#GtkPrintCapabilities" title="enum GtkPrintCapabilities"><span class="type">GtkPrintCapabilities</span></a> capabilities</code></em>);
<a class="link" href="GtkPrintUnixDialog.html#GtkPrintCapabilities" title="enum GtkPrintCapabilities"><span class="returnvalue">GtkPrintCapabilities</span></a> <a class="link" href="GtkPrintUnixDialog.html#gtk-print-unix-dialog-get-manual-capabilities" title="gtk_print_unix_dialog_get_manual_capabilities ()">gtk_print_unix_dialog_get_manual_capabilities</a>
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="GtkPrintUnixDialog.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>
+----<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
+----<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
+----<a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
+----<a class="link" href="GtkBin.html" title="GtkBin">GtkBin</a>
+----<a class="link" href="GtkWindow.html" title="GtkWindow">GtkWindow</a>
+----<a class="link" href="GtkDialog.html" title="GtkDialog">GtkDialog</a>
+----GtkPrintUnixDialog
</pre>
</div>
<div class="refsect1">
<a name="GtkPrintUnixDialog.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
GtkPrintUnixDialog implements
AtkImplementorIface and <a class="link" href="GtkBuildable.html" title="GtkBuildable">GtkBuildable</a>.</p>
</div>
<div class="refsect1">
<a name="GtkPrintUnixDialog.properties"></a><h2>Properties</h2>
<pre class="synopsis">
"<a class="link" href="GtkPrintUnixDialog.html#GtkPrintUnixDialog--current-page" title='The "current-page" property'>current-page</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write
"<a class="link" href="GtkPrintUnixDialog.html#GtkPrintUnixDialog--embed-page-setup" title='The "embed-page-setup" property'>embed-page-setup</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
"<a class="link" href="GtkPrintUnixDialog.html#GtkPrintUnixDialog--has-selection" title='The "has-selection" property'>has-selection</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
"<a class="link" href="GtkPrintUnixDialog.html#GtkPrintUnixDialog--manual-capabilities" title='The "manual-capabilities" property'>manual-capabilities</a>" <a class="link" href="GtkPrintUnixDialog.html#GtkPrintCapabilities" title="enum GtkPrintCapabilities"><span class="type">GtkPrintCapabilities</span></a> : Read / Write
"<a class="link" href="GtkPrintUnixDialog.html#GtkPrintUnixDialog--page-setup" title='The "page-setup" property'>page-setup</a>" <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>* : Read / Write
"<a class="link" href="GtkPrintUnixDialog.html#GtkPrintUnixDialog--print-settings" title='The "print-settings" property'>print-settings</a>" <a class="link" href="GtkPrintSettings.html" title="GtkPrintSettings"><span class="type">GtkPrintSettings</span></a>* : Read / Write
"<a class="link" href="GtkPrintUnixDialog.html#GtkPrintUnixDialog--selected-printer" title='The "selected-printer" property'>selected-printer</a>" <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>* : Read
"<a class="link" href="GtkPrintUnixDialog.html#GtkPrintUnixDialog--support-selection" title='The "support-selection" property'>support-selection</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="GtkPrintUnixDialog.description"></a><h2>Description</h2>
<p>
GtkPrintUnixDialog implements a print dialog for platforms
which don't provide a native print dialog, like Unix. It can
be used very much like any other GTK+ dialog, at the cost of
the portability offered by the
high-level printing API
</p>
<p>
In order to print something with <a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>, you need
to use <a class="link" href="GtkPrintUnixDialog.html#gtk-print-unix-dialog-get-selected-printer" title="gtk_print_unix_dialog_get_selected_printer ()"><code class="function">gtk_print_unix_dialog_get_selected_printer()</code></a> to obtain
a <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a> object and use it to construct a <a class="link" href="GtkPrintJob.html" title="GtkPrintJob"><span class="type">GtkPrintJob</span></a> using
<a class="link" href="GtkPrintJob.html#gtk-print-job-new" title="gtk_print_job_new ()"><code class="function">gtk_print_job_new()</code></a>.
</p>
<p>
<a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> uses the following response values:
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a class="link" href="GtkDialog.html#GTK-RESPONSE-OK:CAPS"><code class="literal">GTK_RESPONSE_OK</code></a></span></p></td>
<td><p>for the "Print" button</p></td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="GtkDialog.html#GTK-RESPONSE-APPLY:CAPS"><code class="literal">GTK_RESPONSE_APPLY</code></a></span></p></td>
<td><p>for the "Preview" button</p></td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="GtkDialog.html#GTK-RESPONSE-CANCEL:CAPS"><code class="literal">GTK_RESPONSE_CANCEL</code></a></span></p></td>
<td><p>for the "Cancel" button</p></td>
</tr>
</tbody>
</table></div>
<p>
</p>
<p>
</p>
<p>
Printing support was added in GTK+ 2.10.
</p>
<p>
</p>
<div class="refsect2">
<a name="GtkPrintUnixDialog-BUILDER-UI"></a><h3>GtkPrintUnixDialog as GtkBuildable</h3>
<p>
The GtkPrintUnixDialog implementation of the GtkBuildable interface exposes its
<em class="parameter"><code>notebook</code></em> internal children with the name "notebook".
</p>
<p>
</p>
<div class="example">
<a name="idp69368720"></a><p class="title"><b>Example 98. A <span class="structname">GtkPrintUnixDialog</span> UI definition fragment.</b></p>
<div class="example-contents"><pre class="programlisting">
<object class="GtkPrintUnixDialog" id="dialog1">
<child internal-child="notebook">
<object class="GtkNotebook" id="notebook">
<child>
<object class="GtkLabel" id="tabcontent">
<property name="label">Content on notebook tab</property>
</object>
</child>
<child type="tab">
<object class="GtkLabel" id="tablabel">
<property name="label">Tab label</property>
</object>
<packing>
<property name="tab_expand">False</property>
<property name="tab_fill">False</property>
</packing>
</child>
</object>
</child>
</object>
</pre></div>
</div>
<p><br class="example-break">
</p>
</div>
<p>
</p>
</div>
<div class="refsect1">
<a name="GtkPrintUnixDialog.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GtkPrintUnixDialog-struct"></a><h3>struct GtkPrintUnixDialog</h3>
<pre class="programlisting">struct GtkPrintUnixDialog;</pre>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-unix-dialog-new"></a><h3>gtk_print_unix_dialog_new ()</h3>
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * gtk_print_unix_dialog_new (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *title</code></em>,
<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *parent</code></em>);</pre>
<p>
Creates a new <a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>title</code></em> :</span></p></td>
<td>Title of the dialog, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
<td>Transient parent of the dialog, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-unix-dialog-set-page-setup"></a><h3>gtk_print_unix_dialog_set_page_setup ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gtk_print_unix_dialog_set_page_setup
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>,
<em class="parameter"><code><a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> *page_setup</code></em>);</pre>
<p>
Sets the page setup of the <a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dialog</code></em> :</span></p></td>
<td>a <a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>page_setup</code></em> :</span></p></td>
<td>a <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-unix-dialog-get-page-setup"></a><h3>gtk_print_unix_dialog_get_page_setup ()</h3>
<pre class="programlisting"><a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="returnvalue">GtkPageSetup</span></a> * gtk_print_unix_dialog_get_page_setup
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>);</pre>
<p>
Gets the page setup that is used by the <a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dialog</code></em> :</span></p></td>
<td>a <a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the page setup of <em class="parameter"><code>dialog</code></em>. <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>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-unix-dialog-set-current-page"></a><h3>gtk_print_unix_dialog_set_current_page ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gtk_print_unix_dialog_set_current_page
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</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> current_page</code></em>);</pre>
<p>
Sets the current page number. If <em class="parameter"><code>current_page</code></em> is not -1, this enables
the current page choice for the range of pages to print.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dialog</code></em> :</span></p></td>
<td>a <a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>current_page</code></em> :</span></p></td>
<td>the current page number.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-unix-dialog-get-current-page"></a><h3>gtk_print_unix_dialog_get_current_page ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> gtk_print_unix_dialog_get_current_page
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>);</pre>
<p>
Gets the current page of the <span class="type">GtkPrintDialog</span>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dialog</code></em> :</span></p></td>
<td>a <a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the current page of <em class="parameter"><code>dialog</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-unix-dialog-set-settings"></a><h3>gtk_print_unix_dialog_set_settings ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gtk_print_unix_dialog_set_settings (<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>,
<em class="parameter"><code><a class="link" href="GtkPrintSettings.html" title="GtkPrintSettings"><span class="type">GtkPrintSettings</span></a> *settings</code></em>);</pre>
<p>
Sets the <a class="link" href="GtkPrintSettings.html" title="GtkPrintSettings"><span class="type">GtkPrintSettings</span></a> for the <a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>. Typically,
this is used to restore saved print settings from a previous print
operation before the print dialog is shown.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dialog</code></em> :</span></p></td>
<td>a <a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>settings</code></em> :</span></p></td>
<td>a <a class="link" href="GtkPrintSettings.html" title="GtkPrintSettings"><span class="type">GtkPrintSettings</span></a>, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-unix-dialog-get-settings"></a><h3>gtk_print_unix_dialog_get_settings ()</h3>
<pre class="programlisting"><a class="link" href="GtkPrintSettings.html" title="GtkPrintSettings"><span class="returnvalue">GtkPrintSettings</span></a> * gtk_print_unix_dialog_get_settings (<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>);</pre>
<p>
Gets a new <a class="link" href="GtkPrintSettings.html" title="GtkPrintSettings"><span class="type">GtkPrintSettings</span></a> object that represents the
current values in the print dialog. Note that this creates a
<span class="emphasis"><em>new object</em></span>, and you need to unref it
if don't want to keep it.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dialog</code></em> :</span></p></td>
<td>a <a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="GtkPrintSettings.html" title="GtkPrintSettings"><span class="type">GtkPrintSettings</span></a> object with the values from <em class="parameter"><code>dialog</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-unix-dialog-get-selected-printer"></a><h3>gtk_print_unix_dialog_get_selected_printer ()</h3>
<pre class="programlisting"><a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="returnvalue">GtkPrinter</span></a> * gtk_print_unix_dialog_get_selected_printer
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>);</pre>
<p>
Gets the currently selected printer.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dialog</code></em> :</span></p></td>
<td>a <a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the currently selected printer. <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>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-unix-dialog-add-custom-tab"></a><h3>gtk_print_unix_dialog_add_custom_tab ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gtk_print_unix_dialog_add_custom_tab
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>,
<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *tab_label</code></em>);</pre>
<p>
Adds a custom tab to the print dialog.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dialog</code></em> :</span></p></td>
<td>a <a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td>
<td>the widget to put in the custom tab</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>tab_label</code></em> :</span></p></td>
<td>the widget to use as tab label</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-unix-dialog-set-support-selection"></a><h3>gtk_print_unix_dialog_set_support_selection ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gtk_print_unix_dialog_set_support_selection
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> support_selection</code></em>);</pre>
<p>
Sets whether the print dialog allows user to print a selection.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dialog</code></em> :</span></p></td>
<td>a <a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>support_selection</code></em> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to allow print selection</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.18</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-unix-dialog-get-support-selection"></a><h3>gtk_print_unix_dialog_get_support_selection ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gtk_print_unix_dialog_get_support_selection
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>);</pre>
<p>
Gets the value of <a class="link" href="GtkPrintUnixDialog.html#GtkPrintUnixDialog--support-selection" title='The "support-selection" property'><span class="type">"support-selection"</span></a> property.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dialog</code></em> :</span></p></td>
<td>a <a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether the application supports print of selection</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.18</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-unix-dialog-set-has-selection"></a><h3>gtk_print_unix_dialog_set_has_selection ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gtk_print_unix_dialog_set_has_selection
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> has_selection</code></em>);</pre>
<p>
Sets whether a selection exists.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dialog</code></em> :</span></p></td>
<td>a <a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>has_selection</code></em> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> indicates that a selection exists</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.18</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-unix-dialog-get-has-selection"></a><h3>gtk_print_unix_dialog_get_has_selection ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gtk_print_unix_dialog_get_has_selection
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>);</pre>
<p>
Gets the value of <a class="link" href="GtkPrintUnixDialog.html#GtkPrintUnixDialog--has-selection" title='The "has-selection" property'><span class="type">"has-selection"</span></a> property.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dialog</code></em> :</span></p></td>
<td>a <a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether there is a selection</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.18</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-unix-dialog-set-embed-page-setup"></a><h3>gtk_print_unix_dialog_set_embed_page_setup ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gtk_print_unix_dialog_set_embed_page_setup
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> embed</code></em>);</pre>
<p>
Embed page size combo box and orientation combo box into page setup page.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dialog</code></em> :</span></p></td>
<td>a <a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>embed</code></em> :</span></p></td>
<td>embed page setup selection</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.18</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-unix-dialog-get-embed-page-setup"></a><h3>gtk_print_unix_dialog_get_embed_page_setup ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gtk_print_unix_dialog_get_embed_page_setup
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>);</pre>
<p>
Gets the value of <a class="link" href="GtkPrintUnixDialog.html#GtkPrintUnixDialog--embed-page-setup" title='The "embed-page-setup" property'><span class="type">"embed-page-setup"</span></a> property.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dialog</code></em> :</span></p></td>
<td>a <a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether there is a selection</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.18</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-unix-dialog-get-page-setup-set"></a><h3>gtk_print_unix_dialog_get_page_setup_set ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gtk_print_unix_dialog_get_page_setup_set
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>);</pre>
<p>
Gets the page setup that is used by the <a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dialog</code></em> :</span></p></td>
<td>a <a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether a page setup was set by user.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.18</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkPrintCapabilities"></a><h3>enum GtkPrintCapabilities</h3>
<pre class="programlisting">typedef enum {
GTK_PRINT_CAPABILITY_PAGE_SET = 1 << 0,
GTK_PRINT_CAPABILITY_COPIES = 1 << 1,
GTK_PRINT_CAPABILITY_COLLATE = 1 << 2,
GTK_PRINT_CAPABILITY_REVERSE = 1 << 3,
GTK_PRINT_CAPABILITY_SCALE = 1 << 4,
GTK_PRINT_CAPABILITY_GENERATE_PDF = 1 << 5,
GTK_PRINT_CAPABILITY_GENERATE_PS = 1 << 6,
GTK_PRINT_CAPABILITY_PREVIEW = 1 << 7,
GTK_PRINT_CAPABILITY_NUMBER_UP = 1 << 8,
GTK_PRINT_CAPABILITY_NUMBER_UP_LAYOUT = 1 << 9
} GtkPrintCapabilities;
</pre>
<p>
An enum for specifying which features the print dialog should offer.
If neither <a class="link" href="GtkPrintUnixDialog.html#GTK-PRINT-CAPABILITY-GENERATE-PDF:CAPS"><code class="literal">GTK_PRINT_CAPABILITY_GENERATE_PDF</code></a> nor
<a class="link" href="GtkPrintUnixDialog.html#GTK-PRINT-CAPABILITY-GENERATE-PS:CAPS"><code class="literal">GTK_PRINT_CAPABILITY_GENERATE_PS</code></a> is specified, GTK+ assumes that all
formats are supported.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="GTK-PRINT-CAPABILITY-PAGE-SET:CAPS"></a><span class="term"><code class="literal">GTK_PRINT_CAPABILITY_PAGE_SET</code></span></p></td>
<td>Print dialog will offer printing even/odd pages.
</td>
</tr>
<tr>
<td><p><a name="GTK-PRINT-CAPABILITY-COPIES:CAPS"></a><span class="term"><code class="literal">GTK_PRINT_CAPABILITY_COPIES</code></span></p></td>
<td>Print dialog will allow to print multiple copies.
</td>
</tr>
<tr>
<td><p><a name="GTK-PRINT-CAPABILITY-COLLATE:CAPS"></a><span class="term"><code class="literal">GTK_PRINT_CAPABILITY_COLLATE</code></span></p></td>
<td>Print dialog will allow to collate multiple copies.
</td>
</tr>
<tr>
<td><p><a name="GTK-PRINT-CAPABILITY-REVERSE:CAPS"></a><span class="term"><code class="literal">GTK_PRINT_CAPABILITY_REVERSE</code></span></p></td>
<td>Print dialog will allow to print pages in reverse order.
</td>
</tr>
<tr>
<td><p><a name="GTK-PRINT-CAPABILITY-SCALE:CAPS"></a><span class="term"><code class="literal">GTK_PRINT_CAPABILITY_SCALE</code></span></p></td>
<td>Print dialog will allow to scale the output.
</td>
</tr>
<tr>
<td><p><a name="GTK-PRINT-CAPABILITY-GENERATE-PDF:CAPS"></a><span class="term"><code class="literal">GTK_PRINT_CAPABILITY_GENERATE_PDF</code></span></p></td>
<td>The program will send the document to
the printer in PDF format
</td>
</tr>
<tr>
<td><p><a name="GTK-PRINT-CAPABILITY-GENERATE-PS:CAPS"></a><span class="term"><code class="literal">GTK_PRINT_CAPABILITY_GENERATE_PS</code></span></p></td>
<td>The program will send the document to
the printer in Postscript format
</td>
</tr>
<tr>
<td><p><a name="GTK-PRINT-CAPABILITY-PREVIEW:CAPS"></a><span class="term"><code class="literal">GTK_PRINT_CAPABILITY_PREVIEW</code></span></p></td>
<td>Print dialog will offer a preview
</td>
</tr>
<tr>
<td><p><a name="GTK-PRINT-CAPABILITY-NUMBER-UP:CAPS"></a><span class="term"><code class="literal">GTK_PRINT_CAPABILITY_NUMBER_UP</code></span></p></td>
<td>Print dialog will offer printing multiple
pages per sheet. Since 2.12
</td>
</tr>
<tr>
<td><p><a name="GTK-PRINT-CAPABILITY-NUMBER-UP-LAYOUT:CAPS"></a><span class="term"><code class="literal">GTK_PRINT_CAPABILITY_NUMBER_UP_LAYOUT</code></span></p></td>
<td>Print dialog will allow to rearrange
pages when printing multiple pages per sheet. Since 2.14
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-unix-dialog-set-manual-capabilities"></a><h3>gtk_print_unix_dialog_set_manual_capabilities ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gtk_print_unix_dialog_set_manual_capabilities
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>,
<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html#GtkPrintCapabilities" title="enum GtkPrintCapabilities"><span class="type">GtkPrintCapabilities</span></a> capabilities</code></em>);</pre>
<p>
This lets you specify the printing capabilities your application
supports. For instance, if you can handle scaling the output then
you pass <a class="link" href="GtkPrintUnixDialog.html#GTK-PRINT-CAPABILITY-SCALE:CAPS"><span class="type">GTK_PRINT_CAPABILITY_SCALE</span></a>. If you don't pass that, then
the dialog will only let you select the scale if the printing
system automatically handles scaling.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dialog</code></em> :</span></p></td>
<td>a <a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>capabilities</code></em> :</span></p></td>
<td>the printing capabilities of your application</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-unix-dialog-get-manual-capabilities"></a><h3>gtk_print_unix_dialog_get_manual_capabilities ()</h3>
<pre class="programlisting"><a class="link" href="GtkPrintUnixDialog.html#GtkPrintCapabilities" title="enum GtkPrintCapabilities"><span class="returnvalue">GtkPrintCapabilities</span></a> gtk_print_unix_dialog_get_manual_capabilities
(<em class="parameter"><code><a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> *dialog</code></em>);</pre>
<p>
Gets the value of <a class="link" href="GtkPrintUnixDialog.html#GtkPrintUnixDialog--manual-capabilities" title='The "manual-capabilities" property'><span class="type">"manual-capabilities"</span></a> property.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dialog</code></em> :</span></p></td>
<td>a <a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the printing capabilities</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.18</p>
</div>
</div>
<div class="refsect1">
<a name="GtkPrintUnixDialog.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GtkPrintUnixDialog--current-page"></a><h3>The <code class="literal">"current-page"</code> property</h3>
<pre class="programlisting"> "current-page" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre>
<p>The current page in the document.</p>
<p>Allowed values: >= -1</p>
<p>Default value: -1</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkPrintUnixDialog--embed-page-setup"></a><h3>The <code class="literal">"embed-page-setup"</code> property</h3>
<pre class="programlisting"> "embed-page-setup" <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 page setup combos are embedded in GtkPrintUnixDialog.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkPrintUnixDialog--has-selection"></a><h3>The <code class="literal">"has-selection"</code> property</h3>
<pre class="programlisting"> "has-selection" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre>
<p>Whether the application has a selection.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkPrintUnixDialog--manual-capabilities"></a><h3>The <code class="literal">"manual-capabilities"</code> property</h3>
<pre class="programlisting"> "manual-capabilities" <a class="link" href="GtkPrintUnixDialog.html#GtkPrintCapabilities" title="enum GtkPrintCapabilities"><span class="type">GtkPrintCapabilities</span></a> : Read / Write</pre>
<p>Capabilities the application can handle.</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkPrintUnixDialog--page-setup"></a><h3>The <code class="literal">"page-setup"</code> property</h3>
<pre class="programlisting"> "page-setup" <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>* : Read / Write</pre>
<p>The GtkPageSetup to use.</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkPrintUnixDialog--print-settings"></a><h3>The <code class="literal">"print-settings"</code> property</h3>
<pre class="programlisting"> "print-settings" <a class="link" href="GtkPrintSettings.html" title="GtkPrintSettings"><span class="type">GtkPrintSettings</span></a>* : Read / Write</pre>
<p>The GtkPrintSettings used for initializing the dialog.</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkPrintUnixDialog--selected-printer"></a><h3>The <code class="literal">"selected-printer"</code> property</h3>
<pre class="programlisting"> "selected-printer" <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>* : Read</pre>
<p>The GtkPrinter which is selected.</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkPrintUnixDialog--support-selection"></a><h3>The <code class="literal">"support-selection"</code> property</h3>
<pre class="programlisting"> "support-selection" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre>
<p>Whether the dialog supports selection.</p>
<p>Default value: FALSE</p>
</div>
</div>
<div class="refsect1">
<a name="GtkPrintUnixDialog.see-also"></a><h2>See Also</h2>
<a class="link" href="GtkPageSetupUnixDialog.html" title="GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a>, <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>, <a class="link" href="GtkPrintJob.html" title="GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.18</div>
</body>
</html>
|