File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
src/PhpWord/Reader/Word2007 Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 19
19
20
20
use PhpOffice \Common \XMLReader ;
21
21
use PhpOffice \PhpWord \PhpWord ;
22
- use PhpOffice \PhpWord \Metadata \Protection ;
23
22
24
23
/**
25
24
* Settings reader
@@ -30,7 +29,6 @@ class Settings extends AbstractPart
30
29
{
31
30
32
31
private static $ booleanProperties = array ('hideSpellingErrors ' , 'hideGrammaticalErrors ' , 'evenAndOddHeaders ' );
33
- private static $ decimalProperties = array ('zoom ' );
34
32
35
33
/**
36
34
* Read settings.xml.
@@ -67,7 +65,14 @@ public function read(PhpWord $phpWord)
67
65
}
68
66
}
69
67
70
- private function setDocumentProtection (XMLReader $ xmlReader , PhpWord $ phpWord , \DOMNode $ node ) {
68
+ /**
69
+ * Sets the document protection
70
+ *
71
+ * @param XMLReader $xmlReader
72
+ * @param PhpWord $phpWord
73
+ * @param \DOMNode $node
74
+ */
75
+ protected function setDocumentProtection (XMLReader $ xmlReader , PhpWord $ phpWord , \DOMNode $ node ) {
71
76
$ documentProtection = $ phpWord ->getSettings ()->getDocumentProtection ();
72
77
73
78
$ edit = $ xmlReader ->getAttribute ('w:edit ' , $ node );
You can’t perform that action at this time.
0 commit comments