paper.h revision 104862
1104862Sru// -*- C++ -*- 2104862Sru/* Copyright (C) 2002 Free Software Foundation, Inc. 3104862Sru Written by Werner Lemberg (wl@gnu.org) 4104862Sru 5104862SruThis file is part of groff. 6104862Sru 7104862Srugroff is free software; you can redistribute it and/or modify it under 8104862Sruthe terms of the GNU General Public License as published by the Free 9104862SruSoftware Foundation; either version 2, or (at your option) any later 10104862Sruversion. 11104862Sru 12104862Srugroff is distributed in the hope that it will be useful, but WITHOUT ANY 13104862SruWARRANTY; without even the implied warranty of MERCHANTABILITY or 14104862SruFITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 15104862Srufor more details. 16104862Sru 17104862SruYou should have received a copy of the GNU General Public License along 18104862Sruwith groff; see the file COPYING. If not, write to the Free Software 19104862SruFoundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 20104862Sru 21104862Srustruct paper { 22104862Sru char *name; 23104862Sru double length; // in PS points 24104862Sru double width; // in PS points 25104862Sru}; 26104862Sru 27104862Sru// global constructor 28104862Srustatic class papersize_init { 29104862Sru static int initialised; 30104862Srupublic: 31104862Sru papersize_init(); 32104862Sru} _papersize_init; 33104862Sru 34104862Sru// A0-A7, B0-B7, C0-C7, D0-D7, 8 American paper sizes, 1 special size */ 35104862Sru#define NUM_PAPERSIZES 4*8 + 8 + 1 36104862Sru 37104862Sruextern paper papersizes[]; 38