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
|
<?xml version="1.0" encoding="ISO-8859-1"?>
<fpdoc-descriptions>
<!--
$Id: printer.xml,v 1.4 2005/04/29 07:57:29 michael Exp $
This file is part of the FPC documentation.
Copyright (C) 1997, by Michael Van Canneyt
The FPC documentation is free text; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The FPC Documentation 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the FPC documentation; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
-->
<package name="rtl">
<module name="printer">
<short>Provide access to the printer.</short>
<!-- \FPCexampledir{printex} -->
<descr>
This chapter describes the <file>printer</file> unit for Free Pascal. It was written for
DOS by Florian Klaempfl, and it was written for Linux by Michael Van
Canneyt, and has been ported to Windows and OS/2 as well.
Its basic functionality is the same for all supported systems, although there
are minor differences on Linux and UNIX.
</descr>
<element name="lst">
<short>Default printing file.</short>
<descr>
<var>Lst</var> is the standard printing device. <br/> On Linux,
<var>Lst</var> is set up using <var>AssignLst('/tmp/PID.lst')</var>.
</descr>
<seealso>
<link id="AssignLst"/>
</seealso>
</element>
<element name="AssignLst">
<short>Assign text file to printing device</short>
<descr>
<p>
<var>AssignLst</var> assigns to <var>F</var> a printing device - <em>UNIX only</em>.
<var>ToFile</var> is a string with the following form:
</p>
<ul>
<li><var>'|filename options'</var>: This sets up a pipe with the program filename,
with the given options, such as in the popen() call.
</li>
<li><var>'filename'</var>: Prints to file filename. Filename can contain the string 'PID'
(No Quotes), which will be replaced by the PID of your program.
When closing lst, the file will be sent to lpr and deleted. (lpr should be in PATH)
</li>
<li><var>{'filename|'}</var>: Same as previous, only the file is <em>not</em> sent to lpr, nor is it
deleted. (useful for opening /dev/printer or for later printing)
</li>
</ul>
</descr>
<seealso>
<link id="lst"/>
</seealso>
<example file="printex/printex"/>
</element>
<element name="InitPrinter">
<short>Initialize the printer</short>
<descr>
</descr>
</element>
<element name="IsLstAvailable">
<short>Determine whether printer is available.</short>
<descr>
</descr>
</element>
</module>
</package>
</fpdoc-descriptions>
|