1 /*
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
104 import sun.print.SunPageSelection;
105 import sun.print.SunMinMaxPage;
106 import sun.print.Win32MediaTray;
107 import sun.print.Win32PrintService;
108 import sun.print.Win32PrintServiceLookup;
109 import sun.print.ServiceDialog;
110 import sun.print.DialogOwner;
111
112 import java.awt.Frame;
113 import java.io.FilePermission;
114
115 import sun.java2d.Disposer;
116 import sun.java2d.DisposerRecord;
117 import sun.java2d.DisposerTarget;
118
119 /**
120 * A class which initiates and executes a Win32 printer job.
121 *
122 * @author Richard Blanchard
123 */
124 public class WPrinterJob extends RasterPrinterJob implements DisposerTarget {
125
126 /* Class Constants */
127
128
129 /* Instance Variables */
130
131 /**
132 * These are Windows' ExtCreatePen End Cap Styles
133 * and must match the values in <WINGDI.h>
134 */
135 protected static final long PS_ENDCAP_ROUND = 0x00000000;
136 protected static final long PS_ENDCAP_SQUARE = 0x00000100;
137 protected static final long PS_ENDCAP_FLAT = 0x00000200;
138
139 /**
140 * These are Windows' ExtCreatePen Line Join Styles
141 * and must match the values in <WINGDI.h>
142 */
143 protected static final long PS_JOIN_ROUND = 0x00000000;
|
1 /*
2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
104 import sun.print.SunPageSelection;
105 import sun.print.SunMinMaxPage;
106 import sun.print.Win32MediaTray;
107 import sun.print.Win32PrintService;
108 import sun.print.Win32PrintServiceLookup;
109 import sun.print.ServiceDialog;
110 import sun.print.DialogOwner;
111
112 import java.awt.Frame;
113 import java.io.FilePermission;
114
115 import sun.java2d.Disposer;
116 import sun.java2d.DisposerRecord;
117 import sun.java2d.DisposerTarget;
118
119 /**
120 * A class which initiates and executes a Win32 printer job.
121 *
122 * @author Richard Blanchard
123 */
124 @SuppressWarnings("serial") // JDK-implementation class
125 public class WPrinterJob extends RasterPrinterJob implements DisposerTarget {
126
127 /* Class Constants */
128
129
130 /* Instance Variables */
131
132 /**
133 * These are Windows' ExtCreatePen End Cap Styles
134 * and must match the values in <WINGDI.h>
135 */
136 protected static final long PS_ENDCAP_ROUND = 0x00000000;
137 protected static final long PS_ENDCAP_SQUARE = 0x00000100;
138 protected static final long PS_ENDCAP_FLAT = 0x00000200;
139
140 /**
141 * These are Windows' ExtCreatePen Line Join Styles
142 * and must match the values in <WINGDI.h>
143 */
144 protected static final long PS_JOIN_ROUND = 0x00000000;
|