2008-07-01 22:57:50 +00:00
|
|
|
/* GTK - The GIMP Toolkit
|
2006-04-21 15:09:32 +00:00
|
|
|
* gtkprintsettings.h: Print Settings
|
|
|
|
* Copyright (C) 2006, Red Hat, Inc.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2012-02-27 13:01:10 +00:00
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2006-04-21 15:09:32 +00:00
|
|
|
*/
|
2008-05-28 15:07:04 +00:00
|
|
|
|
2012-12-28 14:57:34 +00:00
|
|
|
#ifndef __GTK_PRINT_SETTINGS_H__
|
|
|
|
#define __GTK_PRINT_SETTINGS_H__
|
|
|
|
|
2009-10-21 18:30:04 +00:00
|
|
|
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
2008-05-28 15:07:04 +00:00
|
|
|
#error "Only <gtk/gtk.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2008-06-13 14:26:44 +00:00
|
|
|
#include <gtk/gtkpapersize.h>
|
2006-04-21 15:09:32 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
typedef struct _GtkPrintSettings GtkPrintSettings;
|
|
|
|
|
|
|
|
#define GTK_TYPE_PRINT_SETTINGS (gtk_print_settings_get_type ())
|
|
|
|
#define GTK_PRINT_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINT_SETTINGS, GtkPrintSettings))
|
|
|
|
#define GTK_IS_PRINT_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PRINT_SETTINGS))
|
|
|
|
|
2020-07-24 18:40:36 +00:00
|
|
|
typedef void (*GtkPrintSettingsFunc) (const char *key,
|
|
|
|
const char *value,
|
2006-04-21 15:09:32 +00:00
|
|
|
gpointer user_data);
|
|
|
|
|
2006-04-24 18:31:48 +00:00
|
|
|
typedef struct _GtkPageRange GtkPageRange;
|
2021-02-27 15:55:01 +00:00
|
|
|
|
2014-01-21 17:38:49 +00:00
|
|
|
/**
|
|
|
|
* GtkPageRange:
|
|
|
|
* @start: start of page range.
|
|
|
|
* @end: end of page range.
|
|
|
|
*
|
2021-02-27 15:55:01 +00:00
|
|
|
* A range of pages to print.
|
|
|
|
*
|
|
|
|
* See also [method@Gtk.PrintSettings.set_page_ranges].
|
2014-01-21 17:38:49 +00:00
|
|
|
*/
|
2006-04-24 18:31:48 +00:00
|
|
|
struct _GtkPageRange
|
2006-04-21 15:09:32 +00:00
|
|
|
{
|
2020-07-24 13:54:49 +00:00
|
|
|
int start;
|
|
|
|
int end;
|
2006-04-24 18:31:48 +00:00
|
|
|
};
|
2006-04-21 15:09:32 +00:00
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
GType gtk_print_settings_get_type (void) G_GNUC_CONST;
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
GtkPrintSettings *gtk_print_settings_new (void);
|
2006-04-21 15:09:32 +00:00
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2006-04-21 15:09:32 +00:00
|
|
|
GtkPrintSettings *gtk_print_settings_copy (GtkPrintSettings *other);
|
2007-04-29 06:23:58 +00:00
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 18:40:36 +00:00
|
|
|
GtkPrintSettings *gtk_print_settings_new_from_file (const char *file_name,
|
2007-04-29 06:23:58 +00:00
|
|
|
GError **error);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2007-12-14 09:02:54 +00:00
|
|
|
gboolean gtk_print_settings_load_file (GtkPrintSettings *settings,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *file_name,
|
2007-12-14 09:02:54 +00:00
|
|
|
GError **error);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2007-04-29 06:23:58 +00:00
|
|
|
gboolean gtk_print_settings_to_file (GtkPrintSettings *settings,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *file_name,
|
2007-04-29 06:23:58 +00:00
|
|
|
GError **error);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2007-04-29 06:23:58 +00:00
|
|
|
GtkPrintSettings *gtk_print_settings_new_from_key_file (GKeyFile *key_file,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *group_name,
|
2007-12-14 09:02:54 +00:00
|
|
|
GError **error);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2007-12-14 09:02:54 +00:00
|
|
|
gboolean gtk_print_settings_load_key_file (GtkPrintSettings *settings,
|
|
|
|
GKeyFile *key_file,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *group_name,
|
2007-04-29 06:23:58 +00:00
|
|
|
GError **error);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2007-04-29 06:23:58 +00:00
|
|
|
void gtk_print_settings_to_key_file (GtkPrintSettings *settings,
|
|
|
|
GKeyFile *key_file,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *group_name);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2006-04-21 15:09:32 +00:00
|
|
|
gboolean gtk_print_settings_has_key (GtkPrintSettings *settings,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *key);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 18:40:36 +00:00
|
|
|
const char * gtk_print_settings_get (GtkPrintSettings *settings,
|
|
|
|
const char *key);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2006-04-21 15:09:32 +00:00
|
|
|
void gtk_print_settings_set (GtkPrintSettings *settings,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *key,
|
|
|
|
const char *value);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2006-04-21 15:09:32 +00:00
|
|
|
void gtk_print_settings_unset (GtkPrintSettings *settings,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *key);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2006-04-21 15:09:32 +00:00
|
|
|
void gtk_print_settings_foreach (GtkPrintSettings *settings,
|
|
|
|
GtkPrintSettingsFunc func,
|
|
|
|
gpointer user_data);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2006-04-21 15:09:32 +00:00
|
|
|
gboolean gtk_print_settings_get_bool (GtkPrintSettings *settings,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *key);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2006-04-21 15:09:32 +00:00
|
|
|
void gtk_print_settings_set_bool (GtkPrintSettings *settings,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *key,
|
2006-04-21 15:09:32 +00:00
|
|
|
gboolean value);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 20:32:16 +00:00
|
|
|
double gtk_print_settings_get_double (GtkPrintSettings *settings,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *key);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 20:32:16 +00:00
|
|
|
double gtk_print_settings_get_double_with_default (GtkPrintSettings *settings,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *key,
|
2020-07-24 20:32:16 +00:00
|
|
|
double def);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2006-04-21 15:09:32 +00:00
|
|
|
void gtk_print_settings_set_double (GtkPrintSettings *settings,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *key,
|
2020-07-24 20:32:16 +00:00
|
|
|
double value);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 20:32:16 +00:00
|
|
|
double gtk_print_settings_get_length (GtkPrintSettings *settings,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *key,
|
2006-04-21 15:09:32 +00:00
|
|
|
GtkUnit unit);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2006-04-21 15:09:32 +00:00
|
|
|
void gtk_print_settings_set_length (GtkPrintSettings *settings,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *key,
|
2020-07-24 20:32:16 +00:00
|
|
|
double value,
|
2006-04-21 15:09:32 +00:00
|
|
|
GtkUnit unit);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 13:54:49 +00:00
|
|
|
int gtk_print_settings_get_int (GtkPrintSettings *settings,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *key);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 13:54:49 +00:00
|
|
|
int gtk_print_settings_get_int_with_default (GtkPrintSettings *settings,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *key,
|
2020-07-24 13:54:49 +00:00
|
|
|
int def);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2006-04-21 15:09:32 +00:00
|
|
|
void gtk_print_settings_set_int (GtkPrintSettings *settings,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *key,
|
2020-07-24 13:54:49 +00:00
|
|
|
int value);
|
2006-04-21 15:09:32 +00:00
|
|
|
|
2008-08-21 10:25:27 +00:00
|
|
|
#define GTK_PRINT_SETTINGS_PRINTER "printer"
|
|
|
|
#define GTK_PRINT_SETTINGS_ORIENTATION "orientation"
|
|
|
|
#define GTK_PRINT_SETTINGS_PAPER_FORMAT "paper-format"
|
|
|
|
#define GTK_PRINT_SETTINGS_PAPER_WIDTH "paper-width"
|
|
|
|
#define GTK_PRINT_SETTINGS_PAPER_HEIGHT "paper-height"
|
|
|
|
#define GTK_PRINT_SETTINGS_N_COPIES "n-copies"
|
|
|
|
#define GTK_PRINT_SETTINGS_DEFAULT_SOURCE "default-source"
|
|
|
|
#define GTK_PRINT_SETTINGS_QUALITY "quality"
|
|
|
|
#define GTK_PRINT_SETTINGS_RESOLUTION "resolution"
|
|
|
|
#define GTK_PRINT_SETTINGS_USE_COLOR "use-color"
|
|
|
|
#define GTK_PRINT_SETTINGS_DUPLEX "duplex"
|
|
|
|
#define GTK_PRINT_SETTINGS_COLLATE "collate"
|
|
|
|
#define GTK_PRINT_SETTINGS_REVERSE "reverse"
|
|
|
|
#define GTK_PRINT_SETTINGS_MEDIA_TYPE "media-type"
|
|
|
|
#define GTK_PRINT_SETTINGS_DITHER "dither"
|
|
|
|
#define GTK_PRINT_SETTINGS_SCALE "scale"
|
|
|
|
#define GTK_PRINT_SETTINGS_PRINT_PAGES "print-pages"
|
|
|
|
#define GTK_PRINT_SETTINGS_PAGE_RANGES "page-ranges"
|
|
|
|
#define GTK_PRINT_SETTINGS_PAGE_SET "page-set"
|
|
|
|
#define GTK_PRINT_SETTINGS_FINISHINGS "finishings"
|
|
|
|
#define GTK_PRINT_SETTINGS_NUMBER_UP "number-up"
|
|
|
|
#define GTK_PRINT_SETTINGS_NUMBER_UP_LAYOUT "number-up-layout"
|
|
|
|
#define GTK_PRINT_SETTINGS_OUTPUT_BIN "output-bin"
|
2008-10-30 16:24:27 +00:00
|
|
|
#define GTK_PRINT_SETTINGS_RESOLUTION_X "resolution-x"
|
|
|
|
#define GTK_PRINT_SETTINGS_RESOLUTION_Y "resolution-y"
|
|
|
|
#define GTK_PRINT_SETTINGS_PRINTER_LPI "printer-lpi"
|
2013-08-26 09:52:59 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GTK_PRINT_SETTINGS_OUTPUT_DIR:
|
|
|
|
*
|
2014-02-05 18:07:34 +00:00
|
|
|
* The key used by the “Print to file” printer to store the
|
2013-08-26 09:52:59 +00:00
|
|
|
* directory to which the output should be written.
|
|
|
|
*/
|
2012-03-06 10:15:01 +00:00
|
|
|
#define GTK_PRINT_SETTINGS_OUTPUT_DIR "output-dir"
|
2013-08-26 09:52:59 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GTK_PRINT_SETTINGS_OUTPUT_BASENAME:
|
|
|
|
*
|
2014-02-05 18:07:34 +00:00
|
|
|
* The key used by the “Print to file” printer to store the file
|
2013-08-26 09:52:59 +00:00
|
|
|
* name of the output without the path to the directory and the
|
|
|
|
* file extension.
|
|
|
|
*/
|
2012-03-06 10:15:01 +00:00
|
|
|
#define GTK_PRINT_SETTINGS_OUTPUT_BASENAME "output-basename"
|
2006-04-21 15:09:32 +00:00
|
|
|
|
2011-04-17 23:00:27 +00:00
|
|
|
/**
|
|
|
|
* GTK_PRINT_SETTINGS_OUTPUT_FILE_FORMAT:
|
|
|
|
*
|
2014-02-05 18:07:34 +00:00
|
|
|
* The key used by the “Print to file” printer to store the format
|
|
|
|
* of the output. The supported values are “PS” and “PDF”.
|
2011-04-17 23:00:27 +00:00
|
|
|
*/
|
2006-06-20 17:36:55 +00:00
|
|
|
#define GTK_PRINT_SETTINGS_OUTPUT_FILE_FORMAT "output-file-format"
|
2011-04-17 23:00:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GTK_PRINT_SETTINGS_OUTPUT_URI:
|
|
|
|
*
|
2014-02-05 18:07:34 +00:00
|
|
|
* The key used by the “Print to file” printer to store the URI
|
2020-09-12 16:01:04 +00:00
|
|
|
* to which the output should be written. GTK itself supports
|
2014-02-05 18:07:34 +00:00
|
|
|
* only “file://” URIs.
|
2011-04-17 23:00:27 +00:00
|
|
|
*/
|
2006-06-20 17:36:55 +00:00
|
|
|
#define GTK_PRINT_SETTINGS_OUTPUT_URI "output-uri"
|
|
|
|
|
2006-04-21 15:09:32 +00:00
|
|
|
#define GTK_PRINT_SETTINGS_WIN32_DRIVER_VERSION "win32-driver-version"
|
|
|
|
#define GTK_PRINT_SETTINGS_WIN32_DRIVER_EXTRA "win32-driver-extra"
|
|
|
|
|
|
|
|
/* Helpers: */
|
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 18:40:36 +00:00
|
|
|
const char * gtk_print_settings_get_printer (GtkPrintSettings *settings);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
void gtk_print_settings_set_printer (GtkPrintSettings *settings,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *printer);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
GtkPageOrientation gtk_print_settings_get_orientation (GtkPrintSettings *settings);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
void gtk_print_settings_set_orientation (GtkPrintSettings *settings,
|
|
|
|
GtkPageOrientation orientation);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
GtkPaperSize * gtk_print_settings_get_paper_size (GtkPrintSettings *settings);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
void gtk_print_settings_set_paper_size (GtkPrintSettings *settings,
|
|
|
|
GtkPaperSize *paper_size);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 20:32:16 +00:00
|
|
|
double gtk_print_settings_get_paper_width (GtkPrintSettings *settings,
|
2008-08-21 10:25:27 +00:00
|
|
|
GtkUnit unit);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
void gtk_print_settings_set_paper_width (GtkPrintSettings *settings,
|
2020-07-24 20:32:16 +00:00
|
|
|
double width,
|
2008-08-21 10:25:27 +00:00
|
|
|
GtkUnit unit);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 20:32:16 +00:00
|
|
|
double gtk_print_settings_get_paper_height (GtkPrintSettings *settings,
|
2008-08-21 10:25:27 +00:00
|
|
|
GtkUnit unit);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
void gtk_print_settings_set_paper_height (GtkPrintSettings *settings,
|
2020-07-24 20:32:16 +00:00
|
|
|
double height,
|
2008-08-21 10:25:27 +00:00
|
|
|
GtkUnit unit);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
gboolean gtk_print_settings_get_use_color (GtkPrintSettings *settings);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
void gtk_print_settings_set_use_color (GtkPrintSettings *settings,
|
|
|
|
gboolean use_color);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
gboolean gtk_print_settings_get_collate (GtkPrintSettings *settings);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
void gtk_print_settings_set_collate (GtkPrintSettings *settings,
|
|
|
|
gboolean collate);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
gboolean gtk_print_settings_get_reverse (GtkPrintSettings *settings);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
void gtk_print_settings_set_reverse (GtkPrintSettings *settings,
|
|
|
|
gboolean reverse);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
GtkPrintDuplex gtk_print_settings_get_duplex (GtkPrintSettings *settings);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
void gtk_print_settings_set_duplex (GtkPrintSettings *settings,
|
|
|
|
GtkPrintDuplex duplex);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
GtkPrintQuality gtk_print_settings_get_quality (GtkPrintSettings *settings);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
void gtk_print_settings_set_quality (GtkPrintSettings *settings,
|
|
|
|
GtkPrintQuality quality);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 13:54:49 +00:00
|
|
|
int gtk_print_settings_get_n_copies (GtkPrintSettings *settings);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
void gtk_print_settings_set_n_copies (GtkPrintSettings *settings,
|
2020-07-24 13:54:49 +00:00
|
|
|
int num_copies);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 13:54:49 +00:00
|
|
|
int gtk_print_settings_get_number_up (GtkPrintSettings *settings);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
void gtk_print_settings_set_number_up (GtkPrintSettings *settings,
|
2020-07-24 13:54:49 +00:00
|
|
|
int number_up);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
GtkNumberUpLayout gtk_print_settings_get_number_up_layout (GtkPrintSettings *settings);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
void gtk_print_settings_set_number_up_layout (GtkPrintSettings *settings,
|
|
|
|
GtkNumberUpLayout number_up_layout);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 13:54:49 +00:00
|
|
|
int gtk_print_settings_get_resolution (GtkPrintSettings *settings);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
void gtk_print_settings_set_resolution (GtkPrintSettings *settings,
|
2020-07-24 13:54:49 +00:00
|
|
|
int resolution);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 13:54:49 +00:00
|
|
|
int gtk_print_settings_get_resolution_x (GtkPrintSettings *settings);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 13:54:49 +00:00
|
|
|
int gtk_print_settings_get_resolution_y (GtkPrintSettings *settings);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-10-30 16:24:27 +00:00
|
|
|
void gtk_print_settings_set_resolution_xy (GtkPrintSettings *settings,
|
2020-07-24 13:54:49 +00:00
|
|
|
int resolution_x,
|
|
|
|
int resolution_y);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 20:32:16 +00:00
|
|
|
double gtk_print_settings_get_printer_lpi (GtkPrintSettings *settings);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-10-30 16:24:27 +00:00
|
|
|
void gtk_print_settings_set_printer_lpi (GtkPrintSettings *settings,
|
2020-07-24 20:32:16 +00:00
|
|
|
double lpi);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 20:32:16 +00:00
|
|
|
double gtk_print_settings_get_scale (GtkPrintSettings *settings);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
void gtk_print_settings_set_scale (GtkPrintSettings *settings,
|
2020-07-24 20:32:16 +00:00
|
|
|
double scale);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
GtkPrintPages gtk_print_settings_get_print_pages (GtkPrintSettings *settings);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
void gtk_print_settings_set_print_pages (GtkPrintSettings *settings,
|
|
|
|
GtkPrintPages pages);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
GtkPageRange * gtk_print_settings_get_page_ranges (GtkPrintSettings *settings,
|
2020-07-24 13:54:49 +00:00
|
|
|
int *num_ranges);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
void gtk_print_settings_set_page_ranges (GtkPrintSettings *settings,
|
|
|
|
GtkPageRange *page_ranges,
|
2020-07-24 13:54:49 +00:00
|
|
|
int num_ranges);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
GtkPageSet gtk_print_settings_get_page_set (GtkPrintSettings *settings);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
void gtk_print_settings_set_page_set (GtkPrintSettings *settings,
|
|
|
|
GtkPageSet page_set);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 18:40:36 +00:00
|
|
|
const char * gtk_print_settings_get_default_source (GtkPrintSettings *settings);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
void gtk_print_settings_set_default_source (GtkPrintSettings *settings,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *default_source);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 18:40:36 +00:00
|
|
|
const char * gtk_print_settings_get_media_type (GtkPrintSettings *settings);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
void gtk_print_settings_set_media_type (GtkPrintSettings *settings,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *media_type);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 18:40:36 +00:00
|
|
|
const char * gtk_print_settings_get_dither (GtkPrintSettings *settings);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
void gtk_print_settings_set_dither (GtkPrintSettings *settings,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *dither);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 18:40:36 +00:00
|
|
|
const char * gtk_print_settings_get_finishings (GtkPrintSettings *settings);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
void gtk_print_settings_set_finishings (GtkPrintSettings *settings,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *finishings);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 18:40:36 +00:00
|
|
|
const char * gtk_print_settings_get_output_bin (GtkPrintSettings *settings);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-21 10:25:27 +00:00
|
|
|
void gtk_print_settings_set_output_bin (GtkPrintSettings *settings,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *output_bin);
|
2006-04-21 15:09:32 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-07-03 00:29:08 +00:00
|
|
|
GVariant *gtk_print_settings_to_gvariant (GtkPrintSettings *settings);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-07-03 00:29:08 +00:00
|
|
|
GtkPrintSettings *gtk_print_settings_new_from_gvariant (GVariant *variant);
|
|
|
|
|
|
|
|
|
2006-04-21 15:09:32 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GTK_PRINT_SETTINGS_H__ */
|