Sha256: c778627e91b36a1455d4114896c733dc580e9e5d1652eb33516c3f3d75cc7a5e

Contents?: true

Size: 1.46 KB

Versions: 5

Compression:

Stored size: 1.46 KB

Contents

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

        attribute :allow_overlap, expects: :boolean, displays_as: :allowOverlap               # Required
        attribute :behind_document, expects: :boolean, 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: :boolean                                                  # Optional
        attribute :layout_in_cell, expects: :boolean, displays_as: :layoutInCell              # Required
        attribute :locked, expects: :boolean                                                  # Required
        attribute :z_index, expects: :positive_integer, displays_as: :relativeHeight          # Required
        attribute :simple_position, expects: :boolean, 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

5 entries across 5 versions & 1 rubygems

Version Path
openxml-docx-0.10.6 lib/openxml/docx/elements/word_processing_drawing_anchor.rb
openxml-docx-0.10.5 lib/openxml/docx/elements/word_processing_drawing_anchor.rb
openxml-docx-0.10.4 lib/openxml/docx/elements/word_processing_drawing_anchor.rb
openxml-docx-0.10.3 lib/openxml/docx/elements/word_processing_drawing_anchor.rb
openxml-docx-0.10.2 lib/openxml/docx/elements/word_processing_drawing_anchor.rb