@@ -2800,7 +2800,7 @@ private function writeCFRule(
2800
2800
2801
2801
// $flags : Option flags
2802
2802
// Alignment
2803
- $ bAlignHz = ($ conditional ->getStyle ()->getAlignment ()->getHorizontal () === null ? 1 : 0 );
2803
+ /* $bAlignHz = ($conditional->getStyle()->getAlignment()->getHorizontal() === null ? 1 : 0);
2804
2804
$bAlignVt = ($conditional->getStyle()->getAlignment()->getVertical() === null ? 1 : 0);
2805
2805
$bAlignWrapTx = ($conditional->getStyle()->getAlignment()->getWrapText() === false ? 1 : 0);
2806
2806
$bTxRotation = ($conditional->getStyle()->getAlignment()->getTextRotation() === null ? 1 : 0);
@@ -2810,15 +2810,15 @@ private function writeCFRule(
2810
2810
$bFormatAlign = 1;
2811
2811
} else {
2812
2812
$bFormatAlign = 0;
2813
- }
2813
+ }*/
2814
2814
// Protection
2815
- $ bProtLocked = ($ conditional ->getStyle ()->getProtection ()->getLocked () === null ? 1 : 0 );
2815
+ /* $bProtLocked = ($conditional->getStyle()->getProtection()->getLocked() === null ? 1 : 0);
2816
2816
$bProtHidden = ($conditional->getStyle()->getProtection()->getHidden() === null ? 1 : 0);
2817
2817
if ($bProtLocked == 0 || $bProtHidden == 0) {
2818
2818
$bFormatProt = 1;
2819
2819
} else {
2820
2820
$bFormatProt = 0;
2821
- }
2821
+ }*/
2822
2822
// Border
2823
2823
$ bBorderLeft = ($ conditional ->getStyle ()->getBorders ()->getLeft ()->getBorderStyle () !== Border::BORDER_OMIT ) ? 1 : 0 ;
2824
2824
$ bBorderRight = ($ conditional ->getStyle ()->getBorders ()->getRight ()->getBorderStyle () !== Border::BORDER_OMIT ) ? 1 : 0 ;
@@ -2856,19 +2856,19 @@ private function writeCFRule(
2856
2856
}
2857
2857
// Alignment
2858
2858
$ flags = 0 ;
2859
- $ flags |= (1 == $ bAlignHz ? 0x00000001 : 0 );
2860
- $ flags |= (1 == $ bAlignVt ? 0x00000002 : 0 );
2861
- $ flags |= (1 == $ bAlignWrapTx ? 0x00000004 : 0 );
2862
- $ flags |= (1 == $ bTxRotation ? 0x00000008 : 0 );
2859
+ // $flags |= (1 == $bAlignHz ? 0x00000001 : 0);
2860
+ // $flags |= (1 == $bAlignVt ? 0x00000002 : 0);
2861
+ // $flags |= (1 == $bAlignWrapTx ? 0x00000004 : 0);
2862
+ // $flags |= (1 == $bTxRotation ? 0x00000008 : 0);
2863
2863
// Justify last line flag
2864
2864
$ flags |= (1 == self ::$ always1 ? 0x00000010 : 0 );
2865
- $ flags |= (1 == $ bIndent ? 0x00000020 : 0 );
2866
- $ flags |= (1 == $ bShrinkToFit ? 0x00000040 : 0 );
2865
+ // $flags |= (1 == $bIndent ? 0x00000020 : 0);
2866
+ // $flags |= (1 == $bShrinkToFit ? 0x00000040 : 0);
2867
2867
// Default
2868
2868
$ flags |= (1 == self ::$ always1 ? 0x00000080 : 0 );
2869
2869
// Protection
2870
- $ flags |= (1 == $ bProtLocked ? 0x00000100 : 0 );
2871
- $ flags |= (1 == $ bProtHidden ? 0x00000200 : 0 );
2870
+ // $flags |= (1 == $bProtLocked ? 0x00000100 : 0);
2871
+ // $flags |= (1 == $bProtHidden ? 0x00000200 : 0);
2872
2872
// Border
2873
2873
$ flags |= (1 == $ bBorderLeft ? 0x00000400 : 0 );
2874
2874
$ flags |= (1 == $ bBorderRight ? 0x00000800 : 0 );
@@ -2884,18 +2884,18 @@ private function writeCFRule(
2884
2884
// Font
2885
2885
$ flags |= (1 == $ bFormatFont ? 0x04000000 : 0 );
2886
2886
// Alignment:
2887
- $ flags |= (1 == $ bFormatAlign ? 0x08000000 : 0 );
2887
+ // $flags |= (1 == $bFormatAlign ? 0x08000000 : 0);
2888
2888
// Border
2889
2889
$ flags |= (1 == $ bFormatBorder ? 0x10000000 : 0 );
2890
2890
// Pattern
2891
2891
$ flags |= (1 == $ bFormatFill ? 0x20000000 : 0 );
2892
2892
// Protection
2893
- $ flags |= (1 == $ bFormatProt ? 0x40000000 : 0 );
2893
+ // $flags |= (1 == $bFormatProt ? 0x40000000 : 0);
2894
2894
// Text direction
2895
2895
$ flags |= (1 == self ::$ always0 ? 0x80000000 : 0 );
2896
2896
2897
2897
$ dataBlockFont = null ;
2898
- $ dataBlockAlign = null ;
2898
+ // $dataBlockAlign = null;
2899
2899
$ dataBlockBorder = null ;
2900
2900
$ dataBlockFill = null ;
2901
2901
@@ -2995,7 +2995,7 @@ private function writeCFRule(
2995
2995
// Always
2996
2996
$ dataBlockFont .= pack ('v ' , 0x0001 );
2997
2997
}
2998
- if ($ bFormatAlign === 1 ) {
2998
+ /* if ($bFormatAlign === 1) {
2999
2999
// Alignment and text break
3000
3000
$blockAlign = Style\CellAlignment::horizontal($conditional->getStyle()->getAlignment());
3001
3001
$blockAlign |= Style\CellAlignment::wrap($conditional->getStyle()->getAlignment()) << 3;
@@ -3018,7 +3018,7 @@ private function writeCFRule(
3018
3018
$blockIndentRelative = 255;
3019
3019
3020
3020
$dataBlockAlign = pack('CCvvv', $blockAlign, $blockRotation, $blockIndent, $blockIndentRelative, 0x0000);
3021
- }
3021
+ }*/
3022
3022
if ($ bFormatBorder === 1 ) {
3023
3023
$ blockLineStyle = Style \CellBorder::style ($ conditional ->getStyle ()->getBorders ()->getLeft ());
3024
3024
$ blockLineStyle |= Style \CellBorder::style ($ conditional ->getStyle ()->getBorders ()->getRight ()) << 4 ;
@@ -3052,18 +3052,18 @@ private function writeCFRule(
3052
3052
if ($ bFormatFont === 1 ) { // Block Formatting : OK
3053
3053
$ data .= $ dataBlockFont ;
3054
3054
}
3055
- if ($ bFormatAlign === 1 ) {
3056
- $ data .= $ dataBlockAlign ;
3057
- }
3055
+ // if ($bFormatAlign === 1) {
3056
+ // $data .= $dataBlockAlign;
3057
+ // }
3058
3058
if ($ bFormatBorder === 1 ) {
3059
3059
$ data .= $ dataBlockBorder ;
3060
3060
}
3061
3061
if ($ bFormatFill === 1 ) { // Block Formatting : OK
3062
3062
$ data .= $ dataBlockFill ;
3063
3063
}
3064
- if ($ bFormatProt == 1 ) {
3065
- $ data .= $ this ->getDataBlockProtection ($ conditional );
3066
- }
3064
+ // if ($bFormatProt == 1) {
3065
+ // $data .= $this->getDataBlockProtection($conditional);
3066
+ // }
3067
3067
if ($ operand1 !== null ) {
3068
3068
$ data .= $ operand1 ;
3069
3069
}
@@ -3127,7 +3127,7 @@ private function writeCFHeader(string $cellCoordinate, array $conditionalStyles)
3127
3127
return true ;
3128
3128
}
3129
3129
3130
- private function getDataBlockProtection (Conditional $ conditional ): int
3130
+ /* private function getDataBlockProtection(Conditional $conditional): int
3131
3131
{
3132
3132
$dataBlockProtection = 0;
3133
3133
if ($conditional->getStyle()->getProtection()->getLocked() == Protection::PROTECTION_PROTECTED) {
@@ -3138,7 +3138,7 @@ private function getDataBlockProtection(Conditional $conditional): int
3138
3138
}
3139
3139
3140
3140
return $dataBlockProtection;
3141
- }
3141
+ }*/
3142
3142
3143
3143
private function workbookColorIndex (?string $ rgb , int $ default ): int
3144
3144
{
0 commit comments