~ubuntu-branches/ubuntu/precise/scilab/precise

« back to all changes in this revision

Viewing changes to modules/helptools/src/java/org/scilab/modules/helptools/BuildDocObject.java

  • Committer: Bazaar Package Importer
  • Author(s): Sylvestre Ledru
  • Date: 2010-04-16 15:57:24 UTC
  • mfrom: (1.1.9 upstream) (4.4.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100416155724-lx1sdku0oidl0ffn
Tags: 5.2.2-1
* New upstream release
* better-feedback-on-lib-error.diff, full_support.diff, renesas-sh.diff,
  s390javadetection.diff, sparc64.diff, test_run_permission.diff,
  z_cpudetection.diff removed (applied upstream)

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
        private static final String GRAPHICSIZE_EXTENSION_0 = "graphicsize.extension=0";
49
49
        private static final String TOC_SECTION_DEPTH_3 = "toc.section.depth=3";
50
50
        private static final String SECTION_AUTOLABEL_1 = "section.autolabel=1";
 
51
        private static final String USE_ID_AS_FILENAME = "use.id.as.filename=1";
 
52
        private static final String GENERATE_TOC = "\"generate.toc= \"";
51
53
        
52
54
        private String outputDirectory;
53
55
        private String format;
137
139
 
138
140
                /* HTML Format */
139
141
                if (format.equalsIgnoreCase("HTML")) {
140
 
                        specificArgs.add("use.id.as.filename=1");
 
142
                        specificArgs.add(USE_ID_AS_FILENAME);
141
143
                        specificArgs.add("html.stylesheet=html.css");
142
144
                        specificArgs.add(USE_EXTENSIONS_1);
143
145
                        specificArgs.add(GRAPHICSIZE_EXTENSION_0);
160
162
                
161
163
        /* CHM Format */
162
164
                if (format.equalsIgnoreCase("CHM")) {
163
 
                        specificArgs.add("use.id.as.filename=1");
 
165
                        specificArgs.add(USE_ID_AS_FILENAME);
164
166
                        specificArgs.add("html.stylesheet=htmlhelp.css");
165
167
                        specificArgs.add(USE_EXTENSIONS_1);
166
168
                        specificArgs.add(GRAPHICSIZE_EXTENSION_0);
167
 
                        specificArgs.add("\"generate.toc= \"");
 
169
                        specificArgs.add(GENERATE_TOC);
168
170
                        this.styleDoc = docbookPath + "/htmlhelp/htmlhelp.xsl";
169
171
 
170
172
                        /* Copy the css file for thr HTML pages */
186
188
                        // JavaHelp
187
189
                        specificArgs.add(USE_EXTENSIONS_1);
188
190
                        specificArgs.add(GRAPHICSIZE_EXTENSION_0);
189
 
                        specificArgs.add("\"generate.toc= \"");
190
 
                        specificArgs.add("use.id.as.filename=1");
 
191
                        specificArgs.add(GENERATE_TOC);
 
192
                        specificArgs.add(USE_ID_AS_FILENAME);
191
193
                        this.styleDoc = docbookPath + "/javahelp/javahelp.xsl";
192
194
                }
193
195
                this.format = format;