]>
git.ipfire.org Git - thirdparty/cups.git/blob - ppdc/ppdc-attr.cxx
996e986ab52e6751a36105cb78cc20b66fc8c882
2 // Attribute class for the CUPS PPD Compiler.
4 // Copyright 2007-2009 by Apple Inc.
5 // Copyright 2002-2005 by Easy Software Products.
7 // These coded instructions, statements, and computer programs are the
8 // property of Apple Inc. and are protected by Federal copyright
9 // law. Distribution and use rights are outlined in the file "LICENSE.txt"
10 // which should have been included with this file. If this file is
11 // file is missing or damaged, see the license at "http://www.cups.org/".
15 // Include necessary headers...
18 #include "ppdc-private.h"
22 // 'ppdcAttr::ppdcAttr()' - Create an attribute.
25 ppdcAttr::ppdcAttr(const char *n
, // I - Name
26 const char *s
, // I - Spec string
27 const char *t
, // I - Human-readable text
28 const char *v
, // I - Value
29 bool loc
) // I - Localize this attribute?
34 name
= new ppdcString(n
);
35 selector
= new ppdcString(s
);
36 text
= new ppdcString(t
);
37 value
= new ppdcString(v
);
43 // 'ppdcAttr::~ppdcAttr()' - Destroy an attribute.