OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 80 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 80 Rev 174
Line 16... Line 16...
16
import org.openconcerto.openoffice.ODEpoch;
16
import org.openconcerto.openoffice.ODEpoch;
17
import org.openconcerto.openoffice.ODPackage;
17
import org.openconcerto.openoffice.ODPackage;
18
import org.openconcerto.openoffice.ODValueType;
18
import org.openconcerto.openoffice.ODValueType;
19
import org.openconcerto.openoffice.XMLVersion;
19
import org.openconcerto.openoffice.XMLVersion;
20
import org.openconcerto.openoffice.spreadsheet.CellStyle;
20
import org.openconcerto.openoffice.spreadsheet.CellStyle;
21
import org.openconcerto.openoffice.spreadsheet.MutableCell;
-
 
22
 
21
 
23
import java.util.Calendar;
22
import java.util.Calendar;
24
import java.util.Date;
23
import java.util.Date;
25
import java.util.List;
24
import java.util.List;
26
 
25
 
Line 87... Line 86...
87
                } else if (elem.getName().equals("number") || elem.getName().equals("scientific-number")) {
86
                } else if (elem.getName().equals("number") || elem.getName().equals("scientific-number")) {
88
                    sb.append(formatNumberOrScientificNumber(elem, n, defaultStyle));
87
                    sb.append(formatNumberOrScientificNumber(elem, n, defaultStyle));
89
                } else if (elem.getName().equals("fraction")) {
88
                } else if (elem.getName().equals("fraction")) {
90
                    // TODO fractions
89
                    // TODO fractions
91
                    reportError("Fractions not supported", lenient);
90
                    reportError("Fractions not supported", lenient);
92
                    sb.append(MutableCell.formatNumber(n, defaultStyle));
91
                    sb.append(getPackage().formatNumber(n, defaultStyle));
93
                }
92
                }
94
            }
93
            }
95
        }
94
        }
96
        return sb.toString();
95
        return sb.toString();
97
    }
96
    }