@@ 1983-1989 (lines=7) @@ | ||
1980 | ||
1981 | // protection |
|
1982 | if (isset($style->protection)) { |
|
1983 | if (isset($style->protection['locked'])) { |
|
1984 | if (self::boolean((string) $style->protection['locked'])) { |
|
1985 | $docStyle->getProtection()->setLocked(\PhpOffice\PhpSpreadsheet\Style\Protection::PROTECTION_PROTECTED); |
|
1986 | } else { |
|
1987 | $docStyle->getProtection()->setLocked(\PhpOffice\PhpSpreadsheet\Style\Protection::PROTECTION_UNPROTECTED); |
|
1988 | } |
|
1989 | } |
|
1990 | ||
1991 | if (isset($style->protection['hidden'])) { |
|
1992 | if (self::boolean((string) $style->protection['hidden'])) { |
|
@@ 1991-1997 (lines=7) @@ | ||
1988 | } |
|
1989 | } |
|
1990 | ||
1991 | if (isset($style->protection['hidden'])) { |
|
1992 | if (self::boolean((string) $style->protection['hidden'])) { |
|
1993 | $docStyle->getProtection()->setHidden(\PhpOffice\PhpSpreadsheet\Style\Protection::PROTECTION_PROTECTED); |
|
1994 | } else { |
|
1995 | $docStyle->getProtection()->setHidden(\PhpOffice\PhpSpreadsheet\Style\Protection::PROTECTION_UNPROTECTED); |
|
1996 | } |
|
1997 | } |
|
1998 | } |
|
1999 | ||
2000 | // top-level style settings |