Lines Matching full:style
3 * ODTUnknownStyle: class for unknown/not implemented ODT style families.
4 * The goal is to at least read in not supported style faimlies and return
24 …'style-name' => array ('style:name', 'style', false),
25 …'style-family' => array ('style:family', 'style', false),
31 * Get the element name for the ODT XML encoding of the style.
49 * Set style properties by importing values from a properties array.
51 * The style must have been previously created.
62 * Check if a style is a common style.
64 * @return bool Is common style
82 * Set style content. This will be returned on toString().
84 * @param $style_content The complete ODT XML style definition.
92 * Create new style by importing ODT style definition.
94 * @param $xmlCode Style definition in ODT XML format
95 * @return ODTStyle New specific style
98 $style = new ODTUnknownStyle();
99 $style->setStyleContent($xmlCode);
100 return $style;
104 * Encode current style values in a string and return it.
106 * @return string ODT XML encoded style
113 * Is the style a default style?
118 if ($this->element_name == 'style:default-style') {
125 * Get the style family of a style.
127 * @return string|NULL Style family
130 return $this->getProperty('style-family');
142 …* This function creates a frame style for multiple columns, using the style as set in the assoziat…
144 …* Properties which shall not be used in the style can be disabled by setting the value in disabled…
150 * The function returns the name of the new style or NULL if all relevant properties are empty.
154 * @param $style
175 if ( empty ($disabled_props ['column-rule-style']) ) {
176 $rule_style = $properties ['column-rule-style'];
193 // are no attributes for our style. Return NULL to indicate 'no style required'.
198 // Create style name (if not given).
199 $style_name = $properties ['style-name'];
202 $properties ['style-name'] = $style_name;
207 …$style = '<style:style style:name="'.$style_name.'" style:family="graphic" style:parent-style-name…
208 …<style:graphic-properties fo:border="none" style:vertical-pos="top" style:vertical-rel="paragraph-…
209 <style:columns fo:column-count="'.$columns.'" fo:column-gap="'.$gap.'">
210 <style:column-sep style:style="'.$rule_style.'" style:color="'.$rule_color.'" style:width="'.$rule_…
211 <style:column style:rel-width="'.$width.'" fo:start-indent="0cm" fo:end-indent="0cm"/>
212 <style:column style:rel-width="'.$width.'" fo:start-indent="0cm" fo:end-indent="0cm"/>
213 <style:column style:rel-width="'.$width.'" fo:start-indent="0cm" fo:end-indent="0cm"/>
214 </style:columns>
215 </style:graphic-properties></style:style>';
217 // Create empty frame style.
218 // Not supported yet, so we create an "unknown" style
223 $object->setStyleContent($style);