class SiSU_HTML_Format::Widget

Public Class Methods

new(md) click to toggle source
Calls superclass method SiSU_HTML_Format::HeadInformation::new
# File lib/sisu/html_format.rb, line 197
def initialize(md)
  super(md)
  @md=md
  @cf_defaults=SiSU_Env::InfoProcessingFlag.new
  @env=SiSU_Env::InfoEnv.new(md.fns)
  @file=SiSU_Env::FileOp.new(md)
  @o_str ||=SiSU_Env::ProcessingSettings.new(md).output_dir_structure
  @make=SiSU_Env::ProcessingSettings.new(md)
end

Public Instance Methods

home() click to toggle source
# 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) click to toggle source
# 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
scroll(text) click to toggle source
# 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
seg(text) click to toggle source
# 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