org.ttzero.excel.entity.e3.HeaderParser 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;
/**
* 5.55 HEADER
*
* This record is part of the Page Settings Block (➜4.4).
* It specifies the page header string for the current worksheet.
* If this record is not present or completely empty (record size is 0),
* the sheet does not contain a page header.
*
* The header string may contain special commands, for example
* placeholders for the page number, current date, or text
* formatting attributes. These fields are represented by single
* letters (exception: font name and size, see below) with a
* leading ampersand (“&”). If the ampersand is part of the
* regular header text, it will be duplicated (“&&”).
*
* The page header is divided into 3 sections: the left, the centred,
* and the right section. Each section is introduced by a
* special command. All text and all commands following are part
* of the selected section. Each section starts with the text
* formatting specified in the default font (first FONT record in
* the file). Active formatting attributes from a previous
* section do not go into the next section.
*
* @author guanquan.wang at 2019-02-01 09:51
*/
public class HeaderParser {
public static Header get(Block block) {
// header string
String headerString = StringParser.get16Bit(block);
// TODO 5.55 HEADER
return new Header();
}
public static short getId() {
return ParserIdentifier.HEADER;
}
public static class Header {
}
}