@@ 1971-1977 (lines=7) @@ | ||
1968 | ||
1969 | // protection |
|
1970 | if (isset($style->protection)) { |
|
1971 | if (isset($style->protection['locked'])) { |
|
1972 | if (self::boolean((string) $style->protection['locked'])) { |
|
1973 | $docStyle->getProtection()->setLocked(\PhpOffice\PhpSpreadsheet\Style\Protection::PROTECTION_PROTECTED); |
|
1974 | } else { |
|
1975 | $docStyle->getProtection()->setLocked(\PhpOffice\PhpSpreadsheet\Style\Protection::PROTECTION_UNPROTECTED); |
|
1976 | } |
|
1977 | } |
|
1978 | ||
1979 | if (isset($style->protection['hidden'])) { |
|
1980 | if (self::boolean((string) $style->protection['hidden'])) { |
|
@@ 1979-1985 (lines=7) @@ | ||
1976 | } |
|
1977 | } |
|
1978 | ||
1979 | if (isset($style->protection['hidden'])) { |
|
1980 | if (self::boolean((string) $style->protection['hidden'])) { |
|
1981 | $docStyle->getProtection()->setHidden(\PhpOffice\PhpSpreadsheet\Style\Protection::PROTECTION_PROTECTED); |
|
1982 | } else { |
|
1983 | $docStyle->getProtection()->setHidden(\PhpOffice\PhpSpreadsheet\Style\Protection::PROTECTION_UNPROTECTED); |
|
1984 | } |
|
1985 | } |
|
1986 | } |
|
1987 | ||
1988 | // top-level style settings |