Class: ReVIEW::IDGTOCPrinter
- Inherits:
-
TOCPrinter
- Object
- TOCPrinter
- ReVIEW::IDGTOCPrinter
- Defined in:
- lib/review/tocprinter.rb
Instance Method Summary collapse
Methods inherited from TOCPrinter
default_upper_level, #initialize, #print?
Constructor Details
This class inherits a constructor from ReVIEW::TOCPrinter
Instance Method Details
#print_book(book) ⇒ Object
164 165 166 167 168 169 170 |
# File 'lib/review/tocprinter.rb', line 164 def print_book(book) puts %Q(<?xml version="1.0" encoding="UTF-8"?>) puts %Q(<doc xmlns:aid='http://ns.adobe.com/AdobeInDesign/4.0/'><title aid:pstyle="h0">1 パート1</title><?dtp level="0" section="第1部 パート1"?>) # FIXME: 部タイトルを取るには? & 部ごとに結果を分けるには? puts %Q(<ul aid:pstyle='ul-partblock'>) print_children book puts %Q(</ul></doc>) end |