paper.h revision 104862
1111570Sobrien// -*- C++ -*-
2111570Sobrien/* Copyright (C) 2002 Free Software Foundation, Inc.
3111570Sobrien     Written by Werner Lemberg (wl@gnu.org)
4111570Sobrien
5111570SobrienThis file is part of groff.
6111570Sobrien
7111570Sobriengroff is free software; you can redistribute it and/or modify it under
8111570Sobrienthe terms of the GNU General Public License as published by the Free
9111570SobrienSoftware Foundation; either version 2, or (at your option) any later
10111570Sobrienversion.
11111570Sobrien
12111570Sobriengroff is distributed in the hope that it will be useful, but WITHOUT ANY
13111570SobrienWARRANTY; without even the implied warranty of MERCHANTABILITY or
14111570SobrienFITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15111570Sobrienfor more details.
16111570Sobrien
17111570SobrienYou should have received a copy of the GNU General Public License along
18111570Sobrienwith groff; see the file COPYING.  If not, write to the Free Software
19111570SobrienFoundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
20111570Sobrien
21111570Sobrienstruct paper {
22111570Sobrien  char *name;
23111570Sobrien  double length;		// in PS points
24111570Sobrien  double width;			// in PS points
25111570Sobrien};
26111570Sobrien
27111570Sobrien// global constructor
28111570Sobrienstatic class papersize_init {
29111570Sobrien  static int initialised;
30291783Sbdrewerypublic:
31111570Sobrien  papersize_init();
32111570Sobrien} _papersize_init;
33111570Sobrien
34111570Sobrien// A0-A7, B0-B7, C0-C7, D0-D7, 8 American paper sizes, 1 special size */
35111717Sobrien#define NUM_PAPERSIZES 4*8 + 8 + 1
36111717Sobrien
37111717Sobrienextern paper papersizes[];
38111717Sobrien