@@ -2800,7 +2800,7 @@ private function writeCFRule(
28002800
28012801 // $flags : Option flags
28022802 // Alignment
2803- $ bAlignHz = ($ conditional ->getStyle ()->getAlignment ()->getHorizontal () === null ? 1 : 0 );
2803+ /* $bAlignHz = ($conditional->getStyle()->getAlignment()->getHorizontal() === null ? 1 : 0);
28042804 $bAlignVt = ($conditional->getStyle()->getAlignment()->getVertical() === null ? 1 : 0);
28052805 $bAlignWrapTx = ($conditional->getStyle()->getAlignment()->getWrapText() === false ? 1 : 0);
28062806 $bTxRotation = ($conditional->getStyle()->getAlignment()->getTextRotation() === null ? 1 : 0);
@@ -2810,15 +2810,15 @@ private function writeCFRule(
28102810 $bFormatAlign = 1;
28112811 } else {
28122812 $bFormatAlign = 0;
2813- }
2813+ }*/
28142814 // Protection
2815- $ bProtLocked = ($ conditional ->getStyle ()->getProtection ()->getLocked () === null ? 1 : 0 );
2815+ /* $bProtLocked = ($conditional->getStyle()->getProtection()->getLocked() === null ? 1 : 0);
28162816 $bProtHidden = ($conditional->getStyle()->getProtection()->getHidden() === null ? 1 : 0);
28172817 if ($bProtLocked == 0 || $bProtHidden == 0) {
28182818 $bFormatProt = 1;
28192819 } else {
28202820 $bFormatProt = 0;
2821- }
2821+ }*/
28222822 // Border
28232823 $ bBorderLeft = ($ conditional ->getStyle ()->getBorders ()->getLeft ()->getBorderStyle () !== Border::BORDER_OMIT ) ? 1 : 0 ;
28242824 $ bBorderRight = ($ conditional ->getStyle ()->getBorders ()->getRight ()->getBorderStyle () !== Border::BORDER_OMIT ) ? 1 : 0 ;
@@ -2856,19 +2856,19 @@ private function writeCFRule(
28562856 }
28572857 // Alignment
28582858 $ 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);
28632863 // Justify last line flag
28642864 $ 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);
28672867 // Default
28682868 $ flags |= (1 == self ::$ always1 ? 0x00000080 : 0 );
28692869 // 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);
28722872 // Border
28732873 $ flags |= (1 == $ bBorderLeft ? 0x00000400 : 0 );
28742874 $ flags |= (1 == $ bBorderRight ? 0x00000800 : 0 );
@@ -2884,18 +2884,18 @@ private function writeCFRule(
28842884 // Font
28852885 $ flags |= (1 == $ bFormatFont ? 0x04000000 : 0 );
28862886 // Alignment:
2887- $ flags |= (1 == $ bFormatAlign ? 0x08000000 : 0 );
2887+ // $flags |= (1 == $bFormatAlign ? 0x08000000 : 0);
28882888 // Border
28892889 $ flags |= (1 == $ bFormatBorder ? 0x10000000 : 0 );
28902890 // Pattern
28912891 $ flags |= (1 == $ bFormatFill ? 0x20000000 : 0 );
28922892 // Protection
2893- $ flags |= (1 == $ bFormatProt ? 0x40000000 : 0 );
2893+ // $flags |= (1 == $bFormatProt ? 0x40000000 : 0);
28942894 // Text direction
28952895 $ flags |= (1 == self ::$ always0 ? 0x80000000 : 0 );
28962896
28972897 $ dataBlockFont = null ;
2898- $ dataBlockAlign = null ;
2898+ // $dataBlockAlign = null;
28992899 $ dataBlockBorder = null ;
29002900 $ dataBlockFill = null ;
29012901
@@ -2995,7 +2995,7 @@ private function writeCFRule(
29952995 // Always
29962996 $ dataBlockFont .= pack ('v ' , 0x0001 );
29972997 }
2998- if ($ bFormatAlign === 1 ) {
2998+ /* if ($bFormatAlign === 1) {
29992999 // Alignment and text break
30003000 $blockAlign = Style\CellAlignment::horizontal($conditional->getStyle()->getAlignment());
30013001 $blockAlign |= Style\CellAlignment::wrap($conditional->getStyle()->getAlignment()) << 3;
@@ -3018,7 +3018,7 @@ private function writeCFRule(
30183018 $blockIndentRelative = 255;
30193019
30203020 $dataBlockAlign = pack('CCvvv', $blockAlign, $blockRotation, $blockIndent, $blockIndentRelative, 0x0000);
3021- }
3021+ }*/
30223022 if ($ bFormatBorder === 1 ) {
30233023 $ blockLineStyle = Style \CellBorder::style ($ conditional ->getStyle ()->getBorders ()->getLeft ());
30243024 $ blockLineStyle |= Style \CellBorder::style ($ conditional ->getStyle ()->getBorders ()->getRight ()) << 4 ;
@@ -3052,18 +3052,18 @@ private function writeCFRule(
30523052 if ($ bFormatFont === 1 ) { // Block Formatting : OK
30533053 $ data .= $ dataBlockFont ;
30543054 }
3055- if ($ bFormatAlign === 1 ) {
3056- $ data .= $ dataBlockAlign ;
3057- }
3055+ // if ($bFormatAlign === 1) {
3056+ // $data .= $dataBlockAlign;
3057+ // }
30583058 if ($ bFormatBorder === 1 ) {
30593059 $ data .= $ dataBlockBorder ;
30603060 }
30613061 if ($ bFormatFill === 1 ) { // Block Formatting : OK
30623062 $ data .= $ dataBlockFill ;
30633063 }
3064- if ($ bFormatProt == 1 ) {
3065- $ data .= $ this ->getDataBlockProtection ($ conditional );
3066- }
3064+ // if ($bFormatProt == 1) {
3065+ // $data .= $this->getDataBlockProtection($conditional);
3066+ // }
30673067 if ($ operand1 !== null ) {
30683068 $ data .= $ operand1 ;
30693069 }
@@ -3127,7 +3127,7 @@ private function writeCFHeader(string $cellCoordinate, array $conditionalStyles)
31273127 return true ;
31283128 }
31293129
3130- private function getDataBlockProtection (Conditional $ conditional ): int
3130+ /* private function getDataBlockProtection(Conditional $conditional): int
31313131 {
31323132 $dataBlockProtection = 0;
31333133 if ($conditional->getStyle()->getProtection()->getLocked() == Protection::PROTECTION_PROTECTED) {
@@ -3138,7 +3138,7 @@ private function getDataBlockProtection(Conditional $conditional): int
31383138 }
31393139
31403140 return $dataBlockProtection;
3141- }
3141+ }*/
31423142
31433143 private function workbookColorIndex (?string $ rgb , int $ default ): int
31443144 {
0 commit comments