OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 177 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 177 Rev 182
Line 1... Line 1...
1
/*
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 * 
3
 * 
4
 * Copyright 2011 OpenConcerto, by ILM Informatique. All rights reserved.
4
 * Copyright 2011-2019 OpenConcerto, by ILM Informatique. All rights reserved.
5
 * 
5
 * 
6
 * The contents of this file are subject to the terms of the GNU General Public License Version 3
6
 * The contents of this file are subject to the terms of the GNU General Public License Version 3
7
 * only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
7
 * only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
8
 * copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
8
 * copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
9
 * language governing permissions and limitations under the License.
9
 * language governing permissions and limitations under the License.
Line 180... Line 180...
180
                for (int i = 0; i < range.length; i++) {
180
                for (int i = 0; i < range.length; i++) {
181
                    String string = range[i];
181
                    String string = range[i];
182
                    range[i] = string.subSequence(string.indexOf('.') + 1, string.length()).toString();
182
                    range[i] = string.subSequence(string.indexOf('.') + 1, string.length()).toString();
183
                }
183
                }
184
 
184
 
185
                int rowEnd = -1;
-
 
186
                if (range.length > 1) {
185
                if (range.length > 1) {
187
                    rowEnd = sheet.resolveHint(range[1]).y + 1;
186
                    int rowEnd = sheet.resolveHint(range[1]).y + 1;
188
                    int rowEndNew = rowEnd * (nbPage + 1);
187
                    int rowEndNew = rowEnd * nbPage;
189
                    String sNew = s.replaceAll(String.valueOf(rowEnd), String.valueOf(rowEndNew));
188
                    String sNew = s.replaceAll(String.valueOf(rowEnd), String.valueOf(rowEndNew));
190
                    sheet.setPrintRanges(sNew);
189
                    sheet.setPrintRanges(sNew);
191
                    System.err.println(" ******  Replace print ranges; Old:" + rowEnd + "--" + s + " New:" + rowEndNew + "--" + sNew);
190
                    System.err.println("OOgenerationListXML ******  Replace print ranges; Old:" + rowEnd + "--" + s + " New:" + rowEndNew + "--" + sNew);
192
                }
191
                }
193
            }
192
            }
194
 
193
 
195
            // le nombre d'éléments ne tient pas dans le tableau du modéle
194
            // le nombre d'éléments ne tient pas dans le tableau du modéle
196
            sheet.duplicateFirstRows(endLine, 1);
195
            sheet.duplicateFirstRows(endLine, 1);