OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 17 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
17 ilm 1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2011 OpenConcerto, by ILM Informatique. All rights reserved.
5
 *
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
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.
10
 *
11
 * When distributing the software, include this License Header Notice in each file.
12
 */
13
 
14
 package org.openconcerto.openoffice.spreadsheet;
15
 
16
import org.openconcerto.openoffice.ImmutableDocStyledNode;
17
import org.openconcerto.openoffice.ODDocument;
25 ilm 18
import org.openconcerto.openoffice.StyleDesc;
17 ilm 19
import org.openconcerto.openoffice.StyleStyle;
20
 
21
import org.jdom.Element;
22
import org.jdom.Namespace;
23
 
24
class TableCalcNode<S extends StyleStyle, D extends ODDocument> extends ImmutableDocStyledNode<S, D> {
25
 
26
    /**
27
     * Create a new instance. We used to find the {@link StyleStyle} class with reflection but this
28
     * was slow.
29
     *
30
     * @param parent the parent document.
31
     * @param local our XML model.
32
     * @param styleClass our class of style, cannot be <code>null</code>.
33
     */
34
    public TableCalcNode(D parent, Element local, final Class<S> styleClass) {
35
        super(parent, local, styleClass);
36
    }
37
 
25 ilm 38
    protected TableCalcNode(D parent, Element local, StyleDesc<S> styleDesc) {
39
        super(parent, local, styleDesc);
40
    }
41
 
17 ilm 42
    protected final Namespace getTABLE() {
25 ilm 43
        // a lot faster than asking to the version of our document
44
        return this.getElement().getNamespace();
17 ilm 45
    }
46
}