2 // "$Id: ppdc-mediasize.cxx 11173 2013-07-23 12:31:34Z msweet $"
4 // Shared media size class for the CUPS PPD Compiler.
6 // Copyright 2007-2009 by Apple Inc.
7 // Copyright 2002-2005 by Easy Software Products.
9 // These coded instructions, statements, and computer programs are the
10 // property of Apple Inc. and are protected by Federal copyright
11 // law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 // which should have been included with this file. If this file is
13 // file is missing or damaged, see the license at "http://www.cups.org/".
17 // ppdcMediaSize::ppdcMediaSize() - Create a new media size.
18 // ppdcMediaSize::~ppdcMediaSize() - Destroy a media size.
22 // Include necessary headers...
25 #include "ppdc-private.h"
29 // 'ppdcMediaSize::ppdcMediaSize()' - Create a new media size.
32 ppdcMediaSize::ppdcMediaSize(const char *n, // I - Name of media size
33 const char *t, // I - Text of media size
34 float w, // I - Width in points
35 float l, // I - Length in points
36 float lm, // I - Left margin in points
37 float bm, // I - Bottom margin in points
38 float rm, // I - Right margin in points
39 float tm, // I - Top margin in points
40 const char *sc, // I - PageSize code, if any
41 const char *rc) // I - PageRegion code, if any
46 name = new ppdcString(n);
47 text = new ppdcString(t);
54 size_code = new ppdcString(sc);
55 region_code = new ppdcString(rc);
69 // 'ppdcMediaSize::~ppdcMediaSize()' - Destroy a media size.
72 ppdcMediaSize::~ppdcMediaSize()
79 region_code->release();
84 // End of "$Id: ppdc-mediasize.cxx 11173 2013-07-23 12:31:34Z msweet $".