Class: SiSU_XML_Format::FormatToc

Inherits:
FormatTextObject show all
Defined in:
lib/sisu/xml_format.rb

Instance Attribute Summary

Attributes inherited from FormatTextObject

#banner, #dob, #font, #format, #headname, #link, #linkname, #md, #ocn, #p_num, #para_id, #paranum, #table, #txt, #url

Instance Method Summary collapse

Methods inherited from FormatTextObject

#bold, #bold_header, #bold_para, #bullet, #center, #center_bold, #code, #dl, #endnote_body, #endnote_body_indent, #gsub_body, #heading_body, #heading_body0, #heading_body1, #heading_body2, #heading_body3, #heading_body4, #heading_body5, #heading_body6, #heading_body7, #heading_normal, #no_paranum, #para, #para_form_css, #scr_endnote_body, #table_css_end, #title_header, #title_header1, #title_header2, #title_header3, #title_header4, #title_header4_old, #toc_head_copy_at

Methods included from SiSU_Parts_XML

#_url_path_image_base, #band1, #band2, #banner_band, #black, #blue_ink, #blue_tinge, #grey, #grey_medium, #grey_pale, #home_button_only, #ico, #png_home, #png_home_button, #set_face, #set_fonts, #table1, #table2, #the_banner, #the_color, #the_font, #the_line_break, #the_png, #the_table_close, #the_url_decoration, #txt_close, #txt_open, #white, #xml_close, #xml_open, #yellow_light

Methods included from SiSU_Parts_Generic

#footer_signature, #home, #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

Constructor Details

#initialize(md, txt) ⇒ FormatToc

Returns a new instance of FormatToc.



774
775
776
# File 'lib/sisu/xml_format.rb', line 774

def initialize(md,txt)
  super(md,txt)
end

Instance Method Details

#lev(tag, attrib) ⇒ Object



785
786
787
788
789
790
791
792
793
# File 'lib/sisu/xml_format.rb', line 785

def lev(tag,attrib)
  if @txt
    %{<#{tag} class="#{attrib}">
#{@txt}
  </#{tag}>
}
  else ''
  end
end

#lev0Object

lev(‘b’,‘toc’)



816
817
818
# File 'lib/sisu/xml_format.rb', line 816

def lev0 #docinfo
  lev('h0','toc')
end

#lev1Object



794
795
796
# File 'lib/sisu/xml_format.rb', line 794

def lev1
  lev('h1','toc')
end

#lev2Object



797
798
799
# File 'lib/sisu/xml_format.rb', line 797

def lev2
  lev('h2','toc')
end

#lev3Object



800
801
802
# File 'lib/sisu/xml_format.rb', line 800

def lev3
  lev('h3','toc')
end

#lev4Object



803
804
805
# File 'lib/sisu/xml_format.rb', line 803

def lev4
  lev('h4','toc')
end

#lev5Object



806
807
808
# File 'lib/sisu/xml_format.rb', line 806

def lev5
  lev('h5','toc')
end

#lev6Object



809
810
811
# File 'lib/sisu/xml_format.rb', line 809

def lev6
  lev('h6','toc')
end

#lev7Object



812
813
814
815
# File 'lib/sisu/xml_format.rb', line 812

def lev7
  lev('h7','toc')
  #lev('b','toc')
end


777
778
779
780
781
782
783
784
# File 'lib/sisu/xml_format.rb', line 777

def links_guide
  %{  <li class="doc">
<a href="#{@lnk_url}" target="_top">
  #{@lnk_txt}
</a>
  </li>
}
end

#mini_concord_tailObject



850
851
852
853
854
855
856
857
858
859
# File 'lib/sisu/xml_format.rb', line 850

def mini_concord_tail
  %{
  <h4 class="minitoc">
<a href="concordance.html">Concordance (wordlist)</a>
  </h4>
  <h4 class="minitoc">
<a href="sisu_manifest.html">Manifest (alternative outputs)</a>
  </h4>
}
end

#mini_lev0Object

docinfo



840
841
842
# File 'lib/sisu/xml_format.rb', line 840

def mini_lev0 #docinfo
  lev('h0','minitoc')
end

#mini_lev1Object



819
820
821
# File 'lib/sisu/xml_format.rb', line 819

def mini_lev1
  lev('h1','minitoc')
end

#mini_lev2Object



822
823
824
# File 'lib/sisu/xml_format.rb', line 822

def mini_lev2
  lev('h2','minitoc')
end

#mini_lev3Object



825
826
827
# File 'lib/sisu/xml_format.rb', line 825

def mini_lev3
  lev('h3','minitoc')
end

#mini_lev4Object



828
829
830
# File 'lib/sisu/xml_format.rb', line 828

def mini_lev4
  lev('h4','minitoc')
end

#mini_lev5Object



831
832
833
# File 'lib/sisu/xml_format.rb', line 831

def mini_lev5
  lev('h5','minitoc')
end

#mini_lev6Object



834
835
836
# File 'lib/sisu/xml_format.rb', line 834

def mini_lev6
  lev('h6','minitoc')
end

#mini_lev7Object



837
838
839
# File 'lib/sisu/xml_format.rb', line 837

def mini_lev7
  lev('h7','minitoc')
end

#mini_tailObject



843
844
845
846
847
848
849
# File 'lib/sisu/xml_format.rb', line 843

def mini_tail
  %{
  <h4 class="minitoc">
<a href="sisu_manifest.html">Manifest (alternative outputs)</a>
  </h4>
}
end