Helptools: refactor the HTML code generation 60/12060/2
authorClément DAVID <clement.david@scilab-enterprises.com>
Tue, 16 Jul 2013 08:10:05 +0000 (10:10 +0200)
committerClément DAVID <clement.david@scilab-enterprises.com>
Fri, 23 Aug 2013 13:19:17 +0000 (15:19 +0200)
commit11f9cc3b0d69d26210b6ef0f771a890a3e477bd1
treeb1128333e8983e53508edcffbe2ea35e40cf712f
parent132d45286f6134444ec8acc786c8290b18bd3e10
Helptools: refactor the HTML code generation

Add a 2 pass generation on buildDocv2 to handle Docbook->HTML then
HTML->Jar creation. This way we can implement en Docbook->FO then FO->PDF
generation using the same entry point.

Image converter are now convertion independent, we can reuse them for FO
generation.

Some static singleton pattern has been removed to let the GC works with
clean references between classes (Composition pattern).

Change-Id: I01700b207b7fb7ea3437fdc0b445a5a2f6d3e4a0
23 files changed:
scilab/modules/helptools/macros/xmltoformat.sci
scilab/modules/helptools/sci_gateway/cpp/sci_buildDocv2.cpp
scilab/modules/helptools/src/java/org/scilab/modules/helptools/BuildDocObject.java
scilab/modules/helptools/src/java/org/scilab/modules/helptools/CHMDocbookTagConverter.java
scilab/modules/helptools/src/java/org/scilab/modules/helptools/ContainerConverter.java [new file with mode: 0644]
scilab/modules/helptools/src/java/org/scilab/modules/helptools/Converter.java [new file with mode: 0644]
scilab/modules/helptools/src/java/org/scilab/modules/helptools/DocbookTagConverter.java
scilab/modules/helptools/src/java/org/scilab/modules/helptools/HTMLDocbookLinkResolver.java
scilab/modules/helptools/src/java/org/scilab/modules/helptools/HTMLDocbookTagConverter.java
scilab/modules/helptools/src/java/org/scilab/modules/helptools/JarOnlyConverter.java [moved from scilab/modules/helptools/src/java/org/scilab/modules/helptools/BuildJavaHelp.java with 81% similarity]
scilab/modules/helptools/src/java/org/scilab/modules/helptools/JavaHelpDocbookTagConverter.java
scilab/modules/helptools/src/java/org/scilab/modules/helptools/SciDocMain.java
scilab/modules/helptools/src/java/org/scilab/modules/helptools/TemplateHandler.java
scilab/modules/helptools/src/java/org/scilab/modules/helptools/external/ExternalXMLHandler.java
scilab/modules/helptools/src/java/org/scilab/modules/helptools/external/HTMLMathMLHandler.java
scilab/modules/helptools/src/java/org/scilab/modules/helptools/external/HTMLSVGHandler.java
scilab/modules/helptools/src/java/org/scilab/modules/helptools/external/HTMLScilabHandler.java
scilab/modules/helptools/src/java/org/scilab/modules/helptools/image/ImageConverter.java
scilab/modules/helptools/src/java/org/scilab/modules/helptools/image/LaTeXImageConverter.java
scilab/modules/helptools/src/java/org/scilab/modules/helptools/image/MathMLImageConverter.java
scilab/modules/helptools/src/java/org/scilab/modules/helptools/image/SVGImageConverter.java
scilab/modules/helptools/src/java/org/scilab/modules/helptools/image/ScilabImageConverter.java
scilab/modules/helptools/src/java/org/scilab/modules/helptools/image/XcosImageConverter.java