@@ -35,85 +35,35 @@ abstract class BaseWriter implements IWriter
3535 */
3636 private $ diskCachingDirectory = './ ' ;
3737
38- /**
39- * Write charts in workbook?
40- * If this is true, then the Writer will write definitions for any charts that exist in the PhpSpreadsheet object.
41- * If false (the default) it will ignore any charts defined in the PhpSpreadsheet object.
42- *
43- * @return bool
44- */
4538 public function getIncludeCharts ()
4639 {
4740 return $ this ->includeCharts ;
4841 }
4942
50- /**
51- * Set write charts in workbook
52- * Set to true, to advise the Writer to include any charts that exist in the PhpSpreadsheet object.
53- * Set to false (the default) to ignore charts.
54- *
55- * @param bool $pValue
56- *
57- * @return IWriter
58- */
5943 public function setIncludeCharts ($ pValue )
6044 {
6145 $ this ->includeCharts = (bool ) $ pValue ;
6246
6347 return $ this ;
6448 }
6549
66- /**
67- * Get Pre-Calculate Formulas flag
68- * If this is true (the default), then the writer will recalculate all formulae in a workbook when saving,
69- * so that the pre-calculated values are immediately available to MS Excel or other office spreadsheet
70- * viewer when opening the file
71- * If false, then formulae are not calculated on save. This is faster for saving in PhpSpreadsheet, but slower
72- * when opening the resulting file in MS Excel, because Excel has to recalculate the formulae itself.
73- *
74- * @return bool
75- */
7650 public function getPreCalculateFormulas ()
7751 {
7852 return $ this ->preCalculateFormulas ;
7953 }
8054
81- /**
82- * Set Pre-Calculate Formulas
83- * Set to true (the default) to advise the Writer to calculate all formulae on save
84- * Set to false to prevent precalculation of formulae on save.
85- *
86- * @param bool $pValue Pre-Calculate Formulas?
87- *
88- * @return IWriter
89- */
9055 public function setPreCalculateFormulas ($ pValue )
9156 {
9257 $ this ->preCalculateFormulas = (bool ) $ pValue ;
9358
9459 return $ this ;
9560 }
9661
97- /**
98- * Get use disk caching where possible?
99- *
100- * @return bool
101- */
10262 public function getUseDiskCaching ()
10363 {
10464 return $ this ->useDiskCaching ;
10565 }
10666
107- /**
108- * Set use disk caching where possible?
109- *
110- * @param bool $pValue
111- * @param string $pDirectory Disk caching directory
112- *
113- * @throws Exception when directory does not exist
114- *
115- * @return IWriter
116- */
11767 public function setUseDiskCaching ($ pValue , $ pDirectory = null )
11868 {
11969 $ this ->useDiskCaching = $ pValue ;
@@ -129,11 +79,6 @@ public function setUseDiskCaching($pValue, $pDirectory = null)
12979 return $ this ;
13080 }
13181
132- /**
133- * Get disk caching directory.
134- *
135- * @return string
136- */
13782 public function getDiskCachingDirectory ()
13883 {
13984 return $ this ->diskCachingDirectory ;
0 commit comments