File: udlgselectprinter.lfm

package info (click to toggle)
lazarus 2.0.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 214,460 kB
  • sloc: pascal: 1,862,622; xml: 265,709; cpp: 56,595; sh: 3,008; java: 609; makefile: 535; perl: 297; sql: 222; ansic: 137
file content (548 lines) | stat: -rw-r--r-- 13,562 bytes parent folder | download | duplicates (2)
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
object dlgSelectPrinter: TdlgSelectPrinter
  Left = 330
  Height = 441
  Top = 111
  Width = 563
  ActiveControl = btnProp
  BorderIcons = [biSystemMenu]
  BorderStyle = bsDialog
  Caption = 'Printing'
  ClientHeight = 441
  ClientWidth = 563
  OnCreate = dlgSelectPrinterCREATE
  OnShow = dlgSelectPrinterSHOW
  Position = poScreenCenter
  LCLVersion = '1.9.0.0'
  object PrinterGroupbox: TGroupBox
    Left = 6
    Height = 137
    Top = 6
    Width = 551
    Align = alTop
    BorderSpacing.Around = 6
    Caption = ' Printer '
    ClientHeight = 118
    ClientWidth = 547
    TabOrder = 0
    object labState: TLabel
      Left = 96
      Height = 17
      Top = 49
      Width = 57
      Caption = 'labState'
      ParentColor = False
    end
    object labLocation: TLabel
      Left = 96
      Height = 17
      Top = 73
      Width = 80
      Caption = 'labLocation'
      ParentColor = False
    end
    object labComment: TLabel
      Left = 96
      Height = 17
      Top = 97
      Width = 87
      Caption = 'labComment'
      ParentColor = False
    end
    object ImgPrn: TImage
      Left = 96
      Height = 17
      Top = 12
      Width = 17
    end
    object PrinterNameLabel: TLabel
      Left = 250
      Height = 17
      Top = 8
      Width = 40
      Anchors = []
      Caption = 'Name'
      ParentColor = False
    end
    object PrinterStateLabel: TLabel
      Left = 10
      Height = 17
      Top = 49
      Width = 36
      Caption = 'State'
      ParentColor = False
      OnChangeBounds = PrinterStateLabelChangeBounds
    end
    object PrinterLocationLabel: TLabel
      Left = 10
      Height = 17
      Top = 73
      Width = 59
      Caption = 'Location'
      ParentColor = False
    end
    object PrinterDescriptionLabel: TLabel
      Left = 10
      Height = 17
      Top = 97
      Width = 78
      Caption = 'Description'
      ParentColor = False
    end
    object labPrinterName: TLabel
      Left = 10
      Height = 17
      Top = 12
      Width = 40
      Caption = 'Name'
      ParentColor = False
      OnChangeBounds = PrinterStateLabelChangeBounds
    end
    object btnProp: TButton
      AnchorSideLeft.Control = cbPrinters
      AnchorSideLeft.Side = asrBottom
      AnchorSideTop.Control = cbPrinters
      AnchorSideRight.Side = asrBottom
      Left = 442
      Height = 29
      Top = 7
      Width = 99
      Anchors = [akTop, akRight]
      AutoSize = True
      Caption = 'Properties ...'
      OnClick = btnPropCLICK
      TabOrder = 1
    end
    object cbPrintToFile: TCheckBox
      AnchorSideRight.Side = asrBottom
      Left = 438
      Height = 24
      Top = 39
      Width = 101
      Anchors = [akRight, akBottom]
      Caption = 'Print to file'
      TabOrder = 2
    end
    object cbPrinters: TComboBox
      AnchorSideRight.Control = btnProp
      Left = 120
      Height = 31
      Top = 7
      Width = 316
      Anchors = [akTop, akLeft, akRight]
      BorderSpacing.Right = 6
      ItemHeight = 0
      OnChange = cbPrintersCHANGE
      OnKeyPress = cbPrintersKEYPRESS
      Style = csDropDownList
      TabOrder = 0
    end
  end
  object NbOpts: TPageControl
    Left = 6
    Height = 217
    Top = 177
    Width = 551
    ActivePage = pgCopies
    Align = alClient
    Anchors = [akLeft]
    BorderSpacing.Around = 6
    TabIndex = 0
    TabOrder = 1
    object pgCopies: TTabSheet
      Caption = 'Copies'
      ClientHeight = 186
      ClientWidth = 547
      object gbPages: TGroupBox
        AnchorSideBottom.Control = pgCopies
        AnchorSideBottom.Side = asrBottom
        Left = 8
        Height = 173
        Top = 7
        Width = 262
        Anchors = [akTop, akLeft, akBottom]
        BorderSpacing.Around = 6
        Caption = ' Select pages '
        ClientHeight = 154
        ClientWidth = 258
        TabOrder = 0
        object Bevel1: TBevel
          AnchorSideTop.Control = edRange
          AnchorSideTop.Side = asrBottom
          Left = 8
          Height = 2
          Top = 110
          Width = 240
          BorderSpacing.Top = 6
          Shape = bsTopLine
          Style = bsRaised
        end
        object labPage: TLabel
          AnchorSideTop.Control = Bevel1
          AnchorSideTop.Side = asrBottom
          Left = 8
          Height = 17
          Top = 124
          Width = 40
          BorderSpacing.Top = 12
          Caption = 'Pages'
          ParentColor = False
        end
        object edRange: TEdit
          AnchorSideLeft.Control = rbRange
          AnchorSideLeft.Side = asrBottom
          AnchorSideTop.Control = rbRange
          AnchorSideTop.Side = asrCenter
          AnchorSideRight.Control = gbPages
          AnchorSideRight.Side = asrBottom
          Left = 90
          Height = 27
          Top = 77
          Width = 162
          Anchors = [akTop, akLeft, akRight]
          BorderSpacing.Left = 15
          BorderSpacing.Right = 6
          TabOrder = 4
        end
        object edPageSet: TComboBox
          AnchorSideTop.Control = labPage
          AnchorSideTop.Side = asrCenter
          AnchorSideRight.Control = gbPages
          AnchorSideRight.Side = asrBottom
          Left = 104
          Height = 27
          Top = 119
          Width = 148
          Anchors = [akTop, akRight]
          BorderSpacing.Right = 6
          ItemHeight = 0
          ItemIndex = 0
          Items.Strings = (
            'All pages'
            'Odd pages'
            'Even pages'
          )
          Style = csDropDownList
          TabOrder = 5
          Text = 'All pages'
        end
        object rbCurrentPage: TRadioButton
          AnchorSideTop.Control = rbAllPage
          AnchorSideTop.Side = asrBottom
          Left = 8
          Height = 24
          Top = 26
          Width = 113
          BorderSpacing.Around = 2
          Caption = 'Current page'
          DragCursor = crDefault
          Enabled = False
          TabOrder = 1
        end
        object rbRange: TRadioButton
          AnchorSideTop.Control = rbSelection
          AnchorSideTop.Side = asrBottom
          Left = 8
          Height = 24
          Top = 78
          Width = 67
          BorderSpacing.Around = 2
          Caption = 'Range'
          DragCursor = crDefault
          TabOrder = 3
        end
        object rbAllPage: TRadioButton
          Left = 8
          Height = 24
          Top = 0
          Width = 47
          Caption = 'All '
          Checked = True
          DragCursor = crDefault
          TabOrder = 0
          TabStop = True
        end
        object rbSelection: TRadioButton
          AnchorSideTop.Control = rbCurrentPage
          AnchorSideTop.Side = asrBottom
          Left = 8
          Height = 24
          Top = 52
          Width = 88
          BorderSpacing.Around = 2
          Caption = 'Selection'
          DragCursor = crDefault
          Enabled = False
          TabOrder = 2
        end
      end
      object gbCopies: TGroupBox
        AnchorSideLeft.Control = gbPages
        AnchorSideLeft.Side = asrBottom
        AnchorSideRight.Control = pgCopies
        AnchorSideRight.Side = asrBottom
        AnchorSideBottom.Control = pgCopies
        AnchorSideBottom.Side = asrBottom
        Left = 276
        Height = 173
        Top = 7
        Width = 265
        Anchors = [akTop, akLeft, akRight, akBottom]
        BorderSpacing.Around = 6
        Caption = ' Copies '
        ClientHeight = 154
        ClientWidth = 261
        TabOrder = 1
        object imgCollate: TImage
          AnchorSideTop.Control = lanNumCopies
          AnchorSideTop.Side = asrBottom
          Left = 6
          Height = 37
          Top = 29
          Width = 93
          AutoSize = True
          BorderSpacing.Top = 6
          Proportional = True
        end
        object lanNumCopies: TLabel
          Left = 6
          Height = 17
          Top = 6
          Width = 120
          Caption = 'Number of copies'
          ParentColor = False
        end
        object edCopies: TSpinEdit
          AnchorSideLeft.Control = lanNumCopies
          AnchorSideLeft.Side = asrBottom
          AnchorSideTop.Control = lanNumCopies
          AnchorSideTop.Side = asrCenter
          Left = 132
          Height = 27
          Top = 1
          Width = 60
          BorderSpacing.Left = 6
          TabOrder = 0
        end
        object cbCollate: TCheckBox
          AnchorSideTop.Control = edCopies
          AnchorSideTop.Side = asrBottom
          Left = 119
          Height = 24
          Top = 34
          Width = 74
          AllowGrayed = True
          BorderSpacing.Around = 6
          Caption = 'Collate'
          DragCursor = crDefault
          OnClick = cbReverseCLICK
          TabOrder = 1
        end
        object cbReverse: TCheckBox
          AnchorSideTop.Control = cbCollate
          AnchorSideTop.Side = asrBottom
          Left = 119
          Height = 24
          Top = 64
          Width = 79
          AllowGrayed = True
          BorderSpacing.Around = 6
          Caption = 'Reverse'
          DragCursor = crDefault
          OnClick = cbReverseCLICK
          TabOrder = 2
        end
      end
    end
    object pgAdvance: TTabSheet
      Caption = 'Advanced'
      ClientHeight = 186
      ClientWidth = 547
      object labTask: TLabel
        Left = 7
        Height = 14
        Top = 10
        Width = 63
        Caption = 'Delayed task'
        ParentColor = False
      end
      object PrioLabel: TLabel
        AnchorSideTop.Control = labTask
        AnchorSideTop.Side = asrBottom
        Left = 7
        Height = 14
        Top = 50
        Width = 35
        BorderSpacing.Top = 20
        BorderSpacing.Around = 6
        Caption = 'Priority'
        ParentColor = False
      end
      object cbTasktime: TComboBox
        Left = 215
        Height = 21
        Top = 7
        Width = 200
        ItemHeight = 0
        ItemIndex = 0
        Items.Strings = (
          'Immediate'
          'Never (suspending)'
          'during the day'
          'evening'
          'night'
          'Weekend'
          'After close of business'
          'After midnight'
          'At time'
        )
        OnChange = cbTasktimeCHANGE
        OnKeyPress = cbPrintersKEYPRESS
        Style = csDropDownList
        TabOrder = 1
        Text = 'Immediate'
      end
      object edTimeTask: TEdit
        Left = 423
        Height = 21
        Top = 9
        Width = 83
        DragCursor = crDefault
        MaxLength = 8
        TabOrder = 0
        Text = '23:00:00'
      end
      object edPriority: TSpinEdit
        AnchorSideTop.Control = PrioLabel
        AnchorSideTop.Side = asrCenter
        Left = 127
        Height = 21
        Top = 47
        Width = 50
        TabOrder = 3
      end
      object tkbPriority: TTrackBar
        AnchorSideLeft.Control = edPriority
        AnchorSideLeft.Side = asrBottom
        AnchorSideTop.Control = PrioLabel
        AnchorSideTop.Side = asrCenter
        AnchorSideRight.Control = pgAdvance
        AnchorSideRight.Side = asrBottom
        Left = 183
        Height = 38
        Top = 38
        Width = 320
        Frequency = 10
        Max = 100
        OnChange = tkbPriorityCHANGE
        Position = 10
        TabStop = False
        TickMarks = tmBoth
        BorderSpacing.Around = 6
        DragCursor = crDefault
        TabOrder = 2
      end
    end
  end
  object BtnPanel: TPanel
    Left = 0
    Height = 41
    Top = 400
    Width = 563
    Align = alBottom
    Anchors = [akLeft, akBottom]
    AutoSize = True
    BevelOuter = bvNone
    ClientHeight = 41
    ClientWidth = 563
    FullRepaint = False
    TabOrder = 2
    TabStop = True
    object btnCancel: TButton
      Left = 477
      Height = 29
      Top = 6
      Width = 80
      Align = alRight
      AutoSize = True
      BorderSpacing.Around = 6
      Cancel = True
      Caption = 'Cancel'
      Constraints.MinWidth = 80
      ModalResult = 2
      TabOrder = 3
    end
    object btnPrint: TButton
      Left = 391
      Height = 29
      Top = 6
      Width = 80
      Align = alRight
      AutoSize = True
      BorderSpacing.Around = 6
      Caption = 'Print'
      Constraints.MinWidth = 80
      Default = True
      ModalResult = 1
      OnClick = btnPrintCLICK
      TabOrder = 2
    end
    object btnReduc: TButton
      Left = 6
      Height = 29
      Top = 6
      Width = 80
      Align = alLeft
      AutoSize = True
      BorderSpacing.Around = 6
      Caption = 'More ...'
      Constraints.MinWidth = 80
      OnClick = btnReducCLICK
      TabOrder = 0
    end
    object btnPreview: TButton
      Left = 305
      Height = 29
      Top = 6
      Width = 80
      Align = alRight
      AutoSize = True
      BorderSpacing.Around = 6
      Caption = 'Preview'
      Constraints.MinWidth = 80
      ModalResult = 6
      TabOrder = 1
    end
  end
  object panLabels: TPanel
    Left = 6
    Height = 22
    Top = 149
    Width = 551
    Align = alTop
    BorderSpacing.Around = 6
    BevelOuter = bvNone
    ClientHeight = 22
    ClientWidth = 551
    TabOrder = 3
    object labCUPS: TLabel
      AnchorSideTop.Side = asrBottom
      Left = 8
      Height = 17
      Top = 3
      Width = 251
      Caption = 'CUPS (Common Unix Printing System)'
      ParentColor = False
    end
    object labCUPSServer: TLabel
      AnchorSideLeft.Control = labCUPS
      AnchorSideLeft.Side = asrBottom
      Left = 265
      Height = 17
      Top = 3
      Width = 100
      BorderSpacing.Around = 6
      Caption = 'labCUPSServer'
      ParentColor = False
    end
  end
end