File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,16 @@ public function getNumId()
139
139
return $ this ->numId ;
140
140
}
141
141
142
+ /**
143
+ * Set numbering Id. Same numId means same list
144
+ * @param mixed $numInt
145
+ */
146
+ public function setNumId ($ numInt )
147
+ {
148
+ $ this ->numId = $ numInt ;
149
+ $ this ->getListTypeStyle ();
150
+ }
151
+
142
152
/**
143
153
* Get legacy numbering definition
144
154
*
@@ -148,7 +158,12 @@ public function getNumId()
148
158
private function getListTypeStyle ()
149
159
{
150
160
// Check if legacy style already registered in global Style collection
151
- $ numStyle = "PHPWordList {$ this ->listType }" ;
161
+ $ numStyle = 'PHPWordListType ' . $ this ->listType ;
162
+
163
+ if ($ this ->numId ) {
164
+ $ numStyle .= 'NumId ' . $ this ->numId ;
165
+ }
166
+
152
167
if (Style::getStyle ($ numStyle ) !== null ) {
153
168
$ this ->setNumStyle ($ numStyle );
154
169
You can’t perform that action at this time.
0 commit comments