Mercurial > projects > dil
comparison trunk/src/docgen/graphutils/writers.d @ 466:db7e27b5c180
Fixed parts of HTML output, some reorganizing.
author | Jari-Matti M?kel? <jmjm@iki.fi> |
---|---|
date | Wed, 31 Oct 2007 15:17:20 +0200 |
parents | 1b5f1ce09f38 |
children |
comparison
equal
deleted
inserted
replaced
465:e0d24e05a9ee | 466:db7e27b5c180 |
---|---|
8 import docgen.graphutils.dotwriter; | 8 import docgen.graphutils.dotwriter; |
9 import docgen.graphutils.modulepathwriter; | 9 import docgen.graphutils.modulepathwriter; |
10 import docgen.graphutils.modulenamewriter; | 10 import docgen.graphutils.modulenamewriter; |
11 | 11 |
12 class DefaultGraphWriterFactory : AbstractWriterFactory, GraphWriterFactory { | 12 class DefaultGraphWriterFactory : AbstractWriterFactory, GraphWriterFactory { |
13 public: | |
14 | |
13 this(DocGenerator generator) { | 15 this(DocGenerator generator) { |
14 super(generator); | 16 super(generator); |
15 } | 17 } |
16 | 18 |
17 GraphWriter createGraphWriter(PageWriter writer, GraphFormat outputFormat) { | 19 GraphWriter createGraphWriter(PageWriter writer, GraphFormat outputFormat) { |
27 } | 29 } |
28 } | 30 } |
29 } | 31 } |
30 | 32 |
31 class DefaultCachingGraphWriterFactory : AbstractWriterFactory, CachingGraphWriterFactory { | 33 class DefaultCachingGraphWriterFactory : AbstractWriterFactory, CachingGraphWriterFactory { |
34 public: | |
35 | |
32 CachingDocGenerator generator; | 36 CachingDocGenerator generator; |
33 | 37 |
34 this(CachingDocGenerator generator) { | 38 this(CachingDocGenerator generator) { |
35 super(generator); | 39 super(generator); |
36 this.generator = generator; | 40 this.generator = generator; |
38 | 42 |
39 GraphCache graphCache() { | 43 GraphCache graphCache() { |
40 return generator.graphCache; | 44 return generator.graphCache; |
41 } | 45 } |
42 | 46 |
43 GraphWriter createGraphWriter(PageWriter writer, GraphFormat outputFormat) { | 47 override GraphWriter createGraphWriter(PageWriter writer, GraphFormat outputFormat) { |
44 switch (outputFormat) { | 48 switch (outputFormat) { |
45 case GraphFormat.Dot: | 49 case GraphFormat.Dot: |
46 return new CachingDotWriter(this, writer); | 50 return new CachingDotWriter(this, writer); |
47 case GraphFormat.ModuleNames: | 51 case GraphFormat.ModuleNames: |
48 return new ModuleNameWriter(this, writer); | 52 return new ModuleNameWriter(this, writer); |