diff trunk/src/docgen/graphutils/writers.d @ 451:3f44c38bf870

Page templates, more flexible writer interfaces, small fixes.
author Jari-Matti M?kel? <jmjm@iki.fi>
date Wed, 24 Oct 2007 17:25:52 +0300
parents 49f3afd6a0e8
children dbdc9fa5d479
line wrap: on
line diff
--- a/trunk/src/docgen/graphutils/writers.d	Wed Oct 17 20:55:55 2007 +0200
+++ b/trunk/src/docgen/graphutils/writers.d	Wed Oct 24 17:25:52 2007 +0300
@@ -14,14 +14,14 @@
     super(generator);
   }
 
-  GraphWriterDg createGraphWriter(OutputStream[] outputs) {
+  GraphWriter createGraphWriter(DocumentWriter writer) {
     switch (options.graph.graphFormat) {
       case GraphFormat.Dot:
-        return &((new DotWriter(this, outputs)).generateGraph);
+        return new DotWriter(this, writer);
       case GraphFormat.ModuleNames:
-        return &((new ModuleNameWriter(this, outputs)).generateGraph);
+        return new ModuleNameWriter(this, writer);
       case GraphFormat.ModulePaths:
-        return &((new ModulePathWriter(this, outputs)).generateGraph);
+        return new ModulePathWriter(this, writer);
       default:
         throw new Exception("Graph writer type does not exist!");
     }