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.



651
652
653
# File 'lib/sisu/xml_odf_odt_format.rb', line 651

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

Instance Method Details

#br_pageObject



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

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

#br_page_lineObject



658
659
660
661
662
# File 'lib/sisu/xml_odf_odt_format.rb', line 658

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



663
664
665
666
667
# File 'lib/sisu/xml_odf_odt_format.rb', line 663

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