2
2
3
3
namespace PhpOffice \PhpSpreadsheet \Writer ;
4
4
5
- use PhpOffice \PhpSpreadsheet \Exception as PhpSpreadsheetException ;
6
-
7
5
abstract class BaseWriter implements IWriter
8
6
{
9
7
/**
@@ -19,18 +17,6 @@ abstract class BaseWriter implements IWriter
19
17
*/
20
18
protected bool $ preCalculateFormulas = true ;
21
19
22
- /**
23
- * Table formats
24
- * Enables table formats in writer, disabled here, must be enabled in writer via a setter.
25
- */
26
- protected bool $ tableFormats = false ;
27
-
28
- /**
29
- * Conditional Formatting
30
- * Enables conditional formatting in writer, disabled here, must be enabled in writer via a setter.
31
- */
32
- protected bool $ conditionalFormatting = false ;
33
-
34
20
/**
35
21
* Use disk caching where possible?
36
22
*/
@@ -72,34 +58,6 @@ public function setPreCalculateFormulas(bool $precalculateFormulas): self
72
58
return $ this ;
73
59
}
74
60
75
- public function getTableFormats (): bool
76
- {
77
- return $ this ->tableFormats ;
78
- }
79
-
80
- public function setTableFormats (bool $ tableFormats ): self
81
- {
82
- if ($ tableFormats ) {
83
- throw new PhpSpreadsheetException ('Table formatting not implemented for this writer ' );
84
- }
85
-
86
- return $ this ;
87
- }
88
-
89
- public function getConditionalFormatting (): bool
90
- {
91
- return $ this ->conditionalFormatting ;
92
- }
93
-
94
- public function setConditionalFormatting (bool $ conditionalFormatting ): self
95
- {
96
- if ($ conditionalFormatting ) {
97
- throw new PhpSpreadsheetException ('Conditional Formatting not implemented for this writer ' );
98
- }
99
-
100
- return $ this ;
101
- }
102
-
103
61
public function getUseDiskCaching (): bool
104
62
{
105
63
return $ this ->useDiskCaching ;
0 commit comments