class OoxmlParser::ClientData

Class for parsing <clientData> tag

Attributes

locks_with_sheet[R]

@return [True, False] Specifies if drawing is locked when sheet is protected

Public Class Methods

new(parent: nil) click to toggle source
Calls superclass method OoxmlParser::OOXMLDocumentObject::new
# File lib/ooxml_parser/xlsx_parser/workbook/worksheet/xlsx_drawing/client_data.rb, line 9
def initialize(parent: nil)
  @locks_with_sheet = true
  super
end

Public Instance Methods

parse(node) click to toggle source

Parse ClientData data @param [Nokogiri::XML:Element] node with ClientData data @return [Sheet] value of ClientData

# File lib/ooxml_parser/xlsx_parser/workbook/worksheet/xlsx_drawing/client_data.rb, line 17
def parse(node)
  node.attributes.each do |key, value|
    case key
    when 'fLocksWithSheet'
      @locks_with_sheet = attribute_enabled?(value)
    end
  end
  self
end