Lines Matching full:style

19         // Fields belonging to "text:list-style"
20 …'style-name' => array ('style:name', 'style',…
21 …'style-display-name' => array ('style:display-name', 'style',…
22 …cutive-numbering' => array ('text:consecutive-numbering', 'style', true),
26 // Fields belonging to "text:list-level-style-number"
27 … => array ('text:level', 'style-attr', true),
28 …'text-style-name' => array ('text:style-name', 'style-a…
29 …'num-format' => array ('style:num-format', 'style-a…
30 …'num-letter-sync' => array ('style:num-letter-sync', 'style-a…
31 …'num-prefix' => array ('style:num-prefix', 'style-a…
32 …'num-suffix' => array ('style:num-suffix', 'style-a…
33 …vels' => array ('text:display-levels', 'style-attr', true),
34 …e' => array ('text:start-value', 'style-attr', true),
38 // Fields belonging to "text:list-level-style-bullet"
39 … => array ('text:level', 'style-attr', true),
40 …'text-style-name' => array ('text:style-name', 'style-a…
41 …t-char' => array ('text:bullet-char', 'style-attr', true),
42 …'num-prefix' => array ('style:num-prefix', 'style-a…
43 …'num-suffix' => array ('style:num-suffix', 'style-a…
44 …t-relative-size' => array ('text:bullet-relative-size', 'style-attr', true),
48 // Fields belonging to "text:list-level-style-image"
49 … => array ('text:level', 'style-attr', true),
50 … => array ('xlink:type', 'style-attr', true),
51 … => array ('xlink:href', 'style-attr', true),
52 … => array ('xlink:show', 'style-attr', true),
53 … => array ('xlink:actuate', 'style-attr', true),
54 …' => array ('office:binary-data', 'style-attr', true),
55 …y' => array ('base64Binary', 'style-attr', true),
59 // Fields belonging to "style-list-level-properties"
64 …'font-name' => array ('style:font-name', 'level-l…
67 …'vertical-rel' => array ('style:vertical-rel', 'level-l…
68 …'vertical-pos' => array ('style:vertical-pos', 'level-l…
73 // Fields belonging to "style:list-level-label-alignment"
82 * Get the element name for the ODT XML encoding of the style.
85 return 'text:list-style';
89 * Set style properties by importing values from a properties array.
91 * The style must have been previously created.
102 * Check if a style is a common style.
104 * @return bool Is common style
112 * For a TextListStyle we can only set the style main properties here.
127 * Create new style by importing ODT style definition.
129 * @param $xmlCode Style definition in ODT XML format
130 * @return ODTStyle New specific style
133 $style = new ODTTextListStyle();
136 $open = XMLUtil::getElementOpenTag('text:list-style', $xmlCode);
139 $attrs += $style->importODTStyleInternal(self::$list_fields, $open);
140 $content = XMLUtil::getElementContent('text:list-style', $xmlCode);
159 case 'text:list-level-style-number':
160 …$attrs += $style->importODTStyleInternal(self::$style_number_fields, $level, $list_style_propertie…
163 case 'text:list-level-style-bullet':
164 …$attrs += $style->importODTStyleInternal(self::$style_bullet_fields, $level, $list_style_propertie…
167 case 'text:list-level-style-image':
168 …$attrs += $style->importODTStyleInternal(self::$style_image_fields, $level, $list_style_properties…
173 $temp_content = XMLUtil::getElement('style:text-properties', $level_content);
174 … $attrs += $style->importODTStyleInternal($text_fields, $temp_content, $text_properties);
175 … $temp_content = XMLUtil::getElementOpenTag('style:list-level-properties', $level_content);
176 …$attrs += $style->importODTStyleInternal(self::$list_level_props_fields, $temp_content, $list_leve…
177 … $temp_content = XMLUtil::getElement('style:list-level-label-alignment', $level_content);
178 …$attrs += $style->importODTStyleInternal(self::$label_align_fields, $temp_content, $label_properti…
181 $level_number = $style->getPropertyInternal('level', $list_style_properties);
182 $properties ['list-style'] = $list_style_properties;
186 $style->list_level_styles [$level_number] = $properties;
188 // Set special property 'list-level-style' to remember element to encode
190 $style->setPropertyForLevel($level_number, 'list-level-style', $list_level_style);
196 // If style has no meaningfull content then throw it away
201 return $style;
205 * Encode current style values in a string and return it.
207 * @return string ODT XML encoded style
210 $style = '';
213 // The style properties are stored in the properties of ODTStyle
215 $style .= $items ['odt_property'].'="'.$items ['value'].'" ';
222 $element = $this->getPropertyFromLevel($level_number, 'list-level-style');
234 $element = 'text:list-level-style-'.$element;
237 … foreach ($this->list_level_styles [$level_number]['list-style'] as $property => $items) {
238 // Only add fields/properties which are allowed for the specific list-level-style
239 if ($property != 'list-level-style' && array_key_exists ($property, $fields)) {
259 $levels .= ' <style:list-level-properties '.$level_list."/>\n";
261 $levels .= ' <style:list-level-properties '.$level_list.">\n";
262 $levels .= ' <style:list-level-label-alignment '.$level_label."/>\n";
263 $levels .= " </style:list-level-properties>\n";
267 $levels .= ' <style:text-properties '.$text.'/>'."\n";
272 // Build style.
274 $style = '<'.$element.' '.$style.">\n";
276 $style .= $levels;
278 $style .= '</'.$element.">\n";
279 return $style;
290 if ($property == 'list-level-style') {
291 // Property 'list-level-style' is a special property just to remember
294 …return $this->getPropertyInternal('list-level-style', $this->list_level_styles [$level]['list-styl…
300 …$element = $this->getPropertyInternal('list-level-style', $this->list_level_styles [$level]['list-
313 … return $this->getPropertyInternal($property, $this->list_level_styles [$level]['list-style']);
331 if ($property == 'list-level-style') {
332 // Property 'list-level-style' is a special property just to remember
336 …($property, 'list-level-style', $value, 'list-level-style', $this->list_level_styles [$level]['lis…
338 // First check fields/properties common to each list-level-style
356 // Now check fields specific to the list-level-style.
357 $element = $this->getPropertyFromLevel ($level, 'list-level-style');
371 …s [$property][0], $value, $fields [$property][1], $this->list_level_styles [$level]['list-style']);