Added showFullScreen0
authorandy_robinson
Sun, 15 Oct 2000 21:57:13 +0000
changeset 479 e37604e2fcf9
parent 478 2608a61dcb08
child 480 bf0f7c5c4d13
Added showFullScreen0
reportlab/pdfbase/pdfdoc.py
reportlab/pdfgen/canvas.py
--- a/reportlab/pdfbase/pdfdoc.py	Tue Oct 10 10:27:38 2000 +0000
+++ b/reportlab/pdfbase/pdfdoc.py	Sun Oct 15 21:57:13 2000 +0000
@@ -31,9 +31,12 @@
 #
 ###############################################################################
 #	$Log: pdfdoc.py,v $
+#	Revision 1.25  2000/10/15 21:57:12  andy_robinson
+#	Added showFullScreen0
+#
 #	Revision 1.24  2000/09/08 10:04:08  rgbecker
 #	Paul Eddington's unix tell() returns a LongIntType bugfix
-#
+#	
 #	Revision 1.23  2000/08/24 02:26:04  aaron_watters
 #	change to PDFLiteral to support "lazy string conversions" (to support lazy crosslinks)
 #	
@@ -95,7 +98,7 @@
 #	Revision 1.2  2000/02/15 15:47:09  rgbecker
 #	Added license, __version__ and Logi comment
 #	
-__version__=''' $Id: pdfdoc.py,v 1.24 2000/09/08 10:04:08 rgbecker Exp $ '''
+__version__=''' $Id: pdfdoc.py,v 1.25 2000/10/15 21:57:12 andy_robinson Exp $ '''
 __doc__=""" 
 PDFgen is a library to generate PDF files containing text and graphics.  It is the 
 foundation for a complete reporting solution in Python.  
@@ -562,6 +565,8 @@
                         )
     def showOutline(self):
         self.PageMode = "/UseOutlines"
+    def showFullScreen(self):
+        self.PageMode = "/FullScreen"
     def save(self, file):
         file.write(self.template % (self.RefPages, self.RefOutlines, self.PageMode) + LINEEND)
 
--- a/reportlab/pdfgen/canvas.py	Tue Oct 10 10:27:38 2000 +0000
+++ b/reportlab/pdfgen/canvas.py	Sun Oct 15 21:57:13 2000 +0000
@@ -31,9 +31,12 @@
 #
 ###############################################################################
 #	$Log: canvas.py,v $
+#	Revision 1.52  2000/10/15 21:57:13  andy_robinson
+#	Added showFullScreen0
+#
 #	Revision 1.51  2000/09/04 08:06:15  rgbecker
 #	Fix spurious comment reference to layout
-#
+#	
 #	Revision 1.50  2000/09/01 12:13:26  rgbecker
 #	Improved optimisation checks
 #	
@@ -183,7 +186,7 @@
 #	Revision 1.2  2000/02/15 15:47:09  rgbecker
 #	Added license, __version__ and Logi comment
 #	
-__version__=''' $Id: canvas.py,v 1.51 2000/09/04 08:06:15 rgbecker Exp $ '''
+__version__=''' $Id: canvas.py,v 1.52 2000/10/15 21:57:13 andy_robinson Exp $ '''
 __doc__=""" 
 PDFgen is a library to generate PDF files containing text and graphics.  It is the 
 foundation for a complete reporting solution in Python.  It is also the
@@ -484,9 +487,17 @@
         return len(self._code) == 0
         
     def showOutline(self):
-        "Specify that Acrobat Reader should start with the outline tree visible"
+        """Specify that Acrobat Reader should start with the outline tree visible.
+        showFullScreen() and showOutline() conflict; the one called last
+        wins."""
         self._doc._catalog.showOutline()
     
+    def showFullScreen0(self):
+        """Specify that Acrobat Reader should start in full screen mode.
+        showFullScreen() and showOutline() conflict; the one called last
+        wins."""
+        self._doc._catalog.showFullScreen()
+
     def showPage(self):
         """Close the current page and possibly start on a new page."""
         page = pdfdoc.PDFPage()