Sha256: e57957515deb21c9f75a5961a3d8177d206f7a48d892cef716917b7df9dfedef

Contents?: true

Size: 1.4 KB

Versions: 17

Compression:

Stored size: 1.4 KB

Contents

# encoding: UTF-8
module Axlsx
  # The picture locking class defines the locking properties for pictures in your workbook.
  class PictureLocking

    include Axlsx::OptionsParser
    include Axlsx::SerializedAttributes
    include Axlsx::Accessors

    boolean_attr_accessor :noGrp, :noSelect, :noRot, :noChangeAspect,
                            :noMove, :noResize, :noEditPoints, :noAdjustHandles,
                            :noChangeArrowheads, :noChangeShapeType

    serializable_attributes :noGrp, :noSelect, :noRot, :noChangeAspect,
                            :noMove, :noResize, :noEditPoints, :noAdjustHandles,
                            :noChangeArrowheads, :noChangeShapeType

    # Creates a new PictureLocking object
    # @option options [Boolean] noGrp
    # @option options [Boolean] noSelect
    # @option options [Boolean] noRot
    # @option options [Boolean] noChangeAspect
    # @option options [Boolean] noMove
    # @option options [Boolean] noResize
    # @option options [Boolean] noEditPoints
    # @option options [Boolean] noAdjustHandles
    # @option options [Boolean] noChangeArrowheads
    # @option options [Boolean] noChangeShapeType
    def initialize(options={})
      @noChangeAspect = true
      parse_options options
    end

    # Serializes the object
    # @param [String] str
    # @return [String]
    def to_xml_string(str = '')
      serialized_tag('a:picLocks', str)
    end

  end
end

Version data entries

17 entries across 17 versions & 6 rubygems

Version Path
caxlsx-3.3.0 lib/axlsx/drawing/picture_locking.rb
caxlsx-3.1.1 lib/axlsx/drawing/picture_locking.rb
caxlsx-3.1.0 lib/axlsx/drawing/picture_locking.rb
bonio-axlsx-2.2.3 lib/axlsx/drawing/picture_locking.rb
caxlsx-3.0.4 lib/axlsx/drawing/picture_locking.rb
caxlsx-3.0.3 lib/axlsx/drawing/picture_locking.rb
caxlsx-3.0.2 lib/axlsx/drawing/picture_locking.rb
caxlsx-3.0.1 lib/axlsx/drawing/picture_locking.rb
caxlsx-3.0.0 lib/axlsx/drawing/picture_locking.rb
axlsx-alt-3.0.1 lib/axlsx/drawing/picture_locking.rb
axlsx-alt-3.0.0 lib/axlsx/drawing/picture_locking.rb
axlsx-3.0.0.pre lib/axlsx/drawing/picture_locking.rb
bonio-axlsx-2.2.2 lib/axlsx/drawing/picture_locking.rb
bonio-axlsx-2.2.1 lib/axlsx/drawing/picture_locking.rb
dg-axlsx-2.1.0 lib/axlsx/drawing/picture_locking.rb
axlsx-2.1.0.pre lib/axlsx/drawing/picture_locking.rb
l_axlsx-2.0.1 lib/axlsx/drawing/picture_locking.rb