Merge jv
authorJan Vrany <jan.vrany@fit.cvut.cz>
Fri, 29 Jul 2016 21:43:13 +0100
branchjv
changeset 3720 f27814c1b52a
parent 3708 108b53ed090f (current diff)
parent 3719 a36b0c184dcb (diff)
child 3722 6d604bcf36f3
Merge
PrinterContext.st
WinPrinterContext.st
bc.mak
--- a/Make.proto	Tue Jul 19 07:10:19 2016 +0200
+++ b/Make.proto	Fri Jul 29 21:43:13 2016 +0100
@@ -163,9 +163,9 @@
 
 
 # BEGINMAKEDEPEND --- do not remove this line; make depend needs it
-$(OUTDIR)ActiveHelpView.$(O) ActiveHelpView.$(C) ActiveHelpView.$(H): ActiveHelpView.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libview/DeviceGraphicsContext.$(H) $(INCLUDE_TOP)/stx/libview/DisplaySurface.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsContext.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsMedium.$(H) $(INCLUDE_TOP)/stx/libview/SimpleView.$(H) $(INCLUDE_TOP)/stx/libview/View.$(H) $(STCHDR)
-$(OUTDIR)ApplicationSubView.$(O) ApplicationSubView.$(C) ApplicationSubView.$(H): ApplicationSubView.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libview/DeviceGraphicsContext.$(H) $(INCLUDE_TOP)/stx/libview/DisplaySurface.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsContext.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsMedium.$(H) $(INCLUDE_TOP)/stx/libview/SimpleView.$(H) $(INCLUDE_TOP)/stx/libview/View.$(H) $(STCHDR)
-$(OUTDIR)ApplicationWindow.$(O) ApplicationWindow.$(C) ApplicationWindow.$(H): ApplicationWindow.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libview/DeviceGraphicsContext.$(H) $(INCLUDE_TOP)/stx/libview/DisplaySurface.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsContext.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsMedium.$(H) $(INCLUDE_TOP)/stx/libview/SimpleView.$(H) $(INCLUDE_TOP)/stx/libview/StandardSystemView.$(H) $(INCLUDE_TOP)/stx/libview/TopView.$(H) $(INCLUDE_TOP)/stx/libview/View.$(H) $(STCHDR)
+$(OUTDIR)ActiveHelpView.$(O) ActiveHelpView.$(C) ActiveHelpView.$(H): ActiveHelpView.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libview/DisplaySurface.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsMedium.$(H) $(INCLUDE_TOP)/stx/libview/SimpleView.$(H) $(INCLUDE_TOP)/stx/libview/View.$(H) $(STCHDR)
+$(OUTDIR)ApplicationSubView.$(O) ApplicationSubView.$(C) ApplicationSubView.$(H): ApplicationSubView.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libview/DisplaySurface.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsMedium.$(H) $(INCLUDE_TOP)/stx/libview/SimpleView.$(H) $(INCLUDE_TOP)/stx/libview/View.$(H) $(STCHDR)
+$(OUTDIR)ApplicationWindow.$(O) ApplicationWindow.$(C) ApplicationWindow.$(H): ApplicationWindow.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libview/DisplaySurface.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsMedium.$(H) $(INCLUDE_TOP)/stx/libview/SimpleView.$(H) $(INCLUDE_TOP)/stx/libview/StandardSystemView.$(H) $(INCLUDE_TOP)/stx/libview/TopView.$(H) $(INCLUDE_TOP)/stx/libview/View.$(H) $(STCHDR)
 $(OUTDIR)ColorValue.$(O) ColorValue.$(C) ColorValue.$(H): ColorValue.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libview/Color.$(H) $(STCHDR)
 $(OUTDIR)DisplayObject.$(O) DisplayObject.$(C) DisplayObject.$(H): DisplayObject.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
 $(OUTDIR)DragAndDropManager.$(O) DragAndDropManager.$(C) DragAndDropManager.$(H): DragAndDropManager.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
@@ -176,12 +176,12 @@
 $(OUTDIR)DropSource.$(O) DropSource.$(C) DropSource.$(H): DropSource.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
 $(OUTDIR)DropTarget.$(O) DropTarget.$(C) DropTarget.$(H): DropTarget.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
 $(OUTDIR)EventListener.$(O) EventListener.$(C) EventListener.$(H): EventListener.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
-$(OUTDIR)ExternalTopView.$(O) ExternalTopView.$(C) ExternalTopView.$(H): ExternalTopView.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libview/DeviceGraphicsContext.$(H) $(INCLUDE_TOP)/stx/libview/DisplaySurface.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsContext.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsMedium.$(H) $(INCLUDE_TOP)/stx/libview/SimpleView.$(H) $(INCLUDE_TOP)/stx/libview/TopView.$(H) $(INCLUDE_TOP)/stx/libview/View.$(H) $(STCHDR)
+$(OUTDIR)ExternalTopView.$(O) ExternalTopView.$(C) ExternalTopView.$(H): ExternalTopView.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libview/DisplaySurface.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsMedium.$(H) $(INCLUDE_TOP)/stx/libview/SimpleView.$(H) $(INCLUDE_TOP)/stx/libview/TopView.$(H) $(INCLUDE_TOP)/stx/libview/View.$(H) $(STCHDR)
 $(OUTDIR)GIFReader.$(O) GIFReader.$(C) GIFReader.$(H): GIFReader.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libview/ImageReader.$(H) $(STCHDR)
 $(OUTDIR)Icon.$(O) Icon.$(C) Icon.$(H): Icon.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
 $(OUTDIR)ImageFrame.$(O) ImageFrame.$(C) ImageFrame.$(H): ImageFrame.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
 $(OUTDIR)ImageSequence.$(O) ImageSequence.$(C) ImageSequence.$(H): ImageSequence.st $(INCLUDE_TOP)/stx/libbasic/Collection.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libbasic/OrderedCollection.$(H) $(INCLUDE_TOP)/stx/libbasic/SequenceableCollection.$(H) $(STCHDR)
-$(OUTDIR)InputView.$(O) InputView.$(C) InputView.$(H): InputView.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libview/DeviceGraphicsContext.$(H) $(INCLUDE_TOP)/stx/libview/DisplaySurface.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsContext.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsMedium.$(H) $(INCLUDE_TOP)/stx/libview/SimpleView.$(H) $(STCHDR)
+$(OUTDIR)InputView.$(O) InputView.$(C) InputView.$(H): InputView.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libview/DisplaySurface.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsMedium.$(H) $(INCLUDE_TOP)/stx/libview/SimpleView.$(H) $(STCHDR)
 $(OUTDIR)JPEGReader.$(O) JPEGReader.$(C) JPEGReader.$(H): JPEGReader.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libview/ImageReader.$(H) $(STCHDR)
 $(OUTDIR)KeyboardProcessor.$(O) KeyboardProcessor.$(C) KeyboardProcessor.$(H): KeyboardProcessor.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
 $(OUTDIR)Layout.$(O) Layout.$(C) Layout.$(H): Layout.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
@@ -192,15 +192,15 @@
 $(OUTDIR)Model.$(O) Model.$(C) Model.$(H): Model.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
 $(OUTDIR)MultiImage.$(O) MultiImage.$(C) MultiImage.$(H): MultiImage.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
 $(OUTDIR)PNGReader.$(O) PNGReader.$(C) PNGReader.$(H): PNGReader.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libview/ImageReader.$(H) $(STCHDR)
-$(OUTDIR)PopUpBanner.$(O) PopUpBanner.$(C) PopUpBanner.$(H): PopUpBanner.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libview/DeviceGraphicsContext.$(H) $(INCLUDE_TOP)/stx/libview/DisplaySurface.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsContext.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsMedium.$(H) $(INCLUDE_TOP)/stx/libview/PopUpView.$(H) $(INCLUDE_TOP)/stx/libview/SimpleView.$(H) $(INCLUDE_TOP)/stx/libview/TopView.$(H) $(INCLUDE_TOP)/stx/libview/View.$(H) $(STCHDR)
+$(OUTDIR)PopUpBanner.$(O) PopUpBanner.$(C) PopUpBanner.$(H): PopUpBanner.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libview/DisplaySurface.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsMedium.$(H) $(INCLUDE_TOP)/stx/libview/PopUpView.$(H) $(INCLUDE_TOP)/stx/libview/SimpleView.$(H) $(INCLUDE_TOP)/stx/libview/TopView.$(H) $(INCLUDE_TOP)/stx/libview/View.$(H) $(STCHDR)
 $(OUTDIR)PrintConverter.$(O) PrintConverter.$(C) PrintConverter.$(H): PrintConverter.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
