/contrib/groff/src/include/paper.h

https://bitbucket.org/freebsd/freebsd-head/ · C++ Header · 37 lines · 12 code · 4 blank · 21 comment · 0 complexity · 677febe41852f9685463779393be36c2 MD5 · raw file

  1. // -*- C++ -*-
  2. /* Copyright (C) 2002 Free Software Foundation, Inc.
  3. Written by Werner Lemberg (wl@gnu.org)
  4. This file is part of groff.
  5. groff is free software; you can redistribute it and/or modify it under
  6. the terms of the GNU General Public License as published by the Free
  7. Software Foundation; either version 2, or (at your option) any later
  8. version.
  9. groff is distributed in the hope that it will be useful, but WITHOUT ANY
  10. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  12. for more details.
  13. You should have received a copy of the GNU General Public License along
  14. with groff; see the file COPYING. If not, write to the Free Software
  15. Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA. */
  16. struct paper {
  17. char *name;
  18. double length; // in PS points
  19. double width; // in PS points
  20. };
  21. // global constructor
  22. static class papersize_init {
  23. static int initialised;
  24. public:
  25. papersize_init();
  26. } _papersize_init;
  27. // A0-A7, B0-B7, C0-C7, D0-D7, 8 American paper sizes, 1 special size */
  28. #define NUM_PAPERSIZES 4*8 + 8 + 1
  29. extern paper papersizes[];