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.

XSSFBRecordType.java 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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.xssf.binary;
  16. import org.apache.poi.util.Internal;
  17. @Internal
  18. public enum XSSFBRecordType {
  19. BrtCellBlank(1),
  20. BrtCellRk(2),
  21. BrtCellError(3),
  22. BrtCellBool(4),
  23. BrtCellReal(5),
  24. BrtCellSt(6),
  25. BrtCellIsst(7),
  26. BrtFmlaString(8),
  27. BrtFmlaNum(9),
  28. BrtFmlaBool(10),
  29. BrtFmlaError(11),
  30. BrtRowHdr(0),
  31. BrtCellRString(62),
  32. BrtBeginSheet(129),
  33. BrtWsProp(147),
  34. BrtWsDim(148),
  35. BrtColInfo(60),
  36. BrtBeginSheetData(145),
  37. BrtEndSheetData(146),
  38. BrtHLink(494),
  39. BrtBeginHeaderFooter(479),
  40. //comments
  41. BrtBeginCommentAuthors(630),
  42. BrtEndCommentAuthors(631),
  43. BrtCommentAuthor(632),
  44. BrtBeginComment(635),
  45. BrtCommentText(637),
  46. BrtEndComment(636),
  47. //styles table
  48. BrtXf(47),
  49. BrtFmt(44),
  50. BrtBeginFmts(615),
  51. BrtEndFmts(616),
  52. BrtBeginCellXFs(617),
  53. BrtEndCellXFs(618),
  54. BrtBeginCellStyleXFS(626),
  55. BrtEndCellStyleXFS(627),
  56. //stored strings table
  57. BrtSstItem(19), //stored strings items
  58. BrtBeginSst(159), //stored strings begin sst
  59. BrtEndSst(160), //stored strings end sst
  60. BrtBundleSh(156), //defines worksheet in wb part
  61. Unimplemented(-1);
  62. private final int id;
  63. XSSFBRecordType(int id) {
  64. this.id = id;
  65. }
  66. public int getId() {
  67. return id;
  68. }
  69. public static XSSFBRecordType lookup(int id) {
  70. for (XSSFBRecordType r : XSSFBRecordType.values()) {
  71. if (r.id == id) {
  72. return r;
  73. }
  74. }
  75. return Unimplemented;
  76. }
  77. }