Class: SiSU_XML_ODF_ODT_Format::FormatTextObject

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

Instance Method Summary collapse

Constructor Details

#initialize(md, t_o) ⇒ FormatTextObject

Returns a new instance of FormatTextObject.



135
136
137
138
139
140
141
142
143
144
145
# File 'lib/sisu/xml_odf_odt_format.rb', line 135

def initialize(md,t_o)
  @md,@t_o=md,t_o
  if t_o.is_a?(Hash)
    @txt =t_o[:txt]            || nil
  else
    p t_o.class
    p caller
  end
  rgx=/#{Mx[:en_a_o]}\d+\s+(.+?)#{Mx[:en_a_c]}/
  @txt=@txt.gsub(rgx,'\1') if @txt =~rgx
end

Instance Method Details

#heading_body1Object



149
150
# File 'lib/sisu/xml_odf_odt_format.rb', line 149

def heading_body1
end

#heading_body2Object



151
152
# File 'lib/sisu/xml_odf_odt_format.rb', line 151

def heading_body2
end

#heading_body3Object



153
154
# File 'lib/sisu/xml_odf_odt_format.rb', line 153

def heading_body3
end

#heading_body4Object



155
156
# File 'lib/sisu/xml_odf_odt_format.rb', line 155

def heading_body4
end

#heading_body5Object



157
158
# File 'lib/sisu/xml_odf_odt_format.rb', line 157

def heading_body5
end

#heading_body6Object



159
160
# File 'lib/sisu/xml_odf_odt_format.rb', line 159

def heading_body6
end

#heading_body7Object



161
162
# File 'lib/sisu/xml_odf_odt_format.rb', line 161

def heading_body7
end

#scr_endnote_bodyObject



146
147
148
# File 'lib/sisu/xml_odf_odt_format.rb', line 146

def scr_endnote_body
  "<endnote>#{@txt}</endnote> "
end