選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

SectionProperties.java 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. /* ====================================================================
  2. Licensed to the Apache Software Foundation (ASF) under one or more
  3. contributor license agreements. See the NOTICE file distributed with
  4. this work for additional information regarding copyright ownership.
  5. The ASF licenses this file to You under the Apache License, Version 2.0
  6. (the "License"); you may not use this file except in compliance with
  7. the License. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. ==================================================================== */
  15. package org.apache.poi.hwpf.usermodel;
  16. import org.apache.poi.common.Duplicatable;
  17. import org.apache.poi.hwpf.model.types.SEPAbstractType;
  18. import org.apache.poi.util.Removal;
  19. public final class SectionProperties extends SEPAbstractType implements Duplicatable {
  20. private short field_60_rncftn;
  21. private short field_61_rncedn;
  22. private int field_62_nftn;
  23. // initialize with default value; msonfcArabic
  24. @SuppressWarnings("RedundantFieldInitialization")
  25. private int field_63_nfcftnref = 0x00;
  26. private int field_64_nedn;
  27. // initialize with default value; msonfcLCRoman
  28. private int field_65_nfcednref = 0x02;
  29. public SectionProperties() {
  30. field_20_brcTop = new BorderCode();
  31. field_21_brcLeft = new BorderCode();
  32. field_22_brcBottom = new BorderCode();
  33. field_23_brcRight = new BorderCode();
  34. field_26_dttmPropRMark = new DateAndTime();
  35. }
  36. public SectionProperties(SectionProperties other) {
  37. super(other);
  38. field_60_rncftn = other.field_60_rncftn;
  39. field_61_rncedn = other.field_61_rncedn;
  40. field_62_nftn = other.field_62_nftn;
  41. field_63_nfcftnref = other.field_63_nfcftnref;
  42. field_64_nedn = other.field_64_nedn;
  43. field_65_nfcednref = other.field_65_nfcednref;
  44. }
  45. @Override
  46. @SuppressWarnings("squid:S2975")
  47. @Deprecated
  48. @Removal(version = "5.0.0")
  49. public SectionProperties clone() {
  50. return copy();
  51. }
  52. @Override
  53. public SectionProperties copy() {
  54. return new SectionProperties(this);
  55. }
  56. /**
  57. * sprmSRncFtn, [MS-DOC], 20140721, 2.6.4
  58. *
  59. * @param field_60_rncftn unsigned 8-bit integer specifying the footnote numbering restart condition
  60. */
  61. public void setRncFtn(final short field_60_rncftn) {
  62. this.field_60_rncftn = field_60_rncftn;
  63. }
  64. /**
  65. * @see #setRncFtn(short)
  66. * @return an Rnc value specifying when and where footnote numbering restarts
  67. */
  68. public short getRncFtn() {
  69. return this.field_60_rncftn;
  70. }
  71. /**
  72. * sprmSRncEdn, [MS-DOC], 20140721, 2.6.4
  73. *
  74. * @param field_61_rncedn unsigned 8-bit integer specifying the endnote numbering restart condition
  75. */
  76. public void setRncEdn(final short field_61_rncedn) {
  77. this.field_61_rncedn = field_61_rncedn;
  78. }
  79. /**
  80. * @see #setRncEdn(short)
  81. * @return an Rnc value specifying when and where endnote numbering restarts
  82. */
  83. public short getRncEdn() {
  84. return this.field_61_rncedn;
  85. }
  86. /**
  87. * sprmSNftn, [MS-DOC], v20140721, 2.6.4
  88. *
  89. * @param field_62_nftn a number specifying the offset to add to footnote numbers
  90. */
  91. public void setNFtn(final int field_62_nftn) {
  92. this.field_62_nftn = field_62_nftn;
  93. }
  94. /**
  95. * @see #setNFtn(int)
  96. * @return a 16-bit integer specifying the offset to add to footnote numbering
  97. */
  98. public int getNFtn() {
  99. return this.field_62_nftn;
  100. }
  101. /**
  102. * sprmSNfcFtnRef, [MS-DOC], v20140721
  103. *
  104. * @param field_63_nfcftnref an Nfc specifying the numbering format for footnotes
  105. */
  106. public void setNfcFtnRef(final int field_63_nfcftnref) {
  107. this.field_63_nfcftnref = field_63_nfcftnref;
  108. }
  109. /**
  110. *
  111. * @see #setNfcFtnRef(int)
  112. * @return a 16-bit integer with an Nfc specifying the numbering format for footnotes
  113. */
  114. public int getNfcFtnRef() {
  115. return this.field_63_nfcftnref;
  116. }
  117. /**
  118. * sprmSNEdn, [MS-DOC], v20140721, 2.6.4
  119. *
  120. * @param field_64_nedn a number specifying the offset to add to footnote numbers
  121. */
  122. public void setNEdn(final int field_64_nedn) {
  123. this.field_64_nedn = field_64_nedn;
  124. }
  125. /**
  126. * @see #setNEdn(int)
  127. * @return a 16-bit integer specifying the offset to add to endnote numbering
  128. */
  129. public int getNEdn() {
  130. return this.field_64_nedn;
  131. }
  132. /**
  133. * sprmSNfcEdnRef, [MS-DOC], v20140721
  134. *
  135. * @param field_65_nfcednref an Nfc specifying the numbering format for endnotes
  136. */
  137. public void setNfcEdnRef(final int field_65_nfcednref) {
  138. this.field_65_nfcednref = field_65_nfcednref;
  139. }
  140. /**
  141. *
  142. * @see #setNfcEdnRef(int)
  143. * @return a 16-bit integer with an Nfc specifying the numbering format for endnotes
  144. */
  145. public int getNfcEdnRef() {
  146. return this.field_65_nfcednref;
  147. }
  148. }