diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2019-05-20 10:11:57 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2019-10-17 19:07:20 -0400 |
commit | 2e720c5cbf12b988265f014f569ac64b65038f95 (patch) | |
tree | cb4d3304012aa3c3c1cb3f0662828e4e68e2bec3 /src/doc_reform/output/hub.d | |
parent | meta_abstraction, ultimately cosmetic (diff) |
0.7.1 odt (initial stub)doc-reform_v0.7.1
Diffstat (limited to 'src/doc_reform/output/hub.d')
-rw-r--r-- | src/doc_reform/output/hub.d | 10 |
1 files changed, 9 insertions, 1 deletions
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) { |