home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / printing / ghostscrip / source / _gs / h / gp_arc < prev    next >
Encoding:
Text File  |  1991-12-05  |  2.2 KB  |  53 lines

  1. /* Copyright (C) 1991 David Elworthy.  All rights reserved.
  2.    Distributed by Free Software Foundation, Inc.
  3.  
  4. This file is part of Ghostscript.
  5.  
  6. Ghostscript is distributed in the hope that it will be useful, but
  7. WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. to anyone for the consequences of using it or for whether it serves any
  9. particular purpose or works at all, unless he says so in writing.  Refer
  10. to the Ghostscript General Public License for full details.
  11.  
  12. Everyone is granted permission to copy, modify and redistribute
  13. Ghostscript, but only under the conditions described in the Ghostscript
  14. General Public License.  A copy of this license is supposed to have been
  15. given to you along with Ghostscript so you can know your rights and
  16. responsibilities.  It should be in a file named COPYING.  Among other
  17. things, the copyright notice and this notice must be preserved on all
  18. copies.  */
  19.  
  20. /* gp_arc.h */
  21.  
  22. /* Ghostscript for Acorn Archimedes (RISC OS): user interface header */
  23. /* The idea of this is that it can be used regardless of whether the
  24.    Archimedes sprite output device is used or not.
  25.    The menus handled here deal with all the driver independent functions.
  26.    There is in addition a menu entry for device specific options, which
  27.    will cause the function registered by gp_arc_device_menu to be called.
  28.    If this function is NULL, then the menu entry is greyed out.
  29.  */
  30.  
  31. /* Global data. The device driver should look at gp_arc_fast, and if it is
  32.    TRUE, then call wimpc_checkpoint, to allow for some multitasking.
  33.  */
  34. extern BOOL gp_arc_fast; /* Are we in fast mode? */
  35.  
  36.  
  37. /* Function to register the device options menu handler. This gets called
  38.    when there is a hit on the device options submenu. The specified handle,
  39.    and the whole of the hit string are passed to it.
  40.    If it returns FALSE, we assume that something awful has happened, and
  41.    try to quit.
  42. */
  43.  
  44. typedef BOOL (*gp_arc_menu_fn)(void *handle, char *hit);
  45. extern void gp_arc_device_menu(gp_arc_menu_fn f, void *handle);
  46.  
  47. #if (0)
  48. /* Sometimes it may be necessary to disable the menus. Calling this function
  49.    allows just that. enable = TRUE enables them.
  50. */
  51. extern void gp_arc_enable_menus(BOOL enable);
  52. #endif
  53.