]>
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 // Licensed under Apache License v2.0. See the file "LICENSE" for more information.
11 // Include necessary headers...
14 #include "ppdc-private.h"
18 // 'ppdcMediaSize::ppdcMediaSize()' - Create a new media size.
21 ppdcMediaSize::ppdcMediaSize(const char *n
, // I - Name of media size
22 const char *t
, // I - Text of media size
23 float w
, // I - Width in points
24 float l
, // I - Length in points
25 float lm
, // I - Left margin in points
26 float bm
, // I - Bottom margin in points
27 float rm
, // I - Right margin in points
28 float tm
, // I - Top margin in points
29 const char *sc
, // I - PageSize code, if any
30 const char *rc
) // I - PageRegion code, if any
35 name
= new ppdcString(n
);
36 text
= new ppdcString(t
);
43 size_code
= new ppdcString(sc
);
44 region_code
= new ppdcString(rc
);
58 // 'ppdcMediaSize::~ppdcMediaSize()' - Destroy a media size.
61 ppdcMediaSize::~ppdcMediaSize()
68 region_code
->release();