-$(OUTDIR)PrinterContext.$(O) PrinterContext.$(C) PrinterContext.$(H): PrinterContext.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libview/DeviceGraphicsContext.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsContext.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsMedium.$(H) $(STCHDR)
+$(OUTDIR)PrinterContext.$(O) PrinterContext.$(C) PrinterContext.$(H): PrinterContext.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libview/DeviceGraphicsContext.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsContext.$(H) $(STCHDR)
 $(OUTDIR)PropertyListDictionary.$(O) PropertyListDictionary.$(C) PropertyListDictionary.$(H): PropertyListDictionary.st $(INCLUDE_TOP)/stx/libbasic/Collection.$(H) $(INCLUDE_TOP)/stx/libbasic/Dictionary.$(H) $(INCLUDE_TOP)/stx/libbasic/IdentityDictionary.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libbasic/Set.$(H) $(STCHDR)
 $(OUTDIR)ResourceRetriever.$(O) ResourceRetriever.$(C) ResourceRetriever.$(H): ResourceRetriever.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
 $(OUTDIR)StandardSystemController.$(O) StandardSystemController.$(C) StandardSystemController.$(H): StandardSystemController.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libview/Controller.$(H) $(STCHDR)
-$(OUTDIR)TIFFReader.$(O) TIFFReader.$(C) TIFFReader.$(H): TIFFReader.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libview/ImageReader.$(H) $(STCHDR)
-$(OUTDIR)TransparentBox.$(O) TransparentBox.$(C) TransparentBox.$(H): TransparentBox.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libview/DeviceGraphicsContext.$(H) $(INCLUDE_TOP)/stx/libview/DisplaySurface.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsContext.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsMedium.$(H) $(INCLUDE_TOP)/stx/libview/SimpleView.$(H) $(INCLUDE_TOP)/stx/libview/View.$(H) $(STCHDR)
-$(OUTDIR)VisualRegion.$(O) VisualRegion.$(C) VisualRegion.$(H): VisualRegion.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libview/DeviceGraphicsContext.$(H) $(INCLUDE_TOP)/stx/libview/DisplaySurface.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsContext.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsMedium.$(H) $(INCLUDE_TOP)/stx/libview/SimpleView.$(H) $(STCHDR)
+$(OUTDIR)TIFFReader.$(O) TIFFReader.$(C) TIFFReader.$(H): TIFFReader.st $(INCLUDE_TOP)/stx/libbasic/Collection.$(H) $(INCLUDE_TOP)/stx/libbasic/Dictionary.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libbasic/Set.$(H) $(INCLUDE_TOP)/stx/libview/ImageReader.$(H) $(STCHDR)
+$(OUTDIR)TransparentBox.$(O) TransparentBox.$(C) TransparentBox.$(H): TransparentBox.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libview/DisplaySurface.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsMedium.$(H) $(INCLUDE_TOP)/stx/libview/SimpleView.$(H) $(INCLUDE_TOP)/stx/libview/View.$(H) $(STCHDR)
+$(OUTDIR)VisualRegion.$(O) VisualRegion.$(C) VisualRegion.$(H): VisualRegion.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libview/DisplaySurface.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsMedium.$(H) $(INCLUDE_TOP)/stx/libview/SimpleView.$(H) $(STCHDR)
 $(OUTDIR)WindowBuilder.$(O) WindowBuilder.$(C) WindowBuilder.$(H): WindowBuilder.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
 $(OUTDIR)WindowsIconReader.$(O) WindowsIconReader.$(C) WindowsIconReader.$(H): WindowsIconReader.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libview/ImageReader.$(H) $(STCHDR)
 $(OUTDIR)XBMReader.$(O) XBMReader.$(C) XBMReader.$(H): XBMReader.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libview/ImageReader.$(H) $(STCHDR)
--- a/Make.spec	Tue Jul 19 07:10:19 2016 +0200
+++ b/Make.spec	Fri Jul 29 21:43:13 2016 +0100
@@ -22,7 +22,7 @@
 #                (if removed, they will be created as common
 #  -Pxxx       : defines the package
 #  -Zxxx       : a prefix for variables within the classLib
-#  -Dxxx       : defines passed to to CC for inline C-code
+#  -Dxxx       : defines passed to CC for inline C-code
 #  -Ixxx       : include path passed to CC for inline C-code
 #  +optspace   : optimized for space
 #  +optspace2  : optimized more for space
--- a/PrinterContext.st	Tue Jul 19 07:10:19 2016 +0200
+++ b/PrinterContext.st	Fri Jul 29 21:43:13 2016 +0100
@@ -1,6 +1,8 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 2006 by eXept Software AG
-              All Rights Reserved
+	      All Rights Reserved
 
  This software is furnished under a license and may be used
  only in accordance with the terms of that license and with the
@@ -9,9 +11,13 @@
  other person.  No title to or ownership of the software is
  hereby transferred.
 "
+'From Smalltalk/X, Version:7.1.0.0 on 18-07-2016 at 13:47:02'                   !
+
 "{ Package: 'stx:libview2' }"
 
-GraphicsMedium subclass:#PrinterContext
+"{ NameSpace: Smalltalk }"
+
+DeviceGraphicsContext subclass:#PrinterContext
 	instanceVariableNames:'abort jobid printerInfo textAlign'
 	classVariableNames:''
 	poolDictionaries:''
@@ -23,7 +29,7 @@
 copyright
 "
  COPYRIGHT (c) 2006 by eXept Software AG
-              All Rights Reserved
+	      All Rights Reserved
 
  This software is furnished under a license and may be used
  only in accordance with the terms of that license and with the
@@ -36,14 +42,14 @@
 
 documentation
 "
-    I am the mediator between the smalltalk printing protocol 
+    I am the mediator between the smalltalk printing protocol
     (which is the same as the graphics drawing protocol) and the
     windows printer.
     When youopena printer, you will typically talk to me, and I will
     forward the graphics commands to my printer.
 
     [author:]
-        Felix Madrid (fm@exept.de)
+	Felix Madrid (fm@exept.de)
 "
 ! !
 
@@ -59,12 +65,12 @@
 
 default
     "Answer the default Printer, or nil if none."
-    
+
     |defaultName|
 
-    ^ (defaultName := self defaultPrinterName) isNil 
-        ifTrue:[ nil ]
-        ifFalse:[ self named:defaultName ]
+    ^ (defaultName := self defaultPrinterName) isNil
+	ifTrue:[ nil ]
+	ifFalse:[ self named:defaultName ]
 
     "
      self default
@@ -78,7 +84,7 @@
 defaultMargins
     "Private - answer aPoint containing the default horizontal and vertical
      margins for a page (units in inches)."
-    
+
     ^ 0.5 @ 0.75
 
     "Created: / 01-08-2006 / 16:09:31 / fm"
@@ -87,7 +93,7 @@
 
 defaultPrinterName
     "Answer the name of the default printer, or nil if none."
-    
+
     |printerInfo printerName|
 
     printerInfo := OperatingSystem getDefaultPrinterName.
@@ -102,10 +108,10 @@
     "Modified: / 10-10-2006 / 17:32:45 / cg"
 !
 
-getPrinterInformation:printerNameString 
+getPrinterInformation:printerNameString
     " Answer the printer information for the printer named printerNameString.  If no name is specified,
       answer the information for the default printer."
-    
+
     self subclassResponsibility
 
     "Modified: / 16-04-2007 / 12:56:31 / cg"
@@ -126,7 +132,7 @@
 
 printerNames
     "Answer a collection of all known printer names."
-    
+
     ^ OperatingSystem getPrintersNames
 
     "Created: / 27-07-2006 / 17:54:45 / fm"
@@ -137,7 +143,7 @@
 
 abortPrintJob
     "Abort the current print job."
-    
+
     abort := true.
     jobid := nil.
 
@@ -147,7 +153,7 @@
 
 aborted
     "Answer whether the user aborted from PrintAbortDialog."
-    
+
     ^ abort
 
     "Created: / 27-07-2006 / 10:20:10 / fm"
@@ -164,7 +170,7 @@
 getCharHeight
     "Private - answer the height of the font selected in the receiver's
      device context."
-    
+
     self subclassResponsibility
 
     "Modified: / 16-04-2007 / 12:50:06 / cg"
@@ -179,16 +185,16 @@
 
 name
     "Answer the receiver's name from the current printerInfo."
-    
+
     ^ self printerInfo printerName
 
     "Modified: / 02-08-2006 / 16:55:03 / fm"
     "Modified: / 10-10-2006 / 18:15:33 / cg"
 !
 
-name:aName 
+name:aName
     "Set the receiver's printer name to aName."
-    
+
     self printerInfo:(self class getPrinterInformation:aName)
 
     "Modified: / 10-10-2006 / 18:15:36 / cg"
@@ -237,13 +243,13 @@
     "Modified: / 16-04-2007 / 12:52:36 / cg"
 !
 
-printerInfo:aPrinterInfo 
+printerInfo:aPrinterInfo
     printerInfo := aPrinterInfo
 
     "Modified: / 16-04-2007 / 12:54:07 / cg"
 !
 
-printerInfoWithName:aName 
+printerInfoWithName:aName
     self printerInfo:(self class getPrinterInformation:aName).
 
     "Modified: / 16-04-2007 / 12:54:04 / cg"
