This class converts into an array the CSS properties associated with a particular CSS Selector
package |
Docxpresso |
---|---|
subpackage |
Parser |
__construct()
access |
public |
---|---|
_cmyk2hex(array $color) : string
access |
private |
---|
array
string
_hsl2hex(array $color) : string
access |
private |
---|
array
string
_normalizedSizeProp(string $prop) : void
The case 'auto' is treated separately to handle the centering of tables and other block level elements
access |
private |
---|
string
containing the single raw CSS properies
_parse_background(string $key, string $value, boolean $important = false) : void
The corresponding ODF attributes are described in the corresponding specific CSS properties like 'background-color'
access |
private |
---|
string
string
boolean
_parse_background_color(string $key, string $value, boolean $important = false) : void
.. Other possible values are: inherited or initial that are not parsed The corresponding ODF attributes are paragraphs-> does not apply directly but via style:text-properties text-> fo:background-color tables-> fo:background-color rows-> fo:background-color cells-> fo:background-color frames-> fo:background-color Regarding the opacity it applies to: paragraphs-> style:background-transparency
access |
private |
---|
string
string
boolean
_parse_background_image(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_background_position(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_background_repeat(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_border(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_border_bottom(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_border_bottom_color(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_border_bottom_style(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_border_bottom_width(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_border_collapse(string $key, string $value, boolean $important = false) : void
The ODF equivalent is: table:border-model (collapsing or separating)
access |
private |
---|
string
string
boolean
_parse_border_color(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_border_left(string $key, string $value, boolean $important = false) : void
see | \Docxpresso\Parser\_parse_border |
---|---|
access |
private |
string
string
boolean
_parse_border_left_color(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_border_left_style(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_border_left_width(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_border_radius(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_border_right(string $key, string $value, boolean $important = false) : void
see | \Docxpresso\Parser\_parse_border |
---|---|
access |
private |
string
string
boolean
_parse_border_right_color(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_border_right_style(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_border_right_width(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_border_spacing(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_border_style(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_border_top(string $key, string $value, boolean $important = false) : void
see | \Docxpresso\Parser\_parse_border |
---|---|
access |
private |
string
string
boolean
_parse_border_top_color(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_border_top_style(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_border_top_width(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_border_width(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_bottom(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_box_shadow(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_break_after(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_break_before(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_break_inside(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_clear(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_clip(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_color(string $key, string $value, boolean $important = false) : void
It may be given in different formats:
access |
private |
---|
string
string
boolean
_parse_column_count(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_column_gap(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_column_rule(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_column_rule_color(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_column_rule_style(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_column_rule_width(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_column_width(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_columns(string $key, string $value, boolean $important = false) : void
see | \Docxpresso\Parser\_parse_column_count \Docxpresso\Parser\_parse_column_width |
---|---|
access |
private |
string
string
boolean
_parse_counter_increment(string $key, string $value) : void
access |
private |
---|
string
string
_parse_counter_reset(string $key, string $value) : void
access |
private |
---|
string
string
_parse_direction(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_display(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_empty_cells(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_float(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_font(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_font_family(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_font_kerning(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_font_size(string $key, string $value, boolean $important = false) : void
..) The correspnding ODF attributes are: fo:font-size fo:font-size-asian fo:font-size-complex
access |
private |
---|
string
string
boolean
_parse_font_style(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_font_variant(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_font_weight(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_height(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_hyphens(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_left(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_letter_spacing(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_line_break(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_line_height(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_list_style(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_list_style_image(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_list_style_type(string $key, string $value, boolean $important = false) : void
The numberings go under the style:num-format attribute of the the text:list-level-style-number element with possible values: 1, i, I, a or A The bullets go under the text:bullet-char attribute of the text:list-level-bullet-style element as an unicode character
access |
private |
---|
string
string
boolean
_parse_margin(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_margin_bottom(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_margin_left(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_margin_right(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_margin_top(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_max_height(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_max_width(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_min_height(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_min_width(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_opacity(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_orphans(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_outline(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_outline_color(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_outline_offset(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_outline_style(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_outline_width(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_padding(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_padding_bottom(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_padding_left(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_padding_right(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_padding_top(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_page_break_after(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_page_break_before(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_page_break_inside(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_parentstyleid(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_position(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_right(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_table_layout(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_text_align(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_text_align_last(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_text_decoration(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_text_decoration_color(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_text_decoration_line(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_text_decoration_style(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_text_indent(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_text_shadow(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_text_transform(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_top(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_transform(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_vertical_align(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_visibility(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_widows(string $key, string $value) : void
access |
private |
---|
string
string
_parse_width(string $key, string $value, boolean $important) : void
access |
private |
---|
string
string
boolean
_parse_writing_mode(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parse_z_index(string $key, string $value, boolean $important = false) : void
access |
private |
---|
string
string
boolean
_parseSingleCSSProp(string $prop) : void
access |
private |
---|
string
containing the single raw CSS properies
_process_color(string $key, string $value) : void
The color may be in diffrent formats:
access |
private |
---|
string
string
_process_shorthand(string $value) : array
access |
private |
---|
string
array
_rgb2hex(array $color) : string
access |
private |
---|
array
string
parseCSS(string $CSSProperties) : array
access |
public |
---|
string
array
with the parsed properties in a standard form
_CSSPropsLexer : \Docxpresso\Parser\CSSPropsLexer
_importantProps : array
var |
parsedCSSProps |
---|---|
access |
private |
array
_parsedCSSProps : array
var |
parsedCSSProps |
---|---|
access |
private |
array