Lines Matching full:style
19 // Fields belonging to "text:outline-style"
20 …'style-name' => array ('style:name', 'style',…
22 // Fields belonging to "text:outline-level-style"
24 …'text-style-name' => array ('text:style-name', 'level',…
25 …'num-format' => array ('style:num-format', 'level',…
26 …'num-letter-sync' => array ('style:num-letter-sync', 'level',…
27 …'num-prefix' => array ('style:num-prefix', 'level',…
28 …'num-suffix' => array ('style:num-suffix', 'level',…
32 // Fields belonging to "style-list-level-properties"
37 …'font-name' => array ('style:font-name', 'level-l…
40 …'vertical-rel' => array ('style:vertical-rel', 'level-l…
41 …'vertical-pos' => array ('style:vertical-pos', 'level-l…
44 // Fields belonging to "style:list-level-label-alignment"
53 * Get the element name for the ODT XML encoding of the style.
56 return 'text:outline-style';
60 * Set style properties by importing values from a properties array.
62 * The style must have been previously created.
73 * Check if a style is a common style.
75 * @return bool Is common style
102 * Create new style by importing ODT style definition.
104 * @param $xmlCode Style definition in ODT XML format
105 * @return ODTStyle New specific style
108 $style = new ODTTextOutlineStyle();
111 $open = XMLUtil::getElementOpenTag('text:outline-style', $xmlCode);
114 $attrs += $style->importODTStyleInternal(self::$outline_fields, $open);
120 $level = XMLUtil::getElement('text:outline-level-style', substr($xmlCode, $pos), $end);
131 $attrs += $style->importODTStyleInternal($text_fields, $level, $properties);
132 … $attrs += $style->importODTStyleInternal(self::$outline_fields, $level, $properties);
135 $level_number = $style->getPropertyInternal('level', $properties);
136 $style->outline_level_styles [$level_number] = $properties;
140 $level = XMLUtil::getElement('text:outline-level-style', substr($xmlCode, $pos), $end);
147 // If style has no meaningfull content then throw it away
152 return $style;
156 * Encode current style values in a string and return it.
158 * @return string ODT XML encoded style
161 $style = '';
164 // The style properties are stored in the properties of ODTStyle
166 $style .= $items ['odt_property'].'="'.$items ['value'].'" ';
191 $levels .= ' <text:outline-level-style '.$level.">\n";
194 $levels .= ' <style:list-level-properties '.$level_list."/>\n";
196 $levels .= ' <style:list-level-properties '.$level_list.">\n";
197 $levels .= ' <style:list-level-label-alignment '.$level_label."/>\n";
198 $levels .= " </style:list-level-properties>\n";
202 $levels .= ' <style:text-properties '.$text.'/>';
204 $levels .= " </text:outline-level-style>\n";
207 // Build style.
209 $style = '<'.$element.' '.$style.">\n";
211 $style .= $levels;
213 $style .= '</'.$element.">\n";
214 return $style;