@@ -263,7 +269,7 @@
 
 printerUserFriendlyName
     "Answer the receiver's name from the current printerInfo."
-    
+
     ^ self printerInfo userFriendlyName
 
     "Created: / 03-08-2006 / 12:55:57 / fm"
@@ -276,7 +282,7 @@
     "Modified: / 16-04-2007 / 12:53:51 / cg"
 !
 
-setPrinterFont:aFont 
+setPrinterFont:aFont
 
     self font: aFont
 
@@ -307,10 +313,10 @@
 
 buildPrinter
     "Private - create all the operating system resources needed."
-    
+
     self
-        createDC;
-        initExtent
+	createDC;
+	initExtent
 
     "Created: / 27-07-2006 / 10:20:36 / fm"
     "Modified: / 01-08-2006 / 15:57:49 / fm"
@@ -319,7 +325,7 @@
 
 createDC
     "Private - Create a device context for the receiver"
-    
+
     self subclassResponsibility
 
     "Created: / 27-07-2006 / 10:21:05 / fm"
@@ -330,19 +336,17 @@
 initExtent
     "Private - init the width and height of GraphicsTool for the receiver."
 
-    width := self printerWidthArea.
-    height := self printerHeightArea.
     device
-        width:width;
-        height:height.
-    
+        width:self printerWidthArea;
+        height:self printerHeightArea.
+
 
     "Modified: / 01-08-2006 / 16:14:49 / fm"
 !
 
 releaseDC
     "Private - Closes the device context of the receiver"
-    
+
     self subclassResponsibility
 
     "Created: / 27-07-2006 / 10:21:05 / fm"
@@ -352,7 +356,7 @@
 
 !PrinterContext methodsFor:'printing'!
 
-print:aString font:aFont title:aTitle wordWrap:wordWrapBoolean marginsRect:aMarginsRect 
+print:aString font:aFont title:aTitle wordWrap:wordWrapBoolean marginsRect:aMarginsRect
     "Answer the receiver.  Output the receiver string to
      the printer using aFont.  A Print abort dialog box will be opened
      with aTitle.  If collateBoolean is true, collate output, otherwise
@@ -360,50 +364,50 @@
      wordWrapBoolean is true, word wrap the lines, otherwise do not.
      Left, top, right & bottom margins are specified in inches in
      aMarginsRect."
-    
+
     |lines linesPerPage totalPage marginsRect firstPage abortDialog|
 
     jobid isNil ifTrue:[
-        self startPrintJob:aTitle
+	self startPrintJob:aTitle
     ].
     abortDialog := PrintAbortDialog new open:aTitle printer:self.
     self font:aFont.
     marginsRect := self marginsRectangleFor:aMarginsRect.
-    lines := self 
-                asArrayOfStringLines:aString
-                in:marginsRect
-                wordWrap:wordWrapBoolean.
+    lines := self
+		asArrayOfStringLines:aString
+		in:marginsRect
+		wordWrap:wordWrapBoolean.
     linesPerPage := self linesPerPageFor: marginsRect.
     totalPage := (lines size + linesPerPage - 1) // linesPerPage.
     firstPage := true.
-    
+
 "/    collateBoolean
 "/        ifTrue: [
 "/            copiesInteger timesRepeat: [
