2 * $XConsortium: PrintMgr.hh /main/6 1996/12/06 14:44:18 rcs $
4 * Copyright (c) 1993 HAL Computer Systems International, Ltd.
5 * All rights reserved. Unpublished -- rights reserved under
6 * the Copyright Laws of the United States. USE OF A COPYRIGHT
7 * NOTICE IS PRECAUTIONARY ONLY AND DOES NOT IMPLY PUBLICATION
10 * THIS SOFTWARE CONTAINS CONFIDENTIAL INFORMATION AND TRADE
11 * SECRETS OF HAL COMPUTER SYSTEMS INTERNATIONAL, LTD. USE,
12 * DISCLOSURE, OR REPRODUCTION IS PROHIBITED WITHOUT THE
13 * PRIOR EXPRESS WRITTEN PERMISSION OF HAL COMPUTER SYSTEMS
16 * RESTRICTED RIGHTS LEGEND
17 * Use, duplication, or disclosure by the Government is subject
18 * to the restrictions as set forth in subparagraph (c)(l)(ii)
19 * of the Rights in Technical Data and Computer Software clause
20 * at DFARS 252.227-7013.
22 * HAL COMPUTER SYSTEMS INTERNATIONAL, LTD.
26 * (c) Copyright 1996 Digital Equipment Corporation.
27 * (c) Copyright 1996 Hewlett-Packard Company.
28 * (c) Copyright 1996 International Business Machines Corp.
29 * (c) Copyright 1996 Sun Microsystems, Inc.
30 * (c) Copyright 1996 Novell, Inc.
31 * (c) Copyright 1996 FUJITSU LIMITED.
32 * (c) Copyright 1996 Hitachi.
38 class PrintPanelAgent;
41 // print_handle is used the BitHandle used by the PrintPanelAgent to determine
42 // which nodes to print
43 // standard_print_handle is a BitHandle reserved by the PrintMgr so that
44 // something may set that bit handle in the Library outline list to indicate
45 // it is for printing. Then the print_handle() is set to this...
48 // Example: if we are printing selected from an OutlineListView, then the
49 // display bit handle of the OLV is set in the PrintMgr before calling
51 // If we just wish to print one node, then we can get the standard BitHandle
52 // from the PrintMgr, set it on in the node we wish to print (in the library
55 // print_handle(standard_print_handle());
59 template <class T> class xList;
61 class PrintMgr : public Long_Lived
67 void print(UAS_Pointer<UAS_Common> &node_ptr);
69 NodeViewInfo *load(UAS_Pointer<UAS_Common> &node_ptr);
70 // for old style.sheet
71 void set_font_scale(int);
74 PrintPanelAgent * f_print_panel;
75 NodePrintAgent * f_npa;
76 UAS_Pointer<UAS_Common> f_last_printed;
77 int f_font_scale ; // for old style.sheet
80 LONG_LIVED_HH(PrintMgr,print_mgr);