Sha256: 1f03cf3e03cec9fc3917feeff5f40790e2d53fabdebab668570b7b72d054b9a7

Contents?: true

Size: 856 Bytes

Versions: 2

Compression:

Stored size: 856 Bytes

Contents

module OpenXml
  module Docx
    class Section
      include PropertyBuilder

      properties_tag :sectPr

      property :columns
      property :document_grid
      property :footer_reference
      property :footer_references
      property :header_reference
      property :header_references
      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

2 entries across 2 versions & 1 rubygems

Version Path
openxml-docx-0.10.3 lib/openxml/docx/section.rb
openxml-docx-0.10.2 lib/openxml/docx/section.rb