@@ 2033-2039 (lines=7) @@ | ||
2030 | ||
2031 | // protection |
|
2032 | if (isset($style->protection)) { |
|
2033 | if (isset($style->protection['locked'])) { |
|
2034 | if (self::boolean((string) $style->protection['locked'])) { |
|
2035 | $docStyle->getProtection()->setLocked(\PhpSpreadsheet\Style\Protection::PROTECTION_PROTECTED); |
|
2036 | } else { |
|
2037 | $docStyle->getProtection()->setLocked(\PhpSpreadsheet\Style\Protection::PROTECTION_UNPROTECTED); |
|
2038 | } |
|
2039 | } |
|
2040 | ||
2041 | if (isset($style->protection['hidden'])) { |
|
2042 | if (self::boolean((string) $style->protection['hidden'])) { |
|
@@ 2041-2047 (lines=7) @@ | ||
2038 | } |
|
2039 | } |
|
2040 | ||
2041 | if (isset($style->protection['hidden'])) { |
|
2042 | if (self::boolean((string) $style->protection['hidden'])) { |
|
2043 | $docStyle->getProtection()->setHidden(\PhpSpreadsheet\Style\Protection::PROTECTION_PROTECTED); |
|
2044 | } else { |
|
2045 | $docStyle->getProtection()->setHidden(\PhpSpreadsheet\Style\Protection::PROTECTION_UNPROTECTED); |
|
2046 | } |
|
2047 | } |
|
2048 | } |
|
2049 | ||
2050 | // top-level style settings |