PageRenderTime 34ms CodeModel.GetById 12ms app.highlight 11ms RepoModel.GetById 1ms app.codeStats 1ms

/src/wrappers/gtk/library/gtk_print_settings.e

http://github.com/tybor/Liberty
Specman e | 906 lines | 196 code | 68 blank | 642 comment | 2 complexity | 1fee3dc675bb89d4a5d3837ccbb5998a MD5 | raw file
  1indexing
  2	description: "GtkPrintSettings -- Stores print settings."
  3	copyright: "[
  4					Copyright (C) 2007 Paolo Redaelli, GTK+ team
  5					
  6					This library is free software; you can redistribute it and/or
  7					modify it under the terms of the GNU Lesser General Public License
  8					as published by the Free Software Foundation; either version 2.1 of
  9					the License, or (at your option) any later version.
 10					
 11					This library is distributed in the hopeOA that it will be useful, but
 12					WITHOUT ANY WARRANTY; without even the implied warranty of
 13					MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 14					Lesser General Public License for more details.
 15
 16					You should have received a copy of the GNU Lesser General Public
 17					License along with this library; if not, write to the Free Software
 18					Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 19					02110-1301 USA
 20			]"
 21
 22	wrapped_version: "2.10.6"
 23
 24class GTK_PRINT_SETTINGS
 25	-- A GtkPrintSettings object represents the settings of a print dialog in a
 26	-- system-independent way. The main use for this object is that once you've
 27	-- printed you can get a settings object that represents the settings the
 28	-- user chose, and the next time you print you can pass that object in so
 29	-- that the user doesn't have to re-set all his settings.
 30
 31	-- Its also possible to enumerate the settings so that you can easily save
 32	-- the settings for the next time your app runs, or even store them in a
 33	-- document. The predefined keys try to use shared values as much as possible
 34	-- so that moving such a document between systems still works.
 35	
 36	-- Printing support was added in GTK+ 2.10.
 37	
 38inherit
 39	G_OBJECT
 40		redefine
 41			copy
 42		end
 43
 44insert
 45	GTK_UNIT
 46	GTK_PAGE_ORIENTATION
 47	GTK_PRINT_SETTINGS_EXTERNALS
 48
 49creation make, from_external_pointer
 50
 51feature {} -- Creation
 52	make is
 53			-- Creates a new GtkPrintSettings object.
 54		do
 55			from_external_pointer(gtk_print_settings_new)
 56		end
 57	
 58feature -- Copying
 59	copy (another: GTK_PRINT_SETTINGS) is
 60			--   Copies a GtkPrintSettings object.
 61		do
 62			from_external_pointer(gtk_print_settings_copy(another.handle))
 63		end
 64
 65feature -- Dictionary like behaviour
 66	-- TODO: make it a real DICTIONARY
 67	
 68	has (a_key: STRING): BOOLEAN is
 69			-- Does `a_key' have a value?
 70		do
 71			Result:=gtk_print_settings_has_key(handle,a_key.to_external).to_boolean
 72		end
 73
 74	at (a_key: STRING): CONST_STRING is
 75			--   Looks up the string value associated with key.
 76		do
 77			create Result.from_external
 78			(gtk_print_settings_get(handle,
 79											a_key.to_external))
 80		end
 81
 82	put (a_key, a_value: STRING) is
 83			-- Associates `a_value' with `a_key'.
 84		require
 85			key_not_void: a_key /= Void
 86			value_not_void: a_value /= Void
 87		do
 88			gtk_print_settings_set(handle,a_key.to_external,a_value.to_external)
 89		end
 90
 91	unset (a_key: STRING) is
 92			-- Removes any value associated with `a_key'.
 93		require
 94			key_not_void: a_key /= Void
 95		do
 96			gtk_print_settings_unset(handle,a_key.to_external)
 97		end
 98
 99	
100	--  gtk_print_settings_foreach ()
101
102	-- void        gtk_print_settings_foreach      (GtkPrintSettings *settings,
103	--                                              GtkPrintSettingsFunc func,
104	--                                              gpointer user_data);
105
106	--   Calls func for each key-value pair of settings.
107
108	--   settings :  a GtkPrintSettings
109	--   func :      the function to call
110	--   user_data : user data for func
111
112feature
113	unit: INTEGER -- The unit used in queries
114	
115	set_unit (a_unit: INTEGER) is
116			-- Set the unit used in queries
117		require valid_unit: is_valid_gtk_unit(a_unit)
118		do
119			unit:=a_unit
120		ensure set: unit = a_unit
121		end
122
123	get_bool (a_key: STRING): BOOLEAN is
124			-- The boolean represented by the value that is associated with `a_key'.
125		require key_not_void: a_key /= Void
126		do
127			Result:=gtk_print_settings_get_bool(handle, a_key.to_external).to_boolean
128		end
129
130	set_bool (a_key: STRING; a_value: BOOLEAN) is
131			--   Sets `a_key' to `a_value'.
132		require key_not_void: a_key /= Void
133		do
134			gtk_print_settings_set_bool(handle,a_key.to_external,a_value.to_integer)
135		end
136
137	get_double (a_key: STRING): REAL is
138			-- the double value associated with `a_key,' or 0.
139		require key_not_void: a_key /= Void
140		do
141			Result:=gtk_print_settings_get_double(handle,a_key.to_external)
142		end
143
144	get_double_with_default (a_key: STRING; a_default: REAL): REAL is
145			-- The floating point number represented by the value that is
146			-- associated with `a_key', or `a_default' if the value does not
147			-- represent a floating point number.
148		
149			-- Floating point numbers are parsed with the C function
150			-- `g_ascii_strtod'.
151		require key_not_void: a_key /= Void
152		do
153			Result:=(gtk_print_settings_get_double_with_default
154						(handle, a_key.to_external, a_default))
155		end
156
157	set_double (a_key: STRING; a_value: REAL) is
158			-- Sets `a_key' to double `a_value'.
159		require key_not_void: a_key /= Void
160		do
161			gtk_print_settings_set_double(handle,a_key.to_external,a_value)
162		end
163
164	get_length (a_key: STRING): REAL is
165			-- The value associated with `a_key,' interpreted as a length,
166			-- expressed in `unit'.
167		require key_not_void: a_key /= Void
168		do
169			Result:=gtk_print_settings_get_length(handle, a_key.to_external,unit)
170		end
171
172	set_length (a_key: STRING; a_length: REAL) is
173			--   Associates `a_length' in `unit' with `a_key'.
174		require key_not_void: a_key /= Void
175		do
176			gtk_print_settings_set_length(handle, a_key.to_external, a_length, unit)
177		end
178
179
180	get_integer (a_key: STRING): INTEGER is
181			-- The integer value of `a_key,' or 0.
182		require
183			key_not_void: a_key /= Void
184		do
185			Result:=gtk_print_settings_get_int(handle, a_key.to_external)
186		end
187
188	get_integer_with_default (a_key: STRING; a_default: INTEGER): INTEGER is
189			-- The integer value of `a_key,' or `a_default' value.
190		require
191			key_not_void: a_key /= Void
192		do
193			Result:=gtk_print_settings_get_int_with_default(handle,a_key.to_external,a_default)
194		end
195
196	set_integer (a_key: STRING; a_value: INTEGER) is
197			-- Sets `a_key' to an integer `a_value'.
198		require
199			key_not_void: a_key /= Void
200		do
201			gtk_print_settings_set_int(handle,a_key.to_external,a_value)
202		end
203
204	--  GTK_PRINT_SETTINGS_PRINTER
205
206	-- #define GTK_PRINT_SETTINGS_PRINTER "printer" 
207
208	printer: CONST_STRING is
209			-- the printer name.
210		do
211			create Result.from_external(gtk_print_settings_get_printer(handle))
212		end
213
214	set_printer (a_printer: STRING) is
215		do
216			gtk_print_settings_set_printer(handle,a_printer.to_external)
217		end
218	
219	--  GTK_PRINT_SETTINGS_ORIENTATION
220
221	-- #define GTK_PRINT_SETTINGS_ORIENTATION "orientation"
222
223	orientation: INTEGER is
224			-- the page orientation.
225		do
226			Result:=gtk_print_settings_get_orientation(handle)
227		ensure valid: is_valid_gtk_page_orientation(Result)
228		end
229
230	set_orientation (an_orientation: INTEGER) is
231			--   Sets the value of page orientation.
232		require valid: is_valid_gtk_page_orientation(an_orientation)
233		do
234			gtk_print_settings_set_orientation(handle,an_orientation)
235		end
236	
237	--  GTK_PRINT_SETTINGS_PAPER_FORMAT
238	
239	-- #define GTK_PRINT_SETTINGS_PAPER_FORMAT   "paper-format"
240
241	paper_size: GTK_PAPER_SIZE is
242			-- the paper format.
243		do
244			create Result.from_external_pointer
245			(gtk_print_settings_get_paper_size(handle))
246		end
247
248	set_paper_size (a_paper_size: GTK_PAPER_SIZE) is
249			-- Sets the value of paper size.
250		require size_not_void: a_paper_size/=Void
251		do
252			gtk_print_settings_set_paper_size(handle,a_paper_size.handle)
253		end
254	
255	--  GTK_PRINT_SETTINGS_PAPER_WIDTH
256	
257	-- #define GTK_PRINT_SETTINGS_PAPER_WIDTH "paper-width"
258	
259	paper_width: REAL is
260			-- the paper width, in units of unit
261		do
262			Result:= gtk_print_settings_get_paper_width(handle,unit)
263		end
264
265	set_paper_width (a_width: REAL) is
266			--   Sets the value of the paper to `a_width', expressed in `unit'
267		do
268			gtk_print_settings_set_paper_width(handle,a_width, unit)
269		end
270	
271	--  GTK_PRINT_SETTINGS_PAPER_HEIGHT
272	
273	-- #define GTK_PRINT_SETTINGS_PAPER_HEIGHT   "paper-height"
274
275	paper_height: REAL is
276			-- The paper height, expressed in unit.
277		do
278			Result:=gtk_print_settings_get_paper_height(handle, unit)
279		end
280
281	
282	set_paper_height (an_height: REAL) is
283			-- Sets the value of paper height.
284		do
285			gtk_print_settings_set_paper_height(handle, an_height, unit)
286		end
287	
288	--  GTK_PRINT_SETTINGS_USE_COLOR
289	--
290	-- #define GTK_PRINT_SETTINGS_USE_COLOR      "use-color"
291
292	use_color: BOOLEAN is
293			-- whether to use color
294		do
295			Result:=gtk_print_settings_get_use_color(handle).to_boolean
296		end
297
298	set_use_color (a_setting: BOOLEAN) is
299			--   Sets the value of `use_color'.
300		do
301			gtk_print_settings_set_use_color(handle,a_setting.to_integer)
302		end
303	
304	--  GTK_PRINT_SETTINGS_COLLATE
305	--
306	-- #define GTK_PRINT_SETTINGS_COLLATE        "collate"
307
308	collate: BOOLEAN is
309			-- Are the printed pages collated?
310		do
311			Result:=gtk_print_settings_get_collate(handle).to_boolean
312		end
313
314	set_collate (a_setting: BOOLEAN) is
315			-- Sets whether to collate the output.
316		do
317			gtk_print_settings_set_collate  (handle, a_setting.to_integer)
318		end
319	
320	--  GTK_PRINT_SETTINGS_REVERSE
321	--
322	-- #define GTK_PRINT_SETTINGS_REVERSE        "reverse"
323
324	is_reversed: BOOLEAN is
325			-- Are pages printed in reverse order?
326		do
327			Result:=gtk_print_settings_get_reverse(handle).to_boolean
328		end
329
330	set_reverse (a_setting: BOOLEAN) is
331			-- Sets whether to reverse the output.
332		do
333			gtk_print_settings_set_reverse  (handle, a_setting.to_integer)
334		end
335	
336	--  enum GtkPrintDuplex
337	--
338	-- typedef enum {
339	--   GTK_PRINT_DUPLEX_SIMPLEX,
340	--   GTK_PRINT_DUPLEX_HORIZONTAL,
341	--   GTK_PRINT_DUPLEX_VERTICAL
342	-- } GtkPrintDuplex;
343	--
344	--   --------------------------------------------------------------------------
345	--
346	--  GTK_PRINT_SETTINGS_DUPLEX
347	--
348	-- #define GTK_PRINT_SETTINGS_DUPLEX         "duplex"
349	--
350	--   --------------------------------------------------------------------------
351	--
352	--  gtk_print_settings_get_duplex ()
353	--
354	-- GtkPrintDuplex gtk_print_settings_get_duplex
355	--                                             (GtkPrintSettings *settings);
356	--
357	--   Gets the value of GTK_PRINT_SETTINGS_DUPLEX.
358	--
359	--   settings : a GtkPrintSettings
360	--   Returns :  whether to print the output in duplex.
361	--
362	--   Since 2.10
363	--
364	--   --------------------------------------------------------------------------
365	--
366	--  gtk_print_settings_set_duplex ()
367	--
368	-- void        gtk_print_settings_set_duplex   (GtkPrintSettings *settings,
369	--                                              GtkPrintDuplex duplex);
370	--
371	--   Sets the value of GTK_PRINT_SETTINGS_DUPLEX.
372	--
373	--   settings : a GtkPrintSettings
374	--   duplex :   a GtkPrintDuplex value
375	--
376	--   Since 2.10
377	--
378	--   --------------------------------------------------------------------------
379	--
380	--  enum GtkPrintQuality
381	--
382	-- typedef enum {
383	--   GTK_PRINT_QUALITY_LOW,
384	--   GTK_PRINT_QUALITY_NORMAL,
385	--   GTK_PRINT_QUALITY_HIGH,
386	--   GTK_PRINT_QUALITY_DRAFT
387	-- } GtkPrintQuality;
388	--
389	--   --------------------------------------------------------------------------
390	--
391	--  GTK_PRINT_SETTINGS_QUALITY
392	--
393	-- #define GTK_PRINT_SETTINGS_QUALITY        "quality"
394	--
395	--   --------------------------------------------------------------------------
396	--
397	--  gtk_print_settings_get_quality ()
398	--
399	-- GtkPrintQuality gtk_print_settings_get_quality
400	--                                             (GtkPrintSettings *settings);
401	--
402	--   Gets the value of GTK_PRINT_SETTINGS_QUALITY.
403	--
404	--   settings : a GtkPrintSettings
405	--   Returns :  the print quality
406	--
407	--   Since 2.10
408	--
409	--   --------------------------------------------------------------------------
410	--
411	--  gtk_print_settings_set_quality ()
412	--
413	-- void        gtk_print_settings_set_quality  (GtkPrintSettings *settings,
414	--                                              GtkPrintQuality quality);
415	--
416	--   Sets the value of GTK_PRINT_SETTINGS_QUALITY.
417	--
418	--   settings : a GtkPrintSettings
419	--   quality :  a GtkPrintQuality value
420	--
421	--   Since 2.10
422	--
423	--   --------------------------------------------------------------------------
424	--
425	--  GTK_PRINT_SETTINGS_N_COPIES
426	--
427	-- #define GTK_PRINT_SETTINGS_N_COPIES       "n-copies"
428	--
429	--   --------------------------------------------------------------------------
430	--
431	--  gtk_print_settings_get_n_copies ()
432	--
433	-- gint        gtk_print_settings_get_n_copies (GtkPrintSettings *settings);
434	--
435	--   Gets the value of GTK_PRINT_SETTINGS_N_COPIES.
436	--
437	--   settings : a GtkPrintSettings
438	--   Returns :  the number of copies to print
439	--
440	--   Since 2.10
441	--
442	--   --------------------------------------------------------------------------
443	--
444	--  gtk_print_settings_set_n_copies ()
445	--
446	-- void        gtk_print_settings_set_n_copies (GtkPrintSettings *settings,
447	--                                              gint num_copies);
448	--
449	--   Sets the value of GTK_PRINT_SETTINGS_N_COPIES.
450	--
451	--   settings :   a GtkPrintSettings
452	--   num_copies : the number of copies
453	--
454	--   Since 2.10
455	--
456	--   --------------------------------------------------------------------------
457	--
458	--  GTK_PRINT_SETTINGS_NUMBER_UP
459	--
460	-- #define GTK_PRINT_SETTINGS_NUMBER_UP      "number-up"
461	--
462	--   --------------------------------------------------------------------------
463	--
464	--  gtk_print_settings_get_number_up ()
465	--
466	-- gint        gtk_print_settings_get_number_up
467	--                                             (GtkPrintSettings *settings);
468	--
469	--   Gets the value of GTK_PRINT_SETTINGS_NUMBER_UP.
470	--
471	--   settings : a GtkPrintSettings
472	--   Returns :  the number of pages per sheet
473	--
474	--   Since 2.10
475	--
476	--   --------------------------------------------------------------------------
477	--
478	--  gtk_print_settings_set_number_up ()
479	--
480	-- void        gtk_print_settings_set_number_up
481	--                                             (GtkPrintSettings *settings,
482	--                                              gint number_up);
483	--
484	--   Sets the value of GTK_PRINT_SETTINGS_NUMBER_UP.
485	--
486	--   settings :  a GtkPrintSettings
487	--   number_up : the number of pages per sheet
488	--
489	--   Since 2.10
490	--
491	--   --------------------------------------------------------------------------
492	--
493	--  GTK_PRINT_SETTINGS_RESOLUTION
494	--
495	-- #define GTK_PRINT_SETTINGS_RESOLUTION     "resolution"
496	--
497	--   --------------------------------------------------------------------------
498	--
499	--  gtk_print_settings_get_resolution ()
500	--
501	-- gint        gtk_print_settings_get_resolution
502	--                                             (GtkPrintSettings *settings);
503	--
504	--   Gets the value of GTK_PRINT_SETTINGS_RESOLUTION.
505	--
506	--   settings : a GtkPrintSettings
507	--   Returns :  the resolution in dpi
508	--
509	--   Since 2.10
510	--
511	--   --------------------------------------------------------------------------
512	--
513	--  gtk_print_settings_set_resolution ()
514	--
515	-- void        gtk_print_settings_set_resolution
516	--                                             (GtkPrintSettings *settings,
517	--                                              gint resolution);
518	--
519	--   Sets the value of GTK_PRINT_SETTINGS_RESOLUTION.
520	--
521	--   settings :   a GtkPrintSettings
522	--   resolution : the resolution in dpi
523	--
524	--   Since 2.10
525	--
526	--   --------------------------------------------------------------------------
527	--
528	--  GTK_PRINT_SETTINGS_SCALE
529	--
530	-- #define GTK_PRINT_SETTINGS_SCALE          "scale"
531	--
532	--   --------------------------------------------------------------------------
533	--
534	--  gtk_print_settings_get_scale ()
535	--
536	-- gdouble     gtk_print_settings_get_scale    (GtkPrintSettings *settings);
537	--
538	--   Gets the value of GTK_PRINT_SETTINGS_SCALE.
539	--
540	--   settings : a GtkPrintSettings
541	--   Returns :  the scale in percent
542	--
543	--   Since 2.10
544	--
545	--   --------------------------------------------------------------------------
546	--
547	--  gtk_print_settings_set_scale ()
548	--
549	-- void        gtk_print_settings_set_scale    (GtkPrintSettings *settings,
550	--                                              gdouble scale);
551	--
552	--   Sets the value of GTK_PRINT_SETTINGS_SCALE.
553	--
554	--   settings : a GtkPrintSettings
555	--   scale :    the scale in percent
556	--
557	--   Since 2.10
558	--
559	--   --------------------------------------------------------------------------
560	--
561	--  enum GtkPrintPages
562	--
563	-- typedef enum {
564	--   GTK_PRINT_PAGES_ALL,
565	--   GTK_PRINT_PAGES_CURRENT,
566	--   GTK_PRINT_PAGES_RANGES
567	-- } GtkPrintPages;
568	--
569	--   --------------------------------------------------------------------------
570	--
571	--  GTK_PRINT_SETTINGS_PRINT_PAGES
572	--
573	-- #define GTK_PRINT_SETTINGS_PRINT_PAGES    "print-pages"
574	--
575	--   --------------------------------------------------------------------------
576	--
577	--  gtk_print_settings_get_print_pages ()
578	--
579	-- GtkPrintPages gtk_print_settings_get_print_pages
580	--                                             (GtkPrintSettings *settings);
581	--
582	--   Gets the value of GTK_PRINT_SETTINGS_PRINT_PAGES.
583	--
584	--   settings : a GtkPrintSettings
585	--   Returns :  which pages to print
586	--
587	--   Since 2.10
588	--
589	--   --------------------------------------------------------------------------
590	--
591	--  gtk_print_settings_set_print_pages ()
592	--
593	-- void        gtk_print_settings_set_print_pages
594	--                                             (GtkPrintSettings *settings,
595	--                                              GtkPrintPages pages);
596	--
597	--   Sets the value of GTK_PRINT_SETTINGS_PRINT_PAGES.
598	--
599	--   settings : a GtkPrintSettings
600	--   pages :    a GtkPrintPages value
601	--
602	--   Since 2.10
603	--
604	--   --------------------------------------------------------------------------
605	--
606	--  GtkPageRange
607	--
608	-- typedef struct {
609	--   gint start;
610	--   gint end;
611	-- } GtkPageRange;
612	--
613	--   --------------------------------------------------------------------------
614	--
615	--  GTK_PRINT_SETTINGS_PAGE_RANGES
616	--
617	-- #define GTK_PRINT_SETTINGS_PAGE_RANGES    "page-ranges"
618	--
619	--   --------------------------------------------------------------------------
620	--
621	--  gtk_print_settings_get_page_ranges ()
622	--
623	-- GtkPageRange* gtk_print_settings_get_page_ranges
624	--                                             (GtkPrintSettings *settings,
625	--                                              gint *num_ranges);
626	--
627	--   Gets the value of GTK_PRINT_SETTINGS_PAGE_RANGES.
628	--
629	--   settings :   a GtkPrintSettings
630	--   num_ranges : return location for the length of the returned array
631	--   Returns :    an array of GtkPageRanges. Use g_free() to free the array
632	--                when it is no longer needed.
633	--
634	--   Since 2.10
635	--
636	--   --------------------------------------------------------------------------
637	--
638	--  gtk_print_settings_set_page_ranges ()
639	--
640	-- void        gtk_print_settings_set_page_ranges
641	--                                             (GtkPrintSettings *settings,
642	--                                              GtkPageRange *page_ranges,
643	--                                              gint num_ranges);
644	--
645	--   Sets the value of GTK_PRINT_SETTINGS_PAGE_RANGES.
646	--
647	--   settings :    a GtkPrintSettings
648	--   page_ranges : an array of GtkPageRanges
649	--   num_ranges :  the length of page_ranges
650	--
651	--   Since 2.10
652	--
653	--   --------------------------------------------------------------------------
654	--
655	--  enum GtkPageSet
656	--
657	-- typedef enum {
658	--   GTK_PAGE_SET_ALL,
659	--   GTK_PAGE_SET_EVEN,
660	--   GTK_PAGE_SET_ODD
661	-- } GtkPageSet;
662	--
663	--   --------------------------------------------------------------------------
664	--
665	--  GTK_PRINT_SETTINGS_PAGE_SET
666	--
667	-- #define GTK_PRINT_SETTINGS_PAGE_SET       "page-set"
668	--
669	--   --------------------------------------------------------------------------
670	--
671	--  gtk_print_settings_get_page_set ()
672	--
673	-- GtkPageSet  gtk_print_settings_get_page_set (GtkPrintSettings *settings);
674	--
675	--   Gets the value of GTK_PRINT_SETTINGS_PAGE_SET.
676	--
677	--   settings : a GtkPrintSettings
678	--   Returns :  the set of pages to print
679	--
680	--   Since 2.10
681	--
682	--   --------------------------------------------------------------------------
683	--
684	--  gtk_print_settings_set_page_set ()
685	--
686	-- void        gtk_print_settings_set_page_set (GtkPrintSettings *settings,
687	--                                              GtkPageSet page_set);
688	--
689	--   Sets the value of GTK_PRINT_SETTINGS_PAGE_SET.
690	--
691	--   settings : a GtkPrintSettings
692	--   page_set : a GtkPageSet value
693	--
694	--   Since 2.10
695	--
696	--   --------------------------------------------------------------------------
697	--
698	--  GTK_PRINT_SETTINGS_DEFAULT_SOURCE
699	--
700	-- #define GTK_PRINT_SETTINGS_DEFAULT_SOURCE "default-source"
701	--
702	--   --------------------------------------------------------------------------
703	--
704	--  gtk_print_settings_get_default_source ()
705	--
706	-- const gchar* gtk_print_settings_get_default_source
707	--                                             (GtkPrintSettings *settings);
708	--
709	--   Gets the value of GTK_PRINT_SETTINGS_DEFAULT_SOURCE.
710	--
711	--   settings : a GtkPrintSettings
712	--   Returns :  the default source
713	--
714	--   Since 2.10
715	--
716	--   --------------------------------------------------------------------------
717	--
718	--  gtk_print_settings_set_default_source ()
719	--
720	-- void        gtk_print_settings_set_default_source
721	--                                             (GtkPrintSettings *settings,
722	--                                              const gchar *default_source);
723	--
724	--   Sets the value of GTK_PRINT_SETTINGS_DEFAULT_SOURCE.
725	--
726	--   settings :       a GtkPrintSettings
727	--   default_source : the default source
728	--
729	--   Since 2.10
730	--
731	--   --------------------------------------------------------------------------
732	--
733	--  GTK_PRINT_SETTINGS_MEDIA_TYPE
734	--
735	-- #define GTK_PRINT_SETTINGS_MEDIA_TYPE     "media-type"
736	--
737	--   --------------------------------------------------------------------------
738	--
739	--  gtk_print_settings_get_media_type ()
740	--
741	-- const gchar* gtk_print_settings_get_media_type
742	--                                             (GtkPrintSettings *settings);
743	--
744	--   Gets the value of GTK_PRINT_SETTINGS_MEDIA_TYPE.
745	--
746	--   The set of media types is defined in PWG 5101.1-2002 PWG.
747	--
748	--   settings : a GtkPrintSettings
749	--   Returns :  the media type
750	--
751	--   Since 2.10
752	--
753	--   --------------------------------------------------------------------------
754	--
755	--  gtk_print_settings_set_media_type ()
756	--
757	-- void        gtk_print_settings_set_media_type
758	--                                             (GtkPrintSettings *settings,
759	--                                              const gchar *media_type);
760	--
761	--   Sets the value of GTK_PRINT_SETTINGS_MEDIA_TYPE.
762	--
763	--   The set of media types is defined in PWG 5101.1-2002 PWG.
764	--
765	--   settings :   a GtkPrintSettings
766	--   media_type : the media type
767	--
768	--   Since 2.10
769	--
770	--   --------------------------------------------------------------------------
771	--
772	--  GTK_PRINT_SETTINGS_DITHER
773	--
774	-- #define GTK_PRINT_SETTINGS_DITHER         "dither"
775	--
776	--   --------------------------------------------------------------------------
777	--
778	--  gtk_print_settings_get_dither ()
779	--
780	-- const gchar* gtk_print_settings_get_dither  (GtkPrintSettings *settings);
781	--
782	--   Gets the value of GTK_PRINT_SETTINGS_DITHER.
783	--
784	--   settings : a GtkPrintSettings
785	--   Returns :  the dithering that is used
786	--
787	--   Since 2.10
788	--
789	--   --------------------------------------------------------------------------
790	--
791	--  gtk_print_settings_set_dither ()
792	--
793	-- void        gtk_print_settings_set_dither   (GtkPrintSettings *settings,
794	--                                              const gchar *dither);
795	--
796	--   Sets the value of GTK_PRINT_SETTINGS_DITHER.
797	--
798	--   settings : a GtkPrintSettings
799	--   dither :   the dithering that is used
800	--
801	--   Since 2.10
802	--
803	--   --------------------------------------------------------------------------
804	--
805	--  GTK_PRINT_SETTINGS_FINISHINGS
806	--
807	-- #define GTK_PRINT_SETTINGS_FINISHINGS     "finishings"
808	--
809	--   --------------------------------------------------------------------------
810	--
811	--  gtk_print_settings_get_finishings ()
812	--
813	-- const gchar* gtk_print_settings_get_finishings
814	--                                             (GtkPrintSettings *settings);
815	--
816	--   Gets the value of GTK_PRINT_SETTINGS_FINISHINGS.
817	--
818	--   settings : a GtkPrintSettings
819	--   Returns :  the finishings
820	--
821	--   Since 2.10
822	--
823	--   --------------------------------------------------------------------------
824	--
825	--  gtk_print_settings_set_finishings ()
826	--
827	-- void        gtk_print_settings_set_finishings
828	--                                             (GtkPrintSettings *settings,
829	--                                              const gchar *finishings);
830	--
831	--   Sets the value of GTK_PRINT_SETTINGS_FINISHINGS.
832	--
833	--   settings :   a GtkPrintSettings
834	--   finishings : the finishings
835	--
836	--   Since 2.10
837	--
838	--   --------------------------------------------------------------------------
839	--
840	--  GTK_PRINT_SETTINGS_OUTPUT_BIN
841	--
842	-- #define GTK_PRINT_SETTINGS_OUTPUT_BIN     "output-bin"
843	--
844	--   --------------------------------------------------------------------------
845	--
846	--  gtk_print_settings_get_output_bin ()
847	--
848	-- const gchar* gtk_print_settings_get_output_bin
849	--                                             (GtkPrintSettings *settings);
850	--
851	--   Gets the value of GTK_PRINT_SETTINGS_OUTPUT_BIN.
852	--
853	--   settings : a GtkPrintSettings
854	--   Returns :  the output bin
855	--
856	--   Since 2.10
857	--
858	--   --------------------------------------------------------------------------
859	--
860	--  gtk_print_settings_set_output_bin ()
861	--
862	-- void        gtk_print_settings_set_output_bin
863	--                                             (GtkPrintSettings *settings,
864	--                                              const gchar *output_bin);
865	--
866	--   Sets the value of GTK_PRINT_SETTINGS_OUTPUT_BIN.
867	--
868	--   settings :   a GtkPrintSettings
869	--   output_bin : the output bin
870	--
871	--   Since 2.10
872	--
873	--   --------------------------------------------------------------------------
874	--
875	--  GTK_PRINT_SETTINGS_OUTPUT_FILE_FORMAT
876	--
877	-- #define GTK_PRINT_SETTINGS_OUTPUT_FILE_FORMAT  "output-file-format"
878	--
879	--   The key used by the "Print to file" printer to store the format of the
880	--   output. The supported values are "PS" and "PDF".
881	--
882	--   --------------------------------------------------------------------------
883	--
884	--  GTK_PRINT_SETTINGS_OUTPUT_URI
885	--
886	-- #define GTK_PRINT_SETTINGS_OUTPUT_URI          "output-uri"
887	--
888	--   The key used by the "Print to file" printer to store the URI to which the
889	--   output should be written. GTK+ itself supports only "file://" URIs.
890	--
891	--   --------------------------------------------------------------------------
892	--
893	--  GTK_PRINT_SETTINGS_WIN32_DRIVER_EXTRA
894	--
895	-- #define GTK_PRINT_SETTINGS_WIN32_DRIVER_EXTRA   "win32-driver-extra"
896	--
897	--   --------------------------------------------------------------------------
898	--
899	--  GTK_PRINT_SETTINGS_WIN32_DRIVER_VERSION
900	--
901			-- #define GTK_PRINT_SETTINGS_WIN32_DRIVER_VERSION 
902			-- "win32-driver-version"
903			
904invariant
905	valid_unit: is_valid_gtk_unit(unit)
906end -- class GTK_PRINT_SETTINGS