OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 20 | Rev 65 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20 Rev 25
Line 12... Line 12...
12
 */
12
 */
13
 
13
 
14
 package org.openconcerto.openoffice.style.data;
14
 package org.openconcerto.openoffice.style.data;
15
 
15
 
16
import org.openconcerto.openoffice.ODPackage;
16
import org.openconcerto.openoffice.ODPackage;
-
 
17
import org.openconcerto.openoffice.ODValueType;
17
import org.openconcerto.openoffice.XMLVersion;
18
import org.openconcerto.openoffice.XMLVersion;
18
import org.openconcerto.openoffice.spreadsheet.CellStyle;
19
import org.openconcerto.openoffice.spreadsheet.CellStyle;
19
 
20
 
20
import java.text.DecimalFormatSymbols;
21
import java.text.DecimalFormatSymbols;
21
import java.util.List;
22
import java.util.List;
Line 32... Line 33...
32
            return new CurrencyStyle(pkg, e);
33
            return new CurrencyStyle(pkg, e);
33
        }
34
        }
34
    };
35
    };
35
 
36
 
36
    public CurrencyStyle(final ODPackage pkg, Element elem) {
37
    public CurrencyStyle(final ODPackage pkg, Element elem) {
37
        super(pkg, elem, Number.class);
38
        super(pkg, elem, ODValueType.CURRENCY);
-
 
39
    }
-
 
40
 
-
 
41
    @Override
-
 
42
    protected Object convertNonNull(Object o) {
-
 
43
        return NumberStyle.toNumber(o, getEpoch());
38
    }
44
    }
39
 
45
 
40
    @Override
46
    @Override
41
    public String format(Object o, CellStyle defaultStyle, boolean lenient) {
47
    public String format(Object o, CellStyle defaultStyle, boolean lenient) {
42
        final Number n = (Number) o;
48
        final Number n = (Number) o;