summaryrefslogtreecommitdiff
path: root/libjava/gnu/java/awt/print
diff options
context:
space:
mode:
authorupstream source tree <ports@midipix.org>2015-03-15 20:14:05 -0400
committerupstream source tree <ports@midipix.org>2015-03-15 20:14:05 -0400
commit554fd8c5195424bdbcabf5de30fdc183aba391bd (patch)
tree976dc5ab7fddf506dadce60ae936f43f58787092 /libjava/gnu/java/awt/print
downloadcbb-gcc-4.6.4-554fd8c5195424bdbcabf5de30fdc183aba391bd.tar.bz2
cbb-gcc-4.6.4-554fd8c5195424bdbcabf5de30fdc183aba391bd.tar.xz
obtained gcc-4.6.4.tar.bz2 from upstream website;upstream
verified gcc-4.6.4.tar.bz2.sig; imported gcc-4.6.4 source tree from verified upstream tarball. downloading a git-generated archive based on the 'upstream' tag should provide you with a source tree that is binary identical to the one extracted from the above tarball. if you have obtained the source via the command 'git clone', however, do note that line-endings of files in your working directory might differ from line-endings of the respective files in the upstream repository.
Diffstat (limited to 'libjava/gnu/java/awt/print')
-rw-r--r--libjava/gnu/java/awt/print/JavaPrinterGraphics.h124
-rw-r--r--libjava/gnu/java/awt/print/JavaPrinterJob.h95
-rw-r--r--libjava/gnu/java/awt/print/PostScriptGraphics2D.h211
-rw-r--r--libjava/gnu/java/awt/print/SpooledDocument.h54
4 files changed, 484 insertions, 0 deletions
diff --git a/libjava/gnu/java/awt/print/JavaPrinterGraphics.h b/libjava/gnu/java/awt/print/JavaPrinterGraphics.h
new file mode 100644
index 000000000..780903471
--- /dev/null
+++ b/libjava/gnu/java/awt/print/JavaPrinterGraphics.h
@@ -0,0 +1,124 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_awt_print_JavaPrinterGraphics__
+#define __gnu_java_awt_print_JavaPrinterGraphics__
+
+#pragma interface
+
+#include <java/awt/Graphics.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace awt
+ {
+ namespace print
+ {
+ class JavaPrinterGraphics;
+ class SpooledDocument;
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace awt
+ {
+ class Color;
+ class Font;
+ class FontMetrics;
+ class Graphics;
+ class Image;
+ class Rectangle;
+ class Shape;
+ namespace geom
+ {
+ class AffineTransform;
+ }
+ namespace image
+ {
+ class ImageObserver;
+ }
+ namespace print
+ {
+ class PageFormat;
+ class Pageable;
+ class Printable;
+ class PrinterJob;
+ }
+ }
+ namespace text
+ {
+ class AttributedCharacterIterator;
+ }
+ }
+}
+
+class gnu::java::awt::print::JavaPrinterGraphics : public ::java::awt::Graphics
+{
+
+public:
+ JavaPrinterGraphics(::java::awt::print::PrinterJob *);
+ virtual ::gnu::java::awt::print::SpooledDocument * spoolPostScript(::java::awt::print::Printable *, ::java::awt::print::PageFormat *, ::java::awt::print::Pageable *);
+ virtual jint spoolPage(::java::io::PrintWriter *, ::java::awt::print::Printable *, ::java::awt::print::PageFormat *, jint);
+private:
+ void initImage(::java::awt::print::PageFormat *);
+ void writePSHeader(::java::io::PrintWriter *);
+ void writePage(::java::io::PrintWriter *, ::java::awt::print::PageFormat *);
+ ::java::lang::String * colorTripleHex(jint);
+ void concatCTM(::java::io::PrintWriter *, ::java::awt::geom::AffineTransform *);
+public:
+ virtual ::java::awt::print::PrinterJob * getPrinterJob();
+ virtual void clearRect(jint, jint, jint, jint);
+ virtual void clipRect(jint, jint, jint, jint);
+ virtual void copyArea(jint, jint, jint, jint, jint, jint);
+ virtual ::java::awt::Graphics * create();
+ virtual void dispose();
+ virtual void drawArc(jint, jint, jint, jint, jint, jint);
+ virtual jboolean drawImage(::java::awt::Image *, jint, jint, ::java::awt::Color *, ::java::awt::image::ImageObserver *);
+ virtual jboolean drawImage(::java::awt::Image *, jint, jint, ::java::awt::image::ImageObserver *);
+ virtual jboolean drawImage(::java::awt::Image *, jint, jint, jint, jint, ::java::awt::Color *, ::java::awt::image::ImageObserver *);
+ virtual jboolean drawImage(::java::awt::Image *, jint, jint, jint, jint, ::java::awt::image::ImageObserver *);
+ virtual jboolean drawImage(::java::awt::Image *, jint, jint, jint, jint, jint, jint, jint, jint, ::java::awt::Color *, ::java::awt::image::ImageObserver *);
+ virtual jboolean drawImage(::java::awt::Image *, jint, jint, jint, jint, jint, jint, jint, jint, ::java::awt::image::ImageObserver *);
+ virtual void drawLine(jint, jint, jint, jint);
+ virtual void drawOval(jint, jint, jint, jint);
+ virtual void drawPolygon(JArray< jint > *, JArray< jint > *, jint);
+ virtual void drawPolyline(JArray< jint > *, JArray< jint > *, jint);
+ virtual void drawRoundRect(jint, jint, jint, jint, jint, jint);
+ virtual void drawString(::java::text::AttributedCharacterIterator *, jint, jint);
+ virtual void drawString(::java::lang::String *, jint, jint);
+ virtual void fillArc(jint, jint, jint, jint, jint, jint);
+ virtual void fillOval(jint, jint, jint, jint);
+ virtual void fillPolygon(JArray< jint > *, JArray< jint > *, jint);
+ virtual void fillRect(jint, jint, jint, jint);
+ virtual void fillRoundRect(jint, jint, jint, jint, jint, jint);
+ virtual ::java::awt::Shape * getClip();
+ virtual ::java::awt::Rectangle * getClipBounds();
+ virtual ::java::awt::Color * getColor();
+ virtual ::java::awt::Font * getFont();
+ virtual ::java::awt::FontMetrics * getFontMetrics(::java::awt::Font *);
+ virtual void setClip(jint, jint, jint, jint);
+ virtual void setClip(::java::awt::Shape *);
+ virtual void setColor(::java::awt::Color *);
+ virtual void setFont(::java::awt::Font *);
+ virtual void setPaintMode();
+ virtual void setXORMode(::java::awt::Color *);
+ virtual void translate(jint, jint);
+private:
+ ::java::awt::Graphics * __attribute__((aligned(__alignof__( ::java::awt::Graphics)))) g;
+ ::java::awt::print::PrinterJob * printerJob;
+ static jdouble DPI;
+ jint xSize;
+ jint ySize;
+ ::java::awt::Image * image;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_awt_print_JavaPrinterGraphics__
diff --git a/libjava/gnu/java/awt/print/JavaPrinterJob.h b/libjava/gnu/java/awt/print/JavaPrinterJob.h
new file mode 100644
index 000000000..6275b13e4
--- /dev/null
+++ b/libjava/gnu/java/awt/print/JavaPrinterJob.h
@@ -0,0 +1,95 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_awt_print_JavaPrinterJob__
+#define __gnu_java_awt_print_JavaPrinterJob__
+
+#pragma interface
+
+#include <java/awt/print/PrinterJob.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace awt
+ {
+ namespace print
+ {
+ class JavaPrinterJob;
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace awt
+ {
+ namespace print
+ {
+ class PageFormat;
+ class Pageable;
+ class Printable;
+ }
+ }
+ }
+ namespace javax
+ {
+ namespace print
+ {
+ class DocPrintJob;
+ class PrintService;
+ namespace attribute
+ {
+ class PrintRequestAttributeSet;
+ }
+ }
+ }
+}
+
+class gnu::java::awt::print::JavaPrinterJob : public ::java::awt::print::PrinterJob
+{
+
+public:
+ JavaPrinterJob();
+private:
+ void getPageAttributes();
+public:
+ virtual jint getCopies();
+ virtual void setCopies(jint);
+ virtual ::java::lang::String * getJobName();
+ virtual void setJobName(::java::lang::String *);
+ virtual ::java::lang::String * getUserName();
+ virtual void cancel();
+ virtual jboolean isCancelled();
+ virtual ::java::awt::print::PageFormat * defaultPage(::java::awt::print::PageFormat *);
+ virtual ::java::awt::print::PageFormat * pageDialog(::java::awt::print::PageFormat *);
+ virtual void print();
+ virtual void print(::javax::print::attribute::PrintRequestAttributeSet *);
+ virtual jboolean printDialog();
+ virtual jboolean printDialog(::javax::print::attribute::PrintRequestAttributeSet *);
+ virtual void setPageable(::java::awt::print::Pageable *);
+ virtual void setPrintable(::java::awt::print::Printable *);
+ virtual void setPrintable(::java::awt::print::Printable *, ::java::awt::print::PageFormat *);
+ virtual ::java::awt::print::PageFormat * validatePage(::java::awt::print::PageFormat *);
+ virtual void setPrintService(::javax::print::PrintService *);
+private:
+ ::javax::print::PrintService * __attribute__((aligned(__alignof__( ::java::awt::print::PrinterJob)))) printer;
+ ::javax::print::attribute::PrintRequestAttributeSet * attributes;
+ static JArray< ::javax::print::PrintService * > * services;
+ ::javax::print::DocPrintJob * printJob;
+ ::java::awt::print::Printable * printable;
+ ::java::awt::print::PageFormat * pageFormat;
+ ::java::awt::print::Pageable * pageable;
+ jboolean cancelled;
+ static ::java::lang::Class * copyClass;
+ static ::java::lang::Class * jobNameClass;
+ static ::java::lang::Class * userNameClass;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_awt_print_JavaPrinterJob__
diff --git a/libjava/gnu/java/awt/print/PostScriptGraphics2D.h b/libjava/gnu/java/awt/print/PostScriptGraphics2D.h
new file mode 100644
index 000000000..46011044a
--- /dev/null
+++ b/libjava/gnu/java/awt/print/PostScriptGraphics2D.h
@@ -0,0 +1,211 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_awt_print_PostScriptGraphics2D__
+#define __gnu_java_awt_print_PostScriptGraphics2D__
+
+#pragma interface
+
+#include <java/awt/Graphics2D.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace awt
+ {
+ namespace print
+ {
+ class PostScriptGraphics2D;
+ class SpooledDocument;
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace awt
+ {
+ class Color;
+ class Composite;
+ class Font;
+ class FontMetrics;
+ class Graphics;
+ class GraphicsConfiguration;
+ class Image;
+ class Paint;
+ class Rectangle;
+ class RenderingHints;
+ class RenderingHints$Key;
+ class Shape;
+ class Stroke;
+ namespace font
+ {
+ class FontRenderContext;
+ class GlyphVector;
+ }
+ namespace geom
+ {
+ class AffineTransform;
+ }
+ namespace image
+ {
+ class BufferedImage;
+ class BufferedImageOp;
+ class ImageObserver;
+ class RenderedImage;
+ namespace renderable
+ {
+ class RenderableImage;
+ }
+ }
+ namespace print
+ {
+ class PageFormat;
+ class Pageable;
+ class Printable;
+ class PrinterJob;
+ }
+ }
+ namespace text
+ {
+ class AttributedCharacterIterator;
+ }
+ }
+}
+
+class gnu::java::awt::print::PostScriptGraphics2D : public ::java::awt::Graphics2D
+{
+
+public:
+ PostScriptGraphics2D(::java::awt::print::PrinterJob *);
+ virtual ::gnu::java::awt::print::SpooledDocument * spoolPostScript(::java::awt::print::Printable *, ::java::awt::print::PageFormat *, ::java::awt::print::Pageable *);
+private:
+ void writePSHeader();
+ void setupFonts();
+public:
+ virtual jint spoolPage(::java::io::PrintWriter *, ::java::awt::print::Printable *, ::java::awt::print::PageFormat *, jint);
+private:
+ void pushCTM();
+ void popCTM();
+public:
+ virtual ::java::awt::Graphics * create();
+ virtual void drawOval(jint, jint, jint, jint);
+ virtual void drawPolyline(JArray< jint > *, JArray< jint > *, jint);
+ virtual void drawRoundRect(jint, jint, jint, jint, jint, jint);
+ virtual void fillRoundRect(jint, jint, jint, jint, jint, jint);
+ virtual void drawArc(jint, jint, jint, jint, jint, jint);
+ virtual void fillArc(jint, jint, jint, jint, jint, jint);
+ virtual void fillOval(jint, jint, jint, jint);
+ virtual void fillPolygon(JArray< jint > *, JArray< jint > *, jint);
+ virtual void drawLine(jint, jint, jint, jint);
+ virtual jboolean drawImage(::java::awt::Image *, jint, jint, ::java::awt::Color *, ::java::awt::image::ImageObserver *);
+ virtual jboolean drawImage(::java::awt::Image *, jint, jint, jint, jint, jint, jint, jint, jint, ::java::awt::Color *, ::java::awt::image::ImageObserver *);
+ virtual jboolean drawImage(::java::awt::Image *, jint, jint, jint, jint, jint, jint, jint, jint, ::java::awt::image::ImageObserver *);
+ virtual jboolean drawImage(::java::awt::Image *, jint, jint, ::java::awt::image::ImageObserver *);
+ virtual jboolean drawImage(::java::awt::Image *, jint, jint, jint, jint, ::java::awt::Color *, ::java::awt::image::ImageObserver *);
+ virtual jboolean drawImage(::java::awt::Image *, jint, jint, jint, jint, ::java::awt::image::ImageObserver *);
+ virtual void drawImage(::java::awt::image::BufferedImage *, ::java::awt::image::BufferedImageOp *, jint, jint);
+ virtual jboolean drawImage(::java::awt::Image *, ::java::awt::geom::AffineTransform *, ::java::awt::image::ImageObserver *);
+ virtual void drawRenderableImage(::java::awt::image::renderable::RenderableImage *, ::java::awt::geom::AffineTransform *);
+ virtual void drawRenderedImage(::java::awt::image::RenderedImage *, ::java::awt::geom::AffineTransform *);
+ virtual void drawPolygon(JArray< jint > *, JArray< jint > *, jint);
+ virtual void drawString(::java::lang::String *, jint, jint);
+ virtual void drawString(::java::lang::String *, jfloat, jfloat);
+private:
+ void drawStringPSFont(::java::lang::String *, jfloat, jfloat);
+ void saveAndInvertAxis();
+ void restoreAxis();
+ void drawStringShape(::java::awt::Shape *);
+public:
+ virtual void setColor(::java::awt::Color *);
+ virtual void clearRect(jint, jint, jint, jint);
+ virtual void clipRect(jint, jint, jint, jint);
+ virtual void copyArea(jint, jint, jint, jint, jint, jint);
+ virtual void fillRect(jint, jint, jint, jint);
+ virtual void dispose();
+ virtual void setClip(jint, jint, jint, jint);
+ virtual void setClip(::java::awt::Shape *);
+ virtual ::java::awt::Shape * getClip();
+ virtual ::java::awt::Rectangle * getClipBounds();
+ virtual ::java::awt::Color * getColor();
+ virtual ::java::awt::Font * getFont();
+ virtual ::java::awt::FontMetrics * getFontMetrics();
+ virtual ::java::awt::FontMetrics * getFontMetrics(::java::awt::Font *);
+ virtual void setFont(::java::awt::Font *);
+private:
+ void setPSFont();
+public:
+ virtual void setPaintMode();
+ virtual void setXORMode(::java::awt::Color *);
+ virtual void close();
+ virtual void addRenderingHints(::java::util::Map *);
+private:
+ void writeShape(::java::awt::Shape *);
+public:
+ virtual void clip(::java::awt::Shape *);
+ virtual void draw(::java::awt::Shape *);
+ virtual void drawGlyphVector(::java::awt::font::GlyphVector *, jfloat, jfloat);
+ virtual void drawString(::java::text::AttributedCharacterIterator *, jfloat, jfloat);
+ virtual void drawString(::java::text::AttributedCharacterIterator *, jint, jint);
+ virtual void fill(::java::awt::Shape *);
+ virtual ::java::awt::Color * getBackground();
+ virtual ::java::awt::Composite * getComposite();
+ virtual ::java::awt::GraphicsConfiguration * getDeviceConfiguration();
+ virtual ::java::awt::font::FontRenderContext * getFontRenderContext();
+ virtual ::java::awt::Paint * getPaint();
+ virtual ::java::lang::Object * getRenderingHint(::java::awt::RenderingHints$Key *);
+ virtual ::java::awt::RenderingHints * getRenderingHints();
+ virtual ::java::awt::Stroke * getStroke();
+ virtual ::java::awt::geom::AffineTransform * getTransform();
+ virtual jboolean hit(::java::awt::Rectangle *, ::java::awt::Shape *, jboolean);
+ virtual void setBackground(::java::awt::Color *);
+ virtual void setComposite(::java::awt::Composite *);
+ virtual void setPaint(::java::awt::Paint *);
+private:
+ ::java::lang::String * colorTriple(::java::awt::Color *);
+ ::java::lang::String * colorTripleHex(::java::awt::Color *);
+ void writeGradient();
+public:
+ virtual void setRenderingHint(::java::awt::RenderingHints$Key *, ::java::lang::Object *);
+ virtual void setRenderingHints(::java::util::Map *);
+ virtual void setStroke(::java::awt::Stroke *);
+private:
+ void concatCTM(::java::awt::geom::AffineTransform *);
+public:
+ virtual void setTransform(::java::awt::geom::AffineTransform *);
+ virtual void transform(::java::awt::geom::AffineTransform *);
+ virtual void shear(jdouble, jdouble);
+ virtual void translate(jint, jint);
+ virtual void translate(jdouble, jdouble);
+ virtual void rotate(jdouble);
+ virtual void rotate(jdouble, jdouble, jdouble);
+ virtual void scale(jdouble, jdouble);
+private:
+ ::java::awt::print::PrinterJob * __attribute__((aligned(__alignof__( ::java::awt::Graphics2D)))) printerJob;
+ ::java::io::PrintWriter * out;
+ ::java::awt::geom::AffineTransform * currentTransform;
+ ::java::awt::geom::AffineTransform * pageTransform;
+ ::java::awt::RenderingHints * renderingHints;
+ ::java::awt::Paint * currentPaint;
+ ::java::awt::Shape * clipShape;
+ ::java::awt::Font * currentFont;
+ ::java::awt::Color * currentColor;
+ ::java::awt::Color * backgroundColor;
+ ::java::awt::Stroke * currentStroke;
+ static ::java::awt::Stroke * ordinaryStroke;
+ jfloat cx;
+ jfloat cy;
+ jboolean currentFontIsPS;
+ jdouble pageX;
+ jdouble pageY;
+ jdouble Y;
+ jboolean gradientOn;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_awt_print_PostScriptGraphics2D__
diff --git a/libjava/gnu/java/awt/print/SpooledDocument.h b/libjava/gnu/java/awt/print/SpooledDocument.h
new file mode 100644
index 000000000..a49bb14c1
--- /dev/null
+++ b/libjava/gnu/java/awt/print/SpooledDocument.h
@@ -0,0 +1,54 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_awt_print_SpooledDocument__
+#define __gnu_java_awt_print_SpooledDocument__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace awt
+ {
+ namespace print
+ {
+ class SpooledDocument;
+ }
+ }
+ }
+ }
+ namespace javax
+ {
+ namespace print
+ {
+ class DocFlavor;
+ namespace attribute
+ {
+ class DocAttributeSet;
+ }
+ }
+ }
+}
+
+class gnu::java::awt::print::SpooledDocument : public ::java::lang::Object
+{
+
+public:
+ SpooledDocument(::java::io::File *);
+ virtual ::javax::print::attribute::DocAttributeSet * getAttributes();
+ virtual ::javax::print::DocFlavor * getDocFlavor();
+ virtual ::java::lang::Object * getPrintData();
+ virtual ::java::io::Reader * getReaderForText();
+ virtual ::java::io::InputStream * getStreamForBytes();
+private:
+ ::java::io::FileInputStream * __attribute__((aligned(__alignof__( ::java::lang::Object)))) fis;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_awt_print_SpooledDocument__