You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PAPAbstractType.java 50KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912
  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.model.types;
  16. import java.util.Arrays;
  17. import java.util.stream.Stream;
  18. import org.apache.poi.hwpf.model.TabDescriptor;
  19. import org.apache.poi.hwpf.usermodel.BorderCode;
  20. import org.apache.poi.hwpf.usermodel.DateAndTime;
  21. import org.apache.poi.hwpf.usermodel.DropCapSpecifier;
  22. import org.apache.poi.hwpf.usermodel.LineSpacingDescriptor;
  23. import org.apache.poi.hwpf.usermodel.ShadingDescriptor;
  24. import org.apache.poi.util.BitField;
  25. import org.apache.poi.util.Internal;
  26. /**
  27. * Paragraph Properties.
  28. */
  29. @SuppressWarnings("unused")
  30. @Internal
  31. public abstract class PAPAbstractType {
  32. protected static final byte BRCL_SINGLE = 0;
  33. protected static final byte BRCL_THICK = 1;
  34. protected static final byte BRCL_DOUBLE = 2;
  35. protected static final byte BRCL_SHADOW = 3;
  36. protected static final byte BRCP_NONE = 0;
  37. protected static final byte BRCP_BORDER_ABOVE = 1;
  38. protected static final byte BRCP_BORDER_BELOW = 2;
  39. protected static final byte BRCP_BOX_AROUND = 15;
  40. protected static final byte BRCP_BAR_TO_LEFT_OF_PARAGRAPH = 16;
  41. protected static final boolean FMINHEIGHT_EXACT = false;
  42. protected static final boolean FMINHEIGHT_AT_LEAST = true;
  43. protected static final byte WALIGNFONT_HANGING = 0;
  44. protected static final byte WALIGNFONT_CENTERED = 1;
  45. protected static final byte WALIGNFONT_ROMAN = 2;
  46. protected static final byte WALIGNFONT_VARIABLE = 3;
  47. protected static final byte WALIGNFONT_AUTO = 4;
  48. private static final BitField fVertical = new BitField(0x0001);
  49. private static final BitField fBackward = new BitField(0x0002);
  50. private static final BitField fRotateFont = new BitField(0x0004);
  51. protected int field_1_istd;
  52. protected boolean field_2_fSideBySide;
  53. protected boolean field_3_fKeep;
  54. protected boolean field_4_fKeepFollow;
  55. protected boolean field_5_fPageBreakBefore;
  56. protected byte field_6_brcl;
  57. protected byte field_7_brcp;
  58. protected byte field_8_ilvl;
  59. protected int field_9_ilfo;
  60. protected boolean field_10_fNoLnn;
  61. protected LineSpacingDescriptor field_11_lspd;
  62. protected int field_12_dyaBefore;
  63. protected int field_13_dyaAfter;
  64. protected boolean field_14_fInTable;
  65. protected boolean field_15_finTableW97;
  66. protected boolean field_16_fTtp;
  67. protected int field_17_dxaAbs;
  68. protected int field_18_dyaAbs;
  69. protected int field_19_dxaWidth;
  70. protected boolean field_20_fBrLnAbove;
  71. protected boolean field_21_fBrLnBelow;
  72. protected byte field_22_pcVert;
  73. protected byte field_23_pcHorz;
  74. protected byte field_24_wr;
  75. protected boolean field_25_fNoAutoHyph;
  76. protected int field_26_dyaHeight;
  77. protected boolean field_27_fMinHeight;
  78. protected DropCapSpecifier field_28_dcs;
  79. protected int field_29_dyaFromText;
  80. protected int field_30_dxaFromText;
  81. protected boolean field_31_fLocked;
  82. protected boolean field_32_fWidowControl;
  83. protected boolean field_33_fKinsoku;
  84. protected boolean field_34_fWordWrap;
  85. protected boolean field_35_fOverflowPunct;
  86. protected boolean field_36_fTopLinePunct;
  87. protected boolean field_37_fAutoSpaceDE;
  88. protected boolean field_38_fAutoSpaceDN;
  89. protected int field_39_wAlignFont;
  90. protected short field_40_fontAlign;
  91. protected byte field_41_lvl;
  92. protected boolean field_42_fBiDi;
  93. protected boolean field_43_fNumRMIns;
  94. protected boolean field_44_fCrLf;
  95. protected boolean field_45_fUsePgsuSettings;
  96. protected boolean field_46_fAdjustRight;
  97. protected int field_47_itap;
  98. protected boolean field_48_fInnerTableCell;
  99. protected boolean field_49_fOpenTch;
  100. protected boolean field_50_fTtpEmbedded;
  101. protected short field_51_dxcRight;
  102. protected short field_52_dxcLeft;
  103. protected short field_53_dxcLeft1;
  104. protected boolean field_54_fDyaBeforeAuto;
  105. protected boolean field_55_fDyaAfterAuto;
  106. protected int field_56_dxaRight;
  107. protected int field_57_dxaLeft;
  108. protected int field_58_dxaLeft1;
  109. protected byte field_59_jc;
  110. protected BorderCode field_60_brcTop;
  111. protected BorderCode field_61_brcLeft;
  112. protected BorderCode field_62_brcBottom;
  113. protected BorderCode field_63_brcRight;
  114. protected BorderCode field_64_brcBetween;
  115. protected BorderCode field_65_brcBar;
  116. protected ShadingDescriptor field_66_shd;
  117. protected byte[] field_67_anld;
  118. protected byte[] field_68_phe;
  119. protected boolean field_69_fPropRMark;
  120. protected int field_70_ibstPropRMark;
  121. protected DateAndTime field_71_dttmPropRMark;
  122. protected int field_72_itbdMac;
  123. protected int[] field_73_rgdxaTab;
  124. protected TabDescriptor[] field_74_rgtbd;
  125. protected byte[] field_75_numrm;
  126. protected byte[] field_76_ptap;
  127. protected boolean field_77_fNoAllowOverlap;
  128. protected long field_78_ipgp;
  129. protected long field_79_rsid;
  130. protected PAPAbstractType() {
  131. field_11_lspd = new LineSpacingDescriptor();
  132. field_11_lspd = new LineSpacingDescriptor();
  133. field_28_dcs = new DropCapSpecifier();
  134. field_32_fWidowControl = true;
  135. field_41_lvl = 9;
  136. field_60_brcTop = new BorderCode();
  137. field_61_brcLeft = new BorderCode();
  138. field_62_brcBottom = new BorderCode();
  139. field_63_brcRight = new BorderCode();
  140. field_64_brcBetween = new BorderCode();
  141. field_65_brcBar = new BorderCode();
  142. field_66_shd = new ShadingDescriptor();
  143. field_67_anld = new byte[0];
  144. field_68_phe = new byte[0];
  145. field_71_dttmPropRMark = new DateAndTime();
  146. field_73_rgdxaTab = new int[0];
  147. field_74_rgtbd = new TabDescriptor[0];
  148. field_75_numrm = new byte[0];
  149. field_76_ptap = new byte[0];
  150. }
  151. protected PAPAbstractType(PAPAbstractType other) {
  152. field_1_istd = other.field_1_istd;
  153. field_2_fSideBySide = other.field_2_fSideBySide;
  154. field_3_fKeep = other.field_3_fKeep;
  155. field_4_fKeepFollow = other.field_4_fKeepFollow;
  156. field_5_fPageBreakBefore = other.field_5_fPageBreakBefore;
  157. field_6_brcl = other.field_6_brcl;
  158. field_7_brcp = other.field_7_brcp;
  159. field_8_ilvl = other.field_8_ilvl;
  160. field_9_ilfo = other.field_9_ilfo;
  161. field_10_fNoLnn = other.field_10_fNoLnn;
  162. field_11_lspd = (other.field_11_lspd == null) ? null : other.field_11_lspd.copy();
  163. field_12_dyaBefore = other.field_12_dyaBefore;
  164. field_13_dyaAfter = other.field_13_dyaAfter;
  165. field_14_fInTable = other.field_14_fInTable;
  166. field_15_finTableW97 = other.field_15_finTableW97;
  167. field_16_fTtp = other.field_16_fTtp;
  168. field_17_dxaAbs = other.field_17_dxaAbs;
  169. field_18_dyaAbs = other.field_18_dyaAbs;
  170. field_19_dxaWidth = other.field_19_dxaWidth;
  171. field_20_fBrLnAbove = other.field_20_fBrLnAbove;
  172. field_21_fBrLnBelow = other.field_21_fBrLnBelow;
  173. field_22_pcVert = other.field_22_pcVert;
  174. field_23_pcHorz = other.field_23_pcHorz;
  175. field_24_wr = other.field_24_wr;
  176. field_25_fNoAutoHyph = other.field_25_fNoAutoHyph;
  177. field_26_dyaHeight = other.field_26_dyaHeight;
  178. field_27_fMinHeight = other.field_27_fMinHeight;
  179. field_28_dcs = (other.field_28_dcs == null) ? null : other.field_28_dcs.copy();
  180. field_29_dyaFromText = other.field_29_dyaFromText;
  181. field_30_dxaFromText = other.field_30_dxaFromText;
  182. field_31_fLocked = other.field_31_fLocked;
  183. field_32_fWidowControl = other.field_32_fWidowControl;
  184. field_33_fKinsoku = other.field_33_fKinsoku;
  185. field_34_fWordWrap = other.field_34_fWordWrap;
  186. field_35_fOverflowPunct = other.field_35_fOverflowPunct;
  187. field_36_fTopLinePunct = other.field_36_fTopLinePunct;
  188. field_37_fAutoSpaceDE = other.field_37_fAutoSpaceDE;
  189. field_38_fAutoSpaceDN = other.field_38_fAutoSpaceDN;
  190. field_39_wAlignFont = other.field_39_wAlignFont;
  191. field_40_fontAlign = other.field_40_fontAlign;
  192. field_41_lvl = other.field_41_lvl;
  193. field_42_fBiDi = other.field_42_fBiDi;
  194. field_43_fNumRMIns = other.field_43_fNumRMIns;
  195. field_44_fCrLf = other.field_44_fCrLf;
  196. field_45_fUsePgsuSettings = other.field_45_fUsePgsuSettings;
  197. field_46_fAdjustRight = other.field_46_fAdjustRight;
  198. field_47_itap = other.field_47_itap;
  199. field_48_fInnerTableCell = other.field_48_fInnerTableCell;
  200. field_49_fOpenTch = other.field_49_fOpenTch;
  201. field_50_fTtpEmbedded = other.field_50_fTtpEmbedded;
  202. field_51_dxcRight = other.field_51_dxcRight;
  203. field_52_dxcLeft = other.field_52_dxcLeft;
  204. field_53_dxcLeft1 = other.field_53_dxcLeft1;
  205. field_54_fDyaBeforeAuto = other.field_54_fDyaBeforeAuto;
  206. field_55_fDyaAfterAuto = other.field_55_fDyaAfterAuto;
  207. field_56_dxaRight = other.field_56_dxaRight;
  208. field_57_dxaLeft = other.field_57_dxaLeft;
  209. field_58_dxaLeft1 = other.field_58_dxaLeft1;
  210. field_59_jc = other.field_59_jc;
  211. field_60_brcTop = (other.field_60_brcTop == null) ? null : other.field_60_brcTop.copy();
  212. field_61_brcLeft = (other.field_61_brcLeft == null) ? null : other.field_61_brcLeft.copy();
  213. field_62_brcBottom = (other.field_62_brcBottom == null) ? null : other.field_62_brcBottom.copy();
  214. field_63_brcRight = (other.field_63_brcRight == null) ? null : other.field_63_brcRight.copy();
  215. field_64_brcBetween = (other.field_64_brcBetween == null) ? null : other.field_64_brcBetween.copy();
  216. field_65_brcBar = (other.field_65_brcBar == null) ? null : other.field_65_brcBar.copy();
  217. field_66_shd = (other.field_66_shd == null) ? null : other.field_66_shd.copy();
  218. field_67_anld = (other.field_67_anld == null) ? null : other.field_67_anld.clone();
  219. field_68_phe = (other.field_68_phe == null) ? null : other.field_68_phe.clone();
  220. field_69_fPropRMark = other.field_69_fPropRMark;
  221. field_70_ibstPropRMark = other.field_70_ibstPropRMark;
  222. field_71_dttmPropRMark = (other.field_71_dttmPropRMark == null) ? null : other.field_71_dttmPropRMark.copy();
  223. field_72_itbdMac = other.field_72_itbdMac;
  224. field_73_rgdxaTab = (other.field_73_rgdxaTab == null) ? null : other.field_73_rgdxaTab.clone();
  225. field_74_rgtbd = (other.field_74_rgtbd == null) ? null
  226. : Stream.of(other.field_74_rgtbd).map(TabDescriptor::copy).toArray(TabDescriptor[]::new);
  227. field_75_numrm = (other.field_75_numrm == null) ? null : other.field_75_numrm.clone();
  228. field_76_ptap = (other.field_76_ptap == null) ? null : other.field_76_ptap.clone();
  229. field_77_fNoAllowOverlap = other.field_77_fNoAllowOverlap;
  230. field_78_ipgp = other.field_78_ipgp;
  231. field_79_rsid = other.field_79_rsid;
  232. }
  233. public String toString() {
  234. return "[PAP]\n" +
  235. " .istd = (" + getIstd() + " )\n" +
  236. " .fSideBySide = (" + getFSideBySide() + " )\n" +
  237. " .fKeep = (" + getFKeep() + " )\n" +
  238. " .fKeepFollow = (" + getFKeepFollow() + " )\n" +
  239. " .fPageBreakBefore = (" + getFPageBreakBefore() + " )\n" +
  240. " .brcl = (" + getBrcl() + " )\n" +
  241. " .brcp = (" + getBrcp() + " )\n" +
  242. " .ilvl = (" + getIlvl() + " )\n" +
  243. " .ilfo = (" + getIlfo() + " )\n" +
  244. " .fNoLnn = (" + getFNoLnn() + " )\n" +
  245. " .lspd = (" + getLspd() + " )\n" +
  246. " .dyaBefore = (" + getDyaBefore() + " )\n" +
  247. " .dyaAfter = (" + getDyaAfter() + " )\n" +
  248. " .fInTable = (" + getFInTable() + " )\n" +
  249. " .finTableW97 = (" + getFinTableW97() + " )\n" +
  250. " .fTtp = (" + getFTtp() + " )\n" +
  251. " .dxaAbs = (" + getDxaAbs() + " )\n" +
  252. " .dyaAbs = (" + getDyaAbs() + " )\n" +
  253. " .dxaWidth = (" + getDxaWidth() + " )\n" +
  254. " .fBrLnAbove = (" + getFBrLnAbove() + " )\n" +
  255. " .fBrLnBelow = (" + getFBrLnBelow() + " )\n" +
  256. " .pcVert = (" + getPcVert() + " )\n" +
  257. " .pcHorz = (" + getPcHorz() + " )\n" +
  258. " .wr = (" + getWr() + " )\n" +
  259. " .fNoAutoHyph = (" + getFNoAutoHyph() + " )\n" +
  260. " .dyaHeight = (" + getDyaHeight() + " )\n" +
  261. " .fMinHeight = (" + getFMinHeight() + " )\n" +
  262. " .dcs = (" + getDcs() + " )\n" +
  263. " .dyaFromText = (" + getDyaFromText() + " )\n" +
  264. " .dxaFromText = (" + getDxaFromText() + " )\n" +
  265. " .fLocked = (" + getFLocked() + " )\n" +
  266. " .fWidowControl = (" + getFWidowControl() + " )\n" +
  267. " .fKinsoku = (" + getFKinsoku() + " )\n" +
  268. " .fWordWrap = (" + getFWordWrap() + " )\n" +
  269. " .fOverflowPunct = (" + getFOverflowPunct() + " )\n" +
  270. " .fTopLinePunct = (" + getFTopLinePunct() + " )\n" +
  271. " .fAutoSpaceDE = (" + getFAutoSpaceDE() + " )\n" +
  272. " .fAutoSpaceDN = (" + getFAutoSpaceDN() + " )\n" +
  273. " .wAlignFont = (" + getWAlignFont() + " )\n" +
  274. " .fontAlign = (" + getFontAlign() + " )\n" +
  275. " .fVertical = " + isFVertical() + '\n' +
  276. " .fBackward = " + isFBackward() + '\n' +
  277. " .fRotateFont = " + isFRotateFont() + '\n' +
  278. " .lvl = (" + getLvl() + " )\n" +
  279. " .fBiDi = (" + getFBiDi() + " )\n" +
  280. " .fNumRMIns = (" + getFNumRMIns() + " )\n" +
  281. " .fCrLf = (" + getFCrLf() + " )\n" +
  282. " .fUsePgsuSettings = (" + getFUsePgsuSettings() + " )\n" +
  283. " .fAdjustRight = (" + getFAdjustRight() + " )\n" +
  284. " .itap = (" + getItap() + " )\n" +
  285. " .fInnerTableCell = (" + getFInnerTableCell() + " )\n" +
  286. " .fOpenTch = (" + getFOpenTch() + " )\n" +
  287. " .fTtpEmbedded = (" + getFTtpEmbedded() + " )\n" +
  288. " .dxcRight = (" + getDxcRight() + " )\n" +
  289. " .dxcLeft = (" + getDxcLeft() + " )\n" +
  290. " .dxcLeft1 = (" + getDxcLeft1() + " )\n" +
  291. " .fDyaBeforeAuto = (" + getFDyaBeforeAuto() + " )\n" +
  292. " .fDyaAfterAuto = (" + getFDyaAfterAuto() + " )\n" +
  293. " .dxaRight = (" + getDxaRight() + " )\n" +
  294. " .dxaLeft = (" + getDxaLeft() + " )\n" +
  295. " .dxaLeft1 = (" + getDxaLeft1() + " )\n" +
  296. " .jc = (" + getJc() + " )\n" +
  297. " .brcTop = (" + getBrcTop() + " )\n" +
  298. " .brcLeft = (" + getBrcLeft() + " )\n" +
  299. " .brcBottom = (" + getBrcBottom() + " )\n" +
  300. " .brcRight = (" + getBrcRight() + " )\n" +
  301. " .brcBetween = (" + getBrcBetween() + " )\n" +
  302. " .brcBar = (" + getBrcBar() + " )\n" +
  303. " .shd = (" + getShd() + " )\n" +
  304. " .anld = (" + Arrays.toString(getAnld()) + " )\n" +
  305. " .phe = (" + Arrays.toString(getPhe()) + " )\n" +
  306. " .fPropRMark = (" + getFPropRMark() + " )\n" +
  307. " .ibstPropRMark = (" + getIbstPropRMark() + " )\n" +
  308. " .dttmPropRMark = (" + getDttmPropRMark() + " )\n" +
  309. " .itbdMac = (" + getItbdMac() + " )\n" +
  310. " .rgdxaTab = (" + Arrays.toString(getRgdxaTab()) + " )\n" +
  311. " .rgtbd = (" + Arrays.toString(getRgtbd()) + " )\n" +
  312. " .numrm = (" + Arrays.toString(getNumrm()) + " )\n" +
  313. " .ptap = (" + Arrays.toString(getPtap()) + " )\n" +
  314. " .fNoAllowOverlap = (" + getFNoAllowOverlap() + " )\n" +
  315. " .ipgp = (" + getIpgp() + " )\n" +
  316. " .rsid = (" + getRsid() + " )\n" +
  317. "[/PAP]\n";
  318. }
  319. /**
  320. * Index to style descriptor.
  321. */
  322. @Internal
  323. public int getIstd()
  324. {
  325. return field_1_istd;
  326. }
  327. /**
  328. * Index to style descriptor.
  329. */
  330. @Internal
  331. public void setIstd( int field_1_istd )
  332. {
  333. this.field_1_istd = field_1_istd;
  334. }
  335. /**
  336. * Get the fSideBySide field for the PAP record.
  337. */
  338. @Internal
  339. public boolean getFSideBySide()
  340. {
  341. return field_2_fSideBySide;
  342. }
  343. /**
  344. * Set the fSideBySide field for the PAP record.
  345. */
  346. @Internal
  347. public void setFSideBySide( boolean field_2_fSideBySide )
  348. {
  349. this.field_2_fSideBySide = field_2_fSideBySide;
  350. }
  351. /**
  352. * Get the fKeep field for the PAP record.
  353. */
  354. @Internal
  355. public boolean getFKeep()
  356. {
  357. return field_3_fKeep;
  358. }
  359. /**
  360. * Set the fKeep field for the PAP record.
  361. */
  362. @Internal
  363. public void setFKeep( boolean field_3_fKeep )
  364. {
  365. this.field_3_fKeep = field_3_fKeep;
  366. }
  367. /**
  368. * Get the fKeepFollow field for the PAP record.
  369. */
  370. @Internal
  371. public boolean getFKeepFollow()
  372. {
  373. return field_4_fKeepFollow;
  374. }
  375. /**
  376. * Set the fKeepFollow field for the PAP record.
  377. */
  378. @Internal
  379. public void setFKeepFollow( boolean field_4_fKeepFollow )
  380. {
  381. this.field_4_fKeepFollow = field_4_fKeepFollow;
  382. }
  383. /**
  384. * Get the fPageBreakBefore field for the PAP record.
  385. */
  386. @Internal
  387. public boolean getFPageBreakBefore()
  388. {
  389. return field_5_fPageBreakBefore;
  390. }
  391. /**
  392. * Set the fPageBreakBefore field for the PAP record.
  393. */
  394. @Internal
  395. public void setFPageBreakBefore( boolean field_5_fPageBreakBefore )
  396. {
  397. this.field_5_fPageBreakBefore = field_5_fPageBreakBefore;
  398. }
  399. /**
  400. * Border line style.
  401. *
  402. * @return One of <ul>
  403. * <li>{@link #BRCL_SINGLE}
  404. * <li>{@link #BRCL_THICK}
  405. * <li>{@link #BRCL_DOUBLE}
  406. * <li>{@link #BRCL_SHADOW}
  407. * </ul>
  408. */
  409. @Internal
  410. public byte getBrcl()
  411. {
  412. return field_6_brcl;
  413. }
  414. /**
  415. * Border line style.
  416. *
  417. * @param field_6_brcl One of <ul>
  418. * <li>{@link #BRCL_SINGLE}
  419. * <li>{@link #BRCL_THICK}
  420. * <li>{@link #BRCL_DOUBLE}
  421. * <li>{@link #BRCL_SHADOW}
  422. * </ul>
  423. */
  424. @Internal
  425. public void setBrcl( byte field_6_brcl )
  426. {
  427. this.field_6_brcl = field_6_brcl;
  428. }
  429. /**
  430. * Rectangle border codes.
  431. *
  432. * @return One of <ul>
  433. * <li>{@link #BRCP_NONE}
  434. * <li>{@link #BRCP_BORDER_ABOVE}
  435. * <li>{@link #BRCP_BORDER_BELOW}
  436. * <li>{@link #BRCP_BOX_AROUND}
  437. * <li>{@link #BRCP_BAR_TO_LEFT_OF_PARAGRAPH}
  438. * </ul>
  439. */
  440. @Internal
  441. public byte getBrcp()
  442. {
  443. return field_7_brcp;
  444. }
  445. /**
  446. * Rectangle border codes.
  447. *
  448. * @param field_7_brcp One of <ul>
  449. * <li>{@link #BRCP_NONE}
  450. * <li>{@link #BRCP_BORDER_ABOVE}
  451. * <li>{@link #BRCP_BORDER_BELOW}
  452. * <li>{@link #BRCP_BOX_AROUND}
  453. * <li>{@link #BRCP_BAR_TO_LEFT_OF_PARAGRAPH}
  454. * </ul>
  455. */
  456. @Internal
  457. public void setBrcp( byte field_7_brcp )
  458. {
  459. this.field_7_brcp = field_7_brcp;
  460. }
  461. /**
  462. * List level if non-zero.
  463. */
  464. @Internal
  465. public byte getIlvl()
  466. {
  467. return field_8_ilvl;
  468. }
  469. /**
  470. * List level if non-zero.
  471. */
  472. @Internal
  473. public void setIlvl( byte field_8_ilvl )
  474. {
  475. this.field_8_ilvl = field_8_ilvl;
  476. }
  477. /**
  478. * "A 16-bit signed integer value that is used to determine which list
  479. * contains the paragraph. This value MUST be one of the following:
  480. *
  481. * 0x0000 -- This paragraph is not in a list, and any list formatting on the
  482. * paragraph is removed.
  483. *
  484. * 0x0001 - 0x07FE -- The value is a 1-based index into PlfLfo.rgLfo. The
  485. * LFO at this index defines the list that this paragraph is in.
  486. *
  487. * 0xF801 -- This paragraph is not in a list.
  488. *
  489. * 0xF802 - 0xFFFF -- The value is the negation of a 1-based index into
  490. * PlfLfo.rgLfo. The LFO at this index defines the list that this paragraph
  491. * is in. The logical left indentation (see sprmPDxaLeft) and the logical
  492. * left first line indentation (see sprmPDxaLeft1) of the paragraph MUST be
  493. * preserved despite any list formatting.
  494. *
  495. * By default, a paragraph is not in a list."
  496. *
  497. * Quote from [MS-DOC] -- v20110315, page 125
  498. */
  499. @Internal
  500. public int getIlfo()
  501. {
  502. return field_9_ilfo;
  503. }
  504. /**
  505. * "A 16-bit signed integer value that is used to determine which list
  506. * contains the paragraph. This value MUST be one of the following:
  507. *
  508. * 0x0000 -- This paragraph is not in a list, and any list formatting on the
  509. * paragraph is removed.
  510. *
  511. * 0x0001 - 0x07FE -- The value is a 1-based index into PlfLfo.rgLfo. The
  512. * LFO at this index defines the list that this paragraph is in.
  513. *
  514. * 0xF801 -- This paragraph is not in a list.
  515. *
  516. * 0xF802 - 0xFFFF -- The value is the negation of a 1-based index into
  517. * PlfLfo.rgLfo. The LFO at this index defines the list that this paragraph
  518. * is in. The logical left indentation (see sprmPDxaLeft) and the logical
  519. * left first line indentation (see sprmPDxaLeft1) of the paragraph MUST be
  520. * preserved despite any list formatting. By default, a paragraph is not in
  521. * a list."
  522. *
  523. * Quote from [MS-DOC] -- v20110315, page 125
  524. */
  525. @Internal
  526. public void setIlfo( int field_9_ilfo )
  527. {
  528. this.field_9_ilfo = field_9_ilfo;
  529. }
  530. /**
  531. * No line numbering.
  532. */
  533. @Internal
  534. public boolean getFNoLnn()
  535. {
  536. return field_10_fNoLnn;
  537. }
  538. /**
  539. * No line numbering.
  540. */
  541. @Internal
  542. public void setFNoLnn( boolean field_10_fNoLnn )
  543. {
  544. this.field_10_fNoLnn = field_10_fNoLnn;
  545. }
  546. /**
  547. * Line spacing descriptor.
  548. */
  549. @Internal
  550. public LineSpacingDescriptor getLspd()
  551. {
  552. return field_11_lspd;
  553. }
  554. /**
  555. * Line spacing descriptor.
  556. */
  557. @Internal
  558. public void setLspd( LineSpacingDescriptor field_11_lspd )
  559. {
  560. this.field_11_lspd = field_11_lspd;
  561. }
  562. /**
  563. * Space before paragraph.
  564. */
  565. @Internal
  566. public int getDyaBefore()
  567. {
  568. return field_12_dyaBefore;
  569. }
  570. /**
  571. * Space before paragraph.
  572. */
  573. @Internal
  574. public void setDyaBefore( int field_12_dyaBefore )
  575. {
  576. this.field_12_dyaBefore = field_12_dyaBefore;
  577. }
  578. /**
  579. * Space after paragraph.
  580. */
  581. @Internal
  582. public int getDyaAfter()
  583. {
  584. return field_13_dyaAfter;
  585. }
  586. /**
  587. * Space after paragraph.
  588. */
  589. @Internal
  590. public void setDyaAfter( int field_13_dyaAfter )
  591. {
  592. this.field_13_dyaAfter = field_13_dyaAfter;
  593. }
  594. /**
  595. * Paragraph is in table flag.
  596. */
  597. @Internal
  598. public boolean getFInTable()
  599. {
  600. return field_14_fInTable;
  601. }
  602. /**
  603. * Paragraph is in table flag.
  604. */
  605. @Internal
  606. public void setFInTable( boolean field_14_fInTable )
  607. {
  608. this.field_14_fInTable = field_14_fInTable;
  609. }
  610. /**
  611. * Archaic paragraph is in table flag.
  612. */
  613. @Internal
  614. public boolean getFinTableW97()
  615. {
  616. return field_15_finTableW97;
  617. }
  618. /**
  619. * Archaic paragraph is in table flag.
  620. */
  621. @Internal
  622. public void setFinTableW97( boolean field_15_finTableW97 )
  623. {
  624. this.field_15_finTableW97 = field_15_finTableW97;
  625. }
  626. /**
  627. * Table trailer paragraph (last in table row).
  628. */
  629. @Internal
  630. public boolean getFTtp()
  631. {
  632. return field_16_fTtp;
  633. }
  634. /**
  635. * Table trailer paragraph (last in table row).
  636. */
  637. @Internal
  638. public void setFTtp( boolean field_16_fTtp )
  639. {
  640. this.field_16_fTtp = field_16_fTtp;
  641. }
  642. /**
  643. * Get the dxaAbs field for the PAP record.
  644. */
  645. @Internal
  646. public int getDxaAbs()
  647. {
  648. return field_17_dxaAbs;
  649. }
  650. /**
  651. * Set the dxaAbs field for the PAP record.
  652. */
  653. @Internal
  654. public void setDxaAbs( int field_17_dxaAbs )
  655. {
  656. this.field_17_dxaAbs = field_17_dxaAbs;
  657. }
  658. /**
  659. * Get the dyaAbs field for the PAP record.
  660. */
  661. @Internal
  662. public int getDyaAbs()
  663. {
  664. return field_18_dyaAbs;
  665. }
  666. /**
  667. * Set the dyaAbs field for the PAP record.
  668. */
  669. @Internal
  670. public void setDyaAbs( int field_18_dyaAbs )
  671. {
  672. this.field_18_dyaAbs = field_18_dyaAbs;
  673. }
  674. /**
  675. * Get the dxaWidth field for the PAP record.
  676. */
  677. @Internal
  678. public int getDxaWidth()
  679. {
  680. return field_19_dxaWidth;
  681. }
  682. /**
  683. * Set the dxaWidth field for the PAP record.
  684. */
  685. @Internal
  686. public void setDxaWidth( int field_19_dxaWidth )
  687. {
  688. this.field_19_dxaWidth = field_19_dxaWidth;
  689. }
  690. /**
  691. * Get the fBrLnAbove field for the PAP record.
  692. */
  693. @Internal
  694. public boolean getFBrLnAbove()
  695. {
  696. return field_20_fBrLnAbove;
  697. }
  698. /**
  699. * Set the fBrLnAbove field for the PAP record.
  700. */
  701. @Internal
  702. public void setFBrLnAbove( boolean field_20_fBrLnAbove )
  703. {
  704. this.field_20_fBrLnAbove = field_20_fBrLnAbove;
  705. }
  706. /**
  707. * Get the fBrLnBelow field for the PAP record.
  708. */
  709. @Internal
  710. public boolean getFBrLnBelow()
  711. {
  712. return field_21_fBrLnBelow;
  713. }
  714. /**
  715. * Set the fBrLnBelow field for the PAP record.
  716. */
  717. @Internal
  718. public void setFBrLnBelow( boolean field_21_fBrLnBelow )
  719. {
  720. this.field_21_fBrLnBelow = field_21_fBrLnBelow;
  721. }
  722. /**
  723. * Get the pcVert field for the PAP record.
  724. */
  725. @Internal
  726. public byte getPcVert()
  727. {
  728. return field_22_pcVert;
  729. }
  730. /**
  731. * Set the pcVert field for the PAP record.
  732. */
  733. @Internal
  734. public void setPcVert( byte field_22_pcVert )
  735. {
  736. this.field_22_pcVert = field_22_pcVert;
  737. }
  738. /**
  739. * Get the pcHorz field for the PAP record.
  740. */
  741. @Internal
  742. public byte getPcHorz()
  743. {
  744. return field_23_pcHorz;
  745. }
  746. /**
  747. * Set the pcHorz field for the PAP record.
  748. */
  749. @Internal
  750. public void setPcHorz( byte field_23_pcHorz )
  751. {
  752. this.field_23_pcHorz = field_23_pcHorz;
  753. }
  754. /**
  755. * Get the wr field for the PAP record.
  756. */
  757. @Internal
  758. public byte getWr()
  759. {
  760. return field_24_wr;
  761. }
  762. /**
  763. * Set the wr field for the PAP record.
  764. */
  765. @Internal
  766. public void setWr( byte field_24_wr )
  767. {
  768. this.field_24_wr = field_24_wr;
  769. }
  770. /**
  771. * Get the fNoAutoHyph field for the PAP record.
  772. */
  773. @Internal
  774. public boolean getFNoAutoHyph()
  775. {
  776. return field_25_fNoAutoHyph;
  777. }
  778. /**
  779. * Set the fNoAutoHyph field for the PAP record.
  780. */
  781. @Internal
  782. public void setFNoAutoHyph( boolean field_25_fNoAutoHyph )
  783. {
  784. this.field_25_fNoAutoHyph = field_25_fNoAutoHyph;
  785. }
  786. /**
  787. * Get the dyaHeight field for the PAP record.
  788. */
  789. @Internal
  790. public int getDyaHeight()
  791. {
  792. return field_26_dyaHeight;
  793. }
  794. /**
  795. * Set the dyaHeight field for the PAP record.
  796. */
  797. @Internal
  798. public void setDyaHeight( int field_26_dyaHeight )
  799. {
  800. this.field_26_dyaHeight = field_26_dyaHeight;
  801. }
  802. /**
  803. * Minimum height is exact or auto.
  804. *
  805. * @return One of <ul>
  806. * <li>{@link #FMINHEIGHT_EXACT}
  807. * <li>{@link #FMINHEIGHT_AT_LEAST}
  808. * </ul>
  809. */
  810. @Internal
  811. public boolean getFMinHeight()
  812. {
  813. return field_27_fMinHeight;
  814. }
  815. /**
  816. * Minimum height is exact or auto.
  817. *
  818. * @param field_27_fMinHeight One of <ul>
  819. * <li>{@link #FMINHEIGHT_EXACT}
  820. * <li>{@link #FMINHEIGHT_AT_LEAST}
  821. * </ul>
  822. */
  823. @Internal
  824. public void setFMinHeight( boolean field_27_fMinHeight )
  825. {
  826. this.field_27_fMinHeight = field_27_fMinHeight;
  827. }
  828. /**
  829. * Get the dcs field for the PAP record.
  830. */
  831. @Internal
  832. public DropCapSpecifier getDcs()
  833. {
  834. return field_28_dcs;
  835. }
  836. /**
  837. * Set the dcs field for the PAP record.
  838. */
  839. @Internal
  840. public void setDcs( DropCapSpecifier field_28_dcs )
  841. {
  842. this.field_28_dcs = field_28_dcs;
  843. }
  844. /**
  845. * Vertical distance between text and absolutely positioned object.
  846. */
  847. @Internal
  848. public int getDyaFromText()
  849. {
  850. return field_29_dyaFromText;
  851. }
  852. /**
  853. * Vertical distance between text and absolutely positioned object.
  854. */
  855. @Internal
  856. public void setDyaFromText( int field_29_dyaFromText )
  857. {
  858. this.field_29_dyaFromText = field_29_dyaFromText;
  859. }
  860. /**
  861. * Horizontal distance between text and absolutely positioned object.
  862. */
  863. @Internal
  864. public int getDxaFromText()
  865. {
  866. return field_30_dxaFromText;
  867. }
  868. /**
  869. * Horizontal distance between text and absolutely positioned object.
  870. */
  871. @Internal
  872. public void setDxaFromText( int field_30_dxaFromText )
  873. {
  874. this.field_30_dxaFromText = field_30_dxaFromText;
  875. }
  876. /**
  877. * Anchor of an absolutely positioned frame is locked.
  878. */
  879. @Internal
  880. public boolean getFLocked()
  881. {
  882. return field_31_fLocked;
  883. }
  884. /**
  885. * Anchor of an absolutely positioned frame is locked.
  886. */
  887. @Internal
  888. public void setFLocked( boolean field_31_fLocked )
  889. {
  890. this.field_31_fLocked = field_31_fLocked;
  891. }
  892. /**
  893. * 1, Word will prevent widowed lines in this paragraph from being placed at the beginning of a page.
  894. */
  895. @Internal
  896. public boolean getFWidowControl()
  897. {
  898. return field_32_fWidowControl;
  899. }
  900. /**
  901. * 1, Word will prevent widowed lines in this paragraph from being placed at the beginning of a page.
  902. */
  903. @Internal
  904. public void setFWidowControl( boolean field_32_fWidowControl )
  905. {
  906. this.field_32_fWidowControl = field_32_fWidowControl;
  907. }
  908. /**
  909. * apply Kinsoku rules when performing line wrapping.
  910. */
  911. @Internal
  912. public boolean getFKinsoku()
  913. {
  914. return field_33_fKinsoku;
  915. }
  916. /**
  917. * apply Kinsoku rules when performing line wrapping.
  918. */
  919. @Internal
  920. public void setFKinsoku( boolean field_33_fKinsoku )
  921. {
  922. this.field_33_fKinsoku = field_33_fKinsoku;
  923. }
  924. /**
  925. * perform word wrap.
  926. */
  927. @Internal
  928. public boolean getFWordWrap()
  929. {
  930. return field_34_fWordWrap;
  931. }
  932. /**
  933. * perform word wrap.
  934. */
  935. @Internal
  936. public void setFWordWrap( boolean field_34_fWordWrap )
  937. {
  938. this.field_34_fWordWrap = field_34_fWordWrap;
  939. }
  940. /**
  941. * apply overflow punctuation rules when performing line wrapping.
  942. */
  943. @Internal
  944. public boolean getFOverflowPunct()
  945. {
  946. return field_35_fOverflowPunct;
  947. }
  948. /**
  949. * apply overflow punctuation rules when performing line wrapping.
  950. */
  951. @Internal
  952. public void setFOverflowPunct( boolean field_35_fOverflowPunct )
  953. {
  954. this.field_35_fOverflowPunct = field_35_fOverflowPunct;
  955. }
  956. /**
  957. * perform top line punctuation processing.
  958. */
  959. @Internal
  960. public boolean getFTopLinePunct()
  961. {
  962. return field_36_fTopLinePunct;
  963. }
  964. /**
  965. * perform top line punctuation processing.
  966. */
  967. @Internal
  968. public void setFTopLinePunct( boolean field_36_fTopLinePunct )
  969. {
  970. this.field_36_fTopLinePunct = field_36_fTopLinePunct;
  971. }
  972. /**
  973. * auto space East Asian and alphabetic characters.
  974. */
  975. @Internal
  976. public boolean getFAutoSpaceDE()
  977. {
  978. return field_37_fAutoSpaceDE;
  979. }
  980. /**
  981. * auto space East Asian and alphabetic characters.
  982. */
  983. @Internal
  984. public void setFAutoSpaceDE( boolean field_37_fAutoSpaceDE )
  985. {
  986. this.field_37_fAutoSpaceDE = field_37_fAutoSpaceDE;
  987. }
  988. /**
  989. * auto space East Asian and numeric characters.
  990. */
  991. @Internal
  992. public boolean getFAutoSpaceDN()
  993. {
  994. return field_38_fAutoSpaceDN;
  995. }
  996. /**
  997. * auto space East Asian and numeric characters.
  998. */
  999. @Internal
  1000. public void setFAutoSpaceDN( boolean field_38_fAutoSpaceDN )
  1001. {
  1002. this.field_38_fAutoSpaceDN = field_38_fAutoSpaceDN;
  1003. }
  1004. /**
  1005. * Get the wAlignFont field for the PAP record.
  1006. *
  1007. * @return One of <ul>
  1008. * <li>{@link #WALIGNFONT_HANGING}
  1009. * <li>{@link #WALIGNFONT_CENTERED}
  1010. * <li>{@link #WALIGNFONT_ROMAN}
  1011. * <li>{@link #WALIGNFONT_VARIABLE}
  1012. * <li>{@link #WALIGNFONT_AUTO}
  1013. * </ul>
  1014. */
  1015. @Internal
  1016. public int getWAlignFont()
  1017. {
  1018. return field_39_wAlignFont;
  1019. }
  1020. /**
  1021. * Set the wAlignFont field for the PAP record.
  1022. *
  1023. * @param field_39_wAlignFont One of <ul>
  1024. * <li>{@link #WALIGNFONT_HANGING}
  1025. * <li>{@link #WALIGNFONT_CENTERED}
  1026. * <li>{@link #WALIGNFONT_ROMAN}
  1027. * <li>{@link #WALIGNFONT_VARIABLE}
  1028. * <li>{@link #WALIGNFONT_AUTO}
  1029. * </ul>
  1030. */
  1031. @Internal
  1032. public void setWAlignFont( int field_39_wAlignFont )
  1033. {
  1034. this.field_39_wAlignFont = field_39_wAlignFont;
  1035. }
  1036. /**
  1037. * Used internally by Word.
  1038. */
  1039. @Internal
  1040. public short getFontAlign()
  1041. {
  1042. return field_40_fontAlign;
  1043. }
  1044. /**
  1045. * Used internally by Word.
  1046. */
  1047. @Internal
  1048. public void setFontAlign( short field_40_fontAlign )
  1049. {
  1050. this.field_40_fontAlign = field_40_fontAlign;
  1051. }
  1052. /**
  1053. * Outline level.
  1054. */
  1055. @Internal
  1056. public byte getLvl()
  1057. {
  1058. return field_41_lvl;
  1059. }
  1060. /**
  1061. * Outline level.
  1062. */
  1063. @Internal
  1064. public void setLvl( byte field_41_lvl )
  1065. {
  1066. this.field_41_lvl = field_41_lvl;
  1067. }
  1068. /**
  1069. * Get the fBiDi field for the PAP record.
  1070. */
  1071. @Internal
  1072. public boolean getFBiDi()
  1073. {
  1074. return field_42_fBiDi;
  1075. }
  1076. /**
  1077. * Set the fBiDi field for the PAP record.
  1078. */
  1079. @Internal
  1080. public void setFBiDi( boolean field_42_fBiDi )
  1081. {
  1082. this.field_42_fBiDi = field_42_fBiDi;
  1083. }
  1084. /**
  1085. * Get the fNumRMIns field for the PAP record.
  1086. */
  1087. @Internal
  1088. public boolean getFNumRMIns()
  1089. {
  1090. return field_43_fNumRMIns;
  1091. }
  1092. /**
  1093. * Set the fNumRMIns field for the PAP record.
  1094. */
  1095. @Internal
  1096. public void setFNumRMIns( boolean field_43_fNumRMIns )
  1097. {
  1098. this.field_43_fNumRMIns = field_43_fNumRMIns;
  1099. }
  1100. /**
  1101. * Get the fCrLf field for the PAP record.
  1102. */
  1103. @Internal
  1104. public boolean getFCrLf()
  1105. {
  1106. return field_44_fCrLf;
  1107. }
  1108. /**
  1109. * Set the fCrLf field for the PAP record.
  1110. */
  1111. @Internal
  1112. public void setFCrLf( boolean field_44_fCrLf )
  1113. {
  1114. this.field_44_fCrLf = field_44_fCrLf;
  1115. }
  1116. /**
  1117. * Get the fUsePgsuSettings field for the PAP record.
  1118. */
  1119. @Internal
  1120. public boolean getFUsePgsuSettings()
  1121. {
  1122. return field_45_fUsePgsuSettings;
  1123. }
  1124. /**
  1125. * Set the fUsePgsuSettings field for the PAP record.
  1126. */
  1127. @Internal
  1128. public void setFUsePgsuSettings( boolean field_45_fUsePgsuSettings )
  1129. {
  1130. this.field_45_fUsePgsuSettings = field_45_fUsePgsuSettings;
  1131. }
  1132. /**
  1133. * Get the fAdjustRight field for the PAP record.
  1134. */
  1135. @Internal
  1136. public boolean getFAdjustRight()
  1137. {
  1138. return field_46_fAdjustRight;
  1139. }
  1140. /**
  1141. * Set the fAdjustRight field for the PAP record.
  1142. */
  1143. @Internal
  1144. public void setFAdjustRight( boolean field_46_fAdjustRight )
  1145. {
  1146. this.field_46_fAdjustRight = field_46_fAdjustRight;
  1147. }
  1148. /**
  1149. * Table nesting level.
  1150. */
  1151. @Internal
  1152. public int getItap()
  1153. {
  1154. return field_47_itap;
  1155. }
  1156. /**
  1157. * Table nesting level.
  1158. */
  1159. @Internal
  1160. public void setItap( int field_47_itap )
  1161. {
  1162. this.field_47_itap = field_47_itap;
  1163. }
  1164. /**
  1165. * When 1, the end of paragraph mark is really an end of cell mark for a nested table cell.
  1166. */
  1167. @Internal
  1168. public boolean getFInnerTableCell()
  1169. {
  1170. return field_48_fInnerTableCell;
  1171. }
  1172. /**
  1173. * When 1, the end of paragraph mark is really an end of cell mark for a nested table cell.
  1174. */
  1175. @Internal
  1176. public void setFInnerTableCell( boolean field_48_fInnerTableCell )
  1177. {
  1178. this.field_48_fInnerTableCell = field_48_fInnerTableCell;
  1179. }
  1180. /**
  1181. * Ensure the Table Cell char doesn't show up as zero height.
  1182. */
  1183. @Internal
  1184. public boolean getFOpenTch()
  1185. {
  1186. return field_49_fOpenTch;
  1187. }
  1188. /**
  1189. * Ensure the Table Cell char doesn't show up as zero height.
  1190. */
  1191. @Internal
  1192. public void setFOpenTch( boolean field_49_fOpenTch )
  1193. {
  1194. this.field_49_fOpenTch = field_49_fOpenTch;
  1195. }
  1196. /**
  1197. * Word 97 compatibility indicates this end of paragraph mark is really an end of row marker for a nested table.
  1198. */
  1199. @Internal
  1200. public boolean getFTtpEmbedded()
  1201. {
  1202. return field_50_fTtpEmbedded;
  1203. }
  1204. /**
  1205. * Word 97 compatibility indicates this end of paragraph mark is really an end of row marker for a nested table.
  1206. */
  1207. @Internal
  1208. public void setFTtpEmbedded( boolean field_50_fTtpEmbedded )
  1209. {
  1210. this.field_50_fTtpEmbedded = field_50_fTtpEmbedded;
  1211. }
  1212. /**
  1213. * Right indent in character units.
  1214. */
  1215. @Internal
  1216. public short getDxcRight()
  1217. {
  1218. return field_51_dxcRight;
  1219. }
  1220. /**
  1221. * Right indent in character units.
  1222. */
  1223. @Internal
  1224. public void setDxcRight( short field_51_dxcRight )
  1225. {
  1226. this.field_51_dxcRight = field_51_dxcRight;
  1227. }
  1228. /**
  1229. * Left indent in character units.
  1230. */
  1231. @Internal
  1232. public short getDxcLeft()
  1233. {
  1234. return field_52_dxcLeft;
  1235. }
  1236. /**
  1237. * Left indent in character units.
  1238. */
  1239. @Internal
  1240. public void setDxcLeft( short field_52_dxcLeft )
  1241. {
  1242. this.field_52_dxcLeft = field_52_dxcLeft;
  1243. }
  1244. /**
  1245. * First line indent in character units.
  1246. */
  1247. @Internal
  1248. public short getDxcLeft1()
  1249. {
  1250. return field_53_dxcLeft1;
  1251. }
  1252. /**
  1253. * First line indent in character units.
  1254. */
  1255. @Internal
  1256. public void setDxcLeft1( short field_53_dxcLeft1 )
  1257. {
  1258. this.field_53_dxcLeft1 = field_53_dxcLeft1;
  1259. }
  1260. /**
  1261. * Vertical spacing before is automatic.
  1262. */
  1263. @Internal
  1264. public boolean getFDyaBeforeAuto()
  1265. {
  1266. return field_54_fDyaBeforeAuto;
  1267. }
  1268. /**
  1269. * Vertical spacing before is automatic.
  1270. */
  1271. @Internal
  1272. public void setFDyaBeforeAuto( boolean field_54_fDyaBeforeAuto )
  1273. {
  1274. this.field_54_fDyaBeforeAuto = field_54_fDyaBeforeAuto;
  1275. }
  1276. /**
  1277. * Vertical spacing after is automatic.
  1278. */
  1279. @Internal
  1280. public boolean getFDyaAfterAuto()
  1281. {
  1282. return field_55_fDyaAfterAuto;
  1283. }
  1284. /**
  1285. * Vertical spacing after is automatic.
  1286. */
  1287. @Internal
  1288. public void setFDyaAfterAuto( boolean field_55_fDyaAfterAuto )
  1289. {
  1290. this.field_55_fDyaAfterAuto = field_55_fDyaAfterAuto;
  1291. }
  1292. /**
  1293. * Get the dxaRight field for the PAP record.
  1294. */
  1295. @Internal
  1296. public int getDxaRight()
  1297. {
  1298. return field_56_dxaRight;
  1299. }
  1300. /**
  1301. * Set the dxaRight field for the PAP record.
  1302. */
  1303. @Internal
  1304. public void setDxaRight( int field_56_dxaRight )
  1305. {
  1306. this.field_56_dxaRight = field_56_dxaRight;
  1307. }
  1308. /**
  1309. * Get the dxaLeft field for the PAP record.
  1310. */
  1311. @Internal
  1312. public int getDxaLeft()
  1313. {
  1314. return field_57_dxaLeft;
  1315. }
  1316. /**
  1317. * Set the dxaLeft field for the PAP record.
  1318. */
  1319. @Internal
  1320. public void setDxaLeft( int field_57_dxaLeft )
  1321. {
  1322. this.field_57_dxaLeft = field_57_dxaLeft;
  1323. }
  1324. /**
  1325. * Get the dxaLeft1 field for the PAP record.
  1326. */
  1327. @Internal
  1328. public int getDxaLeft1()
  1329. {
  1330. return field_58_dxaLeft1;
  1331. }
  1332. /**
  1333. * Set the dxaLeft1 field for the PAP record.
  1334. */
  1335. @Internal
  1336. public void setDxaLeft1( int field_58_dxaLeft1 )
  1337. {
  1338. this.field_58_dxaLeft1 = field_58_dxaLeft1;
  1339. }
  1340. /**
  1341. * Get the jc field for the PAP record.
  1342. */
  1343. @Internal
  1344. public byte getJc()
  1345. {
  1346. return field_59_jc;
  1347. }
  1348. /**
  1349. * Set the jc field for the PAP record.
  1350. */
  1351. @Internal
  1352. public void setJc( byte field_59_jc )
  1353. {
  1354. this.field_59_jc = field_59_jc;
  1355. }
  1356. /**
  1357. * Get the brcTop field for the PAP record.
  1358. */
  1359. @Internal
  1360. public BorderCode getBrcTop()
  1361. {
  1362. return field_60_brcTop;
  1363. }
  1364. /**
  1365. * Set the brcTop field for the PAP record.
  1366. */
  1367. @Internal
  1368. public void setBrcTop( BorderCode field_60_brcTop )
  1369. {
  1370. this.field_60_brcTop = field_60_brcTop;
  1371. }
  1372. /**
  1373. * Get the brcLeft field for the PAP record.
  1374. */
  1375. @Internal
  1376. public BorderCode getBrcLeft()
  1377. {
  1378. return field_61_brcLeft;
  1379. }
  1380. /**
  1381. * Set the brcLeft field for the PAP record.
  1382. */
  1383. @Internal
  1384. public void setBrcLeft( BorderCode field_61_brcLeft )
  1385. {
  1386. this.field_61_brcLeft = field_61_brcLeft;
  1387. }
  1388. /**
  1389. * Get the brcBottom field for the PAP record.
  1390. */
  1391. @Internal
  1392. public BorderCode getBrcBottom()
  1393. {
  1394. return field_62_brcBottom;
  1395. }
  1396. /**
  1397. * Set the brcBottom field for the PAP record.
  1398. */
  1399. @Internal
  1400. public void setBrcBottom( BorderCode field_62_brcBottom )
  1401. {
  1402. this.field_62_brcBottom = field_62_brcBottom;
  1403. }
  1404. /**
  1405. * Get the brcRight field for the PAP record.
  1406. */
  1407. @Internal
  1408. public BorderCode getBrcRight()
  1409. {
  1410. return field_63_brcRight;
  1411. }
  1412. /**
  1413. * Set the brcRight field for the PAP record.
  1414. */
  1415. @Internal
  1416. public void setBrcRight( BorderCode field_63_brcRight )
  1417. {
  1418. this.field_63_brcRight = field_63_brcRight;
  1419. }
  1420. /**
  1421. * Get the brcBetween field for the PAP record.
  1422. */
  1423. @Internal
  1424. public BorderCode getBrcBetween()
  1425. {
  1426. return field_64_brcBetween;
  1427. }
  1428. /**
  1429. * Set the brcBetween field for the PAP record.
  1430. */
  1431. @Internal
  1432. public void setBrcBetween( BorderCode field_64_brcBetween )
  1433. {
  1434. this.field_64_brcBetween = field_64_brcBetween;
  1435. }
  1436. /**
  1437. * Get the brcBar field for the PAP record.
  1438. */
  1439. @Internal
  1440. public BorderCode getBrcBar()
  1441. {
  1442. return field_65_brcBar;
  1443. }
  1444. /**
  1445. * Set the brcBar field for the PAP record.
  1446. */
  1447. @Internal
  1448. public void setBrcBar( BorderCode field_65_brcBar )
  1449. {
  1450. this.field_65_brcBar = field_65_brcBar;
  1451. }
  1452. /**
  1453. * Get the shd field for the PAP record.
  1454. */
  1455. @Internal
  1456. public ShadingDescriptor getShd()
  1457. {
  1458. return field_66_shd;
  1459. }
  1460. /**
  1461. * Set the shd field for the PAP record.
  1462. */
  1463. @Internal
  1464. public void setShd( ShadingDescriptor field_66_shd )
  1465. {
  1466. this.field_66_shd = field_66_shd;
  1467. }
  1468. /**
  1469. * Get the anld field for the PAP record.
  1470. */
  1471. @Internal
  1472. public byte[] getAnld()
  1473. {
  1474. return field_67_anld;
  1475. }
  1476. /**
  1477. * Set the anld field for the PAP record.
  1478. */
  1479. @Internal
  1480. public void setAnld( byte[] field_67_anld )
  1481. {
  1482. this.field_67_anld = field_67_anld;
  1483. }
  1484. /**
  1485. * Get the phe field for the PAP record.
  1486. */
  1487. @Internal
  1488. public byte[] getPhe()
  1489. {
  1490. return field_68_phe;
  1491. }
  1492. /**
  1493. * Set the phe field for the PAP record.
  1494. */
  1495. @Internal
  1496. public void setPhe( byte[] field_68_phe )
  1497. {
  1498. this.field_68_phe = field_68_phe;
  1499. }
  1500. /**
  1501. * Get the fPropRMark field for the PAP record.
  1502. */
  1503. @Internal
  1504. public boolean getFPropRMark()
  1505. {
  1506. return field_69_fPropRMark;
  1507. }
  1508. /**
  1509. * Set the fPropRMark field for the PAP record.
  1510. */
  1511. @Internal
  1512. public void setFPropRMark( boolean field_69_fPropRMark )
  1513. {
  1514. this.field_69_fPropRMark = field_69_fPropRMark;
  1515. }
  1516. /**
  1517. * Get the ibstPropRMark field for the PAP record.
  1518. */
  1519. @Internal
  1520. public int getIbstPropRMark()
  1521. {
  1522. return field_70_ibstPropRMark;
  1523. }
  1524. /**
  1525. * Set the ibstPropRMark field for the PAP record.
  1526. */
  1527. @Internal
  1528. public void setIbstPropRMark( int field_70_ibstPropRMark )
  1529. {
  1530. this.field_70_ibstPropRMark = field_70_ibstPropRMark;
  1531. }
  1532. /**
  1533. * Get the dttmPropRMark field for the PAP record.
  1534. */
  1535. @Internal
  1536. public DateAndTime getDttmPropRMark()
  1537. {
  1538. return field_71_dttmPropRMark;
  1539. }
  1540. /**
  1541. * Set the dttmPropRMark field for the PAP record.
  1542. */
  1543. @Internal
  1544. public void setDttmPropRMark( DateAndTime field_71_dttmPropRMark )
  1545. {
  1546. this.field_71_dttmPropRMark = field_71_dttmPropRMark;
  1547. }
  1548. /**
  1549. * Number of tabs stops defined for paragraph. Must be &gt;= 0 and &lt;= 64..
  1550. */
  1551. @Internal
  1552. public int getItbdMac()
  1553. {
  1554. return field_72_itbdMac;
  1555. }
  1556. /**
  1557. * Number of tabs stops defined for paragraph. Must be &gt;= 0 and &lt;= 64..
  1558. */
  1559. @Internal
  1560. public void setItbdMac( int field_72_itbdMac )
  1561. {
  1562. this.field_72_itbdMac = field_72_itbdMac;
  1563. }
  1564. /**
  1565. * Array of positions of itbdMac tab stops. itbdMax==64.
  1566. */
  1567. @Internal
  1568. public int[] getRgdxaTab()
  1569. {
  1570. return field_73_rgdxaTab;
  1571. }
  1572. /**
  1573. * Array of positions of itbdMac tab stops. itbdMax==64.
  1574. */
  1575. @Internal
  1576. public void setRgdxaTab( int[] field_73_rgdxaTab )
  1577. {
  1578. this.field_73_rgdxaTab = field_73_rgdxaTab;
  1579. }
  1580. /**
  1581. * Array of itbdMac tab descriptors.
  1582. */
  1583. @Internal
  1584. public TabDescriptor[] getRgtbd()
  1585. {
  1586. return field_74_rgtbd;
  1587. }
  1588. /**
  1589. * Array of itbdMac tab descriptors.
  1590. */
  1591. @Internal
  1592. public void setRgtbd( TabDescriptor[] field_74_rgtbd )
  1593. {
  1594. this.field_74_rgtbd = field_74_rgtbd;
  1595. }
  1596. /**
  1597. * Get the numrm field for the PAP record.
  1598. */
  1599. @Internal
  1600. public byte[] getNumrm()
  1601. {
  1602. return field_75_numrm;
  1603. }
  1604. /**
  1605. * Set the numrm field for the PAP record.
  1606. */
  1607. @Internal
  1608. public void setNumrm( byte[] field_75_numrm )
  1609. {
  1610. this.field_75_numrm = field_75_numrm;
  1611. }
  1612. /**
  1613. * Get the ptap field for the PAP record.
  1614. */
  1615. @Internal
  1616. public byte[] getPtap()
  1617. {
  1618. return field_76_ptap;
  1619. }
  1620. /**
  1621. * Set the ptap field for the PAP record.
  1622. */
  1623. @Internal
  1624. public void setPtap( byte[] field_76_ptap )
  1625. {
  1626. this.field_76_ptap = field_76_ptap;
  1627. }
  1628. /**
  1629. * When 1, absolutely positioned paragraph cannot overlap with another paragraph.
  1630. */
  1631. @Internal
  1632. public boolean getFNoAllowOverlap()
  1633. {
  1634. return field_77_fNoAllowOverlap;
  1635. }
  1636. /**
  1637. * When 1, absolutely positioned paragraph cannot overlap with another paragraph.
  1638. */
  1639. @Internal
  1640. public void setFNoAllowOverlap( boolean field_77_fNoAllowOverlap )
  1641. {
  1642. this.field_77_fNoAllowOverlap = field_77_fNoAllowOverlap;
  1643. }
  1644. /**
  1645. * HTML DIV ID for this paragraph.
  1646. */
  1647. @Internal
  1648. public long getIpgp()
  1649. {
  1650. return field_78_ipgp;
  1651. }
  1652. /**
  1653. * HTML DIV ID for this paragraph.
  1654. */
  1655. @Internal
  1656. public void setIpgp( long field_78_ipgp )
  1657. {
  1658. this.field_78_ipgp = field_78_ipgp;
  1659. }
  1660. /**
  1661. * Save ID for last time this PAP was revised.
  1662. */
  1663. @Internal
  1664. public long getRsid()
  1665. {
  1666. return field_79_rsid;
  1667. }
  1668. /**
  1669. * Save ID for last time this PAP was revised.
  1670. */
  1671. @Internal
  1672. public void setRsid( long field_79_rsid )
  1673. {
  1674. this.field_79_rsid = field_79_rsid;
  1675. }
  1676. /**
  1677. * Sets the fVertical field value.
  1678. *
  1679. */
  1680. @Internal
  1681. public void setFVertical( boolean value )
  1682. {
  1683. field_40_fontAlign = (short)fVertical.setBoolean(field_40_fontAlign, value);
  1684. }
  1685. /**
  1686. *
  1687. * @return the fVertical field value.
  1688. */
  1689. @Internal
  1690. public boolean isFVertical()
  1691. {
  1692. return fVertical.isSet(field_40_fontAlign);
  1693. }
  1694. /**
  1695. * Sets the fBackward field value.
  1696. *
  1697. */
  1698. @Internal
  1699. public void setFBackward( boolean value )
  1700. {
  1701. field_40_fontAlign = (short)fBackward.setBoolean(field_40_fontAlign, value);
  1702. }
  1703. /**
  1704. *
  1705. * @return the fBackward field value.
  1706. */
  1707. @Internal
  1708. public boolean isFBackward()
  1709. {
  1710. return fBackward.isSet(field_40_fontAlign);
  1711. }
  1712. /**
  1713. * Sets the fRotateFont field value.
  1714. *
  1715. */
  1716. @Internal
  1717. public void setFRotateFont( boolean value )
  1718. {
  1719. field_40_fontAlign = (short)fRotateFont.setBoolean(field_40_fontAlign, value);
  1720. }
  1721. /**
  1722. *
  1723. * @return the fRotateFont field value.
  1724. */
  1725. @Internal
  1726. public boolean isFRotateFont()
  1727. {
  1728. return fRotateFont.isSet(field_40_fontAlign);
  1729. }
  1730. } // END OF CLASS