class PHPExcel_Writer_Excel2007_Style extends PHPExcel_Writer_Excel2007_WriterPart

PHPExcelWriterExcel2007_Style

Copyright (c) 2006 - 2015 PHPExcel

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Methods

setParentWriter(PHPExcel_Writer_IWriter $pWriter = null)

Set parent IWriter object

__construct(PHPExcel_Writer_IWriter $pWriter = null)

Set parent IWriter object

string
writeStyles(PHPExcel $pPHPExcel = null)

Write styles to XML format

allStyles(PHPExcel $pPHPExcel = null)

Get an array of all styles

allConditionalStyles(PHPExcel $pPHPExcel = null)

Get an array of all conditional styles

allFills(PHPExcel $pPHPExcel = null)

Get an array of all fills

allFonts(PHPExcel $pPHPExcel = null)

Get an array of all fonts

allBorders(PHPExcel $pPHPExcel = null)

Get an array of all borders

allNumberFormats(PHPExcel $pPHPExcel = null)

Get an array of all number formats

Details

setParentWriter(PHPExcel_Writer_IWriter $pWriter = null)

Set parent IWriter object

Parameters

PHPExcel_Writer_IWriter $pWriter

Exceptions

PHPExcel_Writer_Exception

PHPExcel_Writer_IWriter getParentWriter()

Get parent IWriter object

__construct(PHPExcel_Writer_IWriter $pWriter = null)

Set parent IWriter object

Parameters

PHPExcel_Writer_IWriter $pWriter

Exceptions

PHPExcel_Writer_Exception

at line 46
string writeStyles(PHPExcel $pPHPExcel = null)

Write styles to XML format

Parameters

PHPExcel $pPHPExcel

Return Value

string XML Output

Exceptions

PHPExcel_Writer_Exception

at line 580
PHPExcel_Style[] allStyles(PHPExcel $pPHPExcel = null)

Get an array of all styles

Parameters

PHPExcel $pPHPExcel

Return Value

PHPExcel_Style[] All styles in PHPExcel

Exceptions

PHPExcel_Writer_Exception

at line 592
PHPExcel_Style_Conditional[] allConditionalStyles(PHPExcel $pPHPExcel = null)

Get an array of all conditional styles

Parameters

PHPExcel $pPHPExcel

Return Value

PHPExcel_Style_Conditional[] All conditional styles in PHPExcel

Exceptions

PHPExcel_Writer_Exception

at line 616
PHPExcel_Style_Fill[] allFills(PHPExcel $pPHPExcel = null)

Get an array of all fills

Parameters

PHPExcel $pPHPExcel

Return Value

PHPExcel_Style_Fill[] All fills in PHPExcel

Exceptions

PHPExcel_Writer_Exception

at line 647
PHPExcel_Style_Font[] allFonts(PHPExcel $pPHPExcel = null)

Get an array of all fonts

Parameters

PHPExcel $pPHPExcel

Return Value

PHPExcel_Style_Font[] All fonts in PHPExcel

Exceptions

PHPExcel_Writer_Exception

at line 669
PHPExcel_Style_Borders[] allBorders(PHPExcel $pPHPExcel = null)

Get an array of all borders

Parameters

PHPExcel $pPHPExcel

Return Value

PHPExcel_Style_Borders[] All borders in PHPExcel

Exceptions

PHPExcel_Writer_Exception

at line 691
PHPExcel_Style_NumberFormat[] allNumberFormats(PHPExcel $pPHPExcel = null)

Get an array of all number formats

Parameters

PHPExcel $pPHPExcel

Return Value

PHPExcel_Style_NumberFormat[] All number formats in PHPExcel

Exceptions

PHPExcel_Writer_Exception