class OoxmlParser::OldDocxShape
Fallback DOCX shape data
Attributes
file_reference[RW]
@return [FileReference] image structure
fill[RW]
properties[RW]
text_box[RW]
Public Instance Methods
parse(node)
click to toggle source
Parse OldDocxShape
object @param node [Nokogiri::XML:Element] node to parse @return [OldDocxShape] result of parsing
# File lib/ooxml_parser/common_parser/common_data/alternate_content/picture/shape/old_docx_shape.rb, line 14 def parse(node) @properties = OldDocxShapeProperties.new(parent: self).parse(node) node.xpath('*').each do |node_child| case node_child.name when 'textbox' @text_box = TextBox.parse_list(node_child, parent: self) when 'imagedata' @file_reference = FileReference.new(parent: self).parse(node_child) when 'fill' @fill = OldDocxShapeFill.new(parent: self).parse(node_child) end end self end