Sha256: f6e327a7b831dc56500c44466f24af1d4f7abb846fc6dd30ac5c12b2933cdb3b

Contents?: true

Size: 722 Bytes

Versions: 3

Compression:

Stored size: 722 Bytes

Contents

module OpenXml
  module Docx
    class Section
      include PropertyBuilder

      properties_tag :sectPr

      property :columns
      property :document_grid
      property :line_numbering
      property :page_borders
      property :page_margins
      property :page_numbering
      property :page_size
      property :paper_source

      value_property :bidi
      value_property :form_protection
      value_property :rtl_gutter
      value_property :text_direction
      value_property :type, as: :section_type
      value_property :vertical_alignment, as: :vertical_text_alignment

      def to_xml(xml)
        property_xml xml
      end

    private

      def namespace
        :w
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
openxml-docx-0.9.0 lib/openxml/docx/section.rb
openxml-docx-0.8.0 lib/openxml/docx/section.rb
openxml-docx-0.8.0.beta1 lib/openxml/docx/section.rb