class OoxmlParser::ChartStyleEntry
Class for parsing Chart
Style entry
Attributes
body_properties[R]
@return [OOXMLShapeBodyProperties] body properties
default_run_properties[R]
@return [RunProperties] default run properties
effect_reference[R]
@return [FillReference] effect reference
fill_reference[R]
@return [FillReference] fill reference
font_reference[R]
@return [FontReference] font reference
line_style_reference[R]
@return [StyleMatrixReference] line style reference
shape_properties[R]
@return [StyleMatrixReference] shape properties
Public Instance Methods
parse(node)
click to toggle source
Parse Chart
style entry @param node [Nokogiri::XML:Element] node to parse @return [ChartStyleEntry] result of parsing
# File lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/chart_style_file/chart_style_entry.rb, line 24 def parse(node) node.xpath('*').each do |node_child| case node_child.name when 'bodyPr' @body_properties = OOXMLShapeBodyProperties.new(parent: self).parse(node_child) when 'defRPr' @default_run_properties = RunProperties.new(parent: self).parse(node_child) when 'effectRef' @effect_reference = StyleMatrixReference.new(parent: self).parse(node_child) when 'fillRef' @fill_reference = StyleMatrixReference.new(parent: self).parse(node_child) when 'fontRef' @font_reference = FontReference.new(parent: self).parse(node_child) when 'lnRef' @line_style_reference = StyleMatrixReference.new(parent: self).parse(node_child) when 'spPr' @shape_properties = DocxShapeProperties.new(parent: self).parse(node_child) end end self end