001: /*
002: * Copyright (c) 1998-2000 Caucho Technology -- all rights reserved
003: *
004: * This file is part of Resin(R) Open Source
005: *
006: * Each copy or derived work must preserve the copyright notice and this
007: * notice unmodified.
008: *
009: * Resin Open Source is free software; you can redistribute it and/or modify
010: * it under the terms of the GNU General Public License as published by
011: * the Free Software Foundation; either version 2 of the License, or
012: * (at your option) any later version.
013: *
014: * Resin Open Source is distributed in the hope that it will be useful,
015: * but WITHOUT ANY WARRANTY; without even the implied warranty of
016: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty
017: * of NON-INFRINGEMENT. See the GNU General Public License for more
018: * details.
019: *
020: * You should have received a copy of the GNU General Public License
021: * along with Resin Open Source; if not, write to the
022: *
023: * Free Software Foundation, Inc.
024: * 59 Temple Place, Suite 330
025: * Boston, MA 02111-1307 USA
026: *
027: * @author Emil Ong
028: */
029:
030: package com.caucho.xtpdoc;
031:
032: import javax.xml.stream.XMLStreamException;
033: import javax.xml.stream.XMLStreamWriter;
034: import java.io.IOException;
035: import java.io.PrintWriter;
036: import java.util.logging.Logger;
037:
038: public class Summary implements ContentItem {
039: private static final Logger log = Logger.getLogger(Summary.class
040: .getName());
041:
042: private Document _document;
043: private ATOCControl _atocControl;
044: private Navigation _navigation;
045:
046: private boolean _isSkipDescription;
047:
048: public Summary(Document document) {
049: _document = document;
050: }
051:
052: void setNavigation(Navigation navigation) {
053: _navigation = navigation;
054: }
055:
056: public void setATOC(String atoc) {
057: }
058:
059: public void setSkipDescription(boolean isSkip) {
060: _isSkipDescription = isSkip;
061: }
062:
063: public void setObjSummary(String objSummary) {
064: }
065:
066: public void setObjsummary(String objSummary) {
067: }
068:
069: public void setNoObjSummary(String noObjSummary) {
070: }
071:
072: public void setObjSummaryInLocalTOC(String objSummary) {
073: }
074:
075: public void setDescription(String description) {
076: }
077:
078: public void setLocalTOC(String localTOC) {
079: // XXX
080: }
081:
082: public void setATOCControl(ATOCControl atocControl) {
083: _atocControl = atocControl;
084: }
085:
086: public void writeHtml(XMLStreamWriter out)
087: throws XMLStreamException {
088: _document.fillChildNavigation();
089:
090: if (_document.getNavigation() == null) {
091: } else if (_isSkipDescription) {
092: _document.getNavigation().writeHtml(out, "", 1, 2, 5);
093: } else {
094: _document.getNavigation().writeHtml(out, "", 1, 0, 5);
095: }
096: }
097:
098: public void writeLaTeXTop(PrintWriter out) throws IOException {
099: }
100:
101: public void writeLaTeX(PrintWriter out) throws IOException {
102: }
103:
104: public void writeLaTeXEnclosed(PrintWriter out) throws IOException {
105: }
106: }
|