diff trunk/src/docgen/sourcelisting/writer.d @ 446:49f3afd6a0e8

Refactored writers.
author Jari-Matti M?kel? <jmjm@iki.fi>
date Wed, 17 Oct 2007 18:41:46 +0300
parents 0bda71dc9c4f
children c82b36b9cadf
line wrap: on
line diff
--- a/trunk/src/docgen/sourcelisting/writer.d	Wed Oct 17 03:12:46 2007 +0300
+++ b/trunk/src/docgen/sourcelisting/writer.d	Wed Oct 17 18:41:46 2007 +0300
@@ -8,11 +8,6 @@
 import dil.Parser;
 import tango.io.model.IConduit : OutputStream, InputStream;
 
-struct ListingOptions {
-  DocFormat docFormat;
-  bool enableListings;
-}
-
 interface ListingWriter {
   void generateListing(Parser parser);
   void generateListing(InputStream input);
@@ -28,15 +23,6 @@
   }
 }
 
-interface ListingWriterFactory {
-  ListingOptions *options();
+interface ListingWriterFactory : WriterFactory {
   ListingWriter createListingWriter(OutputStream[] outputs);
-}
-
-abstract class AbstractListingWriterFactory : ListingWriterFactory {
-  protected ListingOptions m_options;
-
-  public ListingOptions *options() {
-    return &m_options;
-  }
 }
\ No newline at end of file