1 29 30 package com.caucho.xtpdoc; 31 32 import javax.xml.stream.XMLStreamException; 33 import javax.xml.stream.XMLStreamWriter; 34 import java.io.IOException ; 35 import java.io.PrintWriter ; 36 import java.util.logging.Logger ; 37 38 public class Summary implements ContentItem { 39 private static final Logger log = Logger.getLogger(Summary.class.getName()); 40 41 private Document _document; 42 private ATOCControl _atocControl; 43 private Navigation _navigation; 44 45 private boolean _isSkipDescription; 46 47 public Summary(Document document) 48 { 49 _document = document; 50 } 51 52 void setNavigation(Navigation navigation) 53 { 54 _navigation = navigation; 55 } 56 57 public void setATOC(String atoc) 58 { 59 } 60 61 public void setSkipDescription(boolean isSkip) 62 { 63 _isSkipDescription = isSkip; 64 } 65 66 public void setObjSummary(String objSummary) 67 { 68 } 69 70 public void setNoObjSummary(String noObjSummary) 71 { 72 } 73 74 public void setObjSummaryInLocalTOC(String objSummary) 75 { 76 } 77 78 public void setDescription(String description) 79 { 80 } 81 82 public void setLocalTOC(String localTOC) 83 { 84 } 86 87 public void setATOCControl(ATOCControl atocControl) 88 { 89 _atocControl = atocControl; 90 } 91 92 public void writeHtml(XMLStreamWriter out) 93 throws XMLStreamException 94 { 95 _document.fillChildNavigation(); 96 97 if (_document.getNavigation() == null) { 98 } 99 else if (_isSkipDescription) { 100 _document.getNavigation().writeHtml(out, "", 1, 2, 5); 101 } 102 else { 103 _document.getNavigation().writeHtml(out, "", 1, 0, 5); 104 } 105 } 106 107 public void writeLaTeXTop(PrintWriter out) 108 throws IOException 109 { 110 } 111 112 public void writeLaTeX(PrintWriter out) 113 throws IOException 114 { 115 } 116 117 public void writeLaTeXEnclosed(PrintWriter out) 118 throws IOException 119 { 120 } 121 } 122 | Popular Tags |