2005-05-19 10:56:45 -04:00
|
|
|
/* ====================================================================
|
2006-12-22 14:18:16 -05:00
|
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
|
|
this work for additional information regarding copyright ownership.
|
|
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
(the "License"); you may not use this file except in compliance with
|
|
|
|
the License. You may obtain a copy of the License at
|
2005-05-19 10:56:45 -04:00
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
==================================================================== */
|
|
|
|
|
|
|
|
package org.apache.poi.hssf.record.formula;
|
|
|
|
|
2005-08-18 03:06:44 -04:00
|
|
|
|
|
|
|
import org.apache.poi.hssf.record.RecordInputStream;
|
Merged revisions 668156-671000 via svnmerge from
https://svn.apache.org/repos/asf/poi/trunk
........
r668257 | yegor | 2008-06-16 19:38:59 +0100 (Mon, 16 Jun 2008) | 1 line
TextShape.getMarginLeft() returned incorrect value. Added a unit test for text margins.
........
r668259 | yegor | 2008-06-16 19:40:51 +0100 (Mon, 16 Jun 2008) | 1 line
patch from bug #45177: Remove GPL reference in NOTICE
........
r669140 | nick | 2008-06-18 12:35:04 +0100 (Wed, 18 Jun 2008) | 1 line
A partial fix for bug #30978, but something still remains, which seems to be related to changing the ptg
........
r669456 | nick | 2008-06-19 12:47:48 +0100 (Thu, 19 Jun 2008) | 1 line
Improved HWPF Range.replaceText, from N. Hira in bug #45001
........
r669658 | josh | 2008-06-19 20:07:20 +0100 (Thu, 19 Jun 2008) | 1 line
Fix for bug 45234 - Removed incorrect shared formula conversion in CFRuleRecord
........
r669809 | josh | 2008-06-20 08:10:03 +0100 (Fri, 20 Jun 2008) | 1 line
Fix for bug 30978 - small re-arrangement of class Ptg hierarchy for DeletedRef3DPtg and DeletedArea3DPtg. Similar to c664220
........
r670190 | yegor | 2008-06-21 13:41:34 +0100 (Sat, 21 Jun 2008) | 1 line
started a new section for poi-3.2 family, updated release date of 3.2-FINAL
........
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@674287 13f79535-47bb-0310-9956-ffa450edef68
2008-07-06 08:11:37 -04:00
|
|
|
import org.apache.poi.ss.usermodel.ErrorConstants;
|
|
|
|
import org.apache.poi.ss.usermodel.Workbook;
|
|
|
|
import org.apache.poi.util.LittleEndian;
|
2005-08-18 03:06:44 -04:00
|
|
|
|
2005-05-19 10:56:45 -04:00
|
|
|
/**
|
|
|
|
* Title: Deleted Reference 3D Ptg <P>
|
|
|
|
* Description: Defined a cell in extern sheet. <P>
|
|
|
|
* REFERENCE: <P>
|
|
|
|
* @author Patrick Luby
|
|
|
|
* @version 1.0-pre
|
|
|
|
*/
|
Merged revisions 668156-671000 via svnmerge from
https://svn.apache.org/repos/asf/poi/trunk
........
r668257 | yegor | 2008-06-16 19:38:59 +0100 (Mon, 16 Jun 2008) | 1 line
TextShape.getMarginLeft() returned incorrect value. Added a unit test for text margins.
........
r668259 | yegor | 2008-06-16 19:40:51 +0100 (Mon, 16 Jun 2008) | 1 line
patch from bug #45177: Remove GPL reference in NOTICE
........
r669140 | nick | 2008-06-18 12:35:04 +0100 (Wed, 18 Jun 2008) | 1 line
A partial fix for bug #30978, but something still remains, which seems to be related to changing the ptg
........
r669456 | nick | 2008-06-19 12:47:48 +0100 (Thu, 19 Jun 2008) | 1 line
Improved HWPF Range.replaceText, from N. Hira in bug #45001
........
r669658 | josh | 2008-06-19 20:07:20 +0100 (Thu, 19 Jun 2008) | 1 line
Fix for bug 45234 - Removed incorrect shared formula conversion in CFRuleRecord
........
r669809 | josh | 2008-06-20 08:10:03 +0100 (Fri, 20 Jun 2008) | 1 line
Fix for bug 30978 - small re-arrangement of class Ptg hierarchy for DeletedRef3DPtg and DeletedArea3DPtg. Similar to c664220
........
r670190 | yegor | 2008-06-21 13:41:34 +0100 (Sat, 21 Jun 2008) | 1 line
started a new section for poi-3.2 family, updated release date of 3.2-FINAL
........
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@674287 13f79535-47bb-0310-9956-ffa450edef68
2008-07-06 08:11:37 -04:00
|
|
|
public final class DeletedRef3DPtg extends OperandPtg {
|
|
|
|
public final static byte sid = 0x3c;
|
|
|
|
private final int field_1_index_extern_sheet;
|
|
|
|
private final int unused1;
|
|
|
|
|
|
|
|
/** Creates new DeletedRef3DPtg */
|
|
|
|
public DeletedRef3DPtg(RecordInputStream in) {
|
|
|
|
field_1_index_extern_sheet = in.readUShort();
|
|
|
|
unused1 = in.readInt();
|
|
|
|
}
|
|
|
|
|
|
|
|
public String toFormulaString(Workbook book) {
|
|
|
|
return ErrorConstants.getText(ErrorConstants.ERROR_REF);
|
|
|
|
}
|
|
|
|
public byte getDefaultOperandClass() {
|
|
|
|
return Ptg.CLASS_REF;
|
|
|
|
}
|
|
|
|
public int getSize() {
|
|
|
|
return 7;
|
|
|
|
}
|
|
|
|
public void writeBytes(byte[] data, int offset) {
|
|
|
|
LittleEndian.putByte(data, 0 + offset, sid + getPtgClass());
|
|
|
|
LittleEndian.putUShort(data, 1 + offset, field_1_index_extern_sheet);
|
|
|
|
LittleEndian.putInt(data, 3 + offset, unused1);
|
|
|
|
}
|
2005-05-19 10:56:45 -04:00
|
|
|
}
|