Class: SiSU_XML_ODF_ODT_Format::FormatTextObject
- Inherits:
-
Object
- Object
- SiSU_XML_ODF_ODT_Format::FormatTextObject
- Defined in:
- lib/sisu/xml_odf_odt_format.rb
Instance Method Summary collapse
- #heading_body1 ⇒ Object
- #heading_body2 ⇒ Object
- #heading_body3 ⇒ Object
- #heading_body4 ⇒ Object
- #heading_body5 ⇒ Object
- #heading_body6 ⇒ Object
- #heading_body7 ⇒ Object
-
#initialize(md, t_o) ⇒ FormatTextObject
constructor
A new instance of FormatTextObject.
- #scr_endnote_body ⇒ Object
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_body1 ⇒ Object
149 150 |
# File 'lib/sisu/xml_odf_odt_format.rb', line 149 def heading_body1 end |
#heading_body2 ⇒ Object
151 152 |
# File 'lib/sisu/xml_odf_odt_format.rb', line 151 def heading_body2 end |
#heading_body3 ⇒ Object
153 154 |
# File 'lib/sisu/xml_odf_odt_format.rb', line 153 def heading_body3 end |
#heading_body4 ⇒ Object
155 156 |
# File 'lib/sisu/xml_odf_odt_format.rb', line 155 def heading_body4 end |
#heading_body5 ⇒ Object
157 158 |
# File 'lib/sisu/xml_odf_odt_format.rb', line 157 def heading_body5 end |
#heading_body6 ⇒ Object
159 160 |
# File 'lib/sisu/xml_odf_odt_format.rb', line 159 def heading_body6 end |
#heading_body7 ⇒ Object
161 162 |
# File 'lib/sisu/xml_odf_odt_format.rb', line 161 def heading_body7 end |
#scr_endnote_body ⇒ Object
146 147 148 |
# File 'lib/sisu/xml_odf_odt_format.rb', line 146 def scr_endnote_body "<endnote>#{@txt}</endnote> " end |