Mercurial > projects > dil
diff src/docgen/moduledoc/writers.d @ 806:bcb74c9b895c
Moved out files in the trunk folder to the root.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Sun, 09 Mar 2008 00:12:19 +0100 |
parents | trunk/src/docgen/moduledoc/writers.d@381044a3feac |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/docgen/moduledoc/writers.d Sun Mar 09 00:12:19 2008 +0100 @@ -0,0 +1,30 @@ +/** + * Author: Jari-Matti Mäkelä + * License: GPL3 + */ +module docgen.moduledoc.writers; + +public import docgen.moduledoc.writer; +//import docgen.moduledoc.latexwriter; +import docgen.moduledoc.htmlwriter; +//import docgen.moduledoc.xmlwriter; + +class DefaultModuleDocWriterFactory : AbstractWriterFactory, ModuleDocWriterFactory { + this(DocGenerator generator) { + super(generator); + } + + ModuleDocWriter createModuleDocWriter(PageWriter writer, DocFormat outputFormat) { + switch (outputFormat) {/* + case DocFormat.LaTeX: + return new LaTeXWriter(this, writer); + case DocFormat.XML: + return new XMLWriter(this, writer);*/ + case DocFormat.HTML: + return new HTMLWriter(this, writer); + default: + throw new Exception("Moduledoc writer type does not exist!"); + } + } +} +