Class: Axlsx::PictureLocking

Inherits:
Object
  • Object
show all
Includes:
Accessors, OptionsParser, SerializedAttributes
Defined in:
lib/axlsx/drawing/picture_locking.rb

Overview

The picture locking class defines the locking properties for pictures in your workbook.

Instance Method Summary collapse

Methods included from SerializedAttributes

included, #serialized_attributes, #serialized_element_attributes, #serialized_tag

Methods included from OptionsParser

#parse_options

Constructor Details

#initialize(options = {}) ⇒ PictureLocking

Creates a new PictureLocking object

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • noGrp (Boolean)
  • noSelect (Boolean)
  • noRot (Boolean)
  • noChangeAspect (Boolean)
  • noMove (Boolean)
  • noResize (Boolean)
  • noEditPoints (Boolean)
  • noAdjustHandles (Boolean)
  • noChangeArrowheads (Boolean)
  • noChangeShapeType (Boolean)


29
30
31
32
# File 'lib/axlsx/drawing/picture_locking.rb', line 29

def initialize(options = {})
  @noChangeAspect = true
  parse_options options
end

Instance Method Details

#to_xml_string(str = +'')) ⇒ String

Serializes the object

Parameters:

  • str (String) (defaults to: +''))

Returns:

  • (String)


37
38
39
# File 'lib/axlsx/drawing/picture_locking.rb', line 37

def to_xml_string(str = +'')
  serialized_tag('a:picLocks', str)
end