Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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.ss.formula.ptg;
  16. import org.apache.poi.ss.util.CellReference;
  17. import org.apache.poi.util.LittleEndianInput;
  18. /**
  19. * ReferencePtg - handles references (such as A1, A2, IA4)
  20. */
  21. public final class RefPtg extends Ref2DPtgBase {
  22. public static final byte sid = 0x24;
  23. /**
  24. * Takes in a String representation of a cell reference and fills out the
  25. * numeric fields.
  26. */
  27. public RefPtg(String cellref) {
  28. super(new CellReference(cellref));
  29. }
  30. public RefPtg(RefPtg other) {
  31. super(other);
  32. }
  33. public RefPtg(int row, int column, boolean isRowRelative, boolean isColumnRelative) {
  34. super(row, column, isRowRelative, isColumnRelative);
  35. }
  36. public RefPtg(LittleEndianInput in) {
  37. super(in);
  38. }
  39. public RefPtg(CellReference cr) {
  40. super(cr);
  41. }
  42. @Override
  43. public byte getSid() {
  44. return sid;
  45. }
  46. @Override
  47. public RefPtg copy() {
  48. return new RefPtg(this);
  49. }
  50. }