mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-22 01:20:26 +00:00
Xprint/ -> hw/xprint
XpConfig -> hw/xprint/config
This commit is contained in:
parent
868e2cab70
commit
71fbda8049
262 changed files with 53 additions and 143 deletions
702
hw/xprint/AttrValid.c
Normal file
702
hw/xprint/AttrValid.c
Normal file
|
|
@ -0,0 +1,702 @@
|
|||
/* $Xorg: AttrValid.c,v 1.4 2001/03/14 18:43:17 pookie Exp $ */
|
||||
/*
|
||||
(c) Copyright 1996 Hewlett-Packard Company
|
||||
(c) Copyright 1996 International Business Machines Corp.
|
||||
(c) Copyright 1996 Sun Microsystems, Inc.
|
||||
(c) Copyright 1996 Novell, Inc.
|
||||
(c) Copyright 1996 Digital Equipment Corp.
|
||||
(c) Copyright 1996 Fujitsu Limited
|
||||
(c) Copyright 1996 Hitachi, Ltd.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the names of the copyright holders shall
|
||||
not be used in advertising or otherwise to promote the sale, use or other
|
||||
dealings in this Software without prior written authorization from said
|
||||
copyright holders.
|
||||
*/
|
||||
#ifdef HAVE_DIX_CONFIG_H
|
||||
#include <dix-config.h>
|
||||
#endif
|
||||
|
||||
#include <scrnintstr.h>
|
||||
|
||||
#include "attributes.h"
|
||||
|
||||
/*
|
||||
* default medium-source-sizes supported = na-letter w/.25" margins
|
||||
*/
|
||||
static XpOidMediumDiscreteSize DefaultMediumSize = {
|
||||
xpoid_val_medium_size_na_letter, xFalse, {6.35, 209.55, 6.35, 273.05}
|
||||
};
|
||||
static XpOidMediumDiscreteSizeList DefaultMediumSizeList = {
|
||||
&DefaultMediumSize, 1
|
||||
};
|
||||
static XpOidMediumSourceSize DefaultMediumSourceSize = {
|
||||
xpoid_unspecified, XpOidMediumSS_DISCRETE, { &DefaultMediumSizeList }
|
||||
};
|
||||
static XpOidMediumSS DefaultMediumSS = {
|
||||
&DefaultMediumSourceSize, 1
|
||||
};
|
||||
|
||||
/*
|
||||
* if 'valid_oid_list' is NULL any oid found is considered valid
|
||||
*/
|
||||
XpOid
|
||||
XpGetOidAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidList* valid_oid_list)
|
||||
{
|
||||
XpOid value_oid;
|
||||
|
||||
value_oid = XpOidFromString(XpGetStringAttr(pContext, pool, oid));
|
||||
if((const XpOidList*)NULL == valid_oid_list
|
||||
||
|
||||
XpOidListHasOid(valid_oid_list, value_oid))
|
||||
{
|
||||
return value_oid;
|
||||
}
|
||||
else
|
||||
{
|
||||
return xpoid_none;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
XpPutOidAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
XpOid value_oid)
|
||||
{
|
||||
XpPutStringAttr(pContext, pool, oid, XpOidString(value_oid));
|
||||
}
|
||||
|
||||
void
|
||||
XpValidateOidAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidList* valid_oids,
|
||||
XpOid default_oid)
|
||||
{
|
||||
XpOid value_oid;
|
||||
value_oid = XpGetOidAttr(pContext, pool, oid, valid_oids);
|
||||
XpPutOidAttr(pContext, pool, oid,
|
||||
value_oid == xpoid_none ? default_oid : value_oid);
|
||||
}
|
||||
|
||||
/*
|
||||
* if 'valid_card_list' is NULL any cardinal found is considered valid
|
||||
*/
|
||||
unsigned long
|
||||
XpGetCardAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidCardList* valid_card_list)
|
||||
{
|
||||
unsigned long value_card;
|
||||
|
||||
if(XpOidParseUnsignedValue(XpGetStringAttr(pContext, pool, oid),
|
||||
(const char**)NULL,
|
||||
&value_card))
|
||||
{
|
||||
if((const XpOidCardList*)NULL == valid_card_list
|
||||
||
|
||||
XpOidCardListHasCard(valid_card_list, value_card))
|
||||
{
|
||||
return value_card;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
XpPutCardAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
unsigned long value_card)
|
||||
{
|
||||
if(value_card > 0)
|
||||
{
|
||||
char value_out[16];
|
||||
sprintf(value_out, "%lu", value_card);
|
||||
XpPutStringAttr(pContext, pool, oid, value_out);
|
||||
}
|
||||
else
|
||||
XpPutStringAttr(pContext, pool, oid, (const char*)NULL);
|
||||
}
|
||||
|
||||
void
|
||||
XpValidateCardAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidCardList* valid_cards,
|
||||
unsigned long default_card)
|
||||
{
|
||||
unsigned long value_card;
|
||||
value_card = XpGetCardAttr(pContext, pool, oid, valid_cards);
|
||||
XpPutCardAttr(pContext, pool, oid,
|
||||
value_card == 0 ? default_card : value_card);
|
||||
}
|
||||
|
||||
XpOidList*
|
||||
XpGetListAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidList* valid_oid_list)
|
||||
{
|
||||
return XpOidListNew(XpGetStringAttr(pContext, pool, oid), valid_oid_list);
|
||||
}
|
||||
|
||||
void
|
||||
XpPutListAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidList* list)
|
||||
{
|
||||
char* value_out;
|
||||
|
||||
value_out = XpOidListString(list);
|
||||
XpPutStringAttr(pContext, pool, oid, value_out);
|
||||
XpOidFree(value_out);
|
||||
}
|
||||
|
||||
void
|
||||
XpValidateListAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidList* valid_oids,
|
||||
const XpOidList* default_oids)
|
||||
{
|
||||
XpOidList* list = XpGetListAttr(pContext, pool, oid, valid_oids);
|
||||
if(XpOidListCount(list) == 0)
|
||||
XpPutListAttr(pContext, pool, oid, default_oids);
|
||||
else
|
||||
XpPutListAttr(pContext, pool, oid, list);
|
||||
XpOidListDelete(list);
|
||||
}
|
||||
|
||||
XpOidCardList*
|
||||
XpGetCardListAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidCardList* valid_card_list)
|
||||
{
|
||||
return XpOidCardListNew(XpGetStringAttr(pContext, pool, oid),
|
||||
valid_card_list);
|
||||
}
|
||||
|
||||
void
|
||||
XpPutCardListAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidCardList* list)
|
||||
{
|
||||
char* value_out;
|
||||
|
||||
value_out = XpOidCardListString(list);
|
||||
XpPutStringAttr(pContext, pool, oid, value_out);
|
||||
XpOidFree(value_out);
|
||||
}
|
||||
|
||||
void
|
||||
XpValidateCardListAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidCardList* valid_cards,
|
||||
const XpOidCardList* default_cards)
|
||||
{
|
||||
XpOidCardList* list = XpGetCardListAttr(pContext, pool, oid, valid_cards);
|
||||
if(XpOidCardListCount(list) == 0 && (XpOidCardList*)NULL != default_cards)
|
||||
XpPutCardListAttr(pContext, pool, oid, default_cards);
|
||||
else
|
||||
XpPutCardListAttr(pContext, pool, oid, list);
|
||||
XpOidCardListDelete(list);
|
||||
}
|
||||
|
||||
XpOidDocFmtList*
|
||||
XpGetDocFmtListAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidDocFmtList* valid_fmt_list)
|
||||
{
|
||||
return XpOidDocFmtListNew(XpGetStringAttr(pContext, pool, oid),
|
||||
valid_fmt_list);
|
||||
}
|
||||
|
||||
void
|
||||
XpPutDocFmtListAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidDocFmtList* list)
|
||||
{
|
||||
char* value_out;
|
||||
|
||||
value_out = XpOidDocFmtListString(list);
|
||||
XpPutStringAttr(pContext, pool, oid, value_out);
|
||||
XpOidFree(value_out);
|
||||
}
|
||||
|
||||
void
|
||||
XpValidateDocFmtListAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidDocFmtList* valid_fmts,
|
||||
const XpOidDocFmtList* default_fmts)
|
||||
{
|
||||
XpOidDocFmtList* list;
|
||||
|
||||
list = XpGetDocFmtListAttr(pContext, pool, oid, valid_fmts);
|
||||
if(XpOidDocFmtListCount(list) == 0
|
||||
&&
|
||||
(XpOidDocFmtList*)NULL != default_fmts)
|
||||
{
|
||||
XpPutDocFmtListAttr(pContext, pool, oid, default_fmts);
|
||||
}
|
||||
else
|
||||
{
|
||||
XpPutDocFmtListAttr(pContext, pool, oid, list);
|
||||
}
|
||||
XpOidDocFmtListDelete(list);
|
||||
}
|
||||
|
||||
XpOidMediumSS*
|
||||
XpGetMediumSSAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidList* valid_trays,
|
||||
const XpOidList* valid_sizes)
|
||||
{
|
||||
return XpOidMediumSSNew(XpGetStringAttr(pContext, pool, oid),
|
||||
valid_trays, valid_sizes);
|
||||
}
|
||||
|
||||
void
|
||||
XpPutMediumSSAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidMediumSS* msss)
|
||||
{
|
||||
char* value_out;
|
||||
|
||||
value_out = XpOidMediumSSString(msss);
|
||||
XpPutStringAttr(pContext, pool, oid, value_out);
|
||||
XpOidFree(value_out);
|
||||
}
|
||||
|
||||
const XpOidMediumSS*
|
||||
XpGetDefaultMediumSS()
|
||||
{
|
||||
return &DefaultMediumSS;
|
||||
}
|
||||
|
||||
XpOidTrayMediumList*
|
||||
XpGetTrayMediumListAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidList* valid_trays,
|
||||
const XpOidMediumSS* msss)
|
||||
{
|
||||
return XpOidTrayMediumListNew(XpGetStringAttr(pContext, pool, oid),
|
||||
valid_trays, msss);
|
||||
}
|
||||
|
||||
void
|
||||
XpPutTrayMediumListAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidTrayMediumList* tm)
|
||||
{
|
||||
char* value_out;
|
||||
|
||||
value_out = XpOidTrayMediumListString(tm);
|
||||
XpPutStringAttr(pContext, pool, oid, value_out);
|
||||
XpOidFree(value_out);
|
||||
}
|
||||
|
||||
void
|
||||
XpValidatePrinterMediaAttrs(XpContextPtr pContext,
|
||||
const XpOidList* valid_trays,
|
||||
const XpOidList* valid_sizes)
|
||||
{
|
||||
const XpOidMediumSS* msss;
|
||||
XpOidMediumSS* pool_msss;
|
||||
XpOidTrayMediumList* tm;
|
||||
|
||||
pool_msss = XpGetMediumSSAttr(pContext, XPPrinterAttr,
|
||||
xpoid_att_medium_source_sizes_supported,
|
||||
valid_trays, valid_sizes);
|
||||
if(0 == XpOidMediumSSCount(pool_msss))
|
||||
msss = XpGetDefaultMediumSS();
|
||||
else
|
||||
msss = pool_msss;
|
||||
XpPutMediumSSAttr(pContext, XPPrinterAttr,
|
||||
xpoid_att_medium_source_sizes_supported, msss);
|
||||
|
||||
tm = XpGetTrayMediumListAttr(pContext, XPPrinterAttr,
|
||||
xpoid_att_input_trays_medium,
|
||||
valid_trays, msss);
|
||||
XpPutTrayMediumListAttr(pContext, XPPrinterAttr,
|
||||
xpoid_att_input_trays_medium, tm);
|
||||
|
||||
XpOidMediumSSDelete(pool_msss);
|
||||
XpOidTrayMediumListDelete(tm);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
XpValidatePrinterPool(XpContextPtr pContext,
|
||||
const XpValidatePoolsRec* vpr)
|
||||
{
|
||||
/*
|
||||
* content-orientations-supported
|
||||
*/
|
||||
XpValidateListAttr(pContext, XPPrinterAttr,
|
||||
xpoid_att_content_orientations_supported,
|
||||
vpr->valid_content_orientations_supported,
|
||||
vpr->default_content_orientations_supported);
|
||||
/*
|
||||
* document-formats-supported
|
||||
*/
|
||||
XpValidateDocFmtListAttr(pContext, XPPrinterAttr,
|
||||
xpoid_att_document_formats_supported,
|
||||
vpr->valid_document_formats_supported,
|
||||
vpr->default_document_formats_supported);
|
||||
/*
|
||||
* plexes-supported
|
||||
*/
|
||||
XpValidateListAttr(pContext, XPPrinterAttr, xpoid_att_plexes_supported,
|
||||
vpr->valid_plexes_supported,
|
||||
vpr->default_plexes_supported);
|
||||
/*
|
||||
* printer-resolutions-supported
|
||||
*/
|
||||
XpValidateCardListAttr(pContext, XPPrinterAttr,
|
||||
xpoid_att_printer_resolutions_supported,
|
||||
vpr->valid_printer_resolutions_supported,
|
||||
vpr->default_printer_resolutions_supported);
|
||||
/*
|
||||
* xp-embedded-formats-supported
|
||||
*/
|
||||
XpValidateDocFmtListAttr(pContext, XPPrinterAttr,
|
||||
xpoid_att_xp_embedded_formats_supported,
|
||||
vpr->valid_xp_embedded_formats_supported,
|
||||
vpr->default_xp_embedded_formats_supported);
|
||||
/*
|
||||
* xp-listfonts-modes-supported
|
||||
*/
|
||||
XpValidateListAttr(pContext, XPPrinterAttr,
|
||||
xpoid_att_xp_listfonts_modes_supported,
|
||||
vpr->valid_xp_listfonts_modes_supported,
|
||||
vpr->default_xp_listfonts_modes_supported);
|
||||
/*
|
||||
* xp-raw-formats-supported
|
||||
*/
|
||||
XpValidateDocFmtListAttr(pContext, XPPrinterAttr,
|
||||
xpoid_att_xp_raw_formats_supported,
|
||||
vpr->valid_xp_raw_formats_supported,
|
||||
vpr->default_xp_raw_formats_supported);
|
||||
/*
|
||||
* xp-setup-proviso
|
||||
*/
|
||||
XpValidateOidAttr(pContext, XPPrinterAttr, xpoid_att_xp_setup_proviso,
|
||||
vpr->valid_xp_setup_proviso, xpoid_none);
|
||||
/*
|
||||
* medium-source-sizes-supported
|
||||
* input-trays-mdeium
|
||||
*/
|
||||
XpValidatePrinterMediaAttrs(pContext,
|
||||
vpr->valid_input_trays,
|
||||
vpr->valid_medium_sizes);
|
||||
/*
|
||||
* available-compressions-supported
|
||||
*/
|
||||
XpValidateListAttr(pContext, XPPrinterAttr,
|
||||
xpoid_att_available_compressions_supported,
|
||||
vpr->valid_available_compressions_supported,
|
||||
vpr->default_available_compressions_supported);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
XpValidateNotificationProfile(XpContextPtr pContext)
|
||||
{
|
||||
const char* value_in;
|
||||
const char* value_out;
|
||||
|
||||
value_in = XpGetStringAttr(pContext, XPJobAttr,
|
||||
xpoid_att_notification_profile);
|
||||
value_out = XpOidNotifyString(XpOidNotifyParse(value_in));
|
||||
XpPutStringAttr(pContext, XPJobAttr,
|
||||
xpoid_att_notification_profile, value_out);
|
||||
}
|
||||
|
||||
void
|
||||
XpValidateJobPool(XpContextPtr pContext,
|
||||
const XpValidatePoolsRec* vpr)
|
||||
{
|
||||
/*
|
||||
* Note: the 'vpr' argument is unused in this
|
||||
* implementation; it is reserved for future use
|
||||
*/
|
||||
XpOidList* job_attrs_supported;
|
||||
/*
|
||||
* only validate attributes found in job-attributes-supported
|
||||
*/
|
||||
job_attrs_supported = XpGetListAttr(pContext, XPPrinterAttr,
|
||||
xpoid_att_job_attributes_supported,
|
||||
(const XpOidList*)NULL);
|
||||
/*
|
||||
* notification-profile
|
||||
*/
|
||||
if(XpOidListHasOid(job_attrs_supported, xpoid_att_notification_profile))
|
||||
{
|
||||
XpValidateNotificationProfile(pContext);
|
||||
}
|
||||
/*
|
||||
* clean up
|
||||
*/
|
||||
XpOidListDelete(job_attrs_supported);
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
XpValidateDocOrPagePool(XpContextPtr pContext,
|
||||
XPAttributes pool, /* XPDocAttr or XPPageAttr */
|
||||
const XpOidList* attrs_supported,
|
||||
const XpValidatePoolsRec* vpr)
|
||||
{
|
||||
/*
|
||||
* content-orientation
|
||||
*/
|
||||
if(XpOidListHasOid(attrs_supported, xpoid_att_content_orientation))
|
||||
{
|
||||
XpOidList* content_orientations_supported;
|
||||
content_orientations_supported =
|
||||
XpGetListAttr(pContext, XPPrinterAttr,
|
||||
xpoid_att_content_orientations_supported,
|
||||
vpr->valid_content_orientations_supported);
|
||||
XpValidateOidAttr(pContext, pool, xpoid_att_content_orientation,
|
||||
content_orientations_supported, xpoid_none);
|
||||
XpOidListDelete(content_orientations_supported);
|
||||
}
|
||||
/*
|
||||
* copy-count
|
||||
*/
|
||||
if(XpOidListHasOid(attrs_supported, xpoid_att_copy_count))
|
||||
XpValidateCardAttr(pContext, pool, xpoid_att_copy_count,
|
||||
(const XpOidCardList*)NULL, 0);
|
||||
/*
|
||||
* default-printer-resolution
|
||||
*/
|
||||
if(XpOidListHasOid(attrs_supported, xpoid_att_default_printer_resolution))
|
||||
{
|
||||
XpOidCardList* printer_resolutions_supported;
|
||||
printer_resolutions_supported =
|
||||
XpGetCardListAttr(pContext, XPPrinterAttr,
|
||||
xpoid_att_printer_resolutions_supported,
|
||||
vpr->valid_printer_resolutions_supported);
|
||||
XpValidateCardAttr(pContext, pool,
|
||||
xpoid_att_default_printer_resolution,
|
||||
printer_resolutions_supported, 0);
|
||||
XpOidCardListDelete(printer_resolutions_supported);
|
||||
}
|
||||
/*
|
||||
* default-input-tray
|
||||
*/
|
||||
if(XpOidListHasOid(attrs_supported, xpoid_att_default_input_tray))
|
||||
{
|
||||
XpOidTrayMediumList* input_trays_medium;
|
||||
const char* value_in;
|
||||
XpOid value_tray;
|
||||
|
||||
input_trays_medium =
|
||||
XpGetTrayMediumListAttr(pContext, XPPrinterAttr,
|
||||
xpoid_att_input_trays_medium,
|
||||
(const XpOidList*)NULL,
|
||||
(const XpOidMediumSS*)NULL);
|
||||
value_in =
|
||||
XpGetStringAttr(pContext, pool, xpoid_att_default_input_tray);
|
||||
value_tray = XpOidFromString(value_in);
|
||||
if(!XpOidTrayMediumListHasTray(input_trays_medium, value_tray))
|
||||
value_tray = xpoid_none;
|
||||
XpPutOidAttr(pContext, pool, xpoid_att_default_input_tray, value_tray);
|
||||
XpOidTrayMediumListDelete(input_trays_medium);
|
||||
}
|
||||
/*
|
||||
* default-medium
|
||||
*/
|
||||
if(XpOidListHasOid(attrs_supported, xpoid_att_default_medium))
|
||||
{
|
||||
XpOidMediumSS* msss;
|
||||
const char* value_in;
|
||||
XpOid value_size;
|
||||
|
||||
msss = XpGetMediumSSAttr(pContext, XPPrinterAttr,
|
||||
xpoid_att_medium_source_sizes_supported,
|
||||
(const XpOidList*)NULL,
|
||||
(const XpOidList*)NULL);
|
||||
value_in = XpGetStringAttr(pContext, pool, xpoid_att_default_medium);
|
||||
value_size = XpOidFromString(value_in);
|
||||
if(!XpOidMediumSSHasSize(msss, value_size))
|
||||
value_size = xpoid_none;
|
||||
XpPutOidAttr(pContext, pool, xpoid_att_default_medium, value_size);
|
||||
XpOidMediumSSDelete(msss);
|
||||
}
|
||||
/*
|
||||
* document-format
|
||||
*/
|
||||
if(XpOidListHasOid(attrs_supported, xpoid_att_document_format))
|
||||
{
|
||||
XpOidDocFmtList* document_formats_supported;
|
||||
const char* value_in;
|
||||
XpOidDocFmt* document_format;
|
||||
const char* value_out;
|
||||
|
||||
document_formats_supported =
|
||||
XpGetDocFmtListAttr(pContext, XPPrinterAttr,
|
||||
xpoid_att_document_formats_supported,
|
||||
vpr->valid_document_formats_supported);
|
||||
value_in = XpGetStringAttr(pContext, pool, xpoid_att_document_format);
|
||||
document_format = XpOidDocFmtNew(value_in);
|
||||
if(XpOidDocFmtListHasFmt(document_formats_supported, document_format))
|
||||
value_out = XpOidDocFmtString(document_format);
|
||||
else
|
||||
value_out = XpOidDocFmtString(vpr->default_document_format);
|
||||
XpOidDocFmtListDelete(document_formats_supported);
|
||||
XpOidDocFmtDelete(document_format);
|
||||
XpPutStringAttr(pContext, pool, xpoid_att_document_format, value_out);
|
||||
XpOidFree(value_out);
|
||||
}
|
||||
/*
|
||||
* plex
|
||||
*/
|
||||
if(XpOidListHasOid(attrs_supported, xpoid_att_plex))
|
||||
{
|
||||
XpOidList* plexes_supported;
|
||||
plexes_supported =
|
||||
XpGetListAttr(pContext, XPPrinterAttr, xpoid_att_plexes_supported,
|
||||
vpr->valid_plexes_supported);
|
||||
XpValidateOidAttr(pContext, pool, xpoid_att_plex,
|
||||
plexes_supported, xpoid_none);
|
||||
XpOidListDelete(plexes_supported);
|
||||
}
|
||||
/*
|
||||
* xp-listfonts-modes
|
||||
*/
|
||||
if(XpOidListHasOid(attrs_supported, xpoid_att_xp_listfonts_modes))
|
||||
{
|
||||
XpOidList* xp_listfonts_modes_supported;
|
||||
xp_listfonts_modes_supported =
|
||||
XpGetListAttr(pContext, XPPrinterAttr,
|
||||
xpoid_att_xp_listfonts_modes_supported,
|
||||
vpr->valid_xp_listfonts_modes_supported);
|
||||
XpValidateListAttr(pContext, pool, xpoid_att_xp_listfonts_modes,
|
||||
xp_listfonts_modes_supported,
|
||||
(const XpOidList*)NULL);
|
||||
XpOidListDelete(xp_listfonts_modes_supported);
|
||||
}
|
||||
/*
|
||||
* available-compressions
|
||||
*/
|
||||
if(XpOidListHasOid(attrs_supported, xpoid_att_available_compression))
|
||||
{
|
||||
XpOidList* available_compressions_supported;
|
||||
available_compressions_supported =
|
||||
XpGetListAttr(pContext, XPPrinterAttr,
|
||||
xpoid_att_available_compressions_supported,
|
||||
vpr->valid_available_compressions_supported);
|
||||
XpValidateOidAttr(pContext, pool, xpoid_att_available_compression,
|
||||
available_compressions_supported, xpoid_none);
|
||||
XpOidListDelete(available_compressions_supported);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
XpValidateDocumentPool(XpContextPtr pContext,
|
||||
const XpValidatePoolsRec* vpr)
|
||||
{
|
||||
XpOidList* document_attrs_supported;
|
||||
/*
|
||||
* only validate attributes found in document-attributes-supported
|
||||
*/
|
||||
document_attrs_supported =
|
||||
XpGetListAttr(pContext, XPPrinterAttr,
|
||||
xpoid_att_document_attributes_supported,
|
||||
(const XpOidList*)NULL);
|
||||
/*
|
||||
* validate
|
||||
*/
|
||||
XpValidateDocOrPagePool(pContext, XPDocAttr,
|
||||
document_attrs_supported, vpr);
|
||||
/*
|
||||
* clean up
|
||||
*/
|
||||
XpOidListDelete(document_attrs_supported);
|
||||
}
|
||||
|
||||
void
|
||||
XpValidatePagePool(XpContextPtr pContext,
|
||||
const XpValidatePoolsRec* vpr)
|
||||
{
|
||||
XpOidList* page_attrs_supported;
|
||||
/*
|
||||
* only validate attributes found in xp-page-attributes-supported
|
||||
*/
|
||||
page_attrs_supported =
|
||||
XpGetListAttr(pContext, XPPrinterAttr,
|
||||
xpoid_att_xp_page_attributes_supported,
|
||||
(const XpOidList*)NULL);
|
||||
/*
|
||||
* validate
|
||||
*/
|
||||
XpValidateDocOrPagePool(pContext, XPPageAttr,
|
||||
page_attrs_supported, vpr);
|
||||
/*
|
||||
* clean up
|
||||
*/
|
||||
XpOidListDelete(page_attrs_supported);
|
||||
}
|
||||
|
||||
void
|
||||
XpValidateAttributePool(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
const XpValidatePoolsRec* vpr)
|
||||
{
|
||||
switch(pool)
|
||||
{
|
||||
case XPPrinterAttr:
|
||||
XpValidatePrinterPool(pContext, vpr);
|
||||
break;
|
||||
|
||||
case XPDocAttr:
|
||||
XpValidateDocumentPool(pContext, vpr);
|
||||
break;
|
||||
|
||||
case XPJobAttr:
|
||||
XpValidateJobPool(pContext, vpr);
|
||||
break;
|
||||
|
||||
case XPPageAttr:
|
||||
XpValidatePagePool(pContext, vpr);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
220
hw/xprint/AttrValid.h
Normal file
220
hw/xprint/AttrValid.h
Normal file
|
|
@ -0,0 +1,220 @@
|
|||
/* $Xorg: AttrValid.h,v 1.4 2001/03/14 18:43:40 pookie Exp $ */
|
||||
/*
|
||||
(c) Copyright 1996 Hewlett-Packard Company
|
||||
(c) Copyright 1996 International Business Machines Corp.
|
||||
(c) Copyright 1996 Sun Microsystems, Inc.
|
||||
(c) Copyright 1996 Novell, Inc.
|
||||
(c) Copyright 1996 Digital Equipment Corp.
|
||||
(c) Copyright 1996 Fujitsu Limited
|
||||
(c) Copyright 1996 Hitachi, Ltd.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the names of the copyright holders shall
|
||||
not be used in advertising or otherwise to promote the sale, use or other
|
||||
dealings in this Software without prior written authorization from said
|
||||
copyright holders.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_DIX_CONFIG_H
|
||||
#include <dix-config.h>
|
||||
#endif
|
||||
|
||||
#ifndef _Xp_AttrValid_h
|
||||
#define _Xp_AttrValid_h
|
||||
|
||||
#include <X11/extensions/Printstr.h>
|
||||
#include "Oid.h"
|
||||
|
||||
#define XpNumber(a) (sizeof(a) / sizeof(*(a)))
|
||||
|
||||
/*
|
||||
* Attribute pool validation valid values and defaults
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
XpOidList* valid_content_orientations_supported;
|
||||
XpOidList* default_content_orientations_supported;
|
||||
|
||||
XpOidDocFmtList* valid_document_formats_supported;
|
||||
XpOidDocFmtList* default_document_formats_supported;
|
||||
|
||||
XpOidList* valid_input_trays;
|
||||
XpOidList* valid_medium_sizes;
|
||||
|
||||
XpOidList* valid_plexes_supported;
|
||||
XpOidList* default_plexes_supported;
|
||||
|
||||
XpOidCardList* valid_printer_resolutions_supported;
|
||||
XpOidCardList* default_printer_resolutions_supported;
|
||||
|
||||
XpOidDocFmtList* valid_xp_embedded_formats_supported;
|
||||
XpOidDocFmtList* default_xp_embedded_formats_supported;
|
||||
|
||||
XpOidList* valid_xp_listfonts_modes_supported;
|
||||
XpOidList* default_xp_listfonts_modes_supported;
|
||||
|
||||
XpOidDocFmtList* valid_xp_raw_formats_supported;
|
||||
XpOidDocFmtList* default_xp_raw_formats_supported;
|
||||
|
||||
XpOidList* valid_xp_setup_proviso;
|
||||
|
||||
XpOidDocFmt* default_document_format;
|
||||
XpOidList* valid_available_compressions_supported;
|
||||
XpOidList* default_available_compressions_supported;
|
||||
|
||||
} XpValidatePoolsRec;
|
||||
|
||||
/*
|
||||
* XpOid resource access
|
||||
*/
|
||||
#define XpGetStringAttr(pContext, pool, oid) \
|
||||
(const char*)XpGetOneAttribute(pContext, pool, (char*)XpOidString(oid))
|
||||
#define XpPutStringAttr(pContext, pool, oid, value) \
|
||||
XpPutOneAttribute(pContext, pool, XpOidString(oid), value)
|
||||
|
||||
#ifdef _XP_PRINT_SERVER_ /* needed for XpContextPtr in Printstr.h */
|
||||
|
||||
/*
|
||||
* XpOid-valued attribute access
|
||||
*/
|
||||
XpOid XpGetOidAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidList* valid_oid_list);
|
||||
void XpPutOidAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
XpOid value_oid);
|
||||
void XpValidateOidAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidList* valid_oids,
|
||||
XpOid default_oid);
|
||||
/*
|
||||
* cardinal-valued attribute access
|
||||
*/
|
||||
unsigned long XpGetCardAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidCardList* valid_card_list);
|
||||
void XpPutCardAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
unsigned long value_card);
|
||||
void XpValidateCardAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidCardList* valid_cards,
|
||||
unsigned long default_card);
|
||||
/*
|
||||
* XpOidList-valued attribute access
|
||||
*/
|
||||
XpOidList* XpGetListAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidList* valid_oid_list);
|
||||
void XpPutListAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidList* list);
|
||||
void XpValidateListAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidList* valid_oids,
|
||||
const XpOidList* default_oids);
|
||||
/*
|
||||
* XpOidCardList-valued attribute access
|
||||
*/
|
||||
XpOidCardList* XpGetCardListAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidCardList* valid_card_list);
|
||||
void XpPutCardListAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidCardList* list);
|
||||
void XpValidateCardListAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidCardList* valid_cards,
|
||||
const XpOidCardList* default_cards);
|
||||
/*
|
||||
* XpOidDocFmtList-valued attribute access
|
||||
*/
|
||||
XpOidDocFmtList* XpGetDocFmtListAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidDocFmtList* valid_fmt_list);
|
||||
void XpPutDocFmtListAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidDocFmtList* list);
|
||||
void XpValidateDocFmtListAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidDocFmtList* valid_fmts,
|
||||
const XpOidDocFmtList* default_fmts);
|
||||
/*
|
||||
* XpOidMediumSS-valued attribute access
|
||||
*/
|
||||
XpOidMediumSS* XpGetMediumSSAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidList* valid_trays,
|
||||
const XpOidList* valid_sizes);
|
||||
void XpPutMediumSSAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidMediumSS* msss);
|
||||
const XpOidMediumSS* XpGetDefaultMediumSS(void);
|
||||
|
||||
/*
|
||||
* XpOidTrayMediumList-valued attribute access
|
||||
*/
|
||||
XpOidTrayMediumList* XpGetTrayMediumListAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidList* valid_trays,
|
||||
const XpOidMediumSS* msss);
|
||||
void XpPutTrayMediumListAttr(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
XpOid oid,
|
||||
const XpOidTrayMediumList* tm);
|
||||
void XpValidatePrinterMediaAttrs(XpContextPtr pContext,
|
||||
const XpOidList* valid_trays,
|
||||
const XpOidList* valid_sizes);
|
||||
/*
|
||||
* Attribute pool validation
|
||||
*/
|
||||
void XpValidateAttributePool(XpContextPtr pContext,
|
||||
XPAttributes pool,
|
||||
const XpValidatePoolsRec* vpr);
|
||||
void XpValidatePrinterPool(XpContextPtr pContext,
|
||||
const XpValidatePoolsRec* vpr);
|
||||
void XpValidateNotificationProfile(XpContextPtr pContext);
|
||||
void XpValidateJobPool(XpContextPtr pContext,
|
||||
const XpValidatePoolsRec* vpr);
|
||||
void XpValidateDocumentPool(XpContextPtr pContext,
|
||||
const XpValidatePoolsRec* vpr);
|
||||
void XpValidatePagePool(XpContextPtr pContext,
|
||||
const XpValidatePoolsRec* vpr);
|
||||
|
||||
#endif /* _XP_PRINT_SERVER_ */
|
||||
|
||||
#endif /* _Xp_AttrValid_h - don't add anything after this line */
|
||||
81
hw/xprint/DiPrint.h
Normal file
81
hw/xprint/DiPrint.h
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
/* $Xorg: DiPrint.h,v 1.3 2000/08/17 19:48:04 cpqbld Exp $ */
|
||||
/*
|
||||
(c) Copyright 1996 Hewlett-Packard Company
|
||||
(c) Copyright 1996 International Business Machines Corp.
|
||||
(c) Copyright 1996 Sun Microsystems, Inc.
|
||||
(c) Copyright 1996 Novell, Inc.
|
||||
(c) Copyright 1996 Digital Equipment Corp.
|
||||
(c) Copyright 1996 Fujitsu Limited
|
||||
(c) Copyright 1996 Hitachi, Ltd.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the names of the copyright holders shall
|
||||
not be used in advertising or otherwise to promote the sale, use or other
|
||||
dealings in this Software without prior written authorization from said
|
||||
copyright holders.
|
||||
*/
|
||||
/*
|
||||
* The XpDiListEntry struct is the type of each element of the array
|
||||
* handed back to the extension code to handle a GetPrinterList request.
|
||||
* We don't use the printerDb directly because of the desire to handle
|
||||
* multiple locales. Creating this new array for each GetPrinterList
|
||||
* request will allow us to build it with the description in the locale of
|
||||
* the requesting client.
|
||||
*/
|
||||
#ifdef HAVE_DIX_CONFIG_H
|
||||
#include <dix-config.h>
|
||||
#endif
|
||||
|
||||
#ifndef _XpDiPrint_H_
|
||||
#define _XpDiPrint_H_ 1
|
||||
|
||||
#include "scrnintstr.h"
|
||||
|
||||
typedef struct _diListEntry {
|
||||
char *name;
|
||||
char *description;
|
||||
char *localeName;
|
||||
unsigned long rootWinId;
|
||||
} XpDiListEntry;
|
||||
|
||||
extern void XpDiFreePrinterList(XpDiListEntry **list);
|
||||
|
||||
extern XpDiListEntry **XpDiGetPrinterList(
|
||||
int nameLen,
|
||||
char *name,
|
||||
int localeLen,
|
||||
char *locale);
|
||||
|
||||
extern char * XpDiGetDriverName(int index, char *printerName);
|
||||
|
||||
extern WindowPtr XpDiValidatePrinter(char *printerName, int printerNameLen);
|
||||
|
||||
extern int PrinterOptions(int argc, char **argv, int i);
|
||||
|
||||
extern void PrinterUseMsg(void);
|
||||
|
||||
extern void PrinterInitGlobals(void);
|
||||
|
||||
extern void PrinterInitOutput(ScreenInfo *pScreenInfo, int argc, char **argv);
|
||||
|
||||
extern void _XpVoidNoop(void);
|
||||
|
||||
extern Bool _XpBoolNoop(void);
|
||||
|
||||
#endif /* _XpDiPrint_H_ */
|
||||
1921
hw/xprint/Init.c
Normal file
1921
hw/xprint/Init.c
Normal file
File diff suppressed because it is too large
Load diff
42
hw/xprint/Makefile.am
Normal file
42
hw/xprint/Makefile.am
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
SUBDIRS = doc pcl pcl-mono raster ps etc config
|
||||
|
||||
bin_PROGRAMS = Xprt
|
||||
|
||||
Xprt_CFLAGS = @SERVER_DEFINES@ @DIX_CFLAGS@ @XPRINT_CFLAGS@ \
|
||||
-DXPRINT -DPRINT_ONLY_SERVER -D_XP_PRINT_SERVER_ \
|
||||
-DXPRINTDIR=\"$(prefix)/X11/xserver\" \
|
||||
-DXPRASTERDDX -DXPPCLDDX -DXPMONOPCLDDX -DXPPSDDX
|
||||
|
||||
Xprt_LDFLAGS = -L$(top_srcdir)
|
||||
Xprt_LDADD = @XPRINT_LIBS@ ps/libps.la raster/libraster.la \
|
||||
pcl/libpcl.la pcl-mono/libpcl.la ../../fb/libfb.la \
|
||||
../../render/librender.la ../../mi/libmi.la ../../Xext/libXext.la \
|
||||
@FREETYPE_LIBS@
|
||||
|
||||
miinitext-wrapper.c:
|
||||
echo "#include \"$(top_srcdir)/mi/miinitext.c\"" >> $@
|
||||
|
||||
dpmsstubs-wrapper.c:
|
||||
echo "#include \"$(top_srcdir)/Xext/dpmsstubs.c\"" >> $@
|
||||
|
||||
Xprt_SOURCES = \
|
||||
attributes.c \
|
||||
attributes.h \
|
||||
AttrValid.c \
|
||||
AttrValid.h \
|
||||
ddxInit.c \
|
||||
DiPrint.h \
|
||||
Init.c \
|
||||
mediaSizes.c \
|
||||
Oid.c \
|
||||
OidDefs.h \
|
||||
Oid.h \
|
||||
OidStrs.h \
|
||||
spooler.c \
|
||||
spooler.h \
|
||||
Util.c \
|
||||
miinitext-wrapper.c \
|
||||
dpmsstubs-wrapper.c \
|
||||
$(top_srcdir)/fb/fbcmap.c
|
||||
|
||||
EXTRA_DIST = ValTree.c
|
||||
3182
hw/xprint/Oid.c
Normal file
3182
hw/xprint/Oid.c
Normal file
File diff suppressed because it is too large
Load diff
294
hw/xprint/Oid.h
Normal file
294
hw/xprint/Oid.h
Normal file
|
|
@ -0,0 +1,294 @@
|
|||
/* $Xorg: Oid.h,v 1.3 2000/08/17 19:48:06 cpqbld Exp $ */
|
||||
/*
|
||||
(c) Copyright 1996 Hewlett-Packard Company
|
||||
(c) Copyright 1996 International Business Machines Corp.
|
||||
(c) Copyright 1996 Sun Microsystems, Inc.
|
||||
(c) Copyright 1996 Novell, Inc.
|
||||
(c) Copyright 1996 Digital Equipment Corp.
|
||||
(c) Copyright 1996 Fujitsu Limited
|
||||
(c) Copyright 1996 Hitachi, Ltd.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the names of the copyright holders shall
|
||||
not be used in advertising or otherwise to promote the sale, use or other
|
||||
dealings in this Software without prior written authorization from said
|
||||
copyright holders.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_DIX_CONFIG_H
|
||||
#include <dix-config.h>
|
||||
#endif
|
||||
|
||||
#ifndef _Xp_Oid_h
|
||||
#define _Xp_Oid_h
|
||||
|
||||
#include <X11/Xproto.h>
|
||||
|
||||
/*
|
||||
* include the auto-generated XpOid enum definition
|
||||
*/
|
||||
#include "OidDefs.h"
|
||||
|
||||
/*
|
||||
* messages
|
||||
*/
|
||||
#define XPMSG_WARN_MSS "Syntax error parsing medium-source-sizes"
|
||||
#define XPMSG_WARN_ITM "Syntax error parsing input-trays-medium"
|
||||
#define XPMSG_WARN_DOC_FMT "Syntax error parsing document format"
|
||||
#define XPMSG_WARN_DOCFMT_LIST "Syntax error parsing document format list"
|
||||
#define XPMSG_WARN_CARD_LIST "Syntax error parsing cardinal list"
|
||||
|
||||
/*
|
||||
* macros for memory allocation
|
||||
*/
|
||||
#define XpOidMalloc(size) ((char*)Xalloc((unsigned long)(size)))
|
||||
#define XpOidCalloc(count, size) \
|
||||
((char*)Xcalloc((unsigned long)((count)*(size))))
|
||||
#define XpOidFree(mem) (Xfree((unsigned long*)(mem)))
|
||||
|
||||
/*
|
||||
* list of object identifiers
|
||||
*/
|
||||
typedef struct _XpOidList
|
||||
{
|
||||
XpOid* list;
|
||||
int count;
|
||||
} XpOidList;
|
||||
|
||||
/*
|
||||
* linked list of object identifiers
|
||||
*/
|
||||
typedef struct XpOidNodeStruct
|
||||
{
|
||||
XpOid oid;
|
||||
struct XpOidNodeStruct* next;
|
||||
} *XpOidNode;
|
||||
|
||||
typedef struct _XpOidLinkedList
|
||||
{
|
||||
XpOidNode head;
|
||||
XpOidNode tail;
|
||||
XpOidNode current;
|
||||
int count;
|
||||
} XpOidLinkedList;
|
||||
|
||||
/*
|
||||
* XpOidMediumSourceSize and related definitions
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
float minimum_x;
|
||||
float maximum_x;
|
||||
float minimum_y;
|
||||
float maximum_y;
|
||||
} XpOidArea;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
float lower_bound;
|
||||
float upper_bound;
|
||||
} XpOidRealRange;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
XpOidRealRange range_across_feed;
|
||||
float increment_across_feed;
|
||||
XpOidRealRange range_in_feed;
|
||||
float increment_in_feed;
|
||||
BOOL long_edge_feeds;
|
||||
XpOidArea assured_reproduction_area;
|
||||
} XpOidMediumContinuousSize;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
XpOid page_size;
|
||||
BOOL long_edge_feeds;
|
||||
XpOidArea assured_reproduction_area;
|
||||
} XpOidMediumDiscreteSize;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
XpOidMediumDiscreteSize* list;
|
||||
int count;
|
||||
} XpOidMediumDiscreteSizeList;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
XpOid input_tray; /* may be set to xpoid_none or xpoid_unspecified */
|
||||
enum { XpOidMediumSS_DISCRETE, XpOidMediumSS_CONTINUOUS } mstag;
|
||||
union
|
||||
{
|
||||
XpOidMediumDiscreteSizeList* discrete;
|
||||
XpOidMediumContinuousSize* continuous_size;
|
||||
} ms; /* "ms" is short for medium-size */
|
||||
|
||||
} XpOidMediumSourceSize;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
XpOidMediumSourceSize* mss;
|
||||
int count;
|
||||
} XpOidMediumSS;
|
||||
|
||||
|
||||
typedef struct
|
||||
{
|
||||
XpOid input_tray; /* may be set to xpoid_none */
|
||||
XpOid medium;
|
||||
} XpOidTrayMedium;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
XpOidTrayMedium* list;
|
||||
int count;
|
||||
} XpOidTrayMediumList;
|
||||
|
||||
typedef enum {
|
||||
XPOID_NOTIFY_UNSUPPORTED,
|
||||
XPOID_NOTIFY_NONE,
|
||||
XPOID_NOTIFY_EMAIL
|
||||
} XpOidNotify;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
unsigned long *list;
|
||||
int count;
|
||||
} XpOidCardList;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char* format;
|
||||
char* variant;
|
||||
char* version;
|
||||
} XpOidDocFmt;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
XpOidDocFmt* list;
|
||||
int count;
|
||||
} XpOidDocFmtList;
|
||||
|
||||
|
||||
/*
|
||||
* XpOid public methods
|
||||
*/
|
||||
const char* XpOidString(XpOid);
|
||||
int XpOidStringLength(XpOid);
|
||||
XpOid XpOidFromString(const char* value);
|
||||
BOOL XpOidTrayMediumListHasTray(const XpOidTrayMediumList* list, XpOid tray);
|
||||
|
||||
/*
|
||||
* XpOidList public methods
|
||||
*/
|
||||
XpOidList* XpOidListNew(const char* value_string,
|
||||
const XpOidList* valid_oids);
|
||||
#define XpOidListInit(l, a, c) { (l)->list = (a); (l)->count = (c); }
|
||||
void XpOidListDelete(XpOidList*);
|
||||
#define XpOidListCount(l) ((l) ? (l)->count : 0)
|
||||
#define XpOidListGetOid(l, i) ((l) ? (l)->list[(i)] : xpoid_none)
|
||||
int XpOidListGetIndex(const XpOidList* list, XpOid oid);
|
||||
BOOL XpOidListHasOid(const XpOidList* list, XpOid oid);
|
||||
char* XpOidListString(const XpOidList*);
|
||||
|
||||
|
||||
/*
|
||||
* XpOidLinkedList public methods
|
||||
*/
|
||||
XpOidLinkedList* XpOidLinkedListNew(void);
|
||||
void XpOidLinkedListDelete(XpOidLinkedList*);
|
||||
#define XpOidLinkedListCount(l) ((l) ? (l)->count : 0)
|
||||
XpOid XpOidLinkedListGetOid(XpOidLinkedList* list, int i);
|
||||
void XpOidLinkedListAddOid(XpOidLinkedList* list, XpOid oid);
|
||||
int XpOidLinkedListGetIndex(XpOidLinkedList* list, XpOid oid);
|
||||
BOOL XpOidLinkedListHasOid(XpOidLinkedList* list,
|
||||
XpOid oid);
|
||||
XpOid XpOidLinkedListFirstOid(XpOidLinkedList* list);
|
||||
XpOid XpOidLinkedListNextOid(XpOidLinkedList* list);
|
||||
|
||||
/*
|
||||
* XpOidMediumSourceSize public methods
|
||||
*/
|
||||
XpOidMediumSS* XpOidMediumSSNew(const char* value_string,
|
||||
const XpOidList* valid_trays,
|
||||
const XpOidList* valid_medium_sizes);
|
||||
void XpOidMediumSSDelete(XpOidMediumSS*);
|
||||
#define XpOidMediumSSCount(me) ((me) ? (me)->count : 0)
|
||||
BOOL XpOidMediumSSHasSize(XpOidMediumSS*, XpOid medium_size);
|
||||
char* XpOidMediumSSString(const XpOidMediumSS*);
|
||||
|
||||
/*
|
||||
* XpOidTrayMediumList public methods
|
||||
*/
|
||||
XpOidTrayMediumList* XpOidTrayMediumListNew(const char* value_string,
|
||||
const XpOidList* valid_trays,
|
||||
const XpOidMediumSS* msss);
|
||||
void XpOidTrayMediumListDelete(XpOidTrayMediumList* me);
|
||||
#define XpOidTrayMediumListCount(me) ((me) ? (me)->count : 0)
|
||||
#define XpOidTrayMediumListTray(me, i) \
|
||||
((me) ? (me)->list[(i)].input_tray : xpoid_none)
|
||||
#define XpOidTrayMediumListMedium(me, i) \
|
||||
((me) ? (me)->list[(i)].medium : xpoid_none)
|
||||
char* XpOidTrayMediumListString(const XpOidTrayMediumList*);
|
||||
|
||||
/*
|
||||
* XpOidNotify public methods
|
||||
*/
|
||||
XpOidNotify XpOidNotifyParse(const char* value_string);
|
||||
const char* XpOidNotifyString(XpOidNotify notify);
|
||||
|
||||
/*
|
||||
* XpOidDocFmt public methods
|
||||
*/
|
||||
XpOidDocFmt* XpOidDocFmtNew(const char* value_string);
|
||||
void XpOidDocFmtDelete(XpOidDocFmt*);
|
||||
char* XpOidDocFmtString(XpOidDocFmt*);
|
||||
|
||||
/*
|
||||
* XpOidDocFmtList public methods
|
||||
*/
|
||||
XpOidDocFmtList* XpOidDocFmtListNew(const char* value_string,
|
||||
const XpOidDocFmtList* valid_fmts);
|
||||
void XpOidDocFmtListDelete(XpOidDocFmtList*);
|
||||
char* XpOidDocFmtListString(const XpOidDocFmtList*);
|
||||
#define XpOidDocFmtListCount(me) ((me) ? (me)->count : 0)
|
||||
#define XpOidDocFmtListGetDocFmt(me, i) \
|
||||
((me) ? &(me)->list[(i)] : (XpDocFmt*)NULL)
|
||||
BOOL XpOidDocFmtListHasFmt(const XpOidDocFmtList* list,
|
||||
const XpOidDocFmt* fmt);
|
||||
/*
|
||||
* XpOidCardList public methods
|
||||
*/
|
||||
XpOidCardList* XpOidCardListNew(const char* value_string,
|
||||
const XpOidCardList* valid_cards);
|
||||
#define XpOidCardListInit(l, a, c) { (l)->list = (a); (l)->count = (c); }
|
||||
void XpOidCardListDelete(XpOidCardList*);
|
||||
char* XpOidCardListString(const XpOidCardList*);
|
||||
#define XpOidCardListCount(me) ((me) ? (me)->count : 0)
|
||||
#define XpOidCardListGetCard(me, i) ((me) ? (me)->list[(i)] : 0)
|
||||
BOOL XpOidCardListHasCard(const XpOidCardList*, unsigned long);
|
||||
|
||||
/*
|
||||
* misc parsing functions
|
||||
*/
|
||||
BOOL XpOidParseUnsignedValue(const char* value_string,
|
||||
const char** ptr_return,
|
||||
unsigned long* unsigned_return);
|
||||
|
||||
|
||||
#endif /* _Xp_Oid_h - don't add anything after this line */
|
||||
171
hw/xprint/OidDefs.h
Normal file
171
hw/xprint/OidDefs.h
Normal file
|
|
@ -0,0 +1,171 @@
|
|||
/* $Xorg: OidDefs.h,v 1.4 2001/03/14 18:45:13 pookie Exp $ */
|
||||
/*
|
||||
(c) Copyright 1996 Hewlett-Packard Company
|
||||
(c) Copyright 1996 International Business Machines Corp.
|
||||
(c) Copyright 1996 Sun Microsystems, Inc.
|
||||
(c) Copyright 1996 Novell, Inc.
|
||||
(c) Copyright 1996 Digital Equipment Corp.
|
||||
(c) Copyright 1996 Fujitsu Limited
|
||||
(c) Copyright 1996 Hitachi, Ltd.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the names of the copyright holders shall
|
||||
not be used in advertising or otherwise to promote the sale, use or other
|
||||
dealings in this Software without prior written authorization from said
|
||||
copyright holders.
|
||||
*/
|
||||
/* This is an automatically-generated file. Do not edit. */
|
||||
|
||||
typedef enum {
|
||||
xpoid_none,
|
||||
xpoid_unspecified,
|
||||
xpoid_att_descriptor,
|
||||
xpoid_att_content_orientation,
|
||||
xpoid_att_copy_count,
|
||||
xpoid_att_default_printer_resolution,
|
||||
xpoid_att_default_input_tray,
|
||||
xpoid_att_default_medium,
|
||||
xpoid_att_document_format,
|
||||
xpoid_att_plex,
|
||||
xpoid_att_xp_listfonts_modes,
|
||||
xpoid_att_job_name,
|
||||
xpoid_att_job_owner,
|
||||
xpoid_att_notification_profile,
|
||||
xpoid_att_xp_setup_state,
|
||||
xpoid_att_xp_spooler_command_options,
|
||||
xpoid_att_content_orientations_supported,
|
||||
xpoid_att_document_formats_supported,
|
||||
xpoid_att_dt_pdm_command,
|
||||
xpoid_att_input_trays_medium,
|
||||
xpoid_att_medium_source_sizes_supported,
|
||||
xpoid_att_plexes_supported,
|
||||
xpoid_att_printer_model,
|
||||
xpoid_att_printer_name,
|
||||
xpoid_att_printer_resolutions_supported,
|
||||
xpoid_att_xp_embedded_formats_supported,
|
||||
xpoid_att_xp_listfonts_modes_supported,
|
||||
xpoid_att_xp_page_attributes_supported,
|
||||
xpoid_att_xp_raw_formats_supported,
|
||||
xpoid_att_xp_setup_proviso,
|
||||
xpoid_att_document_attributes_supported,
|
||||
xpoid_att_job_attributes_supported,
|
||||
xpoid_att_locale,
|
||||
xpoid_att_multiple_documents_supported,
|
||||
xpoid_att_available_compression,
|
||||
xpoid_att_available_compressions_supported,
|
||||
xpoid_val_content_orientation_portrait,
|
||||
xpoid_val_content_orientation_landscape,
|
||||
xpoid_val_content_orientation_reverse_portrait,
|
||||
xpoid_val_content_orientation_reverse_landscape,
|
||||
xpoid_val_medium_size_iso_a0,
|
||||
xpoid_val_medium_size_iso_a1,
|
||||
xpoid_val_medium_size_iso_a2,
|
||||
xpoid_val_medium_size_iso_a3,
|
||||
xpoid_val_medium_size_iso_a4,
|
||||
xpoid_val_medium_size_iso_a5,
|
||||
xpoid_val_medium_size_iso_a6,
|
||||
xpoid_val_medium_size_iso_a7,
|
||||
xpoid_val_medium_size_iso_a8,
|
||||
xpoid_val_medium_size_iso_a9,
|
||||
xpoid_val_medium_size_iso_a10,
|
||||
xpoid_val_medium_size_iso_b0,
|
||||
xpoid_val_medium_size_iso_b1,
|
||||
xpoid_val_medium_size_iso_b2,
|
||||
xpoid_val_medium_size_iso_b3,
|
||||
xpoid_val_medium_size_iso_b4,
|
||||
xpoid_val_medium_size_iso_b5,
|
||||
xpoid_val_medium_size_iso_b6,
|
||||
xpoid_val_medium_size_iso_b7,
|
||||
xpoid_val_medium_size_iso_b8,
|
||||
xpoid_val_medium_size_iso_b9,
|
||||
xpoid_val_medium_size_iso_b10,
|
||||
xpoid_val_medium_size_na_letter,
|
||||
xpoid_val_medium_size_na_legal,
|
||||
xpoid_val_medium_size_executive,
|
||||
xpoid_val_medium_size_folio,
|
||||
xpoid_val_medium_size_invoice,
|
||||
xpoid_val_medium_size_ledger,
|
||||
xpoid_val_medium_size_quarto,
|
||||
xpoid_val_medium_size_iso_c3,
|
||||
xpoid_val_medium_size_iso_c4,
|
||||
xpoid_val_medium_size_iso_c5,
|
||||
xpoid_val_medium_size_iso_c6,
|
||||
xpoid_val_medium_size_iso_designated_long,
|
||||
xpoid_val_medium_size_na_10x13_envelope,
|
||||
xpoid_val_medium_size_na_9x12_envelope,
|
||||
xpoid_val_medium_size_na_number_10_envelope,
|
||||
xpoid_val_medium_size_na_7x9_envelope,
|
||||
xpoid_val_medium_size_na_9x11_envelope,
|
||||
xpoid_val_medium_size_na_10x14_envelope,
|
||||
xpoid_val_medium_size_na_number_9_envelope,
|
||||
xpoid_val_medium_size_na_6x9_envelope,
|
||||
xpoid_val_medium_size_na_10x15_envelope,
|
||||
xpoid_val_medium_size_monarch_envelope,
|
||||
xpoid_val_medium_size_a,
|
||||
xpoid_val_medium_size_b,
|
||||
xpoid_val_medium_size_c,
|
||||
xpoid_val_medium_size_d,
|
||||
xpoid_val_medium_size_e,
|
||||
xpoid_val_medium_size_jis_b0,
|
||||
xpoid_val_medium_size_jis_b1,
|
||||
xpoid_val_medium_size_jis_b2,
|
||||
xpoid_val_medium_size_jis_b3,
|
||||
xpoid_val_medium_size_jis_b4,
|
||||
xpoid_val_medium_size_jis_b5,
|
||||
xpoid_val_medium_size_jis_b6,
|
||||
xpoid_val_medium_size_jis_b7,
|
||||
xpoid_val_medium_size_jis_b8,
|
||||
xpoid_val_medium_size_jis_b9,
|
||||
xpoid_val_medium_size_jis_b10,
|
||||
xpoid_val_medium_size_hp_2x_postcard,
|
||||
xpoid_val_medium_size_hp_european_edp,
|
||||
xpoid_val_medium_size_hp_mini,
|
||||
xpoid_val_medium_size_hp_postcard,
|
||||
xpoid_val_medium_size_hp_tabloid,
|
||||
xpoid_val_medium_size_hp_us_edp,
|
||||
xpoid_val_medium_size_hp_us_government_legal,
|
||||
xpoid_val_medium_size_hp_us_government_letter,
|
||||
xpoid_val_plex_simplex,
|
||||
xpoid_val_plex_duplex,
|
||||
xpoid_val_plex_tumble,
|
||||
xpoid_val_input_tray_top,
|
||||
xpoid_val_input_tray_middle,
|
||||
xpoid_val_input_tray_bottom,
|
||||
xpoid_val_input_tray_envelope,
|
||||
xpoid_val_input_tray_manual,
|
||||
xpoid_val_input_tray_large_capacity,
|
||||
xpoid_val_input_tray_main,
|
||||
xpoid_val_input_tray_side,
|
||||
xpoid_val_event_report_job_completed,
|
||||
xpoid_val_delivery_method_electronic_mail,
|
||||
xpoid_val_xp_setup_mandatory,
|
||||
xpoid_val_xp_setup_optional,
|
||||
xpoid_val_xp_setup_ok,
|
||||
xpoid_val_xp_setup_incomplete,
|
||||
xpoid_val_xp_list_glyph_fonts,
|
||||
xpoid_val_xp_list_internal_printer_fonts,
|
||||
xpoid_val_available_compressions_0,
|
||||
xpoid_val_available_compressions_01,
|
||||
xpoid_val_available_compressions_02,
|
||||
xpoid_val_available_compressions_03,
|
||||
xpoid_val_available_compressions_012,
|
||||
xpoid_val_available_compressions_013,
|
||||
xpoid_val_available_compressions_023,
|
||||
xpoid_val_available_compressions_0123
|
||||
} XpOid;
|
||||
173
hw/xprint/OidStrs.h
Normal file
173
hw/xprint/OidStrs.h
Normal file
|
|
@ -0,0 +1,173 @@
|
|||
/* $Xorg: OidStrs.h,v 1.4 2001/03/14 18:45:40 pookie Exp $ */
|
||||
/*
|
||||
(c) Copyright 1996 Hewlett-Packard Company
|
||||
(c) Copyright 1996 International Business Machines Corp.
|
||||
(c) Copyright 1996 Sun Microsystems, Inc.
|
||||
(c) Copyright 1996 Novell, Inc.
|
||||
(c) Copyright 1996 Digital Equipment Corp.
|
||||
(c) Copyright 1996 Fujitsu Limited
|
||||
(c) Copyright 1996 Hitachi, Ltd.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the names of the copyright holders shall
|
||||
not be used in advertising or otherwise to promote the sale, use or other
|
||||
dealings in this Software without prior written authorization from said
|
||||
copyright holders.
|
||||
*/
|
||||
/* This is an automatically-generated file. Do not edit. */
|
||||
|
||||
static int XpOidStringMapCount = 127;
|
||||
|
||||
static const XpOidStringMapEntry XpOidStringMap[] = {
|
||||
{ "", 0 },
|
||||
{ "", 0 },
|
||||
{ "descriptor", 10 },
|
||||
{ "content-orientation", 19 },
|
||||
{ "copy-count", 10 },
|
||||
{ "default-printer-resolution", 26 },
|
||||
{ "default-input-tray", 18 },
|
||||
{ "default-medium", 14 },
|
||||
{ "document-format", 15 },
|
||||
{ "plex", 4 },
|
||||
{ "xp-listfonts-modes", 18 },
|
||||
{ "job-name", 8 },
|
||||
{ "job-owner", 9 },
|
||||
{ "notification-profile", 20 },
|
||||
{ "xp-setup-state", 14 },
|
||||
{ "xp-spooler-command-options", 26 },
|
||||
{ "content-orientations-supported", 30 },
|
||||
{ "document-formats-supported", 26 },
|
||||
{ "dt-pdm-command", 14 },
|
||||
{ "input-trays-medium", 18 },
|
||||
{ "medium-source-sizes-supported", 29 },
|
||||
{ "plexes-supported", 16 },
|
||||
{ "printer-model", 13 },
|
||||
{ "printer-name", 12 },
|
||||
{ "printer-resolutions-supported", 29 },
|
||||
{ "xp-embedded-formats-supported", 29 },
|
||||
{ "xp-listfonts-modes-supported", 28 },
|
||||
{ "xp-page-attributes-supported", 28 },
|
||||
{ "xp-raw-formats-supported", 24 },
|
||||
{ "xp-setup-proviso", 16 },
|
||||
{ "document-attributes-supported", 29 },
|
||||
{ "job-attributes-supported", 24 },
|
||||
{ "locale", 6 },
|
||||
{ "multiple-documents-supported", 28 },
|
||||
{ "available-compression", 21 },
|
||||
{ "available-compressions-supported", 32 },
|
||||
{ "portrait", 8 },
|
||||
{ "landscape", 9 },
|
||||
{ "reverse-portrait", 16 },
|
||||
{ "reverse-landscape", 17 },
|
||||
{ "iso-a0", 6 },
|
||||
{ "iso-a1", 6 },
|
||||
{ "iso-a2", 6 },
|
||||
{ "iso-a3", 6 },
|
||||
{ "iso-a4", 6 },
|
||||
{ "iso-a5", 6 },
|
||||
{ "iso-a6", 6 },
|
||||
{ "iso-a7", 6 },
|
||||
{ "iso-a8", 6 },
|
||||
{ "iso-a9", 6 },
|
||||
{ "iso-a10", 7 },
|
||||
{ "iso-b0", 6 },
|
||||
{ "iso-b1", 6 },
|
||||
{ "iso-b2", 6 },
|
||||
{ "iso-b3", 6 },
|
||||
{ "iso-b4", 6 },
|
||||
{ "iso-b5", 6 },
|
||||
{ "iso-b6", 6 },
|
||||
{ "iso-b7", 6 },
|
||||
{ "iso-b8", 6 },
|
||||
{ "iso-b9", 6 },
|
||||
{ "iso-b10", 7 },
|
||||
{ "na-letter", 9 },
|
||||
{ "na-legal", 8 },
|
||||
{ "executive", 9 },
|
||||
{ "folio", 5 },
|
||||
{ "invoice", 7 },
|
||||
{ "ledger", 6 },
|
||||
{ "quarto", 6 },
|
||||
{ "iso-c3", 6 },
|
||||
{ "iso-c4", 6 },
|
||||
{ "iso-c5", 6 },
|
||||
{ "iso-c6", 6 },
|
||||
{ "iso-designated-long", 19 },
|
||||
{ "na-10x13-envelope", 17 },
|
||||
{ "na-9x12-envelope", 16 },
|
||||
{ "na-number-10-envelope", 21 },
|
||||
{ "na-7x9-envelope", 15 },
|
||||
{ "na-9x11-envelope", 16 },
|
||||
{ "na-10x14-envelope", 17 },
|
||||
{ "na-number-9-envelope", 20 },
|
||||
{ "na-6x9-envelope", 15 },
|
||||
{ "na-10x15-envelope", 17 },
|
||||
{ "monarch-envelope", 16 },
|
||||
{ "a", 1 },
|
||||
{ "b", 1 },
|
||||
{ "c", 1 },
|
||||
{ "d", 1 },
|
||||
{ "e", 1 },
|
||||
{ "jis-b0", 6 },
|
||||
{ "jis-b1", 6 },
|
||||
{ "jis-b2", 6 },
|
||||
{ "jis-b3", 6 },
|
||||
{ "jis-b4", 6 },
|
||||
{ "jis-b5", 6 },
|
||||
{ "jis-b6", 6 },
|
||||
{ "jis-b7", 6 },
|
||||
{ "jis-b8", 6 },
|
||||
{ "jis-b9", 6 },
|
||||
{ "jis-b10", 7 },
|
||||
{ "hp-2x-postcard", 14 },
|
||||
{ "hp-european-edp", 15 },
|
||||
{ "hp-mini", 7 },
|
||||
{ "hp-postcard", 11 },
|
||||
{ "hp-tabloid", 10 },
|
||||
{ "hp-us-edp", 9 },
|
||||
{ "hp-us-government-legal", 22 },
|
||||
{ "hp-us-government-letter", 23 },
|
||||
{ "simplex", 7 },
|
||||
{ "duplex", 6 },
|
||||
{ "tumble", 6 },
|
||||
{ "top", 3 },
|
||||
{ "middle", 6 },
|
||||
{ "bottom", 6 },
|
||||
{ "envelope", 8 },
|
||||
{ "manual", 6 },
|
||||
{ "large-capacity", 14 },
|
||||
{ "main", 4 },
|
||||
{ "side", 4 },
|
||||
{ "event-report-job-completed", 26 },
|
||||
{ "electronic-mail", 15 },
|
||||
{ "xp-setup-mandatory", 18 },
|
||||
{ "xp-setup-optional", 17 },
|
||||
{ "xp-setup-ok", 11 },
|
||||
{ "xp-setup-incomplete", 19 },
|
||||
{ "xp-list-glyph-fonts", 19 },
|
||||
{ "xp-list-internal-printer-fonts", 30 },
|
||||
{ "0", 1 },
|
||||
{ "01", 2 },
|
||||
{ "02", 2 },
|
||||
{ "03", 2 },
|
||||
{ "012", 3 },
|
||||
{ "013", 3 },
|
||||
{ "023", 3 },
|
||||
{ "0123", 4 }
|
||||
};
|
||||
372
hw/xprint/Util.c
Normal file
372
hw/xprint/Util.c
Normal file
|
|
@ -0,0 +1,372 @@
|
|||
/* $Xorg: Util.c,v 1.3 2000/08/17 19:48:06 cpqbld Exp $ */
|
||||
/*
|
||||
(c) Copyright 1996 Hewlett-Packard Company
|
||||
(c) Copyright 1996 International Business Machines Corp.
|
||||
(c) Copyright 1996 Sun Microsystems, Inc.
|
||||
(c) Copyright 1996 Novell, Inc.
|
||||
(c) Copyright 1996 Digital Equipment Corp.
|
||||
(c) Copyright 1996 Fujitsu Limited
|
||||
(c) Copyright 1996 Hitachi, Ltd.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the names of the copyright holders shall
|
||||
not be used in advertising or otherwise to promote the sale, use or other
|
||||
dealings in this Software without prior written authorization from said
|
||||
copyright holders.
|
||||
*/
|
||||
/* $XFree86: xc/programs/Xserver/Xprint/Util.c,v 1.12 2001/08/01 00:44:45 tsi Exp $ */
|
||||
|
||||
/* To get the tempnam() prototype in <stdio.h> */
|
||||
#ifdef HAVE_DIX_CONFIG_H
|
||||
#include <dix-config.h>
|
||||
#endif
|
||||
|
||||
#if defined(linux) && defined(__STRICT_ANSI__)
|
||||
#undef __STRICT_ANSI__
|
||||
#endif
|
||||
|
||||
#include <X11/Xos.h> /* for unistd.h and string.h */
|
||||
#include <stdio.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/stat.h>
|
||||
#include "misc.h"
|
||||
#include "dixstruct.h"
|
||||
|
||||
#include <X11/extensions/Print.h>
|
||||
|
||||
#include "attributes.h"
|
||||
|
||||
#define IN_FILE_STRING "%(InFile)%"
|
||||
#define OUT_FILE_STRING "%(OutFile)%"
|
||||
|
||||
/*
|
||||
* ReplaceAnyString returns a string combining the input strings.
|
||||
* It replaces all occurances of 'target' with the supplied
|
||||
* 'replacement'.
|
||||
* The original input string will generally be freed,
|
||||
* and the caller is responsible for freeing whatever string is returned.
|
||||
*/
|
||||
char *
|
||||
ReplaceAnyString(
|
||||
char *string,
|
||||
char *target,
|
||||
char *replacement)
|
||||
{
|
||||
char *pKeyString;
|
||||
|
||||
if(replacement != (char *)NULL)
|
||||
{
|
||||
while((pKeyString = strstr(string, target)) != (char *)NULL)
|
||||
{
|
||||
char *newString;
|
||||
|
||||
newString = (char *)xalloc(strlen(string) + strlen(replacement) -
|
||||
strlen(target) + 1);
|
||||
strncpy(newString, string, pKeyString - string);
|
||||
newString[pKeyString - string] = '\0';
|
||||
strcat(newString, replacement);
|
||||
strcat(newString, pKeyString + strlen(target));
|
||||
xfree(string);
|
||||
string = newString;
|
||||
}
|
||||
}
|
||||
|
||||
return string;
|
||||
}
|
||||
|
||||
/*
|
||||
* ReplaceFileString returns a string combining the input strings.
|
||||
* It replaces all occurances of IN_FILE_STRING with the supplied
|
||||
* inFileName, and all occurances of OUT_FILE_STRING with the
|
||||
* supplied outFileName. The original input string will generally be freed,
|
||||
* and the caller is responsible for freeing whatever string is returned.
|
||||
*/
|
||||
char *
|
||||
ReplaceFileString(
|
||||
char *string,
|
||||
char *inFileName,
|
||||
char *outFileName)
|
||||
{
|
||||
char *pKeyString,
|
||||
*pInFileString = IN_FILE_STRING,
|
||||
*pOutFileString = OUT_FILE_STRING;
|
||||
|
||||
if(inFileName != (char *)NULL)
|
||||
{
|
||||
while((pKeyString = strstr(string, pInFileString)) !=
|
||||
(char *)NULL)
|
||||
{
|
||||
char *newString;
|
||||
|
||||
newString = (char *)xalloc(strlen(string) +
|
||||
strlen(inFileName) + 1);
|
||||
strncpy(newString, string, pKeyString - string);
|
||||
newString[pKeyString - string] = '\0';
|
||||
strcat(newString, inFileName);
|
||||
strcat(newString, pKeyString + strlen(pInFileString));
|
||||
xfree(string);
|
||||
string = newString;
|
||||
}
|
||||
}
|
||||
|
||||
if(outFileName != (char *)NULL)
|
||||
{
|
||||
while((pKeyString = strstr(string, pOutFileString)) !=
|
||||
(char *)NULL)
|
||||
{
|
||||
char *newString;
|
||||
|
||||
newString = (char *)xalloc(strlen(string) +
|
||||
strlen(outFileName) + 1);
|
||||
strncpy(newString, string, pKeyString - string);
|
||||
newString[pKeyString - string] = '\0';
|
||||
strcat(newString, outFileName);
|
||||
strcat(newString, pKeyString + strlen(pOutFileString));
|
||||
xfree(string);
|
||||
string = newString;
|
||||
}
|
||||
}
|
||||
return string;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* TransferBytes reads numBytes of data from pSrcFile and writes them
|
||||
* to pDstFile. It returns the number of bytes actually transfered,
|
||||
* which will be numBytes if it's successful. Neither pSrcFile nor
|
||||
* pDstFile are rewound or their pointers otherwise modified prior to
|
||||
* beginning the transfer.
|
||||
*/
|
||||
int
|
||||
TransferBytes(
|
||||
FILE *pSrcFile,
|
||||
FILE *pDstFile,
|
||||
int numBytes)
|
||||
{
|
||||
char buf[10240];
|
||||
#define BUF_SIZE (sizeof(buf)*sizeof(char))
|
||||
int bytesWritten = 0;
|
||||
unsigned bytesToXfer;
|
||||
|
||||
for(bytesToXfer = min(BUF_SIZE, (unsigned)numBytes);
|
||||
bytesToXfer > 0;
|
||||
bytesToXfer = min(BUF_SIZE, (unsigned)(numBytes - bytesWritten)))
|
||||
{
|
||||
if(fread((void *)buf, (size_t) 1, bytesToXfer, pSrcFile) < bytesToXfer)
|
||||
return bytesWritten;
|
||||
if(fwrite((void *)buf, (size_t) 1, bytesToXfer, pDstFile) < bytesToXfer)
|
||||
return bytesWritten;
|
||||
bytesWritten += bytesToXfer;
|
||||
}
|
||||
return bytesWritten;
|
||||
}
|
||||
|
||||
/*
|
||||
* CopyContentsAndDelete - does the work of copying and deleting the
|
||||
* pre, no, and post raster files as well as the raster file itself.
|
||||
*/
|
||||
Bool
|
||||
CopyContentsAndDelete(
|
||||
FILE **ppSrcFile,
|
||||
char **pSrcFileName,
|
||||
FILE *pDstFile)
|
||||
{
|
||||
struct stat statBuf;
|
||||
|
||||
if(stat(*pSrcFileName, &statBuf) < 0)
|
||||
return FALSE;
|
||||
rewind(*ppSrcFile);
|
||||
if(TransferBytes(*ppSrcFile, pDstFile,
|
||||
(int)statBuf.st_size) != (int)statBuf.st_size)
|
||||
return FALSE;
|
||||
fclose(*ppSrcFile);
|
||||
*ppSrcFile = (FILE *)NULL;
|
||||
unlink(*pSrcFileName);
|
||||
xfree(*pSrcFileName);
|
||||
*pSrcFileName = (char *)NULL;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
#define QUADPAD(x) ((((x)+3)>>2)<<2)
|
||||
|
||||
int
|
||||
XpSendDocumentData(
|
||||
ClientPtr client,
|
||||
FILE *fp,
|
||||
int fileLen,
|
||||
int maxBufSize)
|
||||
{
|
||||
xPrintGetDocumentDataReply *pRep;
|
||||
int bytesWritten;
|
||||
unsigned bytesToWrite;
|
||||
int result = Success;
|
||||
|
||||
if(client->clientGone)
|
||||
return Success;
|
||||
|
||||
pRep = (xPrintGetDocumentDataReply *)xalloc(sz_xPrintGetDocumentDataReply+
|
||||
QUADPAD(maxBufSize));
|
||||
|
||||
for(bytesToWrite = min(maxBufSize, fileLen),
|
||||
bytesWritten = 0;
|
||||
bytesToWrite > 0;
|
||||
bytesToWrite = min(maxBufSize, fileLen - bytesWritten))
|
||||
{
|
||||
pRep->type = X_Reply;
|
||||
pRep->sequenceNumber = client->sequence;
|
||||
pRep->length = (QUADPAD(bytesToWrite)) >> 2;
|
||||
pRep->dataLen = bytesToWrite;
|
||||
|
||||
if(fread((void *)(pRep + 1), 1, bytesToWrite, fp) < bytesToWrite)
|
||||
{
|
||||
result = BadAlloc; /* XXX poor error choice? */
|
||||
pRep->statusCode = 2; /* XXX Is this the right value??? */
|
||||
}
|
||||
else
|
||||
pRep->statusCode = 0; /* XXX Ignored??? */
|
||||
|
||||
pRep->finishedFlag = FALSE;
|
||||
|
||||
if (client->swapped) {
|
||||
int n;
|
||||
long l;
|
||||
|
||||
swaps(&pRep->sequenceNumber, n);
|
||||
swapl(&pRep->length, l);
|
||||
swapl(&pRep->statusCode, l); /* XXX Why are these longs??? */
|
||||
swapl(&pRep->finishedFlag, l); /* XXX Why are these longs??? */
|
||||
swapl(&pRep->dataLen, l);
|
||||
}
|
||||
|
||||
(void)WriteToClient(client,
|
||||
sz_xPrintGetDocumentDataReply + bytesToWrite,
|
||||
(char *)pRep);
|
||||
bytesWritten += bytesToWrite;
|
||||
}
|
||||
|
||||
xfree(pRep);
|
||||
return result;
|
||||
}
|
||||
|
||||
/*
|
||||
* XpFinishDocData - send a DocumentData reply with the "finishedFlag"
|
||||
* field set to TRUE. This routine should be called from the EndJob
|
||||
* function of a driver after the driver has sent all required
|
||||
* document data (presumably via XpSendDocumentData).
|
||||
*/
|
||||
int
|
||||
XpFinishDocData(
|
||||
ClientPtr client)
|
||||
{
|
||||
xPrintGetDocumentDataReply rep;
|
||||
|
||||
if(client->clientGone)
|
||||
return Success;
|
||||
|
||||
rep.type = X_Reply;
|
||||
rep.sequenceNumber = client->sequence;
|
||||
rep.length = 0;
|
||||
rep.dataLen = 0;
|
||||
rep.finishedFlag = TRUE;
|
||||
rep.statusCode = 0;
|
||||
|
||||
if (client->swapped) {
|
||||
int n;
|
||||
long l;
|
||||
|
||||
swaps(&rep.sequenceNumber, n);
|
||||
swapl(&rep.length, l);
|
||||
swapl(&rep.statusCode, l); /* XXX Why are these longs??? */
|
||||
swapl(&rep.finishedFlag, l); /* XXX Why are these longs??? */
|
||||
swapl(&rep.dataLen, l);
|
||||
}
|
||||
|
||||
(void)WriteToClient(client, sz_xPrintGetDocumentDataReply, (char *)&rep);
|
||||
return Success;
|
||||
}
|
||||
|
||||
#ifndef HAVE_MKSTEMP
|
||||
static
|
||||
char *XpDirName(char *fname)
|
||||
{
|
||||
char *fn, *ptr;
|
||||
|
||||
fn = (char *)xalloc(strlen(fname) + 1);
|
||||
if (fn) {
|
||||
strcpy(fn, fname);
|
||||
ptr = strrchr(fn, '/');
|
||||
if (!ptr) {
|
||||
ptr = fn;
|
||||
*ptr++ = '.';
|
||||
} else if (ptr == fn)
|
||||
ptr++;
|
||||
*ptr = '\0';
|
||||
}
|
||||
return fn;
|
||||
}
|
||||
#endif
|
||||
|
||||
Bool
|
||||
XpOpenTmpFile(
|
||||
char *mode,
|
||||
char **fname,
|
||||
FILE **stream)
|
||||
{
|
||||
#ifndef HAVE_MKSTEMP
|
||||
char *fn = NULL;
|
||||
|
||||
/* note that there is a small race condition here... */
|
||||
if (!(*fname = tempnam(NULL, NULL)) ||
|
||||
!(fn = XpDirName(*fname)) ||
|
||||
access(fn, W_OK) ||
|
||||
!(*stream = fopen(*fname, mode)))
|
||||
|
||||
{
|
||||
xfree(fn);
|
||||
xfree(*fname);
|
||||
*fname = NULL;
|
||||
*stream = NULL;
|
||||
return FALSE;
|
||||
}
|
||||
xfree(fn);
|
||||
#else
|
||||
int fd;
|
||||
|
||||
*stream = NULL;
|
||||
*fname = (char *)xalloc(14);
|
||||
if (*fname == NULL)
|
||||
return FALSE;
|
||||
strcpy(*fname, "/tmp/xpXXXXXX");
|
||||
fd = mkstemp(*fname);
|
||||
if (fd < 0) {
|
||||
xfree(*fname);
|
||||
*fname = NULL;
|
||||
return FALSE;
|
||||
}
|
||||
*stream = fdopen(fd, mode);
|
||||
if (stream == NULL) {
|
||||
xfree(*fname);
|
||||
*fname = NULL;
|
||||
return FALSE;
|
||||
}
|
||||
#endif
|
||||
return TRUE;
|
||||
}
|
||||
193
hw/xprint/ValTree.c
Normal file
193
hw/xprint/ValTree.c
Normal file
|
|
@ -0,0 +1,193 @@
|
|||
/* $Xorg: ValTree.c,v 1.3 2000/08/17 19:48:06 cpqbld Exp $ */
|
||||
/*
|
||||
(c) Copyright 1996 Hewlett-Packard Company
|
||||
(c) Copyright 1996 International Business Machines Corp.
|
||||
(c) Copyright 1996 Sun Microsystems, Inc.
|
||||
(c) Copyright 1996 Novell, Inc.
|
||||
(c) Copyright 1996 Digital Equipment Corp.
|
||||
(c) Copyright 1996 Fujitsu Limited
|
||||
(c) Copyright 1996 Hitachi, Ltd.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the names of the copyright holders shall
|
||||
not be used in advertising or otherwise to promote the sale, use or other
|
||||
dealings in this Software without prior written authorization from said
|
||||
copyright holders.
|
||||
*/
|
||||
/* $XFree86$ */
|
||||
|
||||
#ifdef HAVE_DIX_CONFIG_H
|
||||
#include <dix-config.h>
|
||||
#endif
|
||||
|
||||
#include <X11/X.h>
|
||||
#include "scrnintstr.h"
|
||||
#include "validate.h"
|
||||
#include "windowstr.h"
|
||||
#include "mi.h"
|
||||
#include "regionstr.h"
|
||||
#include "mivalidate.h"
|
||||
|
||||
/*
|
||||
* XpValidateTree - a validateTree routine which ignores overlapping
|
||||
* top-level windows when computing the clip lists for such windows.
|
||||
* This can be used by any driver which maintains a separate memory
|
||||
* store for each top-level window (with its respective children).
|
||||
* If the pParent is not the root window, then miValidateTree
|
||||
* is used unmodified.
|
||||
*
|
||||
* The strategy if pParent is the root is to save off the
|
||||
* current values of pParent->firstChild and pParent->lastChild,
|
||||
* replacing both with the single child of interest. We save off
|
||||
* pChild->prevSib and pChild->nextSib, and replace them with NullWindow.
|
||||
* We save off pParent->clipList, and replace it with
|
||||
* pParent->winSize - pChild->winSize. We then call miValidateTree
|
||||
* to do the needed ComputeClips on the pChild's heirarchy.
|
||||
* pParent's clipList is then recomputed based on the sizes
|
||||
* of its children, and the saved pointers are restored.
|
||||
* The trees associated with the siblings of pChild must be descended
|
||||
* and cleaned of any marks (i.e. the valdata pointer freed, and set to NULL),
|
||||
* and pParent' AfterValidate structure's exposed field must be updated.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
XpValidateTree (pParent, pChild, kind)
|
||||
WindowPtr pParent; /* Parent to validate */
|
||||
WindowPtr pChild; /* First child of pParent that was
|
||||
* affected */
|
||||
VTKind kind; /* What kind of configuration caused call */
|
||||
{
|
||||
RegionRec origPrntClip; /* orig clipList for parent */
|
||||
RegionRec childClip; /* The new borderClip for the current
|
||||
* child */
|
||||
RegionRec tmpPrntClip; /* parent clipList - child borderClip */
|
||||
RegionRec exposed; /* For intermediate calculations */
|
||||
register ScreenPtr pScreen;
|
||||
register WindowPtr pWin;
|
||||
Bool overlap;
|
||||
int viewvals;
|
||||
Bool forward;
|
||||
|
||||
WindowPtr origFirstChild, origLastChild, origPrevSib, origNextSib;
|
||||
|
||||
/*
|
||||
* If we're validating something other than a top-level window,
|
||||
* then just invoke miValidateTree.
|
||||
*/
|
||||
if(pParent->parent != NullWindow)
|
||||
return miValidateTree(pParent, pChild, kind);
|
||||
|
||||
/*
|
||||
* If it's a stack change of top levels then it's a no-op for
|
||||
* this scheme, so we just clean up any marks on windows and return.
|
||||
*/
|
||||
if(kind == VTStack)
|
||||
{
|
||||
CleanMarks(pParent);
|
||||
return 1;
|
||||
}
|
||||
|
||||
pScreen = pParent->drawable.pScreen;
|
||||
if (pChild == NullWindow)
|
||||
pChild = pParent->firstChild;
|
||||
|
||||
/* Save off the existing window heirarchy */
|
||||
origFirstChild = pParent->firstChild;
|
||||
origLastChild = pParent->lastChild;
|
||||
origPrevSib = pChild->prevSib;
|
||||
origNextSib = pChild->nextSib;
|
||||
pParent->firstChild = pChild;
|
||||
pParent->lastChild = pChild;
|
||||
pChild->prevSib = NullWindow;
|
||||
pChild->nextSib = NullWindow;
|
||||
|
||||
/*
|
||||
* Set pParent's clipList to be its winSize minus the pChild's
|
||||
* borderSize.
|
||||
*/
|
||||
origPrntClip = pParent->clipList;
|
||||
REGION_NULL(pScreen, &tmpPrntClip);
|
||||
REGION_SUBRACT(pScreen, &tmpPrntClip, &pParent->winSize,
|
||||
&pChild->borderSize);
|
||||
pParent->clipList = tmpPrntClip;
|
||||
|
||||
/*
|
||||
* Call miValidateTree on the pruned tree.
|
||||
*/
|
||||
(void) miValidateTree(pParent, pChild, kind);
|
||||
|
||||
/* Restore the saved heirarchy */
|
||||
pChild->prevSib = origPrevSib;
|
||||
pChild->nextSib = origNextSib;
|
||||
pParent->firstChild = origFirstChild;
|
||||
pParent->lastChild = origLastChild;
|
||||
|
||||
/*
|
||||
* Compute pParent's clipList by taking its winSize and subracting
|
||||
* the borderSize of each of its children.
|
||||
*/
|
||||
for(pWin = pParent->firstChild,
|
||||
REGION_COPY(pScreen, &pParent->clipList, &pParent->winSize);
|
||||
pWin != NullWindow;
|
||||
pWin = pWin->nextSib)
|
||||
{
|
||||
REGION_SUBTRACT(pScreen, &pParent->clipList, &pParent->clipList,
|
||||
&pWin->borderSize);
|
||||
}
|
||||
|
||||
/*
|
||||
* Compute pParent's AfterValidate structure by subracting the original
|
||||
* clipList from the newly computed clipList.
|
||||
*/
|
||||
REGION_NULL(pScreen, &pParent->valdata->after.exposed);
|
||||
REGION_SUBTRACT(pScreen, &pParent->valdata->after.exposed,
|
||||
&pParent->clipList, &origPrntClip);
|
||||
|
||||
/*
|
||||
* Remove the marks from all but pParent and pChild's heirarchy.
|
||||
* i.e. from all of pChild's siblings and their children.
|
||||
*/
|
||||
for(pWin = pParent->firstChild; pWin != NullWindow; pWin = pWin->nextSib)
|
||||
{
|
||||
WindowPtr pCurChild = pWin;
|
||||
|
||||
if(pCurChild == pChild)
|
||||
continue;
|
||||
|
||||
while (1)
|
||||
{
|
||||
if(pCurChild->valdata)
|
||||
{
|
||||
xfree(pCurChild->valdata);
|
||||
pCurChild->valdata = (ValidatePtr)NULL;
|
||||
}
|
||||
|
||||
if (pCurChild->firstChild)
|
||||
{
|
||||
pCurChild = pCurChild->firstChild;
|
||||
continue;
|
||||
}
|
||||
while (!pCurChild->nextSib && (pCurChild != pWin))
|
||||
pCurChild = pCurChild->parent;
|
||||
if (pCurChild == pWin)
|
||||
break;
|
||||
pCurChild = pCurChild->nextSib;
|
||||
}
|
||||
}
|
||||
}
|
||||
1737
hw/xprint/attributes.c
Normal file
1737
hw/xprint/attributes.c
Normal file
File diff suppressed because it is too large
Load diff
131
hw/xprint/attributes.h
Normal file
131
hw/xprint/attributes.h
Normal file
|
|
@ -0,0 +1,131 @@
|
|||
/* $Xorg: attributes.h,v 1.4 2001/03/14 18:42:44 pookie Exp $ */
|
||||
/*
|
||||
(c) Copyright 1996 Hewlett-Packard Company
|
||||
(c) Copyright 1996 International Business Machines Corp.
|
||||
(c) Copyright 1996 Sun Microsystems, Inc.
|
||||
(c) Copyright 1996 Novell, Inc.
|
||||
(c) Copyright 1996 Digital Equipment Corp.
|
||||
(c) Copyright 1996 Fujitsu Limited
|
||||
(c) Copyright 1996 Hitachi, Ltd.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the names of the copyright holders shall
|
||||
not be used in advertising or otherwise to promote the sale, use or other
|
||||
dealings in this Software without prior written authorization from said
|
||||
copyright holders.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_DIX_CONFIG_H
|
||||
#include <dix-config.h>
|
||||
#endif
|
||||
|
||||
#ifndef _Xp_attributes_h
|
||||
#define _Xp_attributes_h 1
|
||||
|
||||
#include "scrnintstr.h"
|
||||
#include "AttrValid.h"
|
||||
|
||||
#define BFuncArgs int ndx, ScreenPtr pScreen, int argc, char **argv
|
||||
typedef Bool (*pBFunc)(BFuncArgs);
|
||||
|
||||
#define VFuncArgs char *name, XpValidatePoolsRec *pValRec, float *width, float *height, int *res
|
||||
typedef void (*pVFunc)(VFuncArgs);
|
||||
|
||||
/*
|
||||
* attributes.c
|
||||
*/
|
||||
void XpInitAttributes(XpContextPtr pContext);
|
||||
void XpBuildAttributeStore(char *printerName,
|
||||
char *qualifierName);
|
||||
void XpAddPrinterAttribute(char *printerName,
|
||||
char *printerQualifier,
|
||||
char *attributeName,
|
||||
char *attributeValue);
|
||||
void XpDestroyAttributes(XpContextPtr pContext);
|
||||
char *XpGetConfigDir(Bool useLocale);
|
||||
char *XpGetOneAttribute(XpContextPtr pContext,
|
||||
XPAttributes class,
|
||||
char *attributeName);
|
||||
void XpPutOneAttribute(XpContextPtr pContext,
|
||||
XPAttributes class,
|
||||
const char* attributeName,
|
||||
const char* value);
|
||||
int XpRehashAttributes(void);
|
||||
char *XpGetAttributes(XpContextPtr pContext,
|
||||
XPAttributes class);
|
||||
int XpAugmentAttributes(XpContextPtr pContext,
|
||||
XPAttributes class,
|
||||
char *attributes);
|
||||
int XpSetAttributes(XpContextPtr pContext,
|
||||
XPAttributes class,
|
||||
char *attributes);
|
||||
const char *XpGetPrinterAttribute(const char *printerName,
|
||||
const char *attribute);
|
||||
void XpGetTrayMediumFromContext(XpContextPtr pCon,
|
||||
char **medium,
|
||||
char **tray);
|
||||
int XpSubmitJob(char *fileName, XpContextPtr pContext);
|
||||
|
||||
/*
|
||||
* mediaSizes.c
|
||||
*/
|
||||
int XpGetResolution(XpContextPtr pContext);
|
||||
XpOid XpGetContentOrientation(XpContextPtr pContext);
|
||||
XpOid XpGetAvailableCompression(XpContextPtr pContext);
|
||||
XpOid XpGetPlex(XpContextPtr pContext);
|
||||
XpOid XpGetPageSize(XpContextPtr pContext,
|
||||
XpOid* pTray,
|
||||
const XpOidMediumSS* msss);
|
||||
void XpGetMediumMillimeters(XpOid page_size,
|
||||
float *width,
|
||||
float *height);
|
||||
void XpGetMediumDimensions(XpContextPtr pContext,
|
||||
unsigned short *width,
|
||||
unsigned short *height);
|
||||
void XpGetReproductionArea(XpContextPtr pContext,
|
||||
xRectangle *pRect);
|
||||
void XpGetMaxWidthHeightRes(const char *printer_name,
|
||||
const XpValidatePoolsRec* vpr,
|
||||
float *width,
|
||||
float *height,
|
||||
int* resolution);
|
||||
|
||||
/* Util.c */
|
||||
char *ReplaceAnyString(char *string,
|
||||
char *target,
|
||||
char *replacement);
|
||||
char *ReplaceFileString(char *string,
|
||||
char *inFileName,
|
||||
char *outFileName);
|
||||
int TransferBytes(FILE *pSrcFile,
|
||||
FILE *pDstFile,
|
||||
int numBytes);
|
||||
Bool CopyContentsAndDelete(FILE **ppSrcFile,
|
||||
char **pSrcFileName,
|
||||
FILE *pDstFile);
|
||||
int XpSendDocumentData(ClientPtr client,
|
||||
FILE *fp,
|
||||
int fileLen,
|
||||
int maxBufSize);
|
||||
int XpFinishDocData(ClientPtr client);
|
||||
Bool XpOpenTmpFile(char *mode,
|
||||
char **fname,
|
||||
FILE **stream);
|
||||
|
||||
#endif /* _Xp_attributes_h */
|
||||
1
hw/xprint/config/C/Makefile.am
Normal file
1
hw/xprint/config/C/Makefile.am
Normal file
|
|
@ -0,0 +1 @@
|
|||
SUBDIRS = print
|
||||
14
hw/xprint/config/C/print/Makefile.am
Normal file
14
hw/xprint/config/C/print/Makefile.am
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
SUBDIRS = attributes ddx-config models
|
||||
|
||||
xpcdir = @xpconfigdir@/C/print
|
||||
|
||||
|
||||
Xprinters.ghostscript: $(srcdir)/Xprinters
|
||||
sed < $(srcdir)/Xprinters "s/#Printer xp_pdf_spooldir_tmp_Xprintjobs/Printer xp_pdf_spooldir_tmp_Xprintjobs/" > Xprinters.ghostscript
|
||||
|
||||
|
||||
|
||||
dist_xpc_DATA = Xprinters
|
||||
xpc_DATA = Xprinters.ghostscript
|
||||
|
||||
CLEANFILES = Xprinters.ghostscript
|
||||
49
hw/xprint/config/C/print/Xprinters
Normal file
49
hw/xprint/config/C/print/Xprinters
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
########################################################################
|
||||
#
|
||||
# $Xorg: Xprinters,v 1.3 2000/08/17 19:48:02 cpqbld Exp $
|
||||
#
|
||||
# X*printers sample configuration file
|
||||
#
|
||||
#
|
||||
# This file belongs in /usr/lib/X11/X*printers, where the "*" is the
|
||||
# display number of the server. For example, if the server is
|
||||
# invoked using the command X :0, then the X0printers file is used.
|
||||
########################################################################
|
||||
|
||||
########################################################################
|
||||
# Use lpstat to augment the list of printers managed by the
|
||||
# server. (This is the default behavior if the X*printers file does
|
||||
# not exist, or if an "Augment_Printer_List" line is not specified.)
|
||||
########################################################################
|
||||
#Augment_Printer_List %(default)%
|
||||
|
||||
########################################################################
|
||||
# Use the specified command pipeline to augment the list of printers
|
||||
# managed by the server.
|
||||
########################################################################
|
||||
#Augment_Printer_List lpstat -a | cut -d " " -f 1 # equivalent to default
|
||||
|
||||
########################################################################
|
||||
# Do not augment the list of printers managed by the server.
|
||||
########################################################################
|
||||
#Augment_Printer_List %none%
|
||||
|
||||
########################################################################
|
||||
# Preconfigured entry for the PSspooldir model
|
||||
# (which sends jobs to /tmp/Xprintjobs instead to a physical printer)
|
||||
########################################################################
|
||||
#Printer xp_pdf_spooldir_tmp_Xprintjobs
|
||||
Printer xp_ps_spooldir_tmp_Xprintjobs
|
||||
|
||||
########################################################################
|
||||
# Add individual printers to the list of printers managed by the
|
||||
# server. These are aliases, determined by driver name.
|
||||
########################################################################
|
||||
|
||||
|
||||
# EXAMPLES
|
||||
#
|
||||
# Printer xppspr
|
||||
# Printer xppclpr
|
||||
# Printer xppclmonopr
|
||||
# Printer xprasterpr
|
||||
3
hw/xprint/config/C/print/attributes/Makefile.am
Normal file
3
hw/xprint/config/C/print/attributes/Makefile.am
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
xpcdir = @xpconfigdir@/C/print/attributes
|
||||
|
||||
dist_xpc_DATA = document job printer
|
||||
49
hw/xprint/config/C/print/attributes/document
Normal file
49
hw/xprint/config/C/print/attributes/document
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
# $Xorg: document,v 1.3 2000/08/17 19:48:03 cpqbld Exp $
|
||||
# Document DPA-Object initial attribute values
|
||||
|
||||
# Attribute IDs must be qualified by using one of the following
|
||||
# (listed in order of precedence):
|
||||
#
|
||||
# printer-name
|
||||
# Set this attribute for a specific printer.
|
||||
# Example: "dj_1.plex: duplex"
|
||||
#
|
||||
# printer-model
|
||||
# Set this attribute for all printers of a specific model.
|
||||
# Example: "HPDJ1600C.plex: duplex"
|
||||
#
|
||||
# '*'
|
||||
# Set this attribute for all printers.
|
||||
# Example: "*.plex: duplex"
|
||||
|
||||
|
||||
*content-orientation: portrait
|
||||
*copy-count: 1
|
||||
*default-medium: iso-a4
|
||||
*default-printer-resolution: 600
|
||||
|
||||
# "PSspooldir" jobs should always be 300 DPI
|
||||
# (to be compatible to DPS-based PostScript viewers such as sdtimage)
|
||||
PSspooldir.default-printer-resolution: 300
|
||||
|
||||
# "PS2PDFspooldir-GS" jobs should always be 600 DPI
|
||||
PS2PDFspooldir-GS.default-printer-resolution: 600
|
||||
|
||||
# Some resolution defaults to make applications happy which are too lazy
|
||||
# to pick an own default in absence of "default-printer-resolution"
|
||||
HPLJ4050-PS.default-printer-resolution: 600
|
||||
SPSPARC2.default-printer-resolution: 300
|
||||
CANONBJ10E-GS.default-printer-resolution: 360
|
||||
CANONC3200-PS.default-printer-resolution: 600
|
||||
|
||||
# EXAMPLES
|
||||
#
|
||||
# *content-orientation: landscape
|
||||
# *copy-count: 3
|
||||
# *default-input-tray: main
|
||||
# *default-medium: iso-a4
|
||||
# *default-printer-resolution: 600
|
||||
# *document-format: {PCL 5}
|
||||
# *plex: simplex
|
||||
# *xp-listfonts-modes: xp-list-internal-printer-fonts
|
||||
|
||||
25
hw/xprint/config/C/print/attributes/job
Normal file
25
hw/xprint/config/C/print/attributes/job
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# $Xorg: job,v 1.3 2000/08/17 19:48:03 cpqbld Exp $
|
||||
# Job DPA-Object initial attribute values
|
||||
|
||||
# Attribute IDs must be qualified by using one of the following
|
||||
# (listed in order of precedence):
|
||||
#
|
||||
# printer-name
|
||||
# Set this attribute for a specific printer.
|
||||
# Example: "laser_1.job-priority: 1"
|
||||
#
|
||||
# printer-model
|
||||
# Set this attribute for all printers of a specific model.
|
||||
# Example: "HPDJ1600C.job-priority: 1"
|
||||
#
|
||||
# '*'
|
||||
# Set this attribute for all printers.
|
||||
# Example: "*.job-priority: 1"
|
||||
|
||||
*notification-profile: {}
|
||||
|
||||
# EXAMPLES
|
||||
#
|
||||
# *job-name: Example Job Name
|
||||
# *notification-profile: {{event-report-job-completed} electronic-mail}
|
||||
# *xp-spooler-command-options: -onb
|
||||
96
hw/xprint/config/C/print/attributes/printer
Normal file
96
hw/xprint/config/C/print/attributes/printer
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
# $Xorg: printer,v 1.3 2000/08/17 19:48:03 cpqbld Exp $
|
||||
# Printer DPA-Object initial attribute values
|
||||
|
||||
# Attribute IDs must be qualified by using one of the following
|
||||
# (listed in order of precedence):
|
||||
#
|
||||
# printer-name
|
||||
# Set this attribute for a specific printer.
|
||||
# Example: "dj_1.document-formats-ready: {pcl 5}"
|
||||
#
|
||||
# printer-model
|
||||
# Set this attribute for all printers of a specific model.
|
||||
# Example: "HPDJ1600C.document-formats-ready: {pcl 5}"
|
||||
#
|
||||
# '*'
|
||||
# Set this attribute for all printers.
|
||||
# Example: "*.document-formats-ready: {pcl 5}"
|
||||
|
||||
# Remove this line and replace them with per printer settings
|
||||
# if you want to use more than one DDX!!
|
||||
*xp-model-identifier: PSdefault
|
||||
|
||||
|
||||
# Sample entry for the "PSspooldir" model
|
||||
# Just add a printer called "xp_ps_spooldir_tmp_Xprintjobs" to "Xprinters"
|
||||
# and you will get an extra printer which files the PostScript jobs
|
||||
# in the "/tmp/Xprintjobs/" directory.
|
||||
xp_ps_spooldir_tmp_Xprintjobs.xp-model-identifier: PSspooldir
|
||||
|
||||
# Sample entry for the "PS2PDFspooldir-GS" model
|
||||
# Just add a printer called "xp_pdf_spooldir_tmp_Xprintjobs" to "Xprinters"
|
||||
# and you will get an extra printer which convertes the PostScript jobs
|
||||
# to PDF using "ps2pdf" and files them into the "/tmp/Xprintjobs/" directory.
|
||||
# NOTE: Future versions of Xprint will use the PDF DDX instead directly
|
||||
# instead of relying on GhostScript/ps2pdf...
|
||||
xp_pdf_spooldir_tmp_Xprintjobs.xp-model-identifier: PS2PDFspooldir-GS
|
||||
|
||||
|
||||
# IMPORTANT EXAMPLES
|
||||
#
|
||||
# The following are examples of how a printer name is bound
|
||||
# to a model-config file and ddx driver.
|
||||
#
|
||||
# Warning: most X-Servers have a hard limit on the number of ddx
|
||||
# drivers (ie, screens) they can support at runtime (usually 3 or
|
||||
# 4). Whatever the number of printers, they cannot create a
|
||||
# dependency for more than the limit on ddx drivers. Assuming
|
||||
# "Xprinters" listed all four xp*pr printers below, X-Servers
|
||||
# with a limit of 3 would not work.
|
||||
#
|
||||
# xppspr.xp-model-identifier: HPDJ1600C
|
||||
# xppspr.xp-ddx-identifier: XP-POSTSCRIPT
|
||||
# xppspr.document-formats-ready: { PostScript 2 }
|
||||
#
|
||||
# xppclpr.xp-model-identifier: HPDJ1600C
|
||||
# xppclpr.xp-ddx-identifier: XP-PCL-COLOR
|
||||
# xppclpr.document-formats-ready: { PCL 5 }
|
||||
#
|
||||
# xppclmonopr.xp-model-identifier: HPDJ1600C
|
||||
# xppclmonopr.xp-ddx-identifier: XP-PCL-MONO
|
||||
# xppclmonopr.document-formats-ready: { PCL 5 }
|
||||
#
|
||||
# xprasterpr.xp-model-identifier: HPDJ1600C
|
||||
# xprasterpr.xp-ddx-identifier: XP-RASTER
|
||||
|
||||
|
||||
# MORE EXAMPLES of items often configured in this file
|
||||
#
|
||||
# *descriptor: This printer has not been given a name
|
||||
# *dt-pdm-command: dtpdm
|
||||
# *input-trays-medium: {top na-letter} {bottom iso-a4}
|
||||
# *xp-model-identifier: HPDJ1600C
|
||||
# *xp-spooler-command: /opt/mystuff/bin/mylp -p %printer-name% -c %copy-count% \
|
||||
# -j %job-name% -o %options%
|
||||
|
||||
|
||||
# USUALLY SET BY THE ddx driver
|
||||
#
|
||||
# *content-orientations-supported: portrait landscape reverse-portrait reverse-landscape
|
||||
|
||||
|
||||
# USUALLY SET BY THE model-config FILE
|
||||
#
|
||||
# *document-formats-supported: {PCL 5}
|
||||
# *medium-source-sizes-supported: \
|
||||
# { top {iso-a4 FALSE {10 200 10 287}} {iso-a5 FALSE {10 138 10 200}} } \
|
||||
# { bottom {iso-a4 FALSE {10 200 10 287}} {iso-a5 FALSE {10 138 10 200}} }
|
||||
# *plexes-supported: simplex duplex tumble
|
||||
# *printer-model: Hewlett-Packard LaserJet IV
|
||||
# *printer-resolutions-supported: 300
|
||||
# *xp-ddx-identifier: XP-PCL-COLOR
|
||||
# *xp-embedded-formats-supported: {PCL 5} {HPGL 2}
|
||||
# *xp-listfonts-modes-supported: xp-list-internal-printer-fonts
|
||||
# *xp-raw-formats-supported: {PCL 5}
|
||||
# *xp-setup-proviso: xp-setup-optional
|
||||
|
||||
1
hw/xprint/config/C/print/ddx-config/Makefile.am
Normal file
1
hw/xprint/config/C/print/ddx-config/Makefile.am
Normal file
|
|
@ -0,0 +1 @@
|
|||
SUBDIRS = raster
|
||||
3
hw/xprint/config/C/print/ddx-config/raster/Makefile.am
Normal file
3
hw/xprint/config/C/print/ddx-config/raster/Makefile.am
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
xpcdir = @xpconfigdir@/C/print/ddx-config/raster
|
||||
|
||||
dist_xpc_DATA = pcl postscript
|
||||
39
hw/xprint/config/C/print/ddx-config/raster/pcl
Normal file
39
hw/xprint/config/C/print/ddx-config/raster/pcl
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
# $Xorg: pcl,v 1.3 2000/08/17 19:48:03 cpqbld Exp $
|
||||
# This is the file which you should customize to include the printers that
|
||||
# will print through the raster driver. The early part of this file
|
||||
# specifies some commn useful defaults. You can override them when
|
||||
# you list your printers in the second part of this file. This file is
|
||||
# an X Resource file. To learn more about this file format, consult
|
||||
# the functional specification.
|
||||
|
||||
# Note that the reference printer for CDEnext is the HP DeskJet 1600C.
|
||||
# This driver may work for other printers, but the reference printer
|
||||
# is the only officially supported printer.
|
||||
|
||||
|
||||
# DEFAULTS
|
||||
# ========
|
||||
|
||||
# The attributes below apply to all printers unless the section below
|
||||
# specifies something different for the printer.
|
||||
|
||||
# Default printer attributes
|
||||
# --------------------------
|
||||
# Printer attributes control the choices that users will see in the
|
||||
# setup dialog for those printers.
|
||||
|
||||
# The attributes below apply to all printes unless the section below
|
||||
# specifies something different for the printer.
|
||||
|
||||
*.media-ready: na-letter-white
|
||||
*.descriptor: Printer supported by CDEnext DtPrint System.
|
||||
*.printer-model: HPDJ1600C
|
||||
|
||||
# Printer Specifics
|
||||
|
||||
# Use this section to override the defaults listed above or to override the
|
||||
# printer attributes described in the model file.
|
||||
# The lines describing "laser" are just a sample to help you get started.
|
||||
|
||||
# laser.printer-name: laser
|
||||
# laser.spooler-name: laser
|
||||
0
hw/xprint/config/C/print/ddx-config/raster/postscript
Normal file
0
hw/xprint/config/C/print/ddx-config/raster/postscript
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
xpcdir = @xpconfigdir@/C/print/models/CANONBJ10E-GS
|
||||
|
||||
dist_xpc_DATA = model-config
|
||||
23
hw/xprint/config/C/print/models/CANONBJ10E-GS/model-config
Normal file
23
hw/xprint/config/C/print/models/CANONBJ10E-GS/model-config
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# $Xprint.org: CANONBJ10E-GS model-config,v 1.4 2003/02/10 14:48:04 gisburn Exp $
|
||||
|
||||
*content-orientations-supported: portrait landscape
|
||||
*descriptor: Canon BJ-10e (GhostScript)
|
||||
*document-formats-supported: {POSTSCRIPT 2}
|
||||
*input-trays-supported:
|
||||
*medium-source-sizes-supported: \
|
||||
{ '' \
|
||||
{iso-b5 FALSE {6.35 169.65 6.35 243.65}}\
|
||||
{iso-a4 FALSE {6.35 203.65 6.35 290.65}}\
|
||||
{na-letter FALSE {6.35 209.55 6.35 273.05}}\
|
||||
{na-legal FALSE {6.35 209.55 6.35 349.25}}\
|
||||
}
|
||||
|
||||
*plexes-supported: simplex
|
||||
*printer-model: "Canon BJ-10e (GhostScript)"
|
||||
*printer-resolutions-supported: 360
|
||||
*xp-ddx-identifier: XP-POSTSCRIPT
|
||||
*xp-listfonts-modes-supported: xp-list-internal-printer-fonts xp-list-glyph-fonts
|
||||
*xp-embedded-formats-supported: {POSTSCRIPT 2}
|
||||
*xp-raw-formats-supported: {POSTSCRIPT 2}
|
||||
*xp-setup-proviso: setup-optional
|
||||
# EOF.
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
SUBDIRS = fonts
|
||||
|
||||
xpcdir = @xpconfigdir@/C/print/models/CANONC3200-PS
|
||||
|
||||
dist_xpc_DATA = model-config
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
xpcdir = @xpconfigdir@/C/print/models/CANONC3200-PS/fonts
|
||||
|
||||
parentdir = @xpconfigdir@/C/print/models/PSdefault/fonts
|
||||
|
||||
XPFONTS = \
|
||||
AvantGarde-Book.pmf \
|
||||
AvantGarde-BookOblique.pmf \
|
||||
AvantGarde-Demi.pmf \
|
||||
AvantGarde-DemiOblique.pmf \
|
||||
Courier-Bold.pmf \
|
||||
Courier-BoldOblique.pmf \
|
||||
Courier-Oblique.pmf \
|
||||
Courier.pmf \
|
||||
Helvetica-Bold.pmf \
|
||||
Helvetica-BoldOblique.pmf \
|
||||
Helvetica-Oblique.pmf \
|
||||
Helvetica.pmf \
|
||||
LubalinGraph-Book.pmf \
|
||||
LubalinGraph-BookOblique.pmf \
|
||||
LubalinGraph-Demi.pmf \
|
||||
LubalinGraph-DemiOblique.pmf \
|
||||
NewCenturySchlbk-Bold.pmf \
|
||||
NewCenturySchlbk-BoldItalic.pmf \
|
||||
NewCenturySchlbk-Italic.pmf \
|
||||
NewCenturySchlbk-Roman.pmf \
|
||||
Souvenir-Demi.pmf \
|
||||
Souvenir-DemiItalic.pmf \
|
||||
Souvenir-Light.pmf \
|
||||
Souvenir-LightItalic.pmf \
|
||||
Symbol.pmf \
|
||||
Times-Bold.pmf \
|
||||
Times-BoldItalic.pmf \
|
||||
Times-Italic.pmf \
|
||||
Times-Roman.pmf \
|
||||
ZapfDingbats.pmf
|
||||
|
||||
dest = $(DESTDIR)$(xpcdir)
|
||||
|
||||
remove-stuff:
|
||||
for x in $(XPFONTS) ; do \
|
||||
rm -f $(dest)/$$x ; \
|
||||
done
|
||||
|
||||
@rm -f $(dest)/fonts.dir
|
||||
|
||||
install-data-hook: remove-stuff
|
||||
mkdir -p $(dest) ; \
|
||||
for x in $(XPFONTS) ; do \
|
||||
ln -s $(parentdir)/$$x $(dest)/$$x ; \
|
||||
done
|
||||
|
||||
$(MKFONTSCALE) -b -s -l $(dest)
|
||||
|
||||
uninstall-hook: remove-stuff
|
||||
40
hw/xprint/config/C/print/models/CANONC3200-PS/model-config
Normal file
40
hw/xprint/config/C/print/models/CANONC3200-PS/model-config
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
# $Xprint.org: CANONC3200-PS model-config,v 1.1 2004/06/24 09:18:04 gisburn Exp $
|
||||
# model-config for the PostScript DDX
|
||||
#
|
||||
# automatically generated by xpppdtomodelconfig V0.1
|
||||
#
|
||||
# DO NOT MODIFY THIS FILE!!
|
||||
#
|
||||
# Attributes supported for this printer model
|
||||
*content-orientations-supported: portrait landscape reverse-portrait reverse-landscape
|
||||
*descriptor: Canon iR C3200
|
||||
*document-formats-supported: {POSTSCRIPT 2}
|
||||
*input-trays-supported:
|
||||
*medium-source-sizes-supported: \
|
||||
{ '' \
|
||||
{iso-a4 FALSE {4.002 206 4.002 293}}\
|
||||
{na-letter FALSE {4.002 211.9 4.002 275.4}}\
|
||||
{na-legal FALSE {4.002 211.9 4.002 351.6}}\
|
||||
{iso-a3 FALSE {4.002 293 4.002 416}}\
|
||||
{iso-a5 FALSE {4.002 144 4.002 206}}\
|
||||
{iso-b4 FALSE {4.002 246 4.002 349}}\
|
||||
{iso-b5 FALSE {4.002 172 4.002 246}}\
|
||||
{executive FALSE {4.002 180.1 4.002 262.7}}\
|
||||
{invoice FALSE {4.002 135.7 4.002 211.9}}\
|
||||
{monarch-envelope FALSE {4.002 94.3 4.002 186.5}}\
|
||||
{na-number-10-envelop FALSE {4.002 100.8 4.002 237.3}}\
|
||||
{iso-c5 FALSE {4.002 158 4.002 225}}\
|
||||
}
|
||||
|
||||
*plexes-supported: simplex duplex tumble
|
||||
*printer-model: "Canon iR C3200"
|
||||
*printer-resolutions-supported: 600
|
||||
*xp-ddx-identifier: XP-POSTSCRIPT
|
||||
*xp-listfonts-modes-supported: xp-list-internal-printer-fonts xp-list-glyph-fonts
|
||||
*xp-embedded-formats-supported: {POSTSCRIPT 2}
|
||||
*xp-raw-formats-supported: {POSTSCRIPT 2}
|
||||
*xp-setup-proviso: setup-optional
|
||||
# NOTE: xp-psddx-* attributes are EXPERIMENTAL for now.
|
||||
*xp-psddx-download-fonts: pfa pfb ttf ttc otf otc
|
||||
*xp-psddx-download-font-type: pstype1
|
||||
# EOF.
|
||||
3
hw/xprint/config/C/print/models/GSdefault/Makefile.am
Normal file
3
hw/xprint/config/C/print/models/GSdefault/Makefile.am
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
xpcdir = @xpconfigdir@/C/print/models/GSdefault
|
||||
|
||||
dist_xpc_DATA = model-config
|
||||
137
hw/xprint/config/C/print/models/GSdefault/model-config
Normal file
137
hw/xprint/config/C/print/models/GSdefault/model-config
Normal file
|
|
@ -0,0 +1,137 @@
|
|||
# $Xprint.org: GSdefault model-config,v 1.1 2003/02/10 14:48:04 gisburn Exp $
|
||||
# Generic default model-config for the PostScript DDX when using GhostScript
|
||||
# as printer driver
|
||||
#
|
||||
# DO NOT MODIFY THIS FILE!!
|
||||
#
|
||||
# If you want to make customisations for your printer create a copy
|
||||
# of this printer model.
|
||||
# Example (for creating a model config "MYCOMPANYlaserxx"):
|
||||
# 1. Create model config dir:
|
||||
# % mkdir MYCOMPANYlaserxx
|
||||
# 2. Link (or copy) the PMF (printer font metrics) for the
|
||||
# printer buildin fonts:
|
||||
# % ln -s GSdefault/fonts MYCOMPANYlaserxx/.
|
||||
# 3. Copy the model config file:
|
||||
# % cp GSdefault/model-config MYCOMPANYlaserxx/.
|
||||
# 4. Customize MYCOMPANYlaserxx/model-config to match your needs.
|
||||
#
|
||||
|
||||
# Attributes supported for this printer model
|
||||
# You may want to cut the lists here down to the attributes supported
|
||||
# by your printer.
|
||||
*content-orientations-supported: portrait landscape reverse-portrait reverse-landscape
|
||||
*descriptor: GhostScript default model
|
||||
*document-formats-supported: {POSTSCRIPT 2}
|
||||
*input-trays-supported:
|
||||
*medium-source-sizes-supported: \
|
||||
{ '' \
|
||||
{na-letter FALSE {6.35 209.55 6.35 273.05}}\
|
||||
{na-legal FALSE {6.35 209.55 6.35 349.25}}\
|
||||
{executive FALSE {6.35 177.80 6.35 260.35}}\
|
||||
{folio FALSE {6.35 204.47 6.35 323.85}}\
|
||||
{invoice FALSE {6.35 133.35 6.35 209.55}}\
|
||||
{ledger FALSE {6.35 273.05 6.35 425.45}}\
|
||||
{quarto FALSE {6.35 209.55 6.35 268.732}}\
|
||||
{a FALSE {6.35 209.55 6.35 273.05}}\
|
||||
{b FALSE {6.35 273.05 6.35 425.45}}\
|
||||
{c FALSE {6.35 425.45 6.35 552.45}}\
|
||||
{d FALSE {6.35 552.45 6.35 857.25}}\
|
||||
{e FALSE {6.35 857.25 6.35 1111.25}}\
|
||||
{na-6x9-envelope FALSE {6.35 146.05 6.35 222.25}}\
|
||||
{na-10x15-envelope FALSE {6.35 247.65 6.35 374.65}}\
|
||||
{monarch-envelope FALSE {6.35 91.948 6.35 184.15}}\
|
||||
{na-10x13-envelope FALSE {6.35 247.65 6.35 323.85}}\
|
||||
{na-9x12-envelope FALSE {6.35 222.25 6.35 298.45}}\
|
||||
{na-number-10-envelope FALSE {6.35 98.425 6.35 234.95}}\
|
||||
{na-7x9-envelope FALSE {6.35 171.45 6.35 222.25}}\
|
||||
{na-9x11-envelope FALSE {6.35 222.25 6.35 273.05}}\
|
||||
{na-10x14-envelope FALSE {6.35 247.65 6.35 349.25}}\
|
||||
{na-number-9-envelope FALSE {6.35 92.075 6.35 219.075}}\
|
||||
{iso-a0 FALSE {6.35 834.65 6.35 1182.65}}\
|
||||
{iso-a1 FALSE {6.35 587.65 6.35 834.65}}\
|
||||
{iso-a2 FALSE {6.35 413.65 6.35 587.65}}\
|
||||
{iso-a3 FALSE {6.35 290.65 6.35 413.65}}\
|
||||
{iso-a4 FALSE {6.35 203.65 6.35 290.65}}\
|
||||
{iso-a5 FALSE {6.35 141.65 6.35 203.65}}\
|
||||
{iso-a6 FALSE {6.35 98.65 6.35 141.65}}\
|
||||
{iso-a7 FALSE {6.35 67.65 6.35 98.65}}\
|
||||
{iso-a8 FALSE {6.35 45.65 6.35 67.65}}\
|
||||
{iso-a9 FALSE {6.35 30.65 6.35 45.65}}\
|
||||
{iso-a10 FALSE {6.35 19.65 6.35 30.65}}\
|
||||
{iso-b1 FALSE {6.35 700.65 6.35 993.65}}\
|
||||
{iso-b2 FALSE {6.35 493.65 6.35 700.65}}\
|
||||
{iso-b3 FALSE {6.35 346.65 6.35 493.65}}\
|
||||
{iso-b4 FALSE {6.35 243.65 6.35 346.65}}\
|
||||
{iso-b5 FALSE {6.35 169.65 6.35 243.65}}\
|
||||
{iso-b6 FALSE {6.35 118.65 6.35 169.65}}\
|
||||
{iso-b7 FALSE {6.35 81.65 6.35 118.65}}\
|
||||
{iso-b8 FALSE {6.35 55.65 6.35 81.65}}\
|
||||
{iso-b9 FALSE {6.35 37.65 6.35 55.65}}\
|
||||
{iso-b10 FALSE {6.35 24.65 6.35 37.65}}\
|
||||
{jis-b1 FALSE {6.35 721.65 6.35 1023.65}}\
|
||||
{jis-b2 FALSE {6.35 508.65 6.35 721.65}}\
|
||||
{jis-b3 FALSE {6.35 357.65 6.35 508.65}}\
|
||||
{jis-b4 FALSE {6.35 250.65 6.35 357.65}}\
|
||||
{jis-b5 FALSE {6.35 175.65 6.35 250.65}}\
|
||||
{jis-b6 FALSE {6.35 121.65 6.35 175.65}}\
|
||||
{jis-b7 FALSE {6.35 84.65 6.35 121.65}}\
|
||||
{jis-b8 FALSE {6.35 57.65 6.35 84.65}}\
|
||||
{jis-b9 FALSE {6.35 38.65 6.35 57.65}}\
|
||||
{jis-b10 FALSE {6.35 25.65 6.35 38.65}}\
|
||||
{iso-c3 FALSE {6.35 317.65 6.35 451.65}}\
|
||||
{iso-c4 FALSE {6.35 222.65 6.35 317.65}}\
|
||||
{iso-c5 FALSE {6.35 155.65 6.35 222.65}}\
|
||||
{iso-c6 FALSE {6.35 107.65 6.35 155.65}}\
|
||||
{iso-designated-long FALSE {6.35 103.65 6.35 213.65}}\
|
||||
{hp-2x-postcard FALSE {6.35 141.65 6.35 193.65}}\
|
||||
{hp-european-edp FALSE {6.35 298.45 6.35 349.25}}\
|
||||
{hp-mini FALSE {6.35 133.35 6.35 209.55}}\
|
||||
{hp-postcard FALSE {6.35 93.65 6.35 141.65}}\
|
||||
{hp-tabloid FALSE {6.35 273.05 6.35 425.45}}\
|
||||
{hp-us-edp FALSE {6.35 273.05 6.35 349.25}}\
|
||||
{hp-us-government-legal FALSE {6.35 196.85 6.35 323.85}}\
|
||||
{hp-us-government-letter FALSE {6.35 196.85 6.35 247.65}}\
|
||||
}
|
||||
# If you have more than one tray use the following example:
|
||||
# 1. List the supported trays
|
||||
#*input-trays-supported: main manual
|
||||
# 2. Define each tray and it's paper sizes
|
||||
#*medium-source-sizes-supported: \
|
||||
#{ main \
|
||||
# {na-letter FALSE {6.35 209.55 6.35 273.05}} \
|
||||
# {na-legal FALSE {6.35 209.55 6.35 349.25}} \
|
||||
# {iso-a4 FALSE {6.35 203.65 6.35 290.65}} \
|
||||
#} \
|
||||
#{ manual \
|
||||
# {iso-a5 FALSE {6.35 141.65 6.35 203.65}} \
|
||||
# {iso-c5 FALSE {6.35 155.65 6.35 222.65}} \
|
||||
# {iso-designated-long FALSE {6.35 103.65 6.35 213.65}} \
|
||||
# {jis-b5 FALSE {6.35 175.65 6.35 250.65}} \
|
||||
# {monarch-envelope FALSE {6.35 91.948 6.35 184.15}} \
|
||||
# {na-legal FALSE {6.35 209.55 6.35 349.25}} \
|
||||
# {na-number-10-envelope FALSE {6.35 98.425 6.35 234.95}} \
|
||||
# {executive FALSE {6.35 177.8 6.35 260.35}} \
|
||||
# {iso-a3 FALSE {6.35 290.65 6.35 413.65}} \
|
||||
# {iso-a0 FALSE {6.35 834.65 6.35 1182.65}} \
|
||||
#}
|
||||
*plexes-supported: simplex duplex tumble
|
||||
*printer-model: "GhostScript default model"
|
||||
# 75, 100, 120, 150, 180, 200, 240, 300, 360, 400, 600, 720,
|
||||
# 940, 1200 and 2440 are supported DPI values, we limit it here
|
||||
# to some common values:
|
||||
*printer-resolutions-supported: 300 360 400 600
|
||||
*xp-ddx-identifier: XP-POSTSCRIPT
|
||||
*xp-listfonts-modes-supported: xp-list-internal-printer-fonts xp-list-glyph-fonts
|
||||
*xp-embedded-formats-supported: {POSTSCRIPT 2}
|
||||
*xp-raw-formats-supported: {POSTSCRIPT 2}
|
||||
*xp-setup-proviso: setup-optional
|
||||
|
||||
# NOTE: xp-psddx-* attributes are EXPERIMENTAL for now.
|
||||
# xp-psddx-download-fonts defines which fonts should be downloaded as outlines
|
||||
# (valid types are "pfa", "pfb", "ttf", "ttc", "otf", "otc")
|
||||
*xp-psddx-download-fonts: pfa pfb ttf ttc otf otc
|
||||
# xp-psddx-download-font-type defines which font type is used to download outlines
|
||||
# (valid values are "bitmap", "pstype1" and "pstype3")
|
||||
*xp-psddx-download-font-type: pstype1
|
||||
# EOF.
|
||||
5
hw/xprint/config/C/print/models/HPDJ1600C/Makefile.am
Normal file
5
hw/xprint/config/C/print/models/HPDJ1600C/Makefile.am
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
SUBDIRS = fonts
|
||||
|
||||
xpcdir = @xpconfigdir@/C/print/models/HPDJ1600C
|
||||
|
||||
dist_xpc_DATA = model-config
|
||||
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00051.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00051.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00052.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00052.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00053.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00053.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00054.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00054.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00055.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00055.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00056.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00056.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00057.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00057.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00058.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00058.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00059.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00059.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00060.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00060.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00061.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00061.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00062.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00062.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00063.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00063.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00064.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00064.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00065.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00065.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00066.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00066.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00067.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00067.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00068.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00068.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00069.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00069.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00070.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00070.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00071.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00071.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00072.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00072.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00073.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00073.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00074.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00074.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00075.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00075.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00076.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00076.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00077.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00077.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00079.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00079.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00080.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00080.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00081.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00081.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00082.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00082.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00083.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00083.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00084.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00084.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00085.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00085.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00086.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00086.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00087.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00087.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00088.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00088.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00089.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00089.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00090.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00090.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00091.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00091.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00092.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00092.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00093.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00093.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00094.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/9nb00094.pmf
Normal file
Binary file not shown.
50
hw/xprint/config/C/print/models/HPDJ1600C/fonts/Makefile.am
Normal file
50
hw/xprint/config/C/print/models/HPDJ1600C/fonts/Makefile.am
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
xpcdir = @xpconfigdir@/C/print/models/HPDJ1600C/fonts
|
||||
|
||||
dist_xpc_DATA = \
|
||||
9nb00051.pmf \
|
||||
9nb00052.pmf \
|
||||
9nb00053.pmf \
|
||||
9nb00054.pmf \
|
||||
9nb00055.pmf \
|
||||
9nb00056.pmf \
|
||||
9nb00057.pmf \
|
||||
9nb00058.pmf \
|
||||
9nb00059.pmf \
|
||||
9nb00060.pmf \
|
||||
9nb00061.pmf \
|
||||
9nb00062.pmf \
|
||||
9nb00063.pmf \
|
||||
9nb00064.pmf \
|
||||
9nb00065.pmf \
|
||||
9nb00066.pmf \
|
||||
9nb00067.pmf \
|
||||
9nb00068.pmf \
|
||||
9nb00069.pmf \
|
||||
9nb00070.pmf \
|
||||
9nb00071.pmf \
|
||||
9nb00072.pmf \
|
||||
9nb00073.pmf \
|
||||
9nb00074.pmf \
|
||||
9nb00075.pmf \
|
||||
9nb00076.pmf \
|
||||
9nb00077.pmf \
|
||||
9nb00079.pmf \
|
||||
9nb00080.pmf \
|
||||
9nb00081.pmf \
|
||||
9nb00082.pmf \
|
||||
9nb00083.pmf \
|
||||
9nb00084.pmf \
|
||||
9nb00085.pmf \
|
||||
9nb00086.pmf \
|
||||
9nb00087.pmf \
|
||||
9nb00088.pmf \
|
||||
9nb00089.pmf \
|
||||
9nb00090.pmf \
|
||||
9nb00091.pmf \
|
||||
9nb00092.pmf \
|
||||
9nb00093.pmf \
|
||||
9nb00094.pmf \
|
||||
lpr0ye1a.pmf \
|
||||
fonts.alias \
|
||||
fonts.dir \
|
||||
README
|
||||
197
hw/xprint/config/C/print/models/HPDJ1600C/fonts/README
Normal file
197
hw/xprint/config/C/print/models/HPDJ1600C/fonts/README
Normal file
|
|
@ -0,0 +1,197 @@
|
|||
$Xorg: README,v 1.3 2000/08/17 19:48:04 cpqbld Exp $
|
||||
|
||||
This directory contains "printer metric files" for the X Print
|
||||
Server suitable for the DeskJet 1600C printer. The following
|
||||
*.pmf files were generated by the Hewlett-Packard Company.
|
||||
|
||||
9nb00051.pmf
|
||||
9nb00052.pmf
|
||||
9nb00053.pmf
|
||||
9nb00054.pmf
|
||||
9nb00055.pmf
|
||||
9nb00056.pmf
|
||||
9nb00057.pmf
|
||||
9nb00058.pmf
|
||||
9nb00059.pmf
|
||||
9nb00060.pmf
|
||||
9nb00061.pmf
|
||||
9nb00062.pmf
|
||||
9nb00063.pmf
|
||||
9nb00064.pmf
|
||||
9nb00065.pmf
|
||||
9nb00066.pmf
|
||||
9nb00067.pmf
|
||||
9nb00068.pmf
|
||||
9nb00069.pmf
|
||||
9nb00070.pmf
|
||||
9nb00071.pmf
|
||||
9nb00072.pmf
|
||||
9nb00073.pmf
|
||||
9nb00074.pmf
|
||||
9nb00075.pmf
|
||||
9nb00076.pmf
|
||||
9nb00077.pmf
|
||||
9nb00079.pmf
|
||||
9nb00080.pmf
|
||||
9nb00081.pmf
|
||||
9nb00082.pmf
|
||||
9nb00083.pmf
|
||||
9nb00084.pmf
|
||||
9nb00085.pmf
|
||||
9nb00086.pmf
|
||||
9nb00087.pmf
|
||||
9nb00088.pmf
|
||||
9nb00089.pmf
|
||||
9nb00090.pmf
|
||||
9nb00091.pmf
|
||||
9nb00092.pmf
|
||||
9nb00093.pmf
|
||||
9nb00094.pmf
|
||||
lpr0ye1a.pmf
|
||||
|
||||
For reasons of not supporting iso8859.1 and hp-roman8, the following
|
||||
DeskJet 1600C printer fonts were not converted to *.pmf files.
|
||||
|
||||
9nb00078.pmf
|
||||
9nb00095.pmf
|
||||
lpr0ylga.pmf
|
||||
lpr0ypca.pmf
|
||||
lpr0ypda.pmf
|
||||
lpr0ypma.pmf
|
||||
lpr0yr8a.pmf
|
||||
|
||||
Output from the conversion utility is as follows:
|
||||
|
||||
Creating iso8859 1 pmf for 9nb00051.tfm as iso8859.1/9nb00051.pmf
|
||||
-COMPUGRAPHIC-Albertus-Extra Bold-r-Normal--8782-2500-2540-2540-P-42480-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00052.tfm as iso8859.1/9nb00052.pmf
|
||||
-COMPUGRAPHIC-Albertus-Semi Bold-r-Normal--8782-2500-2540-2540-P-37640-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00053.tfm as iso8859.1/9nb00053.pmf
|
||||
-COMPUGRAPHIC-Antique Olive-Bold-r-Normal--8782-2500-2540-2540-P-50490-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00054.tfm as iso8859.1/9nb00054.pmf
|
||||
-COMPUGRAPHIC-Antique Olive-Medium-i-Normal--8782-2500-2540-2540-P-46140-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00055.tfm as iso8859.1/9nb00055.pmf
|
||||
-COMPUGRAPHIC-Antique Olive-Medium-r-Normal--8782-2500-2540-2540-P-46380-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00056.tfm as iso8859.1/9nb00056.pmf
|
||||
-Monotype-Arial-Bold-r-Normal--2048-2500-589-589-P-9800-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00057.tfm as iso8859.1/9nb00057.pmf
|
||||
-Monotype-Arial-Medium-i-Normal--2048-2500-589-589-P-9040-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00058.tfm as iso8859.1/9nb00058.pmf
|
||||
-Monotype-Arial-Bold-i-Normal--2048-2500-589-589-P-9800-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00059.tfm as iso8859.1/9nb00059.pmf
|
||||
-Monotype-Arial-Medium-r-Normal--2048-2500-589-589-P-9040-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00060.tfm as iso8859.1/9nb00060.pmf
|
||||
-COMPUGRAPHIC-Clarendon-Bold-r-Condensed--8782-2500-2540-2540-P-35080-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00061.tfm as iso8859.1/9nb00061.pmf
|
||||
-COMPUGRAPHIC-Courier-Bold-r-Normal--8782-2500-2540-2540-M-52910-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00062.tfm as iso8859.1/9nb00062.pmf
|
||||
-COMPUGRAPHIC-Courier-Medium-i-Normal--8782-2500-2540-2540-M-52910-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00063.tfm as iso8859.1/9nb00063.pmf
|
||||
-COMPUGRAPHIC-Courier-Bold-i-Normal--8782-2500-2540-2540-M-52910-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00064.tfm as iso8859.1/9nb00064.pmf
|
||||
-COMPUGRAPHIC-Courier-Medium-r-Normal--8782-2500-2540-2540-M-52910-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00065.tfm as iso8859.1/9nb00065.pmf
|
||||
-COMPUGRAPHIC-Garamond-Bold-r-Normal--8782-2500-2540-2540-P-38730-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00066.tfm as iso8859.1/9nb00066.pmf
|
||||
-COMPUGRAPHIC-Garamond-Medium-i-Normal--8782-2500-2540-2540-P-34280-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00067.tfm as iso8859.1/9nb00067.pmf
|
||||
-COMPUGRAPHIC-Garamond-Bold-i-Normal--8782-2500-2540-2540-P-37020-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00068.tfm as iso8859.1/9nb00068.pmf
|
||||
-COMPUGRAPHIC-Garamond-Medium-r-Normal--8782-2500-2540-2540-P-36560-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00069.tfm as iso8859.1/9nb00069.pmf
|
||||
-COMPUGRAPHIC-Letter Gothic-Bold-r-Normal--8782-2500-2540-2540-M-44090-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00070.tfm as iso8859.1/9nb00070.pmf
|
||||
-COMPUGRAPHIC-Letter Gothic-Medium-i-Normal--8782-2500-2540-2540-M-44090-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00071.tfm as iso8859.1/9nb00071.pmf
|
||||
-COMPUGRAPHIC-Letter Gothic-Medium-r-Normal--8782-2500-2540-2540-M-44090-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00072.tfm as iso8859.1/9nb00072.pmf
|
||||
-COMPUGRAPHIC-Marigold-Medium-r-Normal--8782-2500-2540-2540-P-21890-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00073.tfm as iso8859.1/9nb00073.pmf
|
||||
-COMPUGRAPHIC-Omega-Bold-r-Normal--8782-2500-2540-2540-P-38600-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00074.tfm as iso8859.1/9nb00074.pmf
|
||||
-COMPUGRAPHIC-Omega-Medium-i-Normal--8782-2500-2540-2540-P-37980-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00075.tfm as iso8859.1/9nb00075.pmf
|
||||
-COMPUGRAPHIC-Omega-Bold-i-Normal--8782-2500-2540-2540-P-38560-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00076.tfm as iso8859.1/9nb00076.pmf
|
||||
-COMPUGRAPHIC-Omega-Medium-r-Normal--8782-2500-2540-2540-P-37770-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00077.tfm as iso8859.1/9nb00077.pmf
|
||||
-COMPUGRAPHIC-Coronet-Medium-i-Normal--8782-2500-2540-2540-P-22870-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00079.tfm as iso8859.1/9nb00079.pmf
|
||||
-Monotype-Times New Roman-Bold-r-Normal--2048-2500-589-589-P-8740-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00080.tfm as iso8859.1/9nb00080.pmf
|
||||
-Monotype-Times New Roman-Medium-i-Normal--2048-2500-589-589-P-8230-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00081.tfm as iso8859.1/9nb00081.pmf
|
||||
-Monotype-Times New Roman-Bold-i-Normal--2048-2500-589-589-P-8440-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00082.tfm as iso8859.1/9nb00082.pmf
|
||||
-Monotype-Times New Roman-Medium-r-Normal--2048-2500-589-589-P-8210-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00083.tfm as iso8859.1/9nb00083.pmf
|
||||
-COMPUGRAPHIC-Times-Bold-r-Normal--8782-2500-2540-2540-P-38200-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00084.tfm as iso8859.1/9nb00084.pmf
|
||||
-COMPUGRAPHIC-Times-Medium-i-Normal--8782-2500-2540-2540-P-36000-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00085.tfm as iso8859.1/9nb00085.pmf
|
||||
-COMPUGRAPHIC-Times-Bold-i-Normal--8782-2500-2540-2540-P-36900-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00086.tfm as iso8859.1/9nb00086.pmf
|
||||
-COMPUGRAPHIC-Times-Medium-r-Normal--8782-2500-2540-2540-P-36080-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00087.tfm as iso8859.1/9nb00087.pmf
|
||||
-COMPUGRAPHIC-Univers-Medium-i-Condensed--8782-2500-2540-2540-P-29970-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00088.tfm as iso8859.1/9nb00088.pmf
|
||||
-COMPUGRAPHIC-Univers-Bold-r-Normal--8782-2500-2540-2540-P-41280-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00089.tfm as iso8859.1/9nb00089.pmf
|
||||
-COMPUGRAPHIC-Univers-Medium-r-Condensed--8782-2500-2540-2540-P-29970-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00090.tfm as iso8859.1/9nb00090.pmf
|
||||
-COMPUGRAPHIC-Univers-Bold-r-Condensed--8782-2500-2540-2540-P-33030-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00091.tfm as iso8859.1/9nb00091.pmf
|
||||
-COMPUGRAPHIC-Univers-Bold-i-Condensed--8782-2500-2540-2540-P-33030-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00092.tfm as iso8859.1/9nb00092.pmf
|
||||
-COMPUGRAPHIC-Univers-Medium-i-Normal--8782-2500-2540-2540-P-41280-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00093.tfm as iso8859.1/9nb00093.pmf
|
||||
-COMPUGRAPHIC-Univers-Bold-i-Normal--8782-2500-2540-2540-P-41280-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for 9nb00094.tfm as iso8859.1/9nb00094.pmf
|
||||
-COMPUGRAPHIC-Univers-Medium-r-Normal--8782-2500-2540-2540-P-41280-iso8859-1
|
||||
------------------------------------
|
||||
Creating iso8859 1 pmf for lpr0ye1a.tfm as iso8859.1/lpr0ye1a.pmf
|
||||
-HP-Line Printer-Medium-r-Normal--35-85-300-300-M-180-iso8859-1
|
||||
------------------------------------
|
||||
|
||||
45
hw/xprint/config/C/print/models/HPDJ1600C/fonts/fonts.dir
Normal file
45
hw/xprint/config/C/print/models/HPDJ1600C/fonts/fonts.dir
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
44
|
||||
lpr0ye1a.pmf -hp-line printer-medium-r-normal--35-85-300-300-m-180-iso8859-1
|
||||
9nb00080.pmf -monotype-times new roman-medium-i-normal--2048-2500-589-589-p-8230-iso8859-1
|
||||
9nb00092.pmf -compugraphic-univers-medium-i-normal--8782-2500-2540-2540-p-41280-iso8859-1
|
||||
9nb00081.pmf -monotype-times new roman-bold-i-normal--2048-2500-589-589-p-8440-iso8859-1
|
||||
9nb00093.pmf -compugraphic-univers-bold-i-normal--8782-2500-2540-2540-p-41280-iso8859-1
|
||||
9nb00082.pmf -monotype-times new roman-medium-r-normal--2048-2500-589-589-p-8210-iso8859-1
|
||||
9nb00090.pmf -compugraphic-univers-bold-r-condensed--8782-2500-2540-2540-p-33030-iso8859-1
|
||||
9nb00083.pmf -compugraphic-times-bold-r-normal--8782-2500-2540-2540-p-38200-iso8859-1
|
||||
9nb00091.pmf -compugraphic-univers-bold-i-condensed--8782-2500-2540-2540-p-33030-iso8859-1
|
||||
9nb00084.pmf -compugraphic-times-medium-i-normal--8782-2500-2540-2540-p-36000-iso8859-1
|
||||
9nb00085.pmf -compugraphic-times-bold-i-normal--8782-2500-2540-2540-p-36900-iso8859-1
|
||||
9nb00086.pmf -compugraphic-times-medium-r-normal--8782-2500-2540-2540-p-36080-iso8859-1
|
||||
9nb00094.pmf -compugraphic-univers-medium-r-normal--8782-2500-2540-2540-p-41280-iso8859-1
|
||||
9nb00087.pmf -compugraphic-univers-medium-i-condensed--8782-2500-2540-2540-p-29970-iso8859-1
|
||||
9nb00088.pmf -compugraphic-univers-bold-r-normal--8782-2500-2540-2540-p-41280-iso8859-1
|
||||
9nb00089.pmf -compugraphic-univers-medium-r-condensed--8782-2500-2540-2540-p-29970-iso8859-1
|
||||
9nb00058.pmf -monotype-arial-bold-i-normal--2048-2500-589-589-p-9800-iso8859-1
|
||||
9nb00059.pmf -monotype-arial-medium-r-normal--2048-2500-589-589-p-9040-iso8859-1
|
||||
9nb00068.pmf -compugraphic-garamond-medium-r-normal--8782-2500-2540-2540-p-36560-iso8859-1
|
||||
9nb00069.pmf -compugraphic-letter gothic-bold-r-normal--8782-2500-2540-2540-m-44090-iso8859-1
|
||||
9nb00079.pmf -monotype-times new roman-bold-r-normal--2048-2500-589-589-p-8740-iso8859-1
|
||||
9nb00052.pmf -compugraphic-albertus-semi bold-r-normal--8782-2500-2540-2540-p-37640-iso8859-1
|
||||
9nb00064.pmf -compugraphic-courier-medium-r-normal--8782-2500-2540-2540-m-52910-iso8859-1
|
||||
9nb00076.pmf -compugraphic-omega-medium-r-normal--8782-2500-2540-2540-p-37770-iso8859-1
|
||||
9nb00053.pmf -compugraphic-antique olive-bold-r-normal--8782-2500-2540-2540-p-50490-iso8859-1
|
||||
9nb00065.pmf -compugraphic-garamond-bold-r-normal--8782-2500-2540-2540-p-38730-iso8859-1
|
||||
9nb00077.pmf -compugraphic-coronet-medium-i-normal--8782-2500-2540-2540-p-22870-iso8859-1
|
||||
9nb00066.pmf -compugraphic-garamond-medium-i-normal--8782-2500-2540-2540-p-34280-iso8859-1
|
||||
9nb00074.pmf -compugraphic-omega-medium-i-normal--8782-2500-2540-2540-p-37980-iso8859-1
|
||||
9nb00051.pmf -compugraphic-albertus-extra bold-r-normal--8782-2500-2540-2540-p-42480-iso8859-1
|
||||
9nb00067.pmf -compugraphic-garamond-bold-i-normal--8782-2500-2540-2540-p-37020-iso8859-1
|
||||
9nb00075.pmf -compugraphic-omega-bold-i-normal--8782-2500-2540-2540-p-38560-iso8859-1
|
||||
9nb00056.pmf -monotype-arial-bold-r-normal--2048-2500-589-589-p-9800-iso8859-1
|
||||
9nb00060.pmf -compugraphic-clarendon-bold-r-condensed--8782-2500-2540-2540-p-35080-iso8859-1
|
||||
9nb00072.pmf -compugraphic-marigold-medium-r-normal--8782-2500-2540-2540-p-21890-iso8859-1
|
||||
9nb00057.pmf -monotype-arial-medium-i-normal--2048-2500-589-589-p-9040-iso8859-1
|
||||
9nb00061.pmf -compugraphic-courier-bold-r-normal--8782-2500-2540-2540-m-52910-iso8859-1
|
||||
9nb00073.pmf -compugraphic-omega-bold-r-normal--8782-2500-2540-2540-p-38600-iso8859-1
|
||||
9nb00054.pmf -compugraphic-antique olive-medium-i-normal--8782-2500-2540-2540-p-46140-iso8859-1
|
||||
9nb00062.pmf -compugraphic-courier-medium-i-normal--8782-2500-2540-2540-m-52910-iso8859-1
|
||||
9nb00070.pmf -compugraphic-letter gothic-medium-i-normal--8782-2500-2540-2540-m-44090-iso8859-1
|
||||
9nb00055.pmf -compugraphic-antique olive-medium-r-normal--8782-2500-2540-2540-p-46380-iso8859-1
|
||||
9nb00063.pmf -compugraphic-courier-bold-i-normal--8782-2500-2540-2540-m-52910-iso8859-1
|
||||
9nb00071.pmf -compugraphic-letter gothic-medium-r-normal--8782-2500-2540-2540-m-44090-iso8859-1
|
||||
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/lpr0ye1a.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPDJ1600C/fonts/lpr0ye1a.pmf
Normal file
Binary file not shown.
40
hw/xprint/config/C/print/models/HPDJ1600C/model-config
Normal file
40
hw/xprint/config/C/print/models/HPDJ1600C/model-config
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
# $Xprint.org: HPDJ1600C model-config,v 1.4 2002/11/07 19:48:04 gisburn Exp $
|
||||
# This is the configuration file for the HP DeskJet 1600C printer.
|
||||
#
|
||||
# The CDEnext SI supports two 1600C drivers XP-PCL-MONO and
|
||||
# XP-PCL-COLOR, which work with this configuration file.
|
||||
#
|
||||
|
||||
*content-orientations-supported: portrait landscape
|
||||
*descriptor: Hewlett-Packard DeskJet 1600C
|
||||
*document-formats-supported: {PCL 5} {PostScript 2}
|
||||
*input-trays-supported:
|
||||
# 1/4" unprintable margins
|
||||
*medium-source-sizes-supported:\
|
||||
{ '' \
|
||||
{na-letter FALSE {6.35 209.55 6.35 273.05}}\
|
||||
{executive FALSE {6.35 177.75 6.35 260.35}}\
|
||||
{na-legal FALSE {6.35 209.55 6.35 349.25}}\
|
||||
{iso-a3 FALSE {6.35 290.65 6.35 413.35}}\
|
||||
{iso-a4 FALSE {6.35 203.65 6.35 290.65}}\
|
||||
{jis-b4 FALSE {6.35 251.65 6.35 367.65}}\
|
||||
{jis-b5 FALSE {6.35 175.65 6.35 250.65}}\
|
||||
{monarch-envelope FALSE {6.35 91.94 6.35 184.15}}\
|
||||
{iso-designated-long FALSE {6.35 103.65 6.35 213.65}}\
|
||||
{iso-c5 FALSE {6.35 155.65 6.35 222.65}}\
|
||||
{na-number-10-envelope FALSE {6.35 98.45 6.35 234.95}}\
|
||||
{hp-tabloid FALSE {6.35 273.05 6.35 425.45}}\
|
||||
{ledger FALSE {6.35 273.05 6.35 425.45}}\
|
||||
{b FALSE {6.35 273.05 6.35 425.45}}\
|
||||
{hp-japanese-postcard FALSE {6 94 6 142 }}\
|
||||
{hp-japanese-doublepostcard FALSE {6 142 6 194 }}\
|
||||
}
|
||||
*plexes-supported: simplex duplex
|
||||
*printer-model: "Hewlett-Packard DeskJet 1600C"
|
||||
*printer-resolutions-supported: 300
|
||||
*xp-ddx-identifier: XP-PCL-COLOR
|
||||
*xp-listfonts-modes-supported: xp-list-internal-printer-fonts xp-list-glyph-fonts
|
||||
*xp-embedded-formats-supported: { PCL 5 } { PostScript 2 }
|
||||
*xp-raw-formats-supported: { PCL 5 }
|
||||
*xp-setup-proviso: setup-optional
|
||||
# EOF.
|
||||
5
hw/xprint/config/C/print/models/HPLJ4050-PS/Makefile.am
Normal file
5
hw/xprint/config/C/print/models/HPLJ4050-PS/Makefile.am
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
SUBDIRS = fonts
|
||||
|
||||
xpcdir = @xpconfigdir@/C/print/models/HPLJ4050-PS
|
||||
|
||||
dist_xpc_DATA = model-config
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
xpcdir = @xpconfigdir@/C/print/models/HPLJ4050-PS/fonts
|
||||
|
||||
parentdir = @xpconfigdir@/C/print/models/PSdefault/fonts
|
||||
|
||||
XPFONTS = \
|
||||
AvantGarde-Book.pmf \
|
||||
AvantGarde-BookOblique.pmf \
|
||||
AvantGarde-Demi.pmf \
|
||||
AvantGarde-DemiOblique.pmf \
|
||||
Courier-Bold.pmf \
|
||||
Courier-BoldOblique.pmf \
|
||||
Courier-Oblique.pmf \
|
||||
Courier.pmf \
|
||||
Helvetica-Bold.pmf \
|
||||
Helvetica-BoldOblique.pmf \
|
||||
Helvetica-Oblique.pmf \
|
||||
Helvetica.pmf \
|
||||
LubalinGraph-Book.pmf \
|
||||
LubalinGraph-BookOblique.pmf \
|
||||
LubalinGraph-Demi.pmf \
|
||||
LubalinGraph-DemiOblique.pmf \
|
||||
NewCenturySchlbk-Bold.pmf \
|
||||
NewCenturySchlbk-BoldItalic.pmf \
|
||||
NewCenturySchlbk-Italic.pmf \
|
||||
NewCenturySchlbk-Roman.pmf \
|
||||
Souvenir-Demi.pmf \
|
||||
Souvenir-DemiItalic.pmf \
|
||||
Souvenir-Light.pmf \
|
||||
Souvenir-LightItalic.pmf \
|
||||
Symbol.pmf \
|
||||
Times-Bold.pmf \
|
||||
Times-BoldItalic.pmf \
|
||||
Times-Italic.pmf \
|
||||
Times-Roman.pmf \
|
||||
ZapfDingbats.pmf
|
||||
|
||||
dest = $(DESTDIR)$(xpcdir)
|
||||
|
||||
remove-stuff:
|
||||
for x in $(XPFONTS) ; do \
|
||||
rm -f $(dest)/$$x ; \
|
||||
done
|
||||
|
||||
@rm -f $(dest)/fonts.dir
|
||||
|
||||
install-data-hook: remove-stuff
|
||||
mkdir -p $(dest) ; \
|
||||
for x in $(XPFONTS) ; do \
|
||||
ln -s $(parentdir)/$$x $(dest)/$$x ; \
|
||||
done
|
||||
|
||||
$(MKFONTSCALE) -b -s -l $(dest)
|
||||
|
||||
uninstall-hook: remove-stuff
|
||||
36
hw/xprint/config/C/print/models/HPLJ4050-PS/model-config
Normal file
36
hw/xprint/config/C/print/models/HPLJ4050-PS/model-config
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
# $Xprint.org: HPLJ4050-PS model-config,v 1.1 2003/12/16 00:48:04 gisburn Exp $
|
||||
# model-config for the HP LaserJet 4050 PostScript printer series
|
||||
#
|
||||
*content-orientations-supported: portrait landscape reverse-portrait reverse-landscape
|
||||
*descriptor: Hewlett-Packard LaserJet 4050 PostScript printer
|
||||
*document-formats-supported: {POSTSCRIPT 2}
|
||||
*input-trays-supported:
|
||||
*medium-source-sizes-supported: \
|
||||
{ '' \
|
||||
{na-letter FALSE {6.35 209.55 6.35 273.05}}\
|
||||
{na-legal FALSE {6.35 209.55 6.35 349.25}}\
|
||||
{executive FALSE {6.35 177.80 6.35 260.35}}\
|
||||
{iso-a4 FALSE {6.35 203.65 6.35 290.65}}\
|
||||
{iso-a5 FALSE {6.35 141.65 6.35 203.65}}\
|
||||
{iso-b5 FALSE {6.35 169.65 6.35 243.65}}\
|
||||
{jis-b5 FALSE {6.35 175.65 6.35 250.65}}\
|
||||
}
|
||||
|
||||
# Duplex unit is optional for HPLJ4050 series
|
||||
*plexes-supported: simplex
|
||||
*printer-model: "Hewlett-Packard LaserJet 4050 PostScript printer"
|
||||
*printer-resolutions-supported: 600 1200
|
||||
*xp-ddx-identifier: XP-POSTSCRIPT
|
||||
*xp-listfonts-modes-supported: xp-list-internal-printer-fonts xp-list-glyph-fonts
|
||||
*xp-embedded-formats-supported: {POSTSCRIPT 2}
|
||||
*xp-raw-formats-supported: {POSTSCRIPT 2}
|
||||
*xp-setup-proviso: setup-optional
|
||||
|
||||
# NOTE: xp-psddx-* attributes are EXPERIMENTAL for now.
|
||||
# xp-psddx-download-fonts defines which fonts should be downloaded as outlines
|
||||
# (valid types are "pfa", "pfb", "ttf", "ttc", "otf", "otc")
|
||||
*xp-psddx-download-fonts: pfa pfb ttf ttc otf otc
|
||||
# xp-psddx-download-font-type defines which font type is used to download outlines
|
||||
# (valid values are "bitmap", "pstype1" and "pstype3")
|
||||
*xp-psddx-download-font-type: pstype1
|
||||
# EOF.
|
||||
5
hw/xprint/config/C/print/models/HPLJ4family/Makefile.am
Normal file
5
hw/xprint/config/C/print/models/HPLJ4family/Makefile.am
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
SUBDIRS = fonts
|
||||
|
||||
xpcdir = @xpconfigdir@/C/print/models/HPLJ4family
|
||||
|
||||
dist_xpc_DATA = model-config
|
||||
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00051.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00051.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00052.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00052.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00053.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00053.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00054.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00054.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00055.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00055.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00056.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00056.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00057.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00057.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00058.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00058.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00059.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00059.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00060.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00060.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00061.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00061.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00062.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00062.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00063.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00063.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00064.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00064.pmf
Normal file
Binary file not shown.
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00065.pmf
Normal file
BIN
hw/xprint/config/C/print/models/HPLJ4family/fonts/9nb00065.pmf
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue