Class: SiSU_XML_ODF_ODT_Format::FormatObjBreak

Inherits:
Object
  • Object
show all
Defined in:
lib/sisu/xml_odf_odt_format.rb

Instance Method Summary collapse

Constructor Details

#initialize(md, t_o) ⇒ FormatObjBreak

Returns a new instance of FormatObjBreak.



653
654
655
# File 'lib/sisu/xml_odf_odt_format.rb', line 653

def initialize(md,t_o)
  @md,@t_o=md,t_o
end

Instance Method Details

#br_pageObject



656
657
658
659
# File 'lib/sisu/xml_odf_odt_format.rb', line 656

def br_page
  @t_o.obj='<text:p text:style-name="P_page_break"> </text:p>'
  @t_o
end

#br_page_lineObject



660
661
662
663
664
# File 'lib/sisu/xml_odf_odt_format.rb', line 660

def br_page_line
  sep='_'
  @t_o.obj=%{<text:p text:style-name="P_normal">#{sep*60}</text:p>}
  @t_o
end

#obj_sepObject

center later



665
666
667
668
669
# File 'lib/sisu/xml_odf_odt_format.rb', line 665

def obj_sep #center later
  sep='--- '
  @t_o.obj=%{<text:p text:style-name="P_normal">#{sep*20}</text:p>}
  @t_o
end