Lines Matching full:style

21 …'line-height-at-least'             => array ('style:line-height-at-least',          'paragraph',  …
22 …'line-spacing' => array ('style:line-spacing', 'paragraph', …
23 …'font-independent-line-spacing' => array ('style:font-independent-line-spacing', 'paragraph', …
26 …'justify-single-word' => array ('style:justify-single-word', 'paragraph', …
30 …'tab-stop-distance' => array ('style:tab-stop-distance', 'paragraph', …
33 …'register-true' => array ('style:register-true', 'paragraph', …
35 …'auto-text-indent' => array ('style:auto-text-indent', 'paragraph', …
49 …'border-line-width' => array ('style:border-line-width', 'paragraph', …
50 …'border-line-width-top' => array ('style:border-line-width-top', 'paragraph', …
51 …'border-line-width-bottom' => array ('style:border-line-width-bottom', 'paragraph', …
52 …'border-line-width-left' => array ('style:border-line-width-left', 'paragraph', …
53 …'border-line-width-right' => array ('style:border-line-width-right', 'paragraph', …
54 …'join-border' => array ('style:join-border', 'paragraph', …
60 …'shadow' => array ('style:shadow', 'paragraph', …
64 …'text-autospace' => array ('style:text-autospace', 'paragraph', …
65 …'punctuation-wrap' => array ('style:punctuation-wrap', 'paragraph', …
66 …'line-break' => array ('style:line-break', 'paragraph', …
67 …'vertical-align' => array ('style:vertical-align', 'paragraph', …
68 …'writing-mode' => array ('style:writing-mode', 'paragraph', …
69 …'writing-mode-automatic' => array ('style:writing-mode-automatic', 'paragraph', …
70 …'snap-to-layout-grid' => array ('style:snap-to-layout-grid', 'paragraph', …
71 …'page-number' => array ('style:page-number', 'paragraph', …
72 …'background-transparency' => array ('style:background-transparency', 'paragraph', …
77 …'style-position' => array ('style:position', 'tab-stop', …
78 …'style-type' => array ('style:type', 'tab-stop', …
79 …'style-leader-type' => array ('style:leader-type', 'tab-stop', …
80 …'style-leader-style' => array ('style:leader-style', 'tab-stop', …
81 …'style-leader-width' => array ('style:leader-width', 'tab-stop', …
82 …'style-leader-color' => array ('style:leader-color', 'tab-stop', …
83 …'style-leader-text' => array ('style:leader-text', 'tab-stop', …
98 * Set style properties by importing values from a properties array.
100 * The style must have been previously created.
114 * Check if a style is a common style.
116 * @return bool Is common style
123 * Get the style family of a style.
125 * @return string Style family
192 * Create new style by importing ODT style definition.
194 * @param $xmlCode Style definition in ODT XML format
195 * @return ODTStyle New specific style
198 $style = new ODTParagraphStyle();
201 $open = XMLUtil::getElementOpenTag('style:style', $xmlCode);
203 …$attrs += $style->importODTStyleInternal(ODTStyleStyle::getStyleProperties (), $open, $style->styl…
205 $open = XMLUtil::getElementOpenTag('style:default-style', $xmlCode);
207 $style->setDefault(true);
208 …$attrs += $style->importODTStyleInternal(ODTStyleStyle::getStyleProperties (), $open, $style->styl…
212 $open = XMLUtil::getElementOpenTag('style:paragraph-properties', $xmlCode);
214 $attrs += $style->importODTStyleInternal(self::$paragraph_fields, $xmlCode);
217 $open = XMLUtil::getElementOpenTag('style:text-properties', $xmlCode);
219 …$attrs += $style->importODTStyleInternal(ODTTextStyle::getTextProperties (), $open, $style->text_p…
223 $tabs = XMLUtil::getElementContent('style:tab-stops', $xmlCode);
228 $tab = XMLUtil::getElement('style:tab-stop', $tabs, $end);
231 $style->tab_stops [$index] = array();
232 …$attrs += $style->importODTStyleInternal(self::$tab_stop_fields, $tab, $style->tab_stops [$index]);
234 $tab = XMLUtil::getElement('style:tab-stop', substr ($tabs, $pos), $end);
239 // If style has no meaningfull content then throw it away
244 return $style;
252 * Encode current style values in a string and return it.
254 * @return string ODT XML encoded style
257 $style = '';
262 // Get style contents
264 if ($items ['odt_property'] != 'style:family') {
265 $style .= $items ['odt_property'].'="'.$items ['value'].'" ';
268 $style .= 'style:family="'.$this->getFamily().'" ';
282 $tab_stops_props .= '<style:tab-stop ';
289 // Build style.
291 $style = '<style:style '.$style.">\n";
293 $style = '<style:default-style '.$style.">\n";
297 $style .= '<style:paragraph-properties '.$para_props."/>\n";
299 $style .= '<style:paragraph-properties '.$para_props.">\n";
300 $style .= '<style:tab-stops>'."\n";
301 $style .= $tab_stops_props."\n";
302 $style .= '</style:tab-stops>'."\n";
303 $style .= '</style:paragraph-properties>'."\n";
307 $style .= '<style:text-properties '.$text_props."/>\n";
310 $style .= '</style:style>'."\n";
312 $style .= '</style:default-style>'."\n";
314 return $style;
318 …* This function creates a paragraph style using the style as set in the assoziative array $propert…
320 …* Properties which shall not be used in the style can be disabled by setting the value in disabled…
324 …* background-color, color, font-style, font-weight, font-size, border, font-family, font-variant, …
327 * The function returns the name of the new style or NULL if all relevant properties are empty.
337 $properties ['text-line-through-style'] = 'solid';
340 $properties ['text-underline-style'] = 'solid';
343 $properties ['text-overline-style'] = 'solid';
386 // ODT standard says that percentage value should work if used in a common style.
402 … // A font-size in percent is only supported in common style definitions, not in automatic
403 // styles. Create a common style and set it as parent for this automatic style.
407 $parent = $style_obj->getProperty('style-name');
409 $properties ['style-parent'] = $parent;
413 // Create style name (if not given).
414 $style_name = $properties ['style-name'];
417 $properties ['style-name'] = $style_name;
426 // Create empty paragraph style.
441 * Simple helper function for creating a paragrapg style for a pagebreak.
445 * @param string $parent Name of the parent style to set
451 $properties ['style-name'] = $style_name;
453 $properties ['style-parent'] = $parent;
470 // DO NOT COPY STYLE FIELDS/PROPERTIES