PrinterContext.st
changeset 2314 45d7ac6cc556
parent 2303 06b20d5a52da
child 2322 7ea80c2356c7
--- a/PrinterContext.st	Mon Apr 16 16:12:45 2007 +0200
+++ b/PrinterContext.st	Tue Apr 17 13:07:23 2007 +0200
@@ -338,6 +338,16 @@
     
 
     "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"
+    "Modified: / 02-08-2006 / 17:30:47 / fm"
+    "Modified: / 16-04-2007 / 12:49:22 / cg"
 ! !
 
 !PrinterContext methodsFor:'printing'!
@@ -562,7 +572,19 @@
 
 endPrintJob
     "End the print job.  Everything drawn between startPrintJob
-     and endPrintJob will become one entry in the print queue."
+     and endPrintJob will become one entry in the print queue.
+     Close and clean the device context of the receiver"
+
+    self endPrintJobWithoutRelease.
+    self releaseDC.
+
+    "Modified: / 16-04-2007 / 12:47:28 / cg"
+!
+
+endPrintJobWithoutRelease
+    "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
 
@@ -917,5 +939,5 @@
 !PrinterContext class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview2/PrinterContext.st,v 1.14 2007-04-16 11:04:38 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview2/PrinterContext.st,v 1.15 2007-04-17 11:07:23 fm Exp $'
 ! !