123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- /* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You 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.apache.poi.hwpf.usermodel;
-
- import org.apache.poi.common.Duplicatable;
- import org.apache.poi.hwpf.model.types.SEPAbstractType;
- import org.apache.poi.util.Removal;
-
- public final class SectionProperties extends SEPAbstractType implements Duplicatable {
- private short field_60_rncftn;
- private short field_61_rncedn;
- private int field_62_nftn;
- // initialize with default value; msonfcArabic
- @SuppressWarnings("RedundantFieldInitialization")
- private int field_63_nfcftnref = 0x00;
- private int field_64_nedn;
- // initialize with default value; msonfcLCRoman
- private int field_65_nfcednref = 0x02;
-
- public SectionProperties() {
- field_20_brcTop = new BorderCode();
- field_21_brcLeft = new BorderCode();
- field_22_brcBottom = new BorderCode();
- field_23_brcRight = new BorderCode();
- field_26_dttmPropRMark = new DateAndTime();
- }
-
- public SectionProperties(SectionProperties other) {
- super(other);
- field_60_rncftn = other.field_60_rncftn;
- field_61_rncedn = other.field_61_rncedn;
- field_62_nftn = other.field_62_nftn;
- field_63_nfcftnref = other.field_63_nfcftnref;
- field_64_nedn = other.field_64_nedn;
- field_65_nfcednref = other.field_65_nfcednref;
- }
-
- @Override
- @SuppressWarnings("squid:S2975")
- @Deprecated
- @Removal(version = "5.0.0")
- public SectionProperties clone() {
- return copy();
- }
-
- @Override
- public SectionProperties copy() {
- return new SectionProperties(this);
- }
-
- /**
- * sprmSRncFtn, [MS-DOC], 20140721, 2.6.4
- *
- * @param field_60_rncftn unsigned 8-bit integer specifying the footnote numbering restart condition
- */
- public void setRncFtn(final short field_60_rncftn) {
- this.field_60_rncftn = field_60_rncftn;
- }
-
- /**
- * @see #setRncFtn(short)
- * @return an Rnc value specifying when and where footnote numbering restarts
- */
- public short getRncFtn() {
- return this.field_60_rncftn;
- }
-
- /**
- * sprmSRncEdn, [MS-DOC], 20140721, 2.6.4
- *
- * @param field_61_rncedn unsigned 8-bit integer specifying the endnote numbering restart condition
- */
- public void setRncEdn(final short field_61_rncedn) {
- this.field_61_rncedn = field_61_rncedn;
- }
-
- /**
- * @see #setRncEdn(short)
- * @return an Rnc value specifying when and where endnote numbering restarts
- */
- public short getRncEdn() {
- return this.field_61_rncedn;
- }
-
- /**
- * sprmSNftn, [MS-DOC], v20140721, 2.6.4
- *
- * @param field_62_nftn a number specifying the offset to add to footnote numbers
- */
- public void setNFtn(final int field_62_nftn) {
- this.field_62_nftn = field_62_nftn;
- }
-
- /**
- * @see #setNFtn(int)
- * @return a 16-bit integer specifying the offset to add to footnote numbering
- */
- public int getNFtn() {
- return this.field_62_nftn;
- }
-
- /**
- * sprmSNfcFtnRef, [MS-DOC], v20140721
- *
- * @param field_63_nfcftnref an Nfc specifying the numbering format for footnotes
- */
- public void setNfcFtnRef(final int field_63_nfcftnref) {
- this.field_63_nfcftnref = field_63_nfcftnref;
- }
-
- /**
- *
- * @see #setNfcFtnRef(int)
- * @return a 16-bit integer with an Nfc specifying the numbering format for footnotes
- */
- public int getNfcFtnRef() {
- return this.field_63_nfcftnref;
- }
-
- /**
- * sprmSNEdn, [MS-DOC], v20140721, 2.6.4
- *
- * @param field_64_nedn a number specifying the offset to add to footnote numbers
- */
- public void setNEdn(final int field_64_nedn) {
- this.field_64_nedn = field_64_nedn;
- }
-
- /**
- * @see #setNEdn(int)
- * @return a 16-bit integer specifying the offset to add to endnote numbering
- */
- public int getNEdn() {
- return this.field_64_nedn;
- }
-
- /**
- * sprmSNfcEdnRef, [MS-DOC], v20140721
- *
- * @param field_65_nfcednref an Nfc specifying the numbering format for endnotes
- */
- public void setNfcEdnRef(final int field_65_nfcednref) {
- this.field_65_nfcednref = field_65_nfcednref;
- }
-
- /**
- *
- * @see #setNfcEdnRef(int)
- * @return a 16-bit integer with an Nfc specifying the numbering format for endnotes
- */
- public int getNfcEdnRef() {
- return this.field_65_nfcednref;
- }
- }
|