Gnome2::Print::Config::Constants(3pm)

Gnome2::Print::Config::Constants3pm

Constants for use with gnom2::print::config

Usage

  use Gnome2::Print; # gets the actual Gnome2::Print::Config objects and methods
  use Gnome2::Print::Config::Constants; # load extra constants

Overview

Similarily to Pango, in order to effectively use Gnome2::Print::Config you need a few constants that are not supplied by the type system or by other means.

This module exports all of those extra constants when you load it. They use the fully-prefixed names from the C documentation.

Export

These are some default keys to be used with Gnome2::Print::Config set/get methods:

  GNOME_PRINT_KEY_PAPER_SIZE
  GNOME_PRINT_KEY_PAPER_WIDTH
  GNOME_PRINT_KEY_PAPER_HEIGHT
  GNOME_PRINT_KEY_PAPER_ORIENTATION
  GNOME_PRINT_KEY_PAPER_ORIENTATION_MATRIX
  GNOME_PRINT_KEY_PAGE_ORIENTATION
  GNOME_PRINT_KEY_PAGE_ORIENTATION_MATRIX
  GNOME_PRINT_KEY_ORIENTATION
  GNOME_PRINT_KEY_LAYOUT
  GNOME_PRINT_KEY_LAYOUT_WIDTH
  GNOME_PRINT_KEY_LAYOUT_HEIGHT
  GNOME_PRINT_KEY_RESOLUTION
  GNOME_PRINT_KEY_RESOLUTION_DPI
  GNOME_PRINT_KEY_RESOLUTION_DPI_X
  GNOME_PRINT_KEY_RESOLUTION_DPI_Y
  GNOME_PRINT_KEY_NUM_COPIES
  GNOME_PRINT_KEY_COLLATE
  GNOME_PRINT_KEY_PAGE_MARGIN_LEFT
  GNOME_PRINT_KEY_PAGE_MARGIN_RIGHT
  GNOME_PRINT_KEY_PAGE_MARGIN_TOP
  GNOME_PRINT_KEY_PAGE_MARGIN_BOTTOM
  GNOME_PRINT_KEY_PAPER_MARGIN_LEFT
  GNOME_PRINT_KEY_PAPER_MARGIN_RIGHT
  GNOME_PRINT_KEY_PAPER_MARGIN_TOP
  GNOME_PRINT_KEY_PAPER_MARGIN_BOTTOM
  GNOME_PRINT_KEY_OUTPUT_FILENAME
  GNOME_PRINT_KEY_DOCUMENT_NAME
  GNOME_PRINT_KEY_PREFERED_UNIT

These keys are also available without importing this module, using Gnome2::Print::Print->key, e.g.:

  Gnome2::Print::Config->key_output_filename;

Releases

3 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1
  2. 4.0
  3. 5.0

Bugs

This module shouldn't exist, but some parts of the API just aren't clean.

This stuff is hardcoded directly from the headers of libgnomeprint 2.2.3

Author

Emmanuele Bassi <[email protected]>

From libgnome2-print-perl 0.95.1-1+b1 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.