
functions
files
intro
|
|
printer configuration tool
|
modules/Printerdb.ycp
|
Defines for handling PPD files and database of PPD files
|
|
|
Imports
- Label
- Mode
- Printerlib
- Report
- Spooler
Global Variables
Global Functions
Local Variables
|
|
|
global foomatic -> map<string,map>
|
|
map of foomatic printers database
local do_not_install_drivers -> boolean
|
|
Do not ask about installing drivers any more
global Language2Encoding (string language) -> string
|
|
Get the default encoding of the PPD file according to the language
- Parameters:
language |
string language in the form it is present in PPD file |
- Return value:
|
encoding in the form it is present in PPD file |
global PPDenc2UIenc (string ppd_enc) -> string
|
|
Get the characters encoding from the form in it is present in PPD file
to the form that can be passed to iconv
- Parameters:
ppd_enc |
string encoding in the form for PPD file |
- Return value:
|
encoding in the form for iconv |
global getPpdFileOptions (string filename) -> list<map>
|
|
Get the options of the PPD file
- Parameters:
filename |
string file name of the PPD file |
- Return value:
|
a list of all options of the PPD file (in UTF-8) |
global getFoomaticDefaultQueue (list<map> queues) -> string
|
|
Get proposed default queue when using foomatic db
- Parameters:
- Return value:
|
proposed default queue name |
global loadFoomaticIfNeeded () -> void
|
|
Check whether foomatic database has been loaded, and if not, then
load it
global sortPpds (string vendor_db, string device_db, list<string> ppd_nicks) -> list<string>
|
|
Sort PPD files according to preference list
- Parameters:
vendor_db |
string vendor database key |
device_db |
string model database key |
ppd_nicks |
a list of PPD file nicknames, if nil, then PPD
nicknames are taken from foomatic database |
- Return value:
|
a list of sorted PPD nicknames |
global getAutoPpdFile (string vendor_db, string device_db, list<string> ppd_nicks) -> string
|
|
Get the PPD file for automatic installation
- Parameters:
vendor_db |
string vendor database key |
device_db |
string model database key |
ppd_nicks |
list of PPD file nicknames, if nil, then PPD nicknames
are taken from foomatic database |
- Return value:
|
name of the PPD file (of database, not filename),
nil if no is usable |
global getUpdatedPpdFile (map entry) -> map
|
|
Get PPD file updated according to printer options and add it's name to
printer description map
- Parameters:
- Return value:
global getPpdFiles (string vendor_db, string device_db) -> map
|
|
get configurations, which may be usable for detected printer
- Parameters:
vendor_db |
string name of printer vendor |
device_db |
string printer model name |
- Return value:
|
of ppd files (filename -> description) |
global processPpdFiles (string dir) -> boolean
|
|
Process downloaded PPD files
- Parameters:
dir |
string directory with downloaded PPD files |
- Return value:
global InstallDrivers () -> void
|
|
Install drivers for current spooler, reread database
|