Some cleanup
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352968 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
622e6619ba
commit
4dd943e6e6
@ -327,7 +327,7 @@ public class NameRecord extends Record {
|
|||||||
* @return definition -- can be null if we cant parse ptgs
|
* @return definition -- can be null if we cant parse ptgs
|
||||||
*/
|
*/
|
||||||
protected List getNameDefinition() {
|
protected List getNameDefinition() {
|
||||||
return ( List ) field_13_name_definition;
|
return field_13_name_definition;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** get the custom menu text
|
/** get the custom menu text
|
||||||
@ -523,10 +523,10 @@ public class NameRecord extends Record {
|
|||||||
String result = "";
|
String result = "";
|
||||||
|
|
||||||
if (ptg.getClass() == Area3DPtg.class){
|
if (ptg.getClass() == Area3DPtg.class){
|
||||||
result = ((Area3DPtg) ptg).toFormulaString(refs);
|
result = ptg.toFormulaString(refs);
|
||||||
|
|
||||||
} else if (ptg.getClass() == Ref3DPtg.class){
|
} else if (ptg.getClass() == Ref3DPtg.class){
|
||||||
result = ((Ref3DPtg) ptg).toFormulaString(refs);
|
result = ptg.toFormulaString(refs);
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
@ -562,12 +562,12 @@ public class NameRecord extends Record {
|
|||||||
ptg = new Area3DPtg();
|
ptg = new Area3DPtg();
|
||||||
((Area3DPtg) ptg).setExternSheetIndex(externSheetIndex);
|
((Area3DPtg) ptg).setExternSheetIndex(externSheetIndex);
|
||||||
((Area3DPtg) ptg).setArea(ref);
|
((Area3DPtg) ptg).setArea(ref);
|
||||||
this.setDefinitionTextLength((short)((Area3DPtg) ptg).getSize());
|
this.setDefinitionTextLength((short)ptg.getSize());
|
||||||
} else {
|
} else {
|
||||||
ptg = new Ref3DPtg();
|
ptg = new Ref3DPtg();
|
||||||
((Ref3DPtg) ptg).setExternSheetIndex(externSheetIndex);
|
((Ref3DPtg) ptg).setExternSheetIndex(externSheetIndex);
|
||||||
((Ref3DPtg) ptg).setArea(ref);
|
((Ref3DPtg) ptg).setArea(ref);
|
||||||
this.setDefinitionTextLength((short)((Ref3DPtg) ptg).getSize());
|
this.setDefinitionTextLength((short)ptg.getSize());
|
||||||
}
|
}
|
||||||
|
|
||||||
field_13_name_definition.push(ptg);
|
field_13_name_definition.push(ptg);
|
||||||
|
Loading…
Reference in New Issue
Block a user