From 2e720c5cbf12b988265f014f569ac64b65038f95 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 20 May 2019 10:11:57 -0400 Subject: 0.7.1 odt (initial stub) --- src/doc_reform/output/hub.d | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/doc_reform/output/hub.d') diff --git a/src/doc_reform/output/hub.d b/src/doc_reform/output/hub.d index 1f01dd6..b840811 100644 --- a/src/doc_reform/output/hub.d +++ b/src/doc_reform/output/hub.d @@ -6,6 +6,7 @@ module doc_reform.output.hub; template outputHub() { import doc_reform.output, doc_reform.output.xmls, + doc_reform.output.odt, doc_reform.output.create_zip_file, doc_reform.output.paths_output; import std.parallelism; @@ -14,7 +15,7 @@ template outputHub() { mixin Msg; auto msg = Msg!()(doc_matters); static auto rgx = Rgx(); - enum outTask { pod, source, sqlite, sqlite_multi, epub, html_scroll, html_seg, html_stuff } + enum outTask { pod, source, sqlite, sqlite_multi, odt, epub, html_scroll, html_seg, html_stuff } void Scheduled(D,I)(int sched, D doc_abstraction, I doc_matters) { auto msg = Msg!()(doc_matters); if (sched == outTask.pod) { @@ -47,6 +48,12 @@ template outputHub() { outputHTML!().images_cp(doc_matters); msg.vv("html css & images done"); } + if (sched == outTask.odt) { + msg.v("odf:odt processing... "); + import doc_reform.output.odt; + outputODT!()(doc_abstraction, doc_matters); + msg.vv("odf:odt done"); + } if (sched == outTask.sqlite) { msg.v("sqlite processing... "); import doc_reform.output.sqlite; @@ -82,6 +89,7 @@ template outputHub() { template outputHubOp() { import doc_reform.output, doc_reform.output.xmls, + doc_reform.output.odt, doc_reform.output.create_zip_file, doc_reform.output.paths_output; void outputHubOp(E,O)(E env, O opt_action) { -- cgit v1.2.3