Feature: Allow call to font setUnderline() for underline format to specify a simple boolean for UNDERLINE_NONE or UNDERLINE_SINGLE

This commit is contained in:
Mark Baker 2012-09-25 12:41:25 +01:00
parent f2bfda68e9
commit 4c88a30abd
2 changed files with 4 additions and 0 deletions

View File

@ -504,6 +504,9 @@ class PHPExcel_Style_Font implements PHPExcel_IComparable
* @return PHPExcel_Style_Font * @return PHPExcel_Style_Font
*/ */
public function setUnderline($pValue = PHPExcel_Style_Font::UNDERLINE_NONE) { public function setUnderline($pValue = PHPExcel_Style_Font::UNDERLINE_NONE) {
if (is_bool($pValue)) {
$pValue = ($pValue) ? PHPExcel_Style_Font::UNDERLINE_SINGLE : PHPExcel_Style_Font::UNDERLINE_NONE;
}
if ($pValue == '') { if ($pValue == '') {
$pValue = PHPExcel_Style_Font::UNDERLINE_NONE; $pValue = PHPExcel_Style_Font::UNDERLINE_NONE;
} }

View File

@ -86,6 +86,7 @@ Fixed in develop branch:
The new setExcelCompatibility(TRUE) option for the CSV Writer will generate files with this formatting for easy import into Excel2007 and below. The new setExcelCompatibility(TRUE) option for the CSV Writer will generate files with this formatting for easy import into Excel2007 and below.
- Feature: (MBaker) Language implementations for Turkish (tr) - Feature: (MBaker) Language implementations for Turkish (tr)
- Feature: (MBaker) Added fraction tests to advanced value binder - Feature: (MBaker) Added fraction tests to advanced value binder
- Feature: (MBaker) Allow call to font setUnderline() for underline format to specify a simple boolean for UNDERLINE_NONE or UNDERLINE_SINGLE
- General: (alexgann) Add Currency detection to the Advanced Value Binder - General: (alexgann) Add Currency detection to the Advanced Value Binder
- General: (MBaker) Work item 18404 - setCellValueExplicitByColumnAndRow() do not return PHPExcel_Worksheet - General: (MBaker) Work item 18404 - setCellValueExplicitByColumnAndRow() do not return PHPExcel_Worksheet
- General: (MBaker) Work item 18324 - Reader factory doesn't read anymore XLTX and XLT files - General: (MBaker) Work item 18324 - Reader factory doesn't read anymore XLTX and XLT files