Mercurial > projects > dil
view trunk/src/docgen/sourcelisting/latexwriter.d @ 453:4e5b35df3060
Parsing bugfixes, cleaned up imports.
author | Jari-Matti M?kel? <jmjm@iki.fi> |
---|---|
date | Thu, 25 Oct 2007 01:08:38 +0300 |
parents | 3f44c38bf870 |
children | 33a4cb255fcc |
line wrap: on
line source
/** * Author: Jari-Matti Mäkelä * License: GPL3 */ module docgen.sourcelisting.latexwriter; import docgen.sourcelisting.writer; //import dil.Parser; import tango.io.FilePath; /** * Adds a code listing section for the given file. */ class LaTeXWriter : AbstractWriter!(ListingWriterFactory), ListingWriter { DocumentWriter writer; this(ListingWriterFactory factory, DocumentWriter writer) { super(factory); this.writer = writer; } //void generateListing(Parser parser) { /* TODO */ } void generateListing(InputStream input, OutputStream output, char[] moduleName) { output.copy(input); writer.addListing( moduleName, FilePath((cast(Object)output.conduit).toUtf8()).file ); } }