aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/output/hub.d
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc_reform/output/hub.d')
-rw-r--r--src/doc_reform/output/hub.d10
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) {