documentProtection == null) { $this->documentProtection = new Protection(); } return $this->documentProtection; } /** * @param Protection $documentProtection */ public function setDocumentProtection($documentProtection) { $this->documentProtection = $documentProtection; } /** * Are spelling errors hidden * * @return boolean */ public function hasHideSpellingErrors() { return $this->hideSpellingErrors; } /** * Hide spelling errors * * @param boolean $hideSpellingErrors */ public function setHideSpellingErrors($hideSpellingErrors) { $this->hideSpellingErrors = $hideSpellingErrors === null ? true : $hideSpellingErrors; } /** * Are grammatical errors hidden * * @return boolean */ public function hasHideGrammaticalErrors() { return $this->hideGrammaticalErrors; } /** * Hide grammatical errors * * @param boolean $hideGrammaticalErrors */ public function setHideGrammaticalErrors($hideGrammaticalErrors) { $this->hideGrammaticalErrors = $hideGrammaticalErrors === null ? true : $hideGrammaticalErrors; } /** * @return boolean */ public function hasEvenAndOddHeaders() { return $this->evenAndOddHeaders; } /** * @param boolean $evenAndOddHeaders */ public function setEvenAndOddHeaders($evenAndOddHeaders) { $this->evenAndOddHeaders = $evenAndOddHeaders === null ? true : $evenAndOddHeaders; } }