Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVeronika Irvine2001-06-21 15:16:50 +0000
committerVeronika Irvine2001-06-21 15:16:50 +0000
commit6c0e3d76ce668620fd159ac504e2b5d9a48852be (patch)
tree28ec743469ad12010dec20832bd1d5c1a3d72d8a /bundles/org.eclipse.swt/Eclipse SWT Printing/photon/org/eclipse/swt/printing/Printer.java
parent3fb799dcaa7d449679ed92f9829fbed85aa6fd1d (diff)
downloadeclipse.platform.swt-6c0e3d76ce668620fd159ac504e2b5d9a48852be.tar.gz
eclipse.platform.swt-6c0e3d76ce668620fd159ac504e2b5d9a48852be.tar.xz
eclipse.platform.swt-6c0e3d76ce668620fd159ac504e2b5d9a48852be.zip
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Printing/photon/org/eclipse/swt/printing/Printer.java')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Printing/photon/org/eclipse/swt/printing/Printer.java86
1 files changed, 86 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Printing/photon/org/eclipse/swt/printing/Printer.java b/bundles/org.eclipse.swt/Eclipse SWT Printing/photon/org/eclipse/swt/printing/Printer.java
new file mode 100755
index 0000000000..5e4b1952e0
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Printing/photon/org/eclipse/swt/printing/Printer.java
@@ -0,0 +1,86 @@
+package org.eclipse.swt.printing;
+
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved
+ */
+
+import org.eclipse.swt.*;
+import org.eclipse.swt.graphics.*;
+import org.eclipse.swt.internal.*;
+import org.eclipse.swt.internal.photon.*;
+
+public final class Printer extends Device {
+ PrinterData data;
+ int printContext, xScreen, xDrawable;
+ int defaultFontList;
+
+public static PrinterData[] getPrinterList() {
+ PrinterData printerList[] = new PrinterData[0];
+ return printerList;
+}
+
+static PrinterData getDefaultPrinterData() {
+ /* Use the first printer in the list as the default */
+ PrinterData[] list = getPrinterList();
+ if (list.length == 0) {
+ /* no printers */
+ SWT.error(SWT.ERROR_NO_HANDLES);
+ }
+ return list[0];
+}
+
+public Printer() {
+ this(getDefaultPrinterData());
+}
+
+public Printer(PrinterData data) {
+ super(data);
+}
+
+
+public int internal_new_GC(GCData data) {
+ return 0;
+}
+
+public void internal_dispose_GC(int xGC, GCData data) {
+}
+
+public boolean startJob(String jobName) {
+ return true;
+}
+
+public void endJob() {
+}
+
+public void cancelJob() {
+}
+
+public boolean startPage() {
+ return true;
+}
+
+public void endPage() {
+}
+
+public Point getDPI() {
+ return new Point(0, 0);
+}
+
+public Rectangle getBounds() {
+ return null;
+}
+
+public Rectangle getClientArea() {
+ return null;
+}
+
+public Rectangle computeTrim(int x, int y, int width, int height) {
+ return new Rectangle(0,0,0,0);
+}
+
+public PrinterData getPrinterData() {
+ return data;
+}
+
+}

Back to the top