Class: SiSU_HTML_Format::Widget
Instance Attribute Summary
#md, #rdf
Instance Method Summary
collapse
#_url_path_image_base, #band1, #band2, #banner_band, #black, #blue_ink, #blue_tinge, #css, #grey, #grey_medium, #grey_pale, #home_button_only, #ico, #instrument_cover_band_scr, #instrument_cover_band_seg, #num, #num_css, #numless, #paragraph_font_small, #paragraph_font_tiny, #png_home, #png_home_button, #set_color, #set_face, #set_fonts, #set_size_endnote, #set_small, #set_tiny, #table1, #table2, #table_txt, #table_txt_r, #the_banner, #the_color, #the_font, #the_line_break, #the_margin, #the_nav, #the_png, #the_table_cellpad_box, #the_table_close, #the_url_decoration, #the_width, #txt_0, #txt_1, #txt_2, #txt_3, #txt_close, #txt_concordance, #txt_doc_link, #txt_homepage, #txt_manifest, #txt_open, #txt_toc_link, #white, #xml_close, #xml_open, #yellow_light
#footer_signature, #home_txt, #i_choice, #i_home_button, #i_ico, #i_new, #rl_root, #root_http, #sisu, #sisu_txt, #sisudoc, #site, #the_icon, #the_text, #the_url, #txt_home, #txt_hp, #txt_hp_alias, #txt_signature, #urify, #url_close, #url_open
#button_home, #doc_types, #dot, #dot_clear, #dot_nxt, #dot_pre, #dot_toc, #dot_white, #html_close, #icon, #next, #nxt, #png_nav, #pre, #previous, #toc, #up, #url_path_image_sys
Constructor Details
#initialize(md) ⇒ Widget
Returns a new instance of Widget.
Instance Method Details
#home ⇒ Object
206
207
208
209
210
211
212
|
# File 'lib/sisu/html_format.rb', line 206
def home
%{<td align="center" bgcolor=#{the_color.band2}>
<a href="../index.html" target="_top">
#{the_nav.txt_homepage}</a>
</td>
}
end
|
#manifest(page = :seg) ⇒ Object
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
|
# File 'lib/sisu/html_format.rb', line 238
def manifest(page=:seg)
if @make.build.links_to_manifest? \
and not @o_str.dump_or_redirect?
manifest_lnk=if @file.output_dir_structure.by_language_code? \
or @file.output_dir_structure.by_filetype?
"#{Xx[:html_relative1]}manifest/#{@file.base_filename.manifest}"
else @file.base_filename.manifest
end
if page==:manifest
manifest_lnk="#{@md.file.output_path.manifest.url}/#{@file.base_filename.manifest}"
%{<td align="center" bgcolor=#{the_color.band2}>
<font face="#{the_font.set_fonts}" size="2">
#{the_url_decoration.xml_open}<a href="#{manifest_lnk}" target="_top">#{@md.file.output_path.manifest.url}/#{@file.base_filename.manifest}</a>#{the_url_decoration.xml_close}
</font>
</td>}
else
%{<td align="center" bgcolor=#{the_color.band2}>
<a href="#{manifest_lnk}" target="_top">
#{the_nav.txt_manifest}
</a>
</td>}
end
else ''
end
end
|
213
214
215
216
217
218
219
220
221
222
|
# File 'lib/sisu/html_format.rb', line 213
def scroll(text)
if @md.fns =~ /\.(?:-|ssm\.)?sst$/
%{<td align="center" bgcolor=#{the_color.band2}>
<a href="#{Xx[:html_relative1]}html/#{@file.base_filename.html_scroll}" target="_top">
#{text}
</a>
</td>
}
end
end
|
#search ⇒ Object
231
232
233
234
235
236
237
|
# File 'lib/sisu/html_format.rb', line 231
def search
if @make.build.html_search_form?
env=SiSU_Env::InfoEnv.new(@md.fns,@md)
env.widget.search_form('sisusearch',nil,nil,true)
else ''
end
end
|
#seg(text) ⇒ Object
223
224
225
226
227
228
229
230
|
# File 'lib/sisu/html_format.rb', line 223
def seg(text)
%{<td align="center" bgcolor="#99CC66">
<a href="#{@md.file.base_filename.html_segtoc}" target="_top">
#{text}
</a>
</td>
}
end
|