Lines Matching refs:params
21 …static public function listOpen(ODTInternalParams $params, $continue=false, $styleName, $element=N… argument
22 $params->document->paragraphClose();
25 ODTUtility::openHTMLElement ($params, $properties, $element, $attributes);
28 $params->document->state->enter($list);
31 $params->content .= $list->getOpeningTag();
37 static public function listClose(ODTInternalParams $params) { argument
38 $table = $params->document->state->getCurrentTable();
44 if ($params->document->state->getInListItem()) {
47 $params->document->listItemClose();
51 self::replaceLastListParagraph($params);
53 ODTUtility::closeHTMLElement ($params, $params->document->state->getHTMLElement());
54 $list = $params->document->state->getCurrentList();
55 $params->content .= $list->getClosingTag();
58 $params->document->state->leave();
62 $list = $params->document->state->getCurrentList();
73 …static public function listItemOpen(ODTInternalParams $params, $level, $element=NULL, $attributes=… argument
74 if (!isset($params->document->state)) {
83 $table = $params->document->state->getCurrentTable();
89 ODTUtility::openHTMLElement ($params, $properties, $element, $attributes);
98 $params->document->state->enter($list_item);
101 $params->content .= $list_item->getOpeningTag();
107 static public function listItemClose(ODTInternalParams $params) { argument
108 $table = $params->document->state->getCurrentTable();
114 if ($params->document->state->getInListContent()) {
117 $params->document->listContentClose();
120 ODTUtility::closeHTMLElement ($params, $params->document->state->getHTMLElement());
121 $params->document->closeCurrentElement();
129 …static public function listHeaderOpen(ODTInternalParams $params, $level, $element=NULL, $attribute… argument
130 if ( !isset($params->document->state) ) {
139 $table = $params->document->state->getCurrentTable();
145 ODTUtility::openHTMLElement ($params, $properties, $element, $attributes);
154 $params->document->state->enter($list_header);
157 $params->content .= $list_header->getOpeningTag();
163 static public function listHeaderClose(ODTInternalParams $params) { argument
164 $table = $params->document->state->getCurrentTable();
169 ODTUtility::closeHTMLElement ($params, $params->document->state->getHTMLElement());
170 $params->document->closeCurrentElement();
176 …static public function listContentOpen(ODTInternalParams $params, $element=NULL, $attributes=NULL)… argument
180 $styleName = $params->document->getStyleName('body');
181 $list = $params->document->state->getCurrentList();
184 if ($listStyleName == $params->document->getStyleName('list')) {
185 $styleName = $params->document->getStyleName('list content');
187 if ($listStyleName == $params->document->getStyleName('numbering')) {
188 $styleName = $params->document->getStyleName('numbering content');
192 $params->document->paragraphOpen($styleName);
198 static public function listContentClose(ODTInternalParams $params) { argument
199 $table = $params->document->state->getCurrentTable();
204 $params->document->paragraphClose();
213 static protected function replaceLastListParagraph(ODTInternalParams $params) { argument
214 $list = $params->document->state->getCurrentList();
217 $list_count = $params->document->state->countClass('list');
226 …if (preg_match('/<text:p text:style-name="[^"]*">/', $params->content, $matches, 0, $position) ===…
239 if ($last_p_style == $params->document->getStyleName('list content')) {
240 $style_name = $params->document->getStyleName('list last');
241 } else if ($last_p_style == $params->document->getStyleName('numbering content')) {
242 $style_name = $params->document->getStyleName('numbering last');
245 if (!$params->document->styleExists($style_name)) {
247 if ($list->getStyleName() == $params->document->getStyleName('list')) {
248 $style_last = $params->document->getStyleByAlias('list first');
250 $style_last = $params->document->getStyleByAlias('numbering first');
253 $style_body = $params->document->getStyle($last_p_style);
265 $params->document->addStyle($style_obj);
272 $params->content = substr_replace ($params->content,