
org.ttzero.excel.reader.BIFF8Row 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.reader;
import org.ttzero.excel.entity.e3.Option;
/**
* BIFF8 format Row
*
* @author guanquan.wang on 2019-02-05
*/
public class BIFF8Row extends Row {
short height;
boolean hasCustomHeight;
// Bit Mask
// 2-0 00000007H
// 4 00000010H
// 5 00000020H
// 6 00000040H
// 7 00000080H
// 8 00000100H
// 27-16 0FFF0000H
// 28 10000000H
// 29 20000000H
// 30 40000000H
// Contents
// Outline level of the row
// 1 = Outline group starts or ends here (depending on where the outline buttons are located, see SHEETPR record, ➜5.97), and is collapsed
// 1 = Row is hidden (manually, or by a filter or outline group) 1 = Row height and default font height do not match
// 1 = Row has explicit default format (fl)
// Always 1
// If fl = 1: Index to default XF record (➜5.115)
// 1 = Additional space above the row. This flag is set, if the upper border of at least one cell in this row or if the lower border of at least one cell in the row above is formatted with a thick line style. Thin and medium line styles are not taken into account.
// 1 = Additional space below the row. This flag is set, if the lower border of at least one cell in this row or if the upper border of at least one cell in the row below is formatted with a medium or thick line style. Thin line styles are not taken into account.
// 1 = Show phonetic text for all cells in this row (BIFF8 only)
Option option;
short offset;
void clear() {
int n = isEmpty() ? 100 : lc;
if (cells == null || cells.length < n) {
cells = new Cell[n];
}
for (int i = 0; i < n; i++) {
if (cells[i] != null) cells[i].clear();
else cells[i] = new Cell((short) (i + 1));
}
}
/**
* Convert row to header_row
*
* @return header Row
*/
public HeaderRow asHeader() {
return super.asHeader();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy