paper.h revision 151497
114571Schegar// -*- C++ -*-
214571Schegar/* Copyright (C) 2002 Free Software Foundation, Inc.
314571Schegar     Written by Werner Lemberg (wl@gnu.org)
414571Schegar
514571SchegarThis file is part of groff.
614571Schegar
714571Schegargroff is free software; you can redistribute it and/or modify it under
814571Schegarthe terms of the GNU General Public License as published by the Free
914571SchegarSoftware Foundation; either version 2, or (at your option) any later
1014571Schegarversion.
1114571Schegar
1214571Schegargroff is distributed in the hope that it will be useful, but WITHOUT ANY
1314571SchegarWARRANTY; without even the implied warranty of MERCHANTABILITY or
1414571SchegarFITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1514571Schegarfor more details.
1614571Schegar
1714571SchegarYou should have received a copy of the GNU General Public License along
1814571Schegarwith groff; see the file COPYING.  If not, write to the Free Software
1914571SchegarFoundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA. */
2014571Schegar
2114571Schegarstruct paper {
2214571Schegar  char *name;
2314571Schegar  double length;		// in PS points
2414571Schegar  double width;			// in PS points
2514571Schegar};
2613901Salanb
2713901Salanb// global constructor
2813901Salanbstatic class papersize_init {
2913901Salanb  static int initialised;
3013901Salanbpublic:
3113901Salanb  papersize_init();
3213901Salanb} _papersize_init;
3313901Salanb
3414977Sjlaskey// A0-A7, B0-B7, C0-C7, D0-D7, 8 American paper sizes, 1 special size */
3513901Salanb#define NUM_PAPERSIZES 4*8 + 8 + 1
3614977Sjlaskey
3714977Sjlaskeyextern paper papersizes[];
3813901Salanb