File tree 2 files changed +33
-0
lines changed
2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,13 @@ class Indentation extends AbstractStyle
46
46
*/
47
47
private $ firstLine = 0 ;
48
48
49
+ /**
50
+ * Additional first line chars indentation (twip).
51
+ *
52
+ * @var float|int
53
+ */
54
+ private $ firstLineChars = 0 ;
55
+
49
56
/**
50
57
* Indentation removed from first line (twip).
51
58
*
@@ -135,6 +142,29 @@ public function setFirstLine($value)
135
142
return $ this ;
136
143
}
137
144
145
+ /**
146
+ * Get first line chars.
147
+ *
148
+ * @return float|int
149
+ */
150
+ public function getFirstLineChars ()
151
+ {
152
+ return $ this ->firstLineChars ;
153
+ }
154
+
155
+ /**
156
+ * Set first line chars.
157
+ *
158
+ * @param float|int $value
159
+ *
160
+ * @return $this
161
+ */
162
+ public function setFirstLineChars ($ value )
163
+ {
164
+ $ this ->firstLineChars = $ this ->setNumericVal ($ value , $ this ->firstLineChars );
165
+ return $ this ;
166
+ }
167
+
138
168
/**
139
169
* Get hanging.
140
170
*
Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ public function write(): void
43
43
$ firstLine = $ style ->getFirstLine ();
44
44
$ xmlWriter ->writeAttributeIf (null !== $ firstLine , 'w:firstLine ' , $ this ->convertTwip ($ firstLine ));
45
45
46
+ $ firstLineChars = $ style ->getFirstLineChars ();
47
+ $ xmlWriter ->writeAttributeIf (null !== $ firstLineChars , 'w:firstLineChars ' , $ this ->convertTwip ($ firstLineChars ));
48
+
46
49
$ hanging = $ style ->getHanging ();
47
50
$ xmlWriter ->writeAttributeIf (null !== $ hanging , 'w:hanging ' , $ this ->convertTwip ($ hanging ));
48
51
You can’t perform that action at this time.
0 commit comments