Newer
Older
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
module Fox
#
# Bounding box
#
class FXPSBounds
# Minimum x-coordinate [Float]
attr_accessor :xmin
# Maximum x-coordinate [Float]
attr_accessor :xmax
# Minimum y-coordinate [Float]
attr_accessor :ymin
# Maximum y-coordinate
attr_accessor :ymax
# Returns an initialized FXPSBounds instance
def initialize; end
end
#
# 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
#
class FXPrinter
# Printer name [String]
attr_accessor :name
# First page that can be printed [Integer]
attr_accessor :firstpage
# Last page that can be printed [Integer]
attr_accessor :lastpage
# Current page to print [Integer]
attr_accessor :currentpage
# On output, this is the first page to print [Integer]
attr_accessor :frompage
# On output, last page to print [Integer]
attr_accessor :topage
#
# Media size index, one of +MEDIA_CUSTOM+, +MEDIA_USLETTER+, +MEDIA_LEGAL+,
# +MEDIA_A4+ or +MEDIA_ENVELOPE+ [Integer]
#
attr_accessor :mediasize
# Width of paper in points (1/72 of an inch) [Float]
attr_accessor :mediawidth
# Height of paper in points [Float]
attr_accessor :mediaheight
# Left margin [Float]
attr_accessor :leftmargin
# Right margin [Float]
attr_accessor :rightmargin
# Top margin [Float]
attr_accessor :topmargin
# Bottom margin [Float]
attr_accessor :bottommargin
# Number of copies [Integer]
attr_accessor :numcopies
# Flags [Integer]
attr_accessor :flags
# Returns an initialized FXPrinter instance
def initialize; end
end
#
# Postscript Printer Device Context
#
class FXDCPrint < FXDC
# Returns an initialized FXDCPrint instance.
def initialize(app)
end
#
# Generate print job epilog.
# See also #beginPrint.
#
def endPrint(); end
#
# Generate end of page.
# See also #beginPage.
#
def endPage(); end
def setContentRange(pxmin, pymin, pxmax, pymax); end
end
end