Sha256: 2177b18ef63b3fc38997f36d22c448a2228bb15a61c043afa70c64942431eae6

Contents?: true

Size: 668 Bytes

Versions: 10

Compression:

Stored size: 668 Bytes

Contents

require 'berkeley_library/util/ods/xml/element_node'
require 'berkeley_library/util/ods/xml/style/font_face'

module BerkeleyLibrary
  module Util
    module ODS
      module XML
        module Office
          class FontFaceDecls < XML::ElementNode
            def initialize(doc:)
              super(:office, 'font-face-decls', doc: doc)

              add_font_face(default_face)
            end

            def add_font_face(font_face)
              children << font_face
            end

            private

            def default_face
              Style::FontFace.default_face(doc: doc)
            end
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
berkeley_library-tind-0.7.2 lib/berkeley_library/util/ods/xml/office/font_face_decls.rb
berkeley_library-tind-0.7.1 lib/berkeley_library/util/ods/xml/office/font_face_decls.rb
berkeley_library-tind-0.7.0 lib/berkeley_library/util/ods/xml/office/font_face_decls.rb
berkeley_library-tind-0.6.0 lib/berkeley_library/util/ods/xml/office/font_face_decls.rb
berkeley_library-tind-0.5.1 lib/berkeley_library/util/ods/xml/office/font_face_decls.rb
berkeley_library-tind-0.5.0 lib/berkeley_library/util/ods/xml/office/font_face_decls.rb
berkeley_library-tind-0.4.3 lib/berkeley_library/util/ods/xml/office/font_face_decls.rb
berkeley_library-tind-0.4.2 lib/berkeley_library/util/ods/xml/office/font_face_decls.rb
berkeley_library-tind-0.4.1 lib/berkeley_library/util/ods/xml/office/font_face_decls.rb
berkeley_library-tind-0.4.0 lib/berkeley_library/util/ods/xml/office/font_face_decls.rb