]>
git.ipfire.org Git - thirdparty/cups.git/blob - ppdc/ppdc-mediasize.cxx
2 // Shared media size 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 // missing or damaged, see the license at "http://www.cups.org/".
15 // Include necessary headers...
18 #include "ppdc-private.h"
22 // 'ppdcMediaSize::ppdcMediaSize()' - Create a new media size.
25 ppdcMediaSize::ppdcMediaSize(const char *n
, // I - Name of media size
26 const char *t
, // I - Text of media size
27 float w
, // I - Width in points
28 float l
, // I - Length in points
29 float lm
, // I - Left margin in points
30 float bm
, // I - Bottom margin in points
31 float rm
, // I - Right margin in points
32 float tm
, // I - Top margin in points
33 const char *sc
, // I - PageSize code, if any
34 const char *rc
) // I - PageRegion code, if any
39 name
= new ppdcString(n
);
40 text
= new ppdcString(t
);
47 size_code
= new ppdcString(sc
);
48 region_code
= new ppdcString(rc
);
62 // 'ppdcMediaSize::~ppdcMediaSize()' - Destroy a media size.
65 ppdcMediaSize::~ppdcMediaSize()
72 region_code
->release();