From 658991d743ea17544c965198624fa284809c2eaf Mon Sep 17 00:00:00 2001 From: Xavier Noguer Gallego Date: Wed, 24 Mar 2004 00:21:59 +0000 Subject: [PATCH] new method for hiding screen gridlines: hideScreenGridlines(). Paul Osman. git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@154445 c90b9560-bf6c-de11-be94-00142212c4b1 --- Writer/Worksheet.php | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/Writer/Worksheet.php b/Writer/Worksheet.php index 90c79fe..0507539 100644 --- a/Writer/Worksheet.php +++ b/Writer/Worksheet.php @@ -423,8 +423,9 @@ class Spreadsheet_Excel_Writer_Worksheet extends Spreadsheet_Excel_Writer_BIFFwr $this->print_colmin = NULL; $this->print_colmax = NULL; - $this->_print_gridlines = 1; - $this->_print_headers = 0; + $this->_print_gridlines = 1; + $this->_screen_gridlines = 1; + $this->_print_headers = 0; $this->_fit_page = 0; $this->_fit_width = 0; @@ -1016,6 +1017,16 @@ class Spreadsheet_Excel_Writer_Worksheet extends Spreadsheet_Excel_Writer_BIFFwr $this->_print_gridlines = 0; } + /** + * Set the option to hide gridlines on the worksheet (as seen on the screen). + * + * @access public + */ + function hideScreenGridlines() + { + $this->_screen_gridlines = 0; + } + /** * Set the option to print the row and column headers on the printed page. * @@ -2198,7 +2209,7 @@ class Spreadsheet_Excel_Writer_Worksheet extends Spreadsheet_Excel_Writer_BIFFwr // The options flags that comprise $grbit $fDspFmla = 0; // 0 - bit - $fDspGrid = 1; // 1 + $fDspGrid = $this->_screen_gridlines; // 1 $fDspRwCol = 1; // 2 $fFrozen = $this->_frozen; // 3 $fDspZeros = 1; // 4