All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ttzero.excel.entity.e3.GlobalsSetting Maven / Gradle / Ivy

/*
 * Copyright (c) 2019-2020, [email protected] All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.ttzero.excel.entity.e3;

import org.ttzero.excel.entity.style.Styles;
import org.ttzero.excel.reader.SharedStrings;

import java.util.Arrays;


/**
 * The Workbook Globals Sub-stream
 *
 * @author guanquan.wang on 2019-02-27
 */
public class GlobalsSetting {
    int firstSid;
    short hash;
    short dataMode;
    short precision;
    short bookbool;
    String writeAccess;
    SheetInfo[] sheets;
//    NumFmt[] numFmts;
    /**
     * The Shared String Table
     */
    SharedStrings sst;
    /**
     * The {@link Styles}
     */
    Styles styles;

    public int getFirstSid() {
        return firstSid;
    }

    public short getHash() {
        return hash;
    }

    public short getDataMode() {
        return dataMode;
    }

    public short getPrecision() {
        return precision;
    }

    public short getBookbool() {
        return bookbool;
    }

    public String getWriteAccess() {
        return writeAccess;
    }

    public SheetInfo[] getSheets() {
        return sheets;
    }

//    public NumFmt[] getNumFmts() {
//        return numFmts;
//    }

    public SharedStrings getSst() {
        return sst;
    }

    @Override
    public String toString() {
        return " FirstSid: " + firstSid
            + " Hash: " + hash
            + " DataMode: " + dataMode
            + " Precision: " + precision
            + " Bookbool: " + bookbool
            + " WriteAccess: " + writeAccess
            + " Sheets: " + Arrays.toString(sheets)
//            + " numFmts: " +	       Arrays.toString(numFmts)
            + " SST: {" + sst + "}"
            ;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy