Sha256: feb7c8202233ae41a0ee8f13c4fb378c766b96a71af3a205cc26055d5b918b89

Contents?: true

Size: 1.46 KB

Versions: 1

Compression:

Stored size: 1.46 KB

Contents

module OpenXml
  module Docx
    module Elements
      class WordProcessingDrawingAnchor < Container
        tag :anchor
        namespace :wp

        attribute :allow_overlap, expects: :true_or_false, displays_as: :allowOverlap         # Required
        attribute :behind_document, expects: :true_or_false, displays_as: :behindDoc          # Required
        attribute :distance_from_bottom, expects: :positive_integer, displays_as: :distB      # Optional
        attribute :distance_from_left, expects: :positive_integer, displays_as: :distL        # Optional
        attribute :distance_from_right, expects: :positive_integer, displays_as: :distR       # Optional
        attribute :distance_from_top, expects: :positive_integer, displays_as: :distT         # Optional
        attribute :hidden, expects: :true_or_false                                            # Optional
        attribute :layout_in_cell, expects: :true_or_false, displays_as: :layoutInCell        # Required
        attribute :locked, expects: :true_or_false                                            # Required
        attribute :z_index, expects: :positive_integer, displays_as: :relativeHeight          # Required
        attribute :simple_position, expects: :true_or_false, displays_as: :simplePos          # Optional

        # Children elements required by spec: <docPr>, <a:graphic>, <wp:simplePos>, <wp:positionH>, <wp:positionV>, <wp:extent>, and one of the wp: wrap type tags

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openxml-docx-0.10.1 lib/openxml/docx/elements/word_processing_drawing_anchor.rb