Articles · Book · Estimator · CUPS 1.1 · CUPS 1.2 · CUPS 1.3 · CUPS 1.4 · CUPS 1.5 · Other CUPS · Search Help PPD Compiler APIPPD Compiler API
ContentsOverviewThe PPD Compiler API provides access to CUPS driver information files and methods for generating and importing PPD files. ClassesppdcArray// Shared Array class ppdcArray : public ppdcShared { Members
PPDC_NAME
void PPDC_NAME ( Parameters
add
void add ( Parameters
firstReturn the first element in the array. ppdcShared *first (void); Return ValuenextReturn the next element in the array. ppdcShared *next (void); Return ValueppdcArray
void ppdcArray ( Parameters
remove
void remove ( Parameters
~ppdcArrayvoid ~ppdcArray (void); ppdcAttr// Attribute class ppdcAttr : public ppdcShared { Members
ppdcAttr
void ppdcAttr ( Parameters
~ppdcAttrvoid ~ppdcAttr (void); ppdcCatalog// Translation catalog class ppdcCatalog : public ppdcShared { Members
PPDC_NAME
void PPDC_NAME ( Parameters
add_message
void add_message ( Parameters
find_message
const char *find_message ( Parameters
Return ValueMessage text load_messages
int load_messages ( Parameters
Return Value0 on success, -1 on failure ppdcCatalog
void ppdcCatalog ( Parameters
save_messages
int save_messages ( Parameters
Return Value0 on success, -1 on error ~ppdcCatalogvoid ~ppdcCatalog (void); ppdcChoice// Option Choice class ppdcChoice : public ppdcShared { Members
ppdcChoice
void ppdcChoice ( Parameters
~ppdcChoicevoid ~ppdcChoice (void); ppdcConstraint// Constraint class ppdcConstraint : public ppdcShared { Members
ppdcConstraint
void ppdcConstraint ( Parameters
~ppdcConstraintvoid ~ppdcConstraint (void); ppdcDriver// Printer Driver Data class ppdcDriver : public ppdcShared { Members
PPDC_NAME
void PPDC_NAME ( Parameters
add_constraint
void add_constraint ( Parameters
add_copyright
void add_copyright ( Parameters
add_filter
void add_filter ( Parameters
add_font
void add_font ( Parameters
add_group
void add_group ( Parameters
add_profile
void add_profile ( Parameters
add_size
void add_size ( Parameters
find_attr
ppdcAttr *find_attr ( Parameters
Return ValueAttribute or NULL find_group
ppdcGroup *find_group ( Parameters
Return ValueMatching group or NULL find_option
ppdcOption *find_option ( Parameters
Return ValueMatching option or NULL find_option_group
ppdcOption *find_option_group ( Parameters
Return ValueMatching option or NULL ppdcDriver
void ppdcDriver ( Parameters
set_custom_size_code
void set_custom_size_code ( Parameters
set_default_font
void set_default_font ( Parameters
set_default_size
void set_default_size ( Parameters
set_file_name
void set_file_name ( Parameters
set_manufacturer
void set_manufacturer ( Parameters
set_model_name
void set_model_name ( Parameters
set_pc_file_name
void set_pc_file_name ( Parameters
set_version
void set_version ( Parameters
write_ppd_file
int write_ppd_file ( Parameters
Return Value0 on success, -1 on failure ~ppdcDrivervoid ~ppdcDriver (void); ppdcFile// File class ppdcFile { Members
getGet a character from a file. int get (void); Return Valuepeekint peek (void); Return ValueNext character in file ppdcFile
void ppdcFile ( Parameters
~ppdcFilevoid ~ppdcFile (void); ppdcFilter// Filter Program class ppdcFilter : public ppdcShared { Members
ppdcFilter
void ppdcFilter ( Parameters
~ppdcFiltervoid ~ppdcFilter (void); ppdcFont// Shared Font class ppdcFont : public ppdcShared { Members
ppdcFont
void ppdcFont ( Parameters
~ppdcFontvoid ~ppdcFont (void); ppdcGroup// Group of Options class ppdcGroup : public ppdcShared { Members
PPDC_NAME
void PPDC_NAME ( Parameters
find_optionFind an option in a group.
ppdcOption *find_option ( Parameters
Return ValueppdcGroup
void ppdcGroup ( Parameters
~ppdcGroupvoid ~ppdcGroup (void); ppdcInteger// Shared integer class ppdcInteger : public ppdcShared { Members
ppdcIntegerInteger value
void ppdcInteger ( Parameters
ppdcMediaSize// Media Size class ppdcMediaSize : public ppdcShared { Members
ppdcMediaSize
void ppdcMediaSize ( Parameters
~ppdcMediaSizevoid ~ppdcMediaSize (void); ppdcMessage// Translation message class ppdcMessage : public ppdcShared { Members
ppdcMessage
void ppdcMessage ( Parameters
~ppdcMessagevoid ~ppdcMessage (void); ppdcOption// Option class ppdcOption : public ppdcShared { Members
PPDC_NAME
void PPDC_NAME ( Parameters
find_choice
ppdcChoice *find_choice ( Parameters
Return ValueChoice or NULL ppdcOption
void ppdcOption ( Parameters
set_defchoice
void set_defchoice ( Parameters
~ppdcOptionvoid ~ppdcOption (void); ppdcProfile// Color Profile class ppdcProfile : public ppdcShared { Members
ppdcProfile
void ppdcProfile ( Parameters
~ppdcProfilevoid ~ppdcProfile (void); ppdcShared// Shared Data Value class ppdcShared { Members
class_namevirtual const char *class_name (void); Return ValueppdcSharedvoid ppdcShared (void); releasevoid release (void); retainvoid retain (void); ~ppdcSharedvoid ~ppdcShared (void); ppdcSource// Source File class ppdcSource : public ppdcShared { Members
PPDC_NAME
void PPDC_NAME ( Parameters
add_include
void add_include ( Parameters
find_driver
ppdcDriver *find_driver ( Parameters
Return ValueDriver find_include
char *find_include ( Parameters
Return ValueFound path or NULL find_po
ppdcCatalog *find_po ( Parameters
Return ValueMessage catalog or NULL find_size
ppdcMediaSize *find_size ( Parameters
Return ValueSize find_variable
ppdcVariable *find_variable ( Parameters
Return ValueVariable get_attr
ppdcAttr *get_attr ( Parameters
Return ValueAttribute get_boolean
int get_boolean ( Parameters
Return ValueBoolean value get_choice
ppdcChoice *get_choice ( Parameters
Return ValueChoice data get_color_model
ppdcChoice *get_color_model ( Parameters
Return ValueChoice data get_color_order
int get_color_order ( Parameters
Return ValueColor order value get_color_profile
ppdcProfile *get_color_profile ( Parameters
Return ValueColor profile get_color_space
int get_color_space ( Parameters
Return ValueColorspace value get_constraint
ppdcConstraint *get_constraint ( Parameters
Return ValueConstraint get_custom_size
ppdcMediaSize *get_custom_size ( Parameters
Return ValueMedia size get_duplex
void get_duplex ( Parameters
get_filter
ppdcFilter *get_filter ( Parameters
Return ValueFilter get_float
float get_float ( Parameters
Return ValueNumber get_font
ppdcFont *get_font ( Parameters
Return ValueFont data get_generic
ppdcChoice *get_generic ( Parameters
Return ValueChoice data get_group
ppdcGroup *get_group ( Parameters
Return ValueGroup get_installable
ppdcOption *get_installable ( Parameters
Return ValueOption get_integer
int get_integer ( Parameters
Return ValueInteger value get_measurement
float get_measurement ( Parameters
Return ValueMeasurement value in points get_option
ppdcOption *get_option ( Parameters
Return ValueOption get_po
ppdcCatalog *get_po ( Parameters
Return ValueMessage catalog get_resolution
ppdcChoice *get_resolution ( Parameters
Return ValueChoice data get_simple_profile
ppdcProfile *get_simple_profile ( Parameters
Return ValueColor profile get_size
ppdcMediaSize *get_size ( Parameters
Return ValueMedia size get_token
char *get_token ( Parameters
Return ValueToken string or NULL get_variable
ppdcVariable *get_variable ( Parameters
Return ValueVariable import_ppd
int import_ppd ( Parameters
Return Value1 on success, 0 on failure ppdcSource
void ppdcSource ( Parameters
quotef
int quotef ( Parameters
Return ValueNumber bytes on success, -1 on failure read_file
void read_file ( Parameters
scan_file
void scan_file ( Parameters
set_variable
ppdcVariable *set_variable ( Parameters
Return ValueVariable write_file
int write_file ( Parameters
Return Value0 on success, -1 on error ~ppdcSourcevoid ~ppdcSource (void); ppdcString// Shared String class ppdcString : public ppdcShared { Members
ppdcString
void ppdcString ( Parameters
~ppdcStringvoid ~ppdcString (void); ppdcVariable// Variable Definition class ppdcVariable : public ppdcShared { Members
PPDC_NAME
void PPDC_NAME ( Parameters
ppdcVariable
void ppdcVariable ( Parameters
set_value
void set_value ( Parameters
~ppdcVariablevoid ~ppdcVariable (void); Data Typesppdc_cs_ttypedef enum ppdc_cs_t; VariablesppdcSource// Printer Driver Data class ppdcSource; ConstantsppdcCondFlags// Condition flags Constants
ppdcDrvType// Driver type Constants
ppdcFontStatus// Load status of font Constants
ppdcLineEnding// Line endings Constants
ppdcOptSection// Option section Constants
ppdcOptType// Option type Constants
| ||||||||||||||||
| Comments are owned by the poster. All other material is copyright 2007-2012 Apple Inc. All rights reserved. CUPS and the CUPS logo are trademarks of Apple Inc. All other trademarks are the property of their respective owners. Please report site problems to 'webmaster@cups.org'. |