Sha256: 7e7a2e5f46a6413915a51b223c94d700a1b90523f4aa6cd4245e7446a53975e1

Contents?: true

Size: 683 Bytes

Versions: 20

Compression:

Stored size: 683 Bytes

Contents

# frozen_string_literal: true

module OoxmlParser
  # Class for parsing <clientData> tag
  class ClientData < OOXMLDocumentObject
    # @return [True, False] Specifies if drawing is locked when sheet is protected
    attr_reader :locks_with_sheet

    def initialize(parent: nil)
      @locks_with_sheet = true
      super
    end

    # Parse ClientData data
    # @param [Nokogiri::XML:Element] node with ClientData data
    # @return [Sheet] value of ClientData
    def parse(node)
      node.attributes.each do |key, value|
        case key
        when 'fLocksWithSheet'
          @locks_with_sheet = attribute_enabled?(value)
        end
      end
      self
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
ooxml_parser-0.37.1 lib/ooxml_parser/xlsx_parser/workbook/worksheet/xlsx_drawing/client_data.rb
ooxml_parser-0.37.0 lib/ooxml_parser/xlsx_parser/workbook/worksheet/xlsx_drawing/client_data.rb
ooxml_parser-0.36.1 lib/ooxml_parser/xlsx_parser/workbook/worksheet/xlsx_drawing/client_data.rb
ooxml_parser-0.36.0 lib/ooxml_parser/xlsx_parser/workbook/worksheet/xlsx_drawing/client_data.rb
ooxml_parser-0.35.0 lib/ooxml_parser/xlsx_parser/workbook/worksheet/xlsx_drawing/client_data.rb
ooxml_parser-0.34.2 lib/ooxml_parser/xlsx_parser/workbook/worksheet/xlsx_drawing/client_data.rb
ooxml_parser-0.34.1 lib/ooxml_parser/xlsx_parser/workbook/worksheet/xlsx_drawing/client_data.rb
ooxml_parser-0.34.0 lib/ooxml_parser/xlsx_parser/workbook/worksheet/xlsx_drawing/client_data.rb
ooxml_parser-0.33.0 lib/ooxml_parser/xlsx_parser/workbook/worksheet/xlsx_drawing/client_data.rb
ooxml_parser-0.32.0 lib/ooxml_parser/xlsx_parser/workbook/worksheet/xlsx_drawing/client_data.rb
ooxml_parser-0.31.0 lib/ooxml_parser/xlsx_parser/workbook/worksheet/xlsx_drawing/client_data.rb
ooxml_parser-0.30.0 lib/ooxml_parser/xlsx_parser/workbook/worksheet/xlsx_drawing/client_data.rb
ooxml_parser-0.29.0 lib/ooxml_parser/xlsx_parser/workbook/worksheet/xlsx_drawing/client_data.rb
ooxml_parser-0.28.0 lib/ooxml_parser/xlsx_parser/workbook/worksheet/xlsx_drawing/client_data.rb
ooxml_parser-0.27.0 lib/ooxml_parser/xlsx_parser/workbook/worksheet/xlsx_drawing/client_data.rb
ooxml_parser-0.26.0 lib/ooxml_parser/xlsx_parser/workbook/worksheet/xlsx_drawing/client_data.rb
ooxml_parser-0.25.0 lib/ooxml_parser/xlsx_parser/workbook/worksheet/xlsx_drawing/client_data.rb
ooxml_parser-0.24.0 lib/ooxml_parser/xlsx_parser/workbook/worksheet/xlsx_drawing/client_data.rb
ooxml_parser-0.23.0 lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/xlsx_drawing/client_data.rb
ooxml_parser-0.22.0 lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/xlsx_drawing/client_data.rb