-    
-    1 to:totalPage do:[:page | 
-        abort ifTrue:[ ^ self ].
-        firstPage ifFalse:[
-            self formFeed
-        ].
-        abortDialog 
-            updatePrintingPageInfo:(self class classResources
-                                    string:'Page %1/%2'
-                                    with:page printString
-                                    with:totalPage printString).
-        
+
+    1 to:totalPage do:[:page |
+	abort ifTrue:[ ^ self ].
+	firstPage ifFalse:[
+	    self formFeed
+	].
+	abortDialog
+	    updatePrintingPageInfo:(self class classResources
+				    string:'Page %1/%2'
+				    with:page printString
+				    with:totalPage printString).
+
 "/      self device font: printerFont.
-        
-        self font:aFont.
-        self 
-            printPage:page
-            in:marginsRect
-            lines:lines
-            linesPerPage:linesPerPage.
-        firstPage := false
+
+	self font:aFont.
+	self
+	    printPage:page
+	    in:marginsRect
+	    lines:lines
+	    linesPerPage:linesPerPage.
+	firstPage := false
     ].
-    
-"/            ] 
+
+"/            ]
 "/        ] ifFalse: [
 "/            1 to: totalPage do: [ :page |
 "/                copiesInteger timesRepeat: [
@@ -411,14 +415,14 @@
 "/                    firstPage ifFalse: [ self formFeed ].
 "/                    self device font: printerFont.
 "/                    self printPage: page in: marginsRect lines: lines linesPerPage: linesPerPage.
-"/                    firstPage := false 
-"/                 ] 
-"/            ]   
+"/                    firstPage := false
+"/                 ]
+"/            ]
 "/        ].
-    
+
     jobid notNil ifTrue:[
-        self endPrintJob.
-        abortDialog close.
+	self endPrintJob.
+	abortDialog close.
     ].
 
     "/    abort ifFalse: [ abortDialog close ]
@@ -438,14 +442,14 @@
     wordWrap: wordWrapBoolean
     marginsRect: aMarginsRect
 
-        "Private - Answer the receiver.  Output the receiver string to
-        the printer using aFont.  A Print abort dialog box will be opened
-        with aTitle.  If collateBoolean is true, collate output, otherwise
-        do not.  Print copiesInteger copies of the specified string.  If
-        wordWrapBoolean is true, word wrap the lines, otherwise do not.
-        Left, top, right & bottom margins are specified in inches in
-        aMarginsRect.
-        Mg: Erweitert um pageHeader"
+	"Private - Answer the receiver.  Output the receiver string to
+	the printer using aFont.  A Print abort dialog box will be opened
+	with aTitle.  If collateBoolean is true, collate output, otherwise
+	do not.  Print copiesInteger copies of the specified string.  If
+	wordWrapBoolean is true, word wrap the lines, otherwise do not.
+	Left, top, right & bottom margins are specified in inches in
+	aMarginsRect.
+	Mg: Erweitert um pageHeader"
        "Changed by K3/EES5-Mg, 08.01.96"
 
     | lines linesPerPage totalPage marginsRect firstPage charHeight  printerFont headerLines|
@@ -458,11 +462,11 @@
     linesPerPage := marginsRect bottom - marginsRect top // charHeight.
 
     linesPerPage > headerLines size
-        ifFalse:
-          [Dialog information: 'Der Dokumentenkopf ist zu groß; wird ignoriert!!'.
-           headerLines := #().
-          ]
-        ifTrue: [linesPerPage := linesPerPage - headerLines size].
+	ifFalse:
+	  [Dialog information: 'Der Dokumentenkopf ist zu groß; wird ignoriert!!'.
+	   headerLines := #().
+	  ]
+	ifTrue: [linesPerPage := linesPerPage - headerLines size].
     totalPage := lines size + linesPerPage - 1 // linesPerPage.
     firstPage := true.
 
@@ -470,14 +474,14 @@
 "/        ifTrue: [
 "/            copiesInteger timesRepeat: [
 
-                1 to: totalPage do: [ :page |
-                    abort ifTrue: [ ^self endPrintJob ].
-                    firstPage ifFalse: [ self formFeed ].
-                    self "pen" font: aFont "printerFont".
-                    self printPage: page in: marginsRect lines: lines headerLines: headerLines linesPerPage: linesPerPage.
-                    firstPage := false ] 
+		1 to: totalPage do: [ :page |
+		    abort ifTrue: [ ^self endPrintJob ].
+		    firstPage ifFalse: [ self formFeed ].
+		    self "pen" font: aFont "printerFont".
+		    self printPage: page in: marginsRect lines: lines headerLines: headerLines linesPerPage: linesPerPage.
+		    firstPage := false ]
 
-"/              ] 
+"/              ]
 "/          ]
 "/        ifFalse: [
 "/            1 to: totalPage do: [ :page |
@@ -491,7 +495,7 @@
     "Created: / 30-11-2006 / 13:19:06 / User"
 !
 
-print:aString pageHeader:aString2 font:aFont title:aTitle wordWrap:wordWrapBoolean marginsRect:aMarginsRect 
+print:aString pageHeader:aString2 font:aFont title:aTitle wordWrap:wordWrapBoolean marginsRect:aMarginsRect
     "Private - Answer the receiver.  Output the receiver string to
      the printer using aFont.  A Print abort dialog box will be opened
      with aTitle.  If collateBoolean is true, collate output, otherwise
@@ -499,51 +503,51 @@
      wordWrapBoolean is true, word wrap the lines, otherwise do not.
      Left, top, right & bottom margins are specified in inches in
      aMarginsRect."
-    
+
     |lines linesPerPage totalPage marginsRect firstPage charHeight printerFont headerLines|
 
     self font:aFont.
     charHeight := self getCharHeight.
     marginsRect := self marginsRectangleFor:aMarginsRect.
-    lines := self 
-                asArrayOfStringLines:aString
-                in:marginsRect
-                wordWrap:wordWrapBoolean.
-    headerLines := self 
-                asArrayOfStringLines:aString2
-                in:marginsRect
-                wordWrap:wordWrapBoolean.
+    lines := self
+		asArrayOfStringLines:aString
+		in:marginsRect
+		wordWrap:wordWrapBoolean.
+    headerLines := self
+		asArrayOfStringLines:aString2
+		in:marginsRect
+		wordWrap:wordWrapBoolean.
     linesPerPage := (marginsRect bottom - marginsRect top) // charHeight.
     linesPerPage > headerLines size ifFalse:[
-        Dialog information:(self class classResources 
-                                string:'The header is too large - ignored!!').
-        headerLines := #().
+	Dialog information:(self class classResources
+				string:'The header is too large - ignored!!').
+	headerLines := #().
     ] ifTrue:[
-        linesPerPage := linesPerPage - headerLines size
+	linesPerPage := linesPerPage - headerLines size
     ].
     totalPage := (lines size + linesPerPage - 1) // linesPerPage.
     firstPage := true.
-    
+
 "/    collateBoolean
 "/        ifTrue: [
 "/            copiesInteger timesRepeat: [
-    
-    1 to:totalPage do:[:page | 
-        abort ifTrue:[ ^ self ].
-        firstPage ifFalse:[
-            self formFeed
-        ].
-        self font:printerFont.
-        self 
-            printPage:page
-            in:marginsRect
-            lines:lines
-            headerLines:headerLines
-            linesPerPage:linesPerPage.
-        firstPage := false
+
+    1 to:totalPage do:[:page |
+	abort ifTrue:[ ^ self ].
+	firstPage ifFalse:[
+	    self formFeed
+	].
+	self font:printerFont.
+	self
+	    printPage:page
+	    in:marginsRect
+	    lines:lines
+	    headerLines:headerLines
+	    linesPerPage:linesPerPage.
+	firstPage := false
     ]
 
-    "/            ] 
+    "/            ]
     "/        ] ifFalse: [
     "/            1 to: totalPage do: [ :page |
     "/                copiesInteger timesRepeat: [
@@ -551,9 +555,9 @@
     "/                    firstPage ifFalse: [ self formFeed ].
     "/                    self device font: printerFont.
     "/                    self printPage: page in: marginsRect lines: lines headerLines: headerLines linesPerPage: linesPerPage.
-    "/                    firstPage := false 
-    "/                ] 
-    "/            ] 
+    "/                    firstPage := false
+    "/                ]
+    "/            ]
     "/        ].
 
     "Created: / 03-08-2006 / 16:14:10 / fm"
@@ -564,7 +568,7 @@
 
 endPage
     "Informs device that we are finished writing to a page."
-    
+
     self subclassResponsibility
 
     "Modified: / 16-04-2007 / 12:47:31 / cg"
@@ -585,7 +589,7 @@
     "End the print job.  Everything drawn between startPrintJob
      and endPrintJob will become one entry in the print queue.
      Won't close the DC "
-    
+
     self subclassResponsibility
 
     "Modified: / 16-04-2007 / 12:47:28 / cg"
@@ -593,10 +597,10 @@
 
 formFeed
     "Send a form feed to the printer."
-    
+
     self
-        endPage;
-        startPage
+	endPage;
+	startPage
 
     "Created: / 27-07-2006 / 18:25:40 / fm"
     "Modified: / 10-10-2006 / 18:15:07 / cg"
@@ -604,7 +608,7 @@
 
 startPage
     "Starts a page."
-    
+
     self subclassResponsibility
 
     "Modified: / 16-04-2007 / 12:47:13 / cg"
@@ -613,29 +617,29 @@
 startPrintJob
     "Start a print job.  Everything drawn between startPrintJob
      and endPrintJob will become one entry in the print queue."
-    
+
     self startPrintJob:nil
 
     "Created: / 27-07-2006 / 18:18:52 / fm"
     "Modified: / 10-10-2006 / 18:19:05 / cg"
 !
 
-startPrintJob:aString 
+startPrintJob:aString
     "Start a print job, using aString as the job title; everything
      drawn between startPrintJob and endPrintJob will become
      one entry in the print queue."
-    
+
     ^ self startPrintJob:aString fileName:nil
 
     "Created: / 27-07-2006 / 18:19:09 / fm"
     "Modified: / 10-10-2006 / 18:19:12 / cg"
 !
 
-startPrintJob:aString fileName:aFileName 
+startPrintJob:aString fileName:aFileName
     "Start a print job, using aString as the job title; everything
      drawn between startPrintJob and endPrintJob will become
      one entry in the print queue."
-    
+
     self subclassResponsibility
 
     "Modified: / 16-04-2007 / 12:46:58 / cg"
@@ -664,50 +668,50 @@
 
 !PrinterContext methodsFor:'text printing'!
 
-asArrayOfStringLines:aString in:aRectangle wordWrap:wordWrapBoolean 
+asArrayOfStringLines:aString in:aRectangle wordWrap:wordWrapBoolean
     "Private - convert aString into an array of lines; if wordWrapBoolean
      is true, also perform word wrapping on the lines, within aRectangle."
-    
+
     |line lines stream x0 x1 partialLine leftMargin rightMargin partialLineWidth index|
 
     stream := ReadStream on:aString.
     lines := OrderedCollection new.
     wordWrapBoolean ifTrue:[
-        leftMargin := aRectangle left.
-        rightMargin := aRectangle right
+	leftMargin := aRectangle left.
+	rightMargin := aRectangle right
     ].
     [ stream atEnd ] whileFalse:[
-        line := stream nextLine.
-        wordWrapBoolean ifFalse:[
-            lines add:line
-        ] ifTrue:[
-            x0 := x1 := 1.
-            1 to:line size do:[:i | 
-                ((line at:i) = Character space "32" 
-                    and:[ (partialLine := line copyFrom:x0 to:i) trimBlanks notEmpty ]) 
-                        ifTrue:[
-                            partialLineWidth := self stringWidthOf:partialLine.
-                            (leftMargin + partialLineWidth) > rightMargin ifTrue:[
-                                partialLine := line copyFrom:x0 to:x1.
-                                lines add:partialLine.
-                                x0 := x1 + 1
-                            ] ifFalse:[ x1 := i ]
-                        ].
-                index := i
-            ].
-            line isEmpty ifTrue:[
-                lines add:line
-            ] ifFalse:[
-                partialLine := line copyFrom:x0 to:index.
-                partialLineWidth := self stringWidthOf:partialLine.
-                (leftMargin + partialLineWidth) > rightMargin ifTrue:[
-                    partialLine := line copyFrom:x0 to:x1.
-                    lines add:partialLine.
-                    partialLine := line copyFrom:x1 + 1 to:index
-                ].
-                lines add:partialLine
-            ]
-        ]
+	line := stream nextLine.
+	wordWrapBoolean ifFalse:[
+	    lines add:line
+	] ifTrue:[
+	    x0 := x1 := 1.
+	    1 to:line size do:[:i |
+		((line at:i) = Character space "32"
+		    and:[ (partialLine := line copyFrom:x0 to:i) trimBlanks notEmpty ])
+			ifTrue:[
+			    partialLineWidth := self stringWidthOf:partialLine.
+			    (leftMargin + partialLineWidth) > rightMargin ifTrue:[
+				partialLine := line copyFrom:x0 to:x1.
+				lines add:partialLine.
+				x0 := x1 + 1
+			    ] ifFalse:[ x1 := i ]
+			].
+		index := i
+	    ].
+	    line isEmpty ifTrue:[
+		lines add:line
+	    ] ifFalse:[
+		partialLine := line copyFrom:x0 to:index.
+		partialLineWidth := self stringWidthOf:partialLine.
+		(leftMargin + partialLineWidth) > rightMargin ifTrue:[
+		    partialLine := line copyFrom:x0 to:x1.
+		    lines add:partialLine.
+		    partialLine := line copyFrom:x1 + 1 to:index
+		].
+		lines add:partialLine
+	    ]
+	]
     ].
     ^ lines asArray
 
@@ -721,22 +725,22 @@
     x := aPoint x.
     y := aPoint y.
     (textAlign isNil or:[textAlign == 0 ]) ifTrue:[
-        self displayString:aString at:aPoint.
-        ^ self
+	self displayString:aString at:aPoint.
+	^ self
     ].
     (textAlign == 8 "TaBottom") ifTrue:[
-        y := aPoint y - (self container font ascent) "container font ascent".
+	y := aPoint y - (self container font ascent) "container font ascent".
     ] ifFalse:[ (textAlign == 6 "TaCenter") ifTrue:[
 "/        x := aRect left + ((aRect width-(container font widthOf:aString))//2).
     ] ifFalse:[ (textAlign == 2 "TaRight") ifTrue:[
-        x := aRect right - (self "container font widthof:" stringWidthOf:aString).
+	x := aRect right - (self "container font widthof:" stringWidthOf:aString).
 "/        y := self "container font ascent" getCharHeight + aPoint y .
     ] ifFalse:[ (textAlign == 14 "TaCenterBottom") ifTrue:[
-        y := aRect bottom - self getCharHeight "container font ascent".
-        x := aRect left + ((aRect width-(self "container font widthOf:" stringWidthOf:aString))//2).
+	y := aRect bottom - self getCharHeight "container font ascent".
+	x := aRect left + ((aRect width-(self "container font widthOf:" stringWidthOf:aString))//2).
     ] ifFalse:[ (textAlign == 10) ifTrue:[
-        x := aRect right - (self "container font widthof:" stringWidthOf:aString).
-        y := aPoint y - (self container font ascent)"aRect bottom - self getCharHeight".
+	x := aRect right - (self "container font widthof:" stringWidthOf:aString).
+	y := aPoint y - (self container font ascent)"aRect bottom - self getCharHeight".
     ]]]]].
 
 "/aString = '3' ifTrue:[
@@ -753,28 +757,28 @@
     "Modified: / 14-12-2006 / 12:29:13 / User"
 !
 
-displayStringLines:anIndexedCollection from:startIndex to:endIndex in:aRectangle 
+displayStringLines:anIndexedCollection from:startIndex to:endIndex in:aRectangle
     "Private - display Strings in anIndexedCollection starting at startIndex and
      ending at endIndex, clipped within the bounds of aRectangle."
-    
+
     |charHeight ascent|
 
     charHeight := self getCharHeight.
     ascent := self font ascentOn:self device.
-    startIndex to:endIndex do:[:i | 
-        |lineToPrint|
+    startIndex to:endIndex do:[:i |
+	|lineToPrint|
 
-        lineToPrint := (anIndexedCollection at:i).
+	lineToPrint := (anIndexedCollection at:i).
         device 
-            displayString:lineToPrint
-            from:1
-            to:lineToPrint size
-            x:aRectangle left
-            y:(aRectangle top + ((i - startIndex) * charHeight))
-            in:nil
-            with:self gcId
-            opaque:false
-            fontAscent:ascent.
+	    displayString:lineToPrint
+	    from:1
+	    to:lineToPrint size
+	    x:aRectangle left
+	    y:(aRectangle top + ((i - startIndex) * charHeight))
+	    in:nil
+	    with:self gcId
+	    opaque:false
+	    fontAscent:ascent.
     ].
 
     "/    region := self setClipRect: aRectangle.
@@ -792,15 +796,15 @@
     "Modified: / 10-10-2006 / 18:14:36 / cg"
 !
 
-displayStringLines:anIndexedCollection in:aRectangle 
+displayStringLines:anIndexedCollection in:aRectangle
     "Private - display anIndexedCollection of Strings clipped within
      the bounds of aRectangle."
-    
-    self 
-        displayStringLines:anIndexedCollection
-        from:1
-        to:anIndexedCollection size
-        in:aRectangle
+
+    self
+	displayStringLines:anIndexedCollection
+	from:1
+	to:anIndexedCollection size
+	in:aRectangle
 
     "Created: / 03-08-2006 / 16:03:07 / fm"
     "Modified: / 10-10-2006 / 18:14:40 / cg"
@@ -815,22 +819,22 @@
 linesPerPageFor: aRectangle
     |marginsRect charHeight|
 
-    marginsRect := aRectangle isNil 
-        ifTrue:[self marginsRectangleFor: nil]
-        ifFalse:[aRectangle].
+    marginsRect := aRectangle isNil
+	ifTrue:[self marginsRectangleFor: nil]
+	ifFalse:[aRectangle].
 
-    charHeight := self getCharHeight.                   
+    charHeight := self getCharHeight.
     ^(marginsRect bottom - marginsRect top) // charHeight
 
     "Created: / 12-10-2006 / 11:52:57 / User"
     "Modified: / 16-04-2007 / 12:44:56 / cg"
 !
 
-marginsRectangleFor:aRectangle 
+marginsRectangleFor:aRectangle
     "Private - Answer a Rectangle defining margins based on aRectangle.
      Units for aRectangle are in inches, returned margins rectangle is
      in device units (pixels)."
-    
+
     |left top right bottom pixelsPerInchX pixelsPerInchY horzRes vertRes inset rectangle|
 
     pixelsPerInchX := self pixelsPerInchOfScreenWidth.
@@ -839,18 +843,18 @@
     pixelsPerInchY == 0 ifTrue:[self halt:'invalid definitions for screen resolution'].
 
     aRectangle isNil ifTrue:[
-        horzRes := self printerWidthArea.
-        vertRes := self printerHeightArea.
-        inset := self class defaultMargins.
-        left := (inset x * pixelsPerInchX) asInteger.
-        top := (inset y * pixelsPerInchY) asInteger.
-        right := horzRes - (inset x * pixelsPerInchX) asInteger.
-        bottom := vertRes - (inset y * pixelsPerInchY) asInteger
+	horzRes := self printerWidthArea.
+	vertRes := self printerHeightArea.
+	inset := self class defaultMargins.
+	left := (inset x * pixelsPerInchX) asInteger.
+	top := (inset y * pixelsPerInchY) asInteger.
+	right := horzRes - (inset x * pixelsPerInchX) asInteger.
+	bottom := vertRes - (inset y * pixelsPerInchY) asInteger
     ] ifFalse:[
-        left := (aRectangle left * pixelsPerInchX) asInteger.
-        top := (aRectangle top * pixelsPerInchY) asInteger.
-        right := (aRectangle right * pixelsPerInchX) asInteger.
-        bottom := (aRectangle bottom * pixelsPerInchY) asInteger
+	left := (aRectangle left * pixelsPerInchX) asInteger.
+	top := (aRectangle top * pixelsPerInchY) asInteger.
+	right := (aRectangle right * pixelsPerInchX) asInteger.
+	bottom := (aRectangle bottom * pixelsPerInchY) asInteger
     ].
     rectangle := left @ top corner:right @ bottom.
     ^ rectangle
@@ -860,10 +864,10 @@
     "Modified: / 16-04-2007 / 11:57:21 / cg"
 !
 
-printPage:pageIndex in:aRectangle lines:lines headerLines:headerLines linesPerPage:linesPerPage 
+printPage:pageIndex in:aRectangle lines:lines headerLines:headerLines linesPerPage:linesPerPage
     "Private - print page # pageIndex from lines, assuming
      the given number of linesPerPage."
-    
+
     |firstLine lastLine l indexString p cHeight rect hLines|
 
     firstLine := (pageIndex - 1) * linesPerPage + 1.
@@ -871,22 +875,22 @@
     rect := aRectangle deepCopy.
     hLines := headerLines deepCopy.
     headerLines size > 0 ifTrue:[
-        l := hLines first.
-        p := l indexOfSubCollection: "indexOfString:"'#P'.
-        p = 0 ifFalse:[
-            indexString := pageIndex printString , ' '.
-            l := (l copyFrom:1 to:p - 1) , indexString , (l copyFrom:p + 2 to:l size).
-            hLines at:1 put:l.
-        ].
-        cHeight := self getCharHeight.
-        rect top:rect top + (hLines size * cHeight).
+	l := hLines first.
+	p := l indexOfSubCollection: "indexOfString:"'#P'.
+	p = 0 ifFalse:[
+	    indexString := pageIndex printString , ' '.
+	    l := (l copyFrom:1 to:p - 1) , indexString , (l copyFrom:p + 2 to:l size).
+	    hLines at:1 put:l.
+	].
+	cHeight := self getCharHeight.
+	rect top:rect top + (hLines size * cHeight).
     ].
     self displayStringLines:hLines in:aRectangle.
-    self 
-        displayStringLines:lines
-        from:firstLine
-        to:lastLine
-        in:rect.
+    self
+	displayStringLines:lines
+	from:firstLine
+	to:lastLine
+	in:rect.
 
     "Created: / 27-07-2006 / 18:28:00 / fm"
     "Modified: / 03-08-2006 / 16:03:15 / fm"
@@ -894,40 +898,40 @@
     "Modified: / 30-11-2006 / 13:34:44 / User"
 !
 
-printPage:pageIndex in:aRectangle lines:lines linesPerPage:linesPerPage 
+printPage:pageIndex in:aRectangle lines:lines linesPerPage:linesPerPage
     "Private - print page # pageIndex from lines, assuming
      the given number of linesPerPage."
-    
+
     |firstLine lastLine|
 
     firstLine := (pageIndex - 1) * linesPerPage + 1.
     lastLine := (firstLine + linesPerPage - 1) min:lines size.
-    self 
-        displayStringLines:lines
-        from:firstLine
-        to:lastLine
-        in:aRectangle
+    self
+	displayStringLines:lines
+	from:firstLine
+	to:lastLine
+	in:aRectangle
 
     "Created: / 27-07-2006 / 18:24:59 / fm"
     "Modified: / 03-08-2006 / 12:47:24 / fm"
     "Modified: / 10-10-2006 / 18:18:22 / cg"
 !
 
-stringWidthOf:aString 
+stringWidthOf:aString
     "Return the width of aString
      when written using the current font."
-    
+
     ^ self stringWidthOf:aString at:aString size.
 
     "Modified: / 03-08-2006 / 10:18:23 / fm"
     "Modified: / 10-10-2006 / 18:20:08 / cg"
 !
 
-stringWidthOf:aString at:index 
+stringWidthOf:aString at:index
     "Return the width of aString up to index
      when written using the current font; expand tabs out
      to 4 spaces for calculations"
-    
+
     self subclassResponsibility
 
     "Modified: / 16-04-2007 / 12:45:42 / cg"
@@ -954,6 +958,6 @@
 !PrinterContext class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview2/PrinterContext.st,v 1.21 2014-03-19 10:04:20 stefan Exp $'
+    ^ '$Header$'
 ! !
 
--- a/WinPrinterContext.st	Tue Jul 19 07:10:19 2016 +0200
+++ b/WinPrinterContext.st	Fri Jul 29 21:43:13 2016 +0100
@@ -14,7 +14,7 @@
 "{ NameSpace: Smalltalk }"
 
 PrinterContext subclass:#WinPrinterContext
-	instanceVariableNames:'deviceFonts hatch supportsColor'
+	instanceVariableNames:'deviceFonts hatch supportsColor title'
 	classVariableNames:'PostScriptBlackWhite'
 	poolDictionaries:''
 	category:'Interface-Printing'
@@ -22,7 +22,7 @@
 
 WinPrinterContext subclass:#WinPrinterGraphicContext
 	instanceVariableNames:'fontScale printPageNumbers pageNumberFormat pageCounter
-		needsEndOfPage titleFont'
+		needsEndOfPage titleFont width height'
 	classVariableNames:''
 	poolDictionaries:''
 	privateIn:WinPrinterContext
@@ -299,7 +299,7 @@
     gc := WinPrinterGraphicContext fromPrinterInfo:printerInfo.
 
     gc notNil ifTrue:[
-        gc startPrintJob:jobName
+	gc startPrintJob:jobName
     ].
     ^ gc
 ! !
@@ -5624,32 +5624,32 @@
      drawn between startPrintJob and endPrintJob will become
      one entry in the print queue."
 
-    |docInfoStruct nameAddress title fileNameAddress|
+    |docInfoStruct nameAddress fileNameAddress|
 
     self gcId isNil ifTrue:[
-	self buildPrinter
+        self buildPrinter
     ].
     abort := false.
     title := aString ? 'Smalltalk/X'.
     nameAddress := title asExternalBytes unprotectFromGC.
     aFileName isNil ifFalse:[
-	fileNameAddress := aFileName pathName asExternalBytes unprotectFromGC
+        fileNameAddress := aFileName pathName asExternalBytes unprotectFromGC
     ].
     docInfoStruct := Win32OperatingSystem::DocInfoStructure new.
     docInfoStruct
-	cbSize:docInfoStruct sizeInBytes;
-	lpszDocName:nameAddress address.
+        cbSize:docInfoStruct sizeInBytes;
+        lpszDocName:nameAddress address.
     fileNameAddress isNil ifFalse:[
-	docInfoStruct lpszOutput:fileNameAddress address
+        docInfoStruct lpszOutput:fileNameAddress address
     ].
     jobid := OperatingSystem startDoc:self gcId docInfo:docInfoStruct.
     jobid > 0 ifFalse:[
-	jobid = -1 ifTrue:[
-	    abort := true.
-	    ^ nil
-	].
+        jobid = -1 ifTrue:[
+            abort := true.
+            ^ nil
+        ].
 "/        ^ self error
-	OpenError raiseErrorString:'Cannot create printer job'.
+        OpenError raiseErrorString:'Cannot create printer job'.
     ].
     self startPage
 
@@ -5756,6 +5756,14 @@
     ^ 50
 !
 
+extent
+    ^ width @ height
+!
+
+height
+    ^ height
+!
+
 leftMargin
     "return the papers left margin measured in pixels"
 
@@ -5772,6 +5780,10 @@
     "return the papers top margin measured in pixels"
 
     ^ 50
+!
+
+width
+    ^ width
 ! !
 
 !WinPrinterContext::WinPrinterGraphicContext methodsFor:'accessing-hooks'!
@@ -5829,6 +5841,12 @@
     super scale:(fontScale * (aScale ? 1.0)).
 !
 
+scale:scale translation:aPoint
+    self
+        translation:aPoint;
+        scale:scale.
+!
+
 transformation
     "answer the transformation excluding the fontScale factor"
 
@@ -6059,12 +6077,14 @@
 initialize
     super initialize.
 
+    device := nil.      "super initialize did set it to Screen current"
+
     pageCounter    := 0.
     needsEndOfPage := false.
     printPageNumbers := true.
 
     Language == #de ifTrue:[ pageNumberFormat := 'Seite %1' ]
-		   ifFalse:[ pageNumberFormat := 'page %1'  ].
+                   ifFalse:[ pageNumberFormat := 'page %1'  ].
 ! !
 
 !WinPrinterContext::WinPrinterGraphicContext methodsFor:'printing process'!
@@ -6074,7 +6094,7 @@
     |oldClip oldTrans oldFont|
 
     oldClip := gc clipingRectangleOrNil.
-    oldClip notNil ifTrue:[ self deviceClippingRectangle:nil ].
+    oldClip notNil ifTrue:[ self deviceClippingBounds:nil ].
 
     oldTrans := self translation.
     oldFont  := self font.
@@ -6086,7 +6106,7 @@
 
     self translation:oldTrans.
     oldFont notNil ifTrue:[ self font:oldFont ].
-    oldClip notNil ifTrue:[ self deviceClippingRectangle:oldClip ].
+    oldClip notNil ifTrue:[ self deviceClippingBounds:oldClip ].
 !
 
 endPage
@@ -6096,18 +6116,21 @@
     |s|
 
     needsEndOfPage ifFalse:[
-	^ self
+        ^ self
     ].
     needsEndOfPage := false.
 
     printPageNumbers == true ifTrue:[
-	self displayTitleDo:[
-	    s := pageNumberFormat bindWith:pageCounter.
-
-	    self displayString:s
+        self displayTitleDo:[
+            self displayString:title
+                 x:(self extent x - (self font widthOf:title)) // 2
+                 y:(self extent y + (self font ascent)).
+
+            s := pageNumberFormat bindWith:pageCounter.
+            self displayString:s
 			     x:(self extent x - (self font widthOf:s))
 			     y:(self extent y + (self font ascent)).
-	]
+        ]
     ].
     super endPage.
 !
--- a/abbrev.stc	Tue Jul 19 07:10:19 2016 +0200
+++ b/abbrev.stc	Fri Jul 29 21:43:13 2016 +0100
@@ -39,7 +39,7 @@
 TIFFReader TIFFReader stx:libview2 'Graphics-Images-Readers' 0
 TransparentBox TransparentBox stx:libview2 'Views-Basic' 2
 VisualRegion VisualRegion stx:libview2 'Views-Special' 2
-WinPrinterStream WinPrinterStream stx:libview2 'Interface-Printing' 8
+WinPrinterStream WinPrinterStream stx:libview2  'unknownCategory'  0
 WindowBuilder WindowBuilder stx:libview2 'Interface-Framework' 0
 WindowsIconReader WindowsIconReader stx:libview2 'Graphics-Images-Readers' 0
 XBMReader XBMReader stx:libview2 'Graphics-Images-Readers' 0
@@ -55,7 +55,7 @@
 UIBuilder UIBuilder stx:libview2 'Interface-Framework' 0
 ValueModel ValueModel stx:libview2 'Interface-Support-Models' 0
 VisualComponent VisualComponent stx:libview2 'Compatibility-ST80-Graphics-Display Objects' 0
-WinPrinterContext WinPrinterContext stx:libview2 'Interface-Printing' 0
+WinPrinterContext WinPrinterContext stx:libview2  'unknownCategory'  0
 AlignmentOrigin AlignmentOrigin stx:libview2 'Graphics-Geometry' 0
 ApplicationWithFileHistory ApplicationWithFileHistory stx:libview2 'Interface-Framework' 2
 BlockValue BlockValue stx:libview2 'Interface-Support-Models' 0
--- a/bc.mak	Tue Jul 19 07:10:19 2016 +0200
+++ b/bc.mak	Fri Jul 29 21:43:13 2016 +0100
@@ -34,7 +34,7 @@
 
 LIBNAME=libstx_libview2
 MODULE_PATH=libview2
-RESFILES=libview2.$(RES)
+RESFILES=stx_libview2WINrc.$(RES)
 
 
 # LIBJPEG_DIR=$(TOP)\support\libjpeg-6a
@@ -105,15 +105,15 @@
 test: $(TOP)\goodies\builder\reports\NUL
 	pushd $(TOP)\goodies\builder\reports & $(MAKE_BAT)
 	$(TOP)\goodies\builder\reports\report-runner.bat -D . -r Builder::TestReport -p $(PACKAGE)
-
+        
 clean::
 	-del *.$(CSUFFIX)
 
 
 # BEGINMAKEDEPEND --- do not remove this line; make depend needs it
-$(OUTDIR)ActiveHelpView.$(O) ActiveHelpView.$(C) ActiveHelpView.$(H): ActiveHelpView.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview\DeviceGraphicsContext.$(H) $(INCLUDE_TOP)\stx\libview\DisplaySurface.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsContext.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsMedium.$(H) $(INCLUDE_TOP)\stx\libview\SimpleView.$(H) $(INCLUDE_TOP)\stx\libview\View.$(H) $(STCHDR)
-$(OUTDIR)ApplicationSubView.$(O) ApplicationSubView.$(C) ApplicationSubView.$(H): ApplicationSubView.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview\DeviceGraphicsContext.$(H) $(INCLUDE_TOP)\stx\libview\DisplaySurface.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsContext.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsMedium.$(H) $(INCLUDE_TOP)\stx\libview\SimpleView.$(H) $(INCLUDE_TOP)\stx\libview\View.$(H) $(STCHDR)
-$(OUTDIR)ApplicationWindow.$(O) ApplicationWindow.$(C) ApplicationWindow.$(H): ApplicationWindow.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview\DeviceGraphicsContext.$(H) $(INCLUDE_TOP)\stx\libview\DisplaySurface.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsContext.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsMedium.$(H) $(INCLUDE_TOP)\stx\libview\SimpleView.$(H) $(INCLUDE_TOP)\stx\libview\StandardSystemView.$(H) $(INCLUDE_TOP)\stx\libview\TopView.$(H) $(INCLUDE_TOP)\stx\libview\View.$(H) $(STCHDR)
+$(OUTDIR)ActiveHelpView.$(O) ActiveHelpView.$(C) ActiveHelpView.$(H): ActiveHelpView.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview\DisplaySurface.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsMedium.$(H) $(INCLUDE_TOP)\stx\libview\SimpleView.$(H) $(INCLUDE_TOP)\stx\libview\View.$(H) $(STCHDR)
+$(OUTDIR)ApplicationSubView.$(O) ApplicationSubView.$(C) ApplicationSubView.$(H): ApplicationSubView.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview\DisplaySurface.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsMedium.$(H) $(INCLUDE_TOP)\stx\libview\SimpleView.$(H) $(INCLUDE_TOP)\stx\libview\View.$(H) $(STCHDR)
+$(OUTDIR)ApplicationWindow.$(O) ApplicationWindow.$(C) ApplicationWindow.$(H): ApplicationWindow.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview\DisplaySurface.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsMedium.$(H) $(INCLUDE_TOP)\stx\libview\SimpleView.$(H) $(INCLUDE_TOP)\stx\libview\StandardSystemView.$(H) $(INCLUDE_TOP)\stx\libview\TopView.$(H) $(INCLUDE_TOP)\stx\libview\View.$(H) $(STCHDR)
 $(OUTDIR)ColorValue.$(O) ColorValue.$(C) ColorValue.$(H): ColorValue.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview\Color.$(H) $(STCHDR)
 $(OUTDIR)DisplayObject.$(O) DisplayObject.$(C) DisplayObject.$(H): DisplayObject.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
 $(OUTDIR)DragAndDropManager.$(O) DragAndDropManager.$(C) DragAndDropManager.$(H): DragAndDropManager.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
@@ -124,12 +124,12 @@
 $(OUTDIR)DropSource.$(O) DropSource.$(C) DropSource.$(H): DropSource.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
 $(OUTDIR)DropTarget.$(O) DropTarget.$(C) DropTarget.$(H): DropTarget.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
 $(OUTDIR)EventListener.$(O) EventListener.$(C) EventListener.$(H): EventListener.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
-$(OUTDIR)ExternalTopView.$(O) ExternalTopView.$(C) ExternalTopView.$(H): ExternalTopView.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview\DeviceGraphicsContext.$(H) $(INCLUDE_TOP)\stx\libview\DisplaySurface.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsContext.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsMedium.$(H) $(INCLUDE_TOP)\stx\libview\SimpleView.$(H) $(INCLUDE_TOP)\stx\libview\TopView.$(H) $(INCLUDE_TOP)\stx\libview\View.$(H) $(STCHDR)
+$(OUTDIR)ExternalTopView.$(O) ExternalTopView.$(C) ExternalTopView.$(H): ExternalTopView.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview\DisplaySurface.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsMedium.$(H) $(INCLUDE_TOP)\stx\libview\SimpleView.$(H) $(INCLUDE_TOP)\stx\libview\TopView.$(H) $(INCLUDE_TOP)\stx\libview\View.$(H) $(STCHDR)
 $(OUTDIR)GIFReader.$(O) GIFReader.$(C) GIFReader.$(H): GIFReader.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview\ImageReader.$(H) $(STCHDR)
 $(OUTDIR)Icon.$(O) Icon.$(C) Icon.$(H): Icon.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
 $(OUTDIR)ImageFrame.$(O) ImageFrame.$(C) ImageFrame.$(H): ImageFrame.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
 $(OUTDIR)ImageSequence.$(O) ImageSequence.$(C) ImageSequence.$(H): ImageSequence.st $(INCLUDE_TOP)\stx\libbasic\Collection.$(H) $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libbasic\OrderedCollection.$(H) $(INCLUDE_TOP)\stx\libbasic\SequenceableCollection.$(H) $(STCHDR)
-$(OUTDIR)InputView.$(O) InputView.$(C) InputView.$(H): InputView.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview\DeviceGraphicsContext.$(H) $(INCLUDE_TOP)\stx\libview\DisplaySurface.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsContext.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsMedium.$(H) $(INCLUDE_TOP)\stx\libview\SimpleView.$(H) $(STCHDR)
+$(OUTDIR)InputView.$(O) InputView.$(C) InputView.$(H): InputView.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview\DisplaySurface.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsMedium.$(H) $(INCLUDE_TOP)\stx\libview\SimpleView.$(H) $(STCHDR)
 $(OUTDIR)JPEGReader.$(O) JPEGReader.$(C) JPEGReader.$(H): JPEGReader.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview\ImageReader.$(H) $(STCHDR)
 $(OUTDIR)KeyboardProcessor.$(O) KeyboardProcessor.$(C) KeyboardProcessor.$(H): KeyboardProcessor.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
 $(OUTDIR)Layout.$(O) Layout.$(C) Layout.$(H): Layout.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
@@ -140,15 +140,15 @@
 $(OUTDIR)Model.$(O) Model.$(C) Model.$(H): Model.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
 $(OUTDIR)MultiImage.$(O) MultiImage.$(C) MultiImage.$(H): MultiImage.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
 $(OUTDIR)PNGReader.$(O) PNGReader.$(C) PNGReader.$(H): PNGReader.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview\ImageReader.$(H) $(STCHDR)
-$(OUTDIR)PopUpBanner.$(O) PopUpBanner.$(C) PopUpBanner.$(H): PopUpBanner.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview\DeviceGraphicsContext.$(H) $(INCLUDE_TOP)\stx\libview\DisplaySurface.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsContext.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsMedium.$(H) $(INCLUDE_TOP)\stx\libview\PopUpView.$(H) $(INCLUDE_TOP)\stx\libview\SimpleView.$(H) $(INCLUDE_TOP)\stx\libview\TopView.$(H) $(INCLUDE_TOP)\stx\libview\View.$(H) $(STCHDR)
+$(OUTDIR)PopUpBanner.$(O) PopUpBanner.$(C) PopUpBanner.$(H): PopUpBanner.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview\DisplaySurface.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsMedium.$(H) $(INCLUDE_TOP)\stx\libview\PopUpView.$(H) $(INCLUDE_TOP)\stx\libview\SimpleView.$(H) $(INCLUDE_TOP)\stx\libview\TopView.$(H) $(INCLUDE_TOP)\stx\libview\View.$(H) $(STCHDR)
 $(OUTDIR)PrintConverter.$(O) PrintConverter.$(C) PrintConverter.$(H): PrintConverter.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
-$(OUTDIR)PrinterContext.$(O) PrinterContext.$(C) PrinterContext.$(H): PrinterContext.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview\DeviceGraphicsContext.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsContext.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsMedium.$(H) $(STCHDR)
+$(OUTDIR)PrinterContext.$(O) PrinterContext.$(C) PrinterContext.$(H): PrinterContext.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview\DeviceGraphicsContext.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsContext.$(H) $(STCHDR)
 $(OUTDIR)PropertyListDictionary.$(O) PropertyListDictionary.$(C) PropertyListDictionary.$(H): PropertyListDictionary.st $(INCLUDE_TOP)\stx\libbasic\Collection.$(H) $(INCLUDE_TOP)\stx\libbasic\Dictionary.$(H) $(INCLUDE_TOP)\stx\libbasic\IdentityDictionary.$(H) $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libbasic\Set.$(H) $(STCHDR)
 $(OUTDIR)ResourceRetriever.$(O) ResourceRetriever.$(C) ResourceRetriever.$(H): ResourceRetriever.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
 $(OUTDIR)StandardSystemController.$(O) StandardSystemController.$(C) StandardSystemController.$(H): StandardSystemController.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview\Controller.$(H) $(STCHDR)
-$(OUTDIR)TIFFReader.$(O) TIFFReader.$(C) TIFFReader.$(H): TIFFReader.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview\ImageReader.$(H) $(STCHDR)
-$(OUTDIR)TransparentBox.$(O) TransparentBox.$(C) TransparentBox.$(H): TransparentBox.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview\DeviceGraphicsContext.$(H) $(INCLUDE_TOP)\stx\libview\DisplaySurface.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsContext.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsMedium.$(H) $(INCLUDE_TOP)\stx\libview\SimpleView.$(H) $(INCLUDE_TOP)\stx\libview\View.$(H) $(STCHDR)
-$(OUTDIR)VisualRegion.$(O) VisualRegion.$(C) VisualRegion.$(H): VisualRegion.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview\DeviceGraphicsContext.$(H) $(INCLUDE_TOP)\stx\libview\DisplaySurface.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsContext.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsMedium.$(H) $(INCLUDE_TOP)\stx\libview\SimpleView.$(H) $(STCHDR)
+$(OUTDIR)TIFFReader.$(O) TIFFReader.$(C) TIFFReader.$(H): TIFFReader.st $(INCLUDE_TOP)\stx\libbasic\Collection.$(H) $(INCLUDE_TOP)\stx\libbasic\Dictionary.$(H) $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libbasic\Set.$(H) $(INCLUDE_TOP)\stx\libview\ImageReader.$(H) $(STCHDR)
+$(OUTDIR)TransparentBox.$(O) TransparentBox.$(C) TransparentBox.$(H): TransparentBox.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview\DisplaySurface.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsMedium.$(H) $(INCLUDE_TOP)\stx\libview\SimpleView.$(H) $(INCLUDE_TOP)\stx\libview\View.$(H) $(STCHDR)
+$(OUTDIR)VisualRegion.$(O) VisualRegion.$(C) VisualRegion.$(H): VisualRegion.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview\DisplaySurface.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsMedium.$(H) $(INCLUDE_TOP)\stx\libview\SimpleView.$(H) $(STCHDR)
 $(OUTDIR)WindowBuilder.$(O) WindowBuilder.$(C) WindowBuilder.$(H): WindowBuilder.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
 $(OUTDIR)WindowsIconReader.$(O) WindowsIconReader.$(C) WindowsIconReader.$(H): WindowsIconReader.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview\ImageReader.$(H) $(STCHDR)
 $(OUTDIR)XBMReader.$(O) XBMReader.$(C) XBMReader.$(H): XBMReader.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview\ImageReader.$(H) $(STCHDR)
@@ -188,8 +188,8 @@
 $(OUTDIR)ValueHolderWithRememberedPreviousValue.$(O) ValueHolderWithRememberedPreviousValue.$(C) ValueHolderWithRememberedPreviousValue.$(H): ValueHolderWithRememberedPreviousValue.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview2\Model.$(H) $(INCLUDE_TOP)\stx\libview2\ValueHolder.$(H) $(INCLUDE_TOP)\stx\libview2\ValueModel.$(H) $(STCHDR)
 $(OUTDIR)ValueHolderWithWeakDependents.$(O) ValueHolderWithWeakDependents.$(C) ValueHolderWithWeakDependents.$(H): ValueHolderWithWeakDependents.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview2\Model.$(H) $(INCLUDE_TOP)\stx\libview2\ValueHolder.$(H) $(INCLUDE_TOP)\stx\libview2\ValueModel.$(H) $(STCHDR)
 $(OUTDIR)AspectAdaptorWithDefault.$(O) AspectAdaptorWithDefault.$(C) AspectAdaptorWithDefault.$(H): AspectAdaptorWithDefault.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview2\AspectAdaptor.$(H) $(INCLUDE_TOP)\stx\libview2\Model.$(H) $(INCLUDE_TOP)\stx\libview2\ProtocolAdaptor.$(H) $(INCLUDE_TOP)\stx\libview2\ValueModel.$(H) $(STCHDR)
-$(OUTDIR)WinPrinterContext.$(O) WinPrinterContext.$(C) WinPrinterContext.$(H): WinPrinterContext.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libview\DeviceGraphicsContext.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsContext.$(H) $(INCLUDE_TOP)\stx\libview\GraphicsMedium.$(H) $(INCLUDE_TOP)\stx\libview2\PrinterContext.$(H) $(STCHDR)
-$(OUTDIR)WinPrinterStream.$(O) WinPrinterStream.$(C) WinPrinterStream.$(H): WinPrinterStream.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libbasic\Stream.$(H) $(INCLUDE_TOP)\stx\libbasic2\PrinterStream.$(H) $(STCHDR)
+$(OUTDIR)WinPrinterStream.$(O) WinPrinterStream.$(C) WinPrinterStream.$(H): WinPrinterStream.st $(STCHDR)
+$(OUTDIR)WinPrinterContext.$(O) WinPrinterContext.$(C) WinPrinterContext.$(H): WinPrinterContext.st $(STCHDR)
 $(OUTDIR)extensions.$(O): extensions.st $(INCLUDE_TOP)\stx\libbasic\ArrayedCollection.$(H) $(INCLUDE_TOP)\stx\libbasic\CharacterArray.$(H) $(INCLUDE_TOP)\stx\libbasic\Collection.$(H) $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libbasic\SequenceableCollection.$(H) $(INCLUDE_TOP)\stx\libbasic\UninterpretedBytes.$(H) $(STCHDR)
 
 # ENDMAKEDEPEND --- do not remove this line
--- a/bmake.bat	Tue Jul 19 07:10:19 2016 +0200
+++ b/bmake.bat	Fri Jul 29 21:43:13 2016 +0100
@@ -8,3 +8,5 @@
 make.exe -N -f bc.mak  %DEFINES% %*
 
 
+
+
--- a/mingwmake.bat	Tue Jul 19 07:10:19 2016 +0200
+++ b/mingwmake.bat	Fri Jul 29 21:43:13 2016 +0100
@@ -11,3 +11,5 @@
 make.exe -N -f bc.mak %DEFINES% %USEMINGW_ARG% %*
 
 
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stx_libview2WINrc.rc	Fri Jul 29 21:43:13 2016 +0100
@@ -0,0 +1,37 @@
+//
+// DO NOT EDIT
+// automagically generated from the projectDefinition: stx_libview2.
+//
+VS_VERSION_INFO VERSIONINFO
+  FILEVERSION     7,1,1,90
+  PRODUCTVERSION  7,1,0,0
+#if (__BORLANDC__)
+  FILEFLAGSMASK   VS_FF_DEBUG | VS_FF_PRERELEASE
+  FILEFLAGS       VS_FF_PRERELEASE | VS_FF_SPECIALBUILD
+  FILEOS          VOS_NT_WINDOWS32
+  FILETYPE        VFT_DLL
+  FILESUBTYPE     VS_USER_DEFINED
+#endif
+
+BEGIN
+  BLOCK "StringFileInfo"
+  BEGIN
+    BLOCK "040904E4"
+    BEGIN
+      VALUE "CompanyName", "eXept Software AG\0"
+      VALUE "FileDescription", "Smalltalk/X Additional Graphic Interfacing (LIB)\0"
+      VALUE "FileVersion", "7.1.1.90\0"
+      VALUE "InternalName", "stx:libview2\0"
+      VALUE "LegalCopyright", "Copyright Claus Gittinger 1988-2012\nCopyright eXept Software AG 2012\0"
+      VALUE "ProductName", "Smalltalk/X\0"
+      VALUE "ProductVersion", "7.1.0.0\0"
+      VALUE "ProductDate", "Wed, 20 Jul 2016 16:28:47 GMT\0"
+    END
+
+  END
+
+  BLOCK "VarFileInfo"
+  BEGIN                               //  Language   |    Translation
+    VALUE "Translation", 0x409, 0x4E4 // U.S. English, Windows Multilingual
+  END
+END
--- a/vcmake.bat	Tue Jul 19 07:10:19 2016 +0200
+++ b/vcmake.bat	Fri Jul 29 21:43:13 2016 +0100
@@ -15,3 +15,4 @@
 
 
 
+