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.



772
773
774
# File 'lib/sisu/xml_format.rb', line 772

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

Instance Method Details

#lev(tag, attrib) ⇒ Object



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

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

#lev0Object

lev(‘b’,‘toc’)



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

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

#lev1Object



792
793
794
# File 'lib/sisu/xml_format.rb', line 792

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

#lev2Object



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

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

#lev3Object



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

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

#lev4Object



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

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

#lev5Object



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

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

#lev6Object



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

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

#lev7Object



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

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


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

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

#mini_concord_tailObject



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

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



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

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

#mini_lev1Object



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

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

#mini_lev2Object



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

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

#mini_lev3Object



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

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

#mini_lev4Object



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

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

#mini_lev5Object



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

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

#mini_lev6Object



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

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

#mini_lev7Object



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

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

#mini_tailObject



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

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