class PHPExcel_Writer_Excel2007_Drawing extends PHPExcel_Writer_Excel2007_WriterPart

PHPExcelWriterExcel2007_Drawing

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
writeDrawings(PHPExcel_Worksheet $pWorksheet = null, int $chartRef, boolean $includeCharts = false)

Write drawings to XML format

writeChart(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Chart $pChart = null, int $pRelationId = -1)

Write drawings to XML format

writeDrawing(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet_BaseDrawing $pDrawing = null, int $pRelationId = -1)

Write drawings to XML format

string
writeVMLHeaderFooterImages(PHPExcel_Worksheet $pWorksheet = null)

Write VML header/footer images to XML format

allDrawings(PHPExcel $pPHPExcel = null)

Get an array of all drawings

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 48
string writeDrawings(PHPExcel_Worksheet $pWorksheet = null, int $chartRef, boolean $includeCharts = false)

Write drawings to XML format

Parameters

PHPExcel_Worksheet $pWorksheet
int $chartRef &$chartRef Chart ID
boolean $includeCharts Flag indicating if we should include drawing details for charts

Return Value

string XML Output

Exceptions

PHPExcel_Writer_Exception

at line 100
writeChart(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Chart $pChart = null, int $pRelationId = -1)

Write drawings to XML format

Parameters

PHPExcel_Shared_XMLWriter $objWriter XML Writer
PHPExcel_Chart $pChart
int $pRelationId

Exceptions

PHPExcel_Writer_Exception

at line 172
writeDrawing(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet_BaseDrawing $pDrawing = null, int $pRelationId = -1)

Write drawings to XML format

Parameters

PHPExcel_Shared_XMLWriter $objWriter XML Writer
PHPExcel_Worksheet_BaseDrawing $pDrawing
int $pRelationId

Exceptions

PHPExcel_Writer_Exception

at line 389
string writeVMLHeaderFooterImages(PHPExcel_Worksheet $pWorksheet = null)

Write VML header/footer images to XML format

Parameters

PHPExcel_Worksheet $pWorksheet

Return Value

string XML Output

Exceptions

PHPExcel_Writer_Exception

at line 579
PHPExcel_Worksheet_Drawing[] allDrawings(PHPExcel $pPHPExcel = null)

Get an array of all drawings

Parameters

PHPExcel $pPHPExcel

Return Value

PHPExcel_Worksheet_Drawing[] All drawings in PHPExcel

Exceptions

PHPExcel_Writer_Exception