Class: Axlsx::PictureLocking
- Inherits:
-
Object
- Object
- Axlsx::PictureLocking
- Defined in:
- lib/axlsx/drawing/picture_locking.rb
Overview
The picture locking class defines the locking properties for pictures in your workbook.
Instance Attribute Summary collapse
-
#noAdjustHandles ⇒ Object
Returns the value of attribute noAdjustHandles.
-
#noChangeArrowheads ⇒ Object
Returns the value of attribute noChangeArrowheads.
-
#noChangeAspect ⇒ Object
Returns the value of attribute noChangeAspect.
-
#noChangeShapeType ⇒ Object
Returns the value of attribute noChangeShapeType.
-
#noEditPoints ⇒ Object
Returns the value of attribute noEditPoints.
-
#noGrp ⇒ Object
Returns the value of attribute noGrp.
-
#noMove ⇒ Object
Returns the value of attribute noMove.
-
#noResize ⇒ Object
Returns the value of attribute noResize.
-
#noRot ⇒ Object
Returns the value of attribute noRot.
-
#noSelect ⇒ Object
Returns the value of attribute noSelect.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ PictureLocking
constructor
Creates a new PictureLocking object.
-
#to_xml(xml) ⇒ String
Serializes the picture locking.
Constructor Details
#initialize(options = {}) ⇒ PictureLocking
Creates a new PictureLocking object
28 29 30 31 32 33 |
# File 'lib/axlsx/drawing/picture_locking.rb', line 28 def initialize(={}) @noChangeAspect = true .each do |o| self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}=" end end |
Instance Attribute Details
#noAdjustHandles ⇒ Object
Returns the value of attribute noAdjustHandles.
13 14 15 |
# File 'lib/axlsx/drawing/picture_locking.rb', line 13 def noAdjustHandles @noAdjustHandles end |
#noChangeArrowheads ⇒ Object
Returns the value of attribute noChangeArrowheads.
14 15 16 |
# File 'lib/axlsx/drawing/picture_locking.rb', line 14 def noChangeArrowheads @noChangeArrowheads end |
#noChangeAspect ⇒ Object
Returns the value of attribute noChangeAspect.
9 10 11 |
# File 'lib/axlsx/drawing/picture_locking.rb', line 9 def noChangeAspect @noChangeAspect end |
#noChangeShapeType ⇒ Object
Returns the value of attribute noChangeShapeType.
15 16 17 |
# File 'lib/axlsx/drawing/picture_locking.rb', line 15 def noChangeShapeType @noChangeShapeType end |
#noEditPoints ⇒ Object
Returns the value of attribute noEditPoints.
12 13 14 |
# File 'lib/axlsx/drawing/picture_locking.rb', line 12 def noEditPoints @noEditPoints end |
#noGrp ⇒ Object
Returns the value of attribute noGrp.
6 7 8 |
# File 'lib/axlsx/drawing/picture_locking.rb', line 6 def noGrp @noGrp end |
#noMove ⇒ Object
Returns the value of attribute noMove.
10 11 12 |
# File 'lib/axlsx/drawing/picture_locking.rb', line 10 def noMove @noMove end |
#noResize ⇒ Object
Returns the value of attribute noResize.
11 12 13 |
# File 'lib/axlsx/drawing/picture_locking.rb', line 11 def noResize @noResize end |
#noRot ⇒ Object
Returns the value of attribute noRot.
8 9 10 |
# File 'lib/axlsx/drawing/picture_locking.rb', line 8 def noRot @noRot end |
#noSelect ⇒ Object
Returns the value of attribute noSelect.
7 8 9 |
# File 'lib/axlsx/drawing/picture_locking.rb', line 7 def noSelect @noSelect end |
Instance Method Details
#to_xml(xml) ⇒ String
Serializes the picture locking
68 69 70 |
# File 'lib/axlsx/drawing/picture_locking.rb', line 68 def to_xml(xml) xml[:a].picLocks(self.instance_values) end |