class OoxmlParser::DocxShapeProperties
DOCX Shape
Properties
Attributes
@return [BlipFill] BlipFill
data
@return [PresetGeometry] is some geometry custom
@return [DocxColor] color of object
@return [DocxColor] color of object
@return [DocxShapeLine] line info
@return [PresetGeometry] preset geometry of object
@return [PresetGeometry] preset geometry of object
@return [DocxShapeSize] size of shape
@return [DocxShapeSize] size of shape
Public Class Methods
Source
# File lib/ooxml_parser/common_parser/common_data/alternate_content/drawing/graphic/shape/shape_properties/docx_shape_properties.rb, line 30 def initialize(parent: nil) @line = DocxShapeLine.new super end
Calls superclass method
Public Instance Methods
Source
# File lib/ooxml_parser/common_parser/common_data/alternate_content/drawing/graphic/shape/shape_properties/docx_shape_properties.rb, line 38 def parse(node) @fill_color = DocxColor.new(parent: self).parse(node) node.xpath('*').each do |node_child| case node_child.name when 'xfrm' @shape_size = DocxShapeSize.new(parent: self).parse(node_child) when 'prstGeom' @preset_geometry = PresetGeometry.new(parent: self).parse(node_child) when 'ln' @line = DocxShapeLine.new(parent: self).parse(node_child) when 'blipFill' @blip_fill = BlipFill.new(parent: self).parse(node_child) when 'custGeom' @preset_geometry = PresetGeometry.new(parent: self).parse(node_child) @preset_geometry.name = :custom @custom_geometry = OOXMLCustomGeometry.new(parent: self).parse(node_child) end end self end
Parse DocxShapeProperties
object @param node [Nokogiri::XML:Element] node to parse @return [DocxShapeProperties] result of parsing