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 37 public class Variable extends FormattedText { 38 public Variable(Document document) 39 { 40 super(document); 41 } 42 43 public void setType(String type) 44 { 45 } 46 47 public void writeHtml(XMLStreamWriter out) 48 throws XMLStreamException 49 { 50 out.writeStartElement("span"); 51 out.writeAttribute("class", "meta"); 52 53 super.writeHtml(out); 54 55 out.writeEndElement(); } 57 58 public void writeLaTeX(PrintWriter out) 59 throws IOException 60 { 61 out.print(" \\texttt{"); 63 64 super.writeLaTeX(out); 65 66 out.print("} "); 67 } 68 } 69 | Popular Tags |