Class: SistemKebut::Section::SectionProperties

Inherits:
DefPengelolaXML show all
Defined in:
lib/sks/section/dasar.rb

Constant Summary collapse

PGMAR =
{
  left: 1134, 
  right: 1134, 
  gutter: 0, 
  header: 0, 
  top: 1134, 
  footer: 0, 
  bottom: 1134
}
GRID =
{
  type: :default, 
  linePitch: 600, 
  charSpace: 32768
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DefPengelolaXML

#pembangun

Methods inherited from KebutSemalam::PengelolaXML

#build, #pembangun

Constructor Details

#initializeSectionProperties

Returns a new instance of SectionProperties.



22
23
24
25
26
27
28
29
30
# File 'lib/sks/section/dasar.rb', line 22

def initialize
  @type = :nextPage
  @pgSz = { width: 11906, height: 16838 }
  @pgMar = PGMAR
  @pgNumType = { fmt: :decimal, start: 1 }
  @formProt = false
  @textDirection = :lrTb
  @docGrid = GRID
end

Instance Attribute Details

#docGridObject

Returns the value of attribute docGrid.



5
6
7
# File 'lib/sks/section/dasar.rb', line 5

def docGrid
  @docGrid
end

#formProtObject

Returns the value of attribute formProt.



5
6
7
# File 'lib/sks/section/dasar.rb', line 5

def formProt
  @formProt
end

#pgMarObject

Returns the value of attribute pgMar.



4
5
6
# File 'lib/sks/section/dasar.rb', line 4

def pgMar
  @pgMar
end

#pgNumTypeObject

Returns the value of attribute pgNumType.



4
5
6
# File 'lib/sks/section/dasar.rb', line 4

def pgNumType
  @pgNumType
end

#pgSzObject

Returns the value of attribute pgSz.



4
5
6
# File 'lib/sks/section/dasar.rb', line 4

def pgSz
  @pgSz
end

#textDirectionObject

Returns the value of attribute textDirection.



5
6
7
# File 'lib/sks/section/dasar.rb', line 5

def textDirection
  @textDirection
end

#typeObject

Returns the value of attribute type.



4
5
6
# File 'lib/sks/section/dasar.rb', line 4

def type
  @type
end