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
This commit is contained in:
Xavier Noguer Gallego 2004-03-24 00:21:59 +00:00
parent 14b702dfe3
commit 658991d743
1 changed files with 14 additions and 3 deletions

View File

@ -423,8 +423,9 @@ class Spreadsheet_Excel_Writer_Worksheet extends Spreadsheet_Excel_Writer_BIFFwr
$this->print_colmin = NULL; $this->print_colmin = NULL;
$this->print_colmax = NULL; $this->print_colmax = NULL;
$this->_print_gridlines = 1; $this->_print_gridlines = 1;
$this->_print_headers = 0; $this->_screen_gridlines = 1;
$this->_print_headers = 0;
$this->_fit_page = 0; $this->_fit_page = 0;
$this->_fit_width = 0; $this->_fit_width = 0;
@ -1016,6 +1017,16 @@ class Spreadsheet_Excel_Writer_Worksheet extends Spreadsheet_Excel_Writer_BIFFwr
$this->_print_gridlines = 0; $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. * 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 // The options flags that comprise $grbit
$fDspFmla = 0; // 0 - bit $fDspFmla = 0; // 0 - bit
$fDspGrid = 1; // 1 $fDspGrid = $this->_screen_gridlines; // 1
$fDspRwCol = 1; // 2 $fDspRwCol = 1; // 2
$fFrozen = $this->_frozen; // 3 $fFrozen = $this->_frozen; // 3
$fDspZeros = 1; // 4 $fDspZeros = 1; // 4