}
/** Creates new NamePtg */
-
public NamePtg(LittleEndianInput in) {
field_1_label_index = in.readShort();
field_2_zero = in.readShort();
return field_1_label_index - 1; // convert to zero based
}
+ @Override
public void write(LittleEndianOutput out) {
out.writeByte(sid + getPtgClass());
out.writeShort(field_1_label_index);
out.writeShort(field_2_zero);
}
+ @Override
public int getSize() {
return SIZE;
}
+ @Override
public String toFormulaString(FormulaRenderingWorkbook book) {
return book.getNameText(this);
}
+ @Override
public String toFormulaString() {
throw new RuntimeException("3D references need a workbook to determine formula text");
}
+ @Override
public byte getDefaultOperandClass() {
return Ptg.CLASS_REF;
}