# PHPExcel_Writer_Abstract

class
**PHPExcel_Writer_Abstract** implements
PHPExcel_Writer_IWriter

PHPExcel*Writer*Abstract

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

Write charts in workbook? If this is true, then the Writer will write definitions for any charts that exist in the PHPExcel object.

Set write charts in workbook Set to true, to advise the Writer to include any charts that exist in the PHPExcel object.

Get Pre-Calculate Formulas flag If this is true (the default), then the writer will recalculate all formulae in a workbook when saving, so that the pre-calculated values are immediately available to MS Excel or other office spreadsheet viewer when opening the file If false, then formulae are not calculated on save. This is faster for saving in PHPExcel, but slower when opening the resulting file in MS Excel, because Excel has to recalculate the formulae itself

Set Pre-Calculate Formulas Set to true (the default) to advise the Writer to calculate all formulae on save Set to false to prevent precalculation of formulae on save.

Get use disk caching where possible?

Set use disk caching where possible?

Get disk caching directory

## Details

###
at line 77
```
boolean
```**getIncludeCharts**()

**getIncludeCharts**()

Write charts in workbook? If this is true, then the Writer will write definitions for any charts that exist in the PHPExcel object.

If false (the default) it will ignore any charts defined in the PHPExcel object.

###
at line 90
```
PHPExcel_Writer_IWriter
```**setIncludeCharts**(boolean $pValue = false)

**setIncludeCharts**(boolean $pValue = false)

Set write charts in workbook Set to true, to advise the Writer to include any charts that exist in the PHPExcel object.

Set to false (the default) to ignore charts.

###
at line 106
```
boolean
```**getPreCalculateFormulas**()

**getPreCalculateFormulas**()

Get Pre-Calculate Formulas flag If this is true (the default), then the writer will recalculate all formulae in a workbook when saving, so that the pre-calculated values are immediately available to MS Excel or other office spreadsheet viewer when opening the file If false, then formulae are not calculated on save. This is faster for saving in PHPExcel, but slower when opening the resulting file in MS Excel, because Excel has to recalculate the formulae itself

###
at line 119
```
PHPExcel_Writer_IWriter
```**setPreCalculateFormulas**(boolean $pValue = true)

**setPreCalculateFormulas**(boolean $pValue = true)

Set Pre-Calculate Formulas Set to true (the default) to advise the Writer to calculate all formulae on save Set to false to prevent precalculation of formulae on save.

###
at line 130
```
boolean
```**getUseDiskCaching**()

**getUseDiskCaching**()

Get use disk caching where possible?

###
at line 143
```
PHPExcel_Writer_Excel2007
```**setUseDiskCaching**(boolean $pValue = false, string $pDirectory = null)

**setUseDiskCaching**(boolean $pValue = false, string $pDirectory = null)

Set use disk caching where possible?

###
at line 162
```
string
```**getDiskCachingDirectory**()

**getDiskCachingDirectory**()

Get disk caching directory