diff options
| author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-16 01:27:14 +0000 |
|---|---|---|
| committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-16 01:27:14 +0000 |
| commit | a63c2657c94913d72b3cd388730d61edcb09fc69 (patch) | |
| tree | 8762d1f992e2f725a6bde1ff966ed6f1e5f4f823 /libjava/javax/print/event | |
| parent | 6484dceb0094998183c2f8d3c8c27c6f4e53b8a9 (diff) | |
| download | ppe42-gcc-a63c2657c94913d72b3cd388730d61edcb09fc69.tar.gz ppe42-gcc-a63c2657c94913d72b3cd388730d61edcb09fc69.zip | |
Major merge with Classpath.
Removed many duplicate files.
* HACKING: Updated.x
* classpath: Imported new directory.
* standard.omit: New file.
* Makefile.in, aclocal.m4, configure: Rebuilt.
* sources.am: New file.
* configure.ac: Run Classpath configure script. Moved code around
to support. Disable xlib AWT peers (temporarily).
* Makefile.am (SUBDIRS): Added 'classpath'
(JAVAC): Removed.
(AM_CPPFLAGS): Added more -I options.
(BOOTCLASSPATH): Simplified.
Completely redid how sources are built.
Include sources.am.
* include/Makefile.am (tool_include__HEADERS): Removed jni.h.
* include/jni.h: Removed (in Classpath).
* scripts/classes.pl: Updated to look at built classes.
* scripts/makemake.tcl: New file.
* testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Added
-I options.
(gcj_jni_invocation_compile_c_to_binary): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102082 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/javax/print/event')
| -rw-r--r-- | libjava/javax/print/event/PrintEvent.java | 67 | ||||
| -rw-r--r-- | libjava/javax/print/event/PrintJobAdapter.java | 117 | ||||
| -rw-r--r-- | libjava/javax/print/event/PrintJobAttributeEvent.java | 85 | ||||
| -rw-r--r-- | libjava/javax/print/event/PrintJobAttributeListener.java | 52 | ||||
| -rw-r--r-- | libjava/javax/print/event/PrintJobEvent.java | 90 | ||||
| -rw-r--r-- | libjava/javax/print/event/PrintJobListener.java | 87 | ||||
| -rw-r--r-- | libjava/javax/print/event/PrintServiceAttributeEvent.java | 83 | ||||
| -rw-r--r-- | libjava/javax/print/event/PrintServiceAttributeListener.java | 52 |
8 files changed, 0 insertions, 633 deletions
diff --git a/libjava/javax/print/event/PrintEvent.java b/libjava/javax/print/event/PrintEvent.java deleted file mode 100644 index cbf93852cc5..00000000000 --- a/libjava/javax/print/event/PrintEvent.java +++ /dev/null @@ -1,67 +0,0 @@ -/* PrintEvent.java -- - Copyright (C) 2004 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -General Public License for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - -package javax.print.event; - -import java.util.EventObject; - - -/** - * @author Michael Koch (konqueror@gmx.de) - */ -public class PrintEvent extends EventObject -{ - /** - * Constructs a <code>PrintEvent</code> object. - * - * @param source the source of this event - */ - public PrintEvent(Object source) - { - super(source); - } - - /** - * Returns a string representation of this object. - * - * @return the string representation - */ - public String toString() - { - return "PrintEvent on " + getSource().toString(); - } -} diff --git a/libjava/javax/print/event/PrintJobAdapter.java b/libjava/javax/print/event/PrintJobAdapter.java deleted file mode 100644 index 3615108f93a..00000000000 --- a/libjava/javax/print/event/PrintJobAdapter.java +++ /dev/null @@ -1,117 +0,0 @@ -/* PrintJobAdapter.java -- - Copyright (C) 2004 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -General Public License for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - -package javax.print.event; - - -/** - * @author Michael Koch (konqueror@gmx.de) - */ -public abstract class PrintJobAdapter - implements PrintJobListener -{ - /** - * Constructs a <code>PrintJobAdapter</code> object. - */ - public PrintJobAdapter() - { - // Do nothing here. - } - - /** - * Called to notify the client that all data has bin successfully transferred - * to the print service. - * - * <p>The default implementation does nothing</p> - */ - public void printDataTransferCompleted(PrintJobEvent event) - { - // Do nothing here. - } - - /** - * Called to notify the client that a print job was canceled. - * - * <p>The default implementation does nothing</p> - */ - public void printJobCanceled(PrintJobEvent event) - { - // Do nothing here. - } - - /** - * Called to notify the client that a print job was successfully completed. - * - * <p>The default implementation does nothing</p> - */ - public void printJobCompleted(PrintJobEvent event) - { - // Do nothing here. - } - - /** - * Called to notify the client that a print job failed to complete - * successfully. - * - * <p>The default implementation does nothing</p> - */ - public void printJobFailed(PrintJobEvent event) - { - // Do nothing here. - } - - /** - * Called to notify the client that no more job events will be send. - * - * <p>The default implementation does nothing</p> - */ - public void printJobNoMoreEvents(PrintJobEvent event) - { - // Do nothing here. - } - - /** - * Called to notify the client that a problem occured during printing - * but the user may be able to fix it. - * - * <p>The default implementation does nothing</p> - */ - public void printJobRequiresAttention(PrintJobEvent event) - { - // Do nothing here. - } -} diff --git a/libjava/javax/print/event/PrintJobAttributeEvent.java b/libjava/javax/print/event/PrintJobAttributeEvent.java deleted file mode 100644 index 0914aea9f4b..00000000000 --- a/libjava/javax/print/event/PrintJobAttributeEvent.java +++ /dev/null @@ -1,85 +0,0 @@ -/* PrintJobAttributeEvent.java -- - Copyright (C) 2004 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -General Public License for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - -package javax.print.event; - -import javax.print.DocPrintJob; -import javax.print.attribute.PrintJobAttributeSet; - - -/** - * @author Michael Koch (konqueror@gmx.de) - */ -public class PrintJobAttributeEvent extends PrintEvent -{ - private static final long serialVersionUID = -6534469883874742101L; - - private PrintJobAttributeSet attributes; - - /** - * Constructs a <code>PrintJobAttributeEvent</code> object. - * - * @param source the source of this event - * @param attributes the attribute changes being reported - */ - public PrintJobAttributeEvent(DocPrintJob source, - PrintJobAttributeSet attributes) - { - super(source); - this.attributes = attributes; - } - - /** - * Returns the print job generating this event. - * - * @return the print job - */ - public DocPrintJob getPrintJob() - { - return (DocPrintJob) getSource(); - } - - /** - * Returns the attributes that changed and their new values. - * - * @return the changes attributes - */ - public PrintJobAttributeSet getAttributes() - { - return attributes; - } -} diff --git a/libjava/javax/print/event/PrintJobAttributeListener.java b/libjava/javax/print/event/PrintJobAttributeListener.java deleted file mode 100644 index ee816d22a1c..00000000000 --- a/libjava/javax/print/event/PrintJobAttributeListener.java +++ /dev/null @@ -1,52 +0,0 @@ -/* PrintJobAttributeListener.java -- - Copyright (C) 2004 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -General Public License for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - -package javax.print.event; - - -/** - * @author Michael Koch (konqueror@gmx.de) - */ -public interface PrintJobAttributeListener -{ - /** - * Notifies the listener of an attribute change. - * - * @param event the event - */ - void attributeUpdate(PrintJobAttributeEvent event); -} diff --git a/libjava/javax/print/event/PrintJobEvent.java b/libjava/javax/print/event/PrintJobEvent.java deleted file mode 100644 index c4b7cd6f942..00000000000 --- a/libjava/javax/print/event/PrintJobEvent.java +++ /dev/null @@ -1,90 +0,0 @@ -/* PrintEvent.java -- - Copyright (C) 2004 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -General Public License for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - -package javax.print.event; - -import javax.print.DocPrintJob; - - -/** - * @author Michael Koch (konqueror@gmx.de) - */ -public class PrintJobEvent extends PrintEvent -{ - private static final long serialVersionUID = -1711656903622072997L; - - public static final int DATA_TRANSFER_COMPLETE = 106; - public static final int JOB_CANCELED = 101; - public static final int JOB_COMPLETE = 102; - public static final int JOB_FAILED = 103; - public static final int NO_MORE_EVENTS = 105; - public static final int REQUIRES_ATTENTION = 104; - - private int reason; - - /** - * Constructs a <code>PrintJobEvent</code> object. - * - * @param source the source generating this event - * @param reason the reason for this event - */ - public PrintJobEvent(DocPrintJob source, int reason) - { - super(source); - this.reason = reason; - } - - /** - * Returns the reason for this event. - * - * @return the reason - */ - public int getPrintEventType() - { - return reason; - } - - /** - * Returns the print job that generated this event. - * - * @return the print job - */ - public DocPrintJob getPrintJob() - { - return (DocPrintJob) getSource(); - } -} diff --git a/libjava/javax/print/event/PrintJobListener.java b/libjava/javax/print/event/PrintJobListener.java deleted file mode 100644 index d1dcf42be71..00000000000 --- a/libjava/javax/print/event/PrintJobListener.java +++ /dev/null @@ -1,87 +0,0 @@ -/* PrintJobListener.java -- - Copyright (C) 2004 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -General Public License for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - -package javax.print.event; - - -/** - * @author Michael Koch (konqueror@gmx.de) */ -public interface PrintJobListener -{ - /** - * Notifies the listener that all data has been successfully transferred - * to the print service. - * - * @param event the event - */ - void printDataTransferCompleted(PrintJobEvent event); - - /** - * Notifies the listener that a print job got canceled. - * - * @param event the event - */ - void printJobCanceled(PrintJobEvent event); - - /** - * Notifies the listener that a print job has completed. - * - * @param event the event - */ - void printJobCompleted(PrintJobEvent event); - - /** - * Notifies the listener that a print job has failed to complete. - * - * @param event the event. - */ - void printJobFailed(PrintJobEvent event); - - /** - * Notifies the listener that no more events will be delivered. - * - * @param event the event - */ - void printJobNoMoreEvents(PrintJobEvent event); - - /** - * Notifies the listener that an error occured and the user might be able to fix it. - * - * @param event the event - */ - void printJobRequiresAttention(PrintJobEvent event); -} diff --git a/libjava/javax/print/event/PrintServiceAttributeEvent.java b/libjava/javax/print/event/PrintServiceAttributeEvent.java deleted file mode 100644 index d3981747fa8..00000000000 --- a/libjava/javax/print/event/PrintServiceAttributeEvent.java +++ /dev/null @@ -1,83 +0,0 @@ -/* PrintServiceAttributeEvent.java -- - Copyright (C) 2004 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -General Public License for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - -package javax.print.event; - -import javax.print.PrintService; -import javax.print.attribute.PrintServiceAttributeSet; - - -/** - * @author Michael Koch (konqueror@gmx.de) - */ -public class PrintServiceAttributeEvent extends PrintEvent -{ - private PrintServiceAttributeSet attributes; - - /** - * Constructs a <code>PrintServiceAttributeEvent</code> object. - * - * @param source the source of this event - * @param attributes the attribute changes being reported - */ - public PrintServiceAttributeEvent(PrintService source, - PrintServiceAttributeSet attributes) - { - super(source); - this.attributes = attributes; - } - - /** - * Returns the print service that generated this event. - * - * @return the print service - */ - public PrintService getPrintService() - { - return (PrintService) getSource(); - } - - /** - * Returns the changed attributes this event reports. - * - * @return the changed attributes - */ - public PrintServiceAttributeSet getAttributes() - { - return attributes; - } -} diff --git a/libjava/javax/print/event/PrintServiceAttributeListener.java b/libjava/javax/print/event/PrintServiceAttributeListener.java deleted file mode 100644 index e43d9ad65ee..00000000000 --- a/libjava/javax/print/event/PrintServiceAttributeListener.java +++ /dev/null @@ -1,52 +0,0 @@ -/* PrintServiceAttributeListener.java -- - Copyright (C) 2004 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -General Public License for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - -package javax.print.event; - - -/** - * @author Michael Koch (konqueror@gmx.de) - */ -public interface PrintServiceAttributeListener -{ - /** - * Notifies the listener that some attributes have changed. - * - * @param event the event - */ - void attributeUpdate(PrintServiceAttributeEvent event); -} |

