Class: Fox::FXPrinter

Inherits:
Object
  • Object
show all
Defined in:
rdoc-sources/FXDCPrint.rb

Overview

Describes printer

Printer flags

PRINT_DEST_PAPER

Send print to paper

PRINT_DEST_FILE

Send print to file

PRINT_PAGES_ALL

Print all pages

PRINT_PAGES_EVEN

Print even pages only

PRINT_PAGES_ODD

Print odd pages only

PRINT_PAGES_RANGE

Print range of pages

PRINT_COLLATE_NORMAL

Normal collate order

PRINT_COLLATE_REVERSED

Reversed collate order

PRINT_PORTRAIT

Portrait orientation

PRINT_LANDSCAPE

Landscape orientation

PRINT_BLACKANDWHITE

Black and white output

PRINT_COLOR

Color output

PRINT_NOBOUNDS

Must determine bounding box

Printer media size

MEDIA_CUSTOM

Custom paper size

MEDIA_USLETTER

US Letter size

MEDIA_LEGAL

US Legal size

MEDIA_A4

A4

MEDIA_ENVELOPE

#10 Envelope

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFXPrinter

Returns an initialized FXPrinter instance



101
# File 'rdoc-sources/FXDCPrint.rb', line 101

def initialize; end

Instance Attribute Details

#bottommarginObject

Bottom margin [Float]



92
93
94
# File 'rdoc-sources/FXDCPrint.rb', line 92

def bottommargin
  @bottommargin
end

#currentpageObject

Current page to print [Integer]



62
63
64
# File 'rdoc-sources/FXDCPrint.rb', line 62

def currentpage
  @currentpage
end

#firstpageObject

First page that can be printed [Integer]



56
57
58
# File 'rdoc-sources/FXDCPrint.rb', line 56

def firstpage
  @firstpage
end

#flagsObject

Flags [Integer]



98
99
100
# File 'rdoc-sources/FXDCPrint.rb', line 98

def flags
  @flags
end

#frompageObject

On output, this is the first page to print [Integer]



65
66
67
# File 'rdoc-sources/FXDCPrint.rb', line 65

def frompage
  @frompage
end

#lastpageObject

Last page that can be printed [Integer]



59
60
61
# File 'rdoc-sources/FXDCPrint.rb', line 59

def lastpage
  @lastpage
end

#leftmarginObject

Left margin [Float]



83
84
85
# File 'rdoc-sources/FXDCPrint.rb', line 83

def leftmargin
  @leftmargin
end

#mediaheightObject

Height of paper in points [Float]



80
81
82
# File 'rdoc-sources/FXDCPrint.rb', line 80

def mediaheight
  @mediaheight
end

#mediasizeObject

Media size index, one of MEDIA_CUSTOM, MEDIA_USLETTER, MEDIA_LEGAL, MEDIA_A4 or MEDIA_ENVELOPE [Integer]



74
75
76
# File 'rdoc-sources/FXDCPrint.rb', line 74

def mediasize
  @mediasize
end

#mediawidthObject

Width of paper in points (1/72 of an inch) [Float]



77
78
79
# File 'rdoc-sources/FXDCPrint.rb', line 77

def mediawidth
  @mediawidth
end

#nameObject

Printer name [String]



53
54
55
# File 'rdoc-sources/FXDCPrint.rb', line 53

def name
  @name
end

#numcopiesObject

Number of copies [Integer]



95
96
97
# File 'rdoc-sources/FXDCPrint.rb', line 95

def numcopies
  @numcopies
end

#rightmarginObject

Right margin [Float]



86
87
88
# File 'rdoc-sources/FXDCPrint.rb', line 86

def rightmargin
  @rightmargin
end

#topageObject

On output, last page to print [Integer]



68
69
70
# File 'rdoc-sources/FXDCPrint.rb', line 68

def topage
  @topage
end

#topmarginObject

Top margin [Float]



89
90
91
# File 'rdoc-sources/FXDCPrint.rb', line 89

def topmargin
  @topmargin
end