Simple patch from Josh from bug #44636 - fix for RefVPtg and edit-in-excel oddness
[poi.git] / src / java / org / apache / poi / hssf / record / formula / RefVPtg.java
blob75c6348907018115fe3bb96fb1cda8e500144e93
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
9 http://www.apache.org/licenses/LICENSE-2.0
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16 ==================================================================== */
18 package org.apache.poi.hssf.record.formula;
20 import org.apache.poi.hssf.record.RecordInputStream;
22 /**
23 * RefVPtg
24 * @author Jason Height (jheight at chariot dot net dot au)
26 public final class RefVPtg extends ReferencePtg {
27 public final static byte sid = 0x44;
29 protected RefVPtg() {
30 super();
33 public RefVPtg(int row, int column, boolean isRowRelative, boolean isColumnRelative) {
34 super(row, column, isRowRelative, isColumnRelative);
35 setClass(CLASS_VALUE);
39 /** Creates new ValueReferencePtg */
41 public RefVPtg(RecordInputStream in)
43 super(in);
46 public String getRefPtgName() {
47 return "RefVPtg";
50 public Object clone() {
51 RefVPtg ptg = new RefVPtg();
52 ptg.setRow(getRow());
53 ptg.setColumnRaw(getColumnRaw());
54 ptg.setClass(ptgClass);
55 return ptg;