• R/O
  • HTTP
  • SSH
  • HTTPS

jaxcel: 提交


Commit MetaInfo

修訂0156df39397da57134780b1f6d1f4e20579792ae (tree)
時間2014-10-09 01:31:42
作者noboru saitoh <msnobosan@gmal...>
Commiternoboru saitoh

Log Message

foreachでの配列オブジェクトに直書き文字列を利用できるよう対応

Change Summary

差異

--- a/Jaxcel/src/org/hanei/jaxcel/report/TLParser.java
+++ b/Jaxcel/src/org/hanei/jaxcel/report/TLParser.java
@@ -1037,7 +1037,7 @@ public class TLParser {
10371037 ExcelUtil.getMoveFormula(
10381038 sheet,
10391039 fromCell.getCellFormula().replace(
1040- (cpCount == 0 ? object : list + "[" + (mapKeys == null ? (startIdx - 1) : "'" + mapKeys[startIdx - 1] + "'") + "]"), list + "[" + (mapKeys == null ? (i - 1) : "'" + mapKeys[i - 1] + "'") + "]"),
1040+ (cpCount == 0 ? object : "(" + list + ")[" + (mapKeys == null ? (startIdx - 1) : "'" + mapKeys[startIdx - 1] + "'") + "]"), "(" + list + ")[" + (mapKeys == null ? (i - 1) : "'" + mapKeys[i - 1] + "'") + "]"),
10411041 toCell.getRowIndex() - fromCell.getRowIndex(),
10421042 toCell.getColumnIndex() - fromCell.getColumnIndex()
10431043 )
@@ -1050,7 +1050,7 @@ public class TLParser {
10501050 break;
10511051 case Cell.CELL_TYPE_STRING:
10521052 toCell.setCellType(Cell.CELL_TYPE_STRING);
1053- toCell.setCellValue(fromCell.getStringCellValue().replace((cpCount == 0 ? object : list + "[" + (mapKeys == null ? (startIdx - 1) : "'" + mapKeys[startIdx - 1] + "'") + "]"), list + "[" + (mapKeys == null ? (i - 1) : "'" + mapKeys[i - 1] + "'") + "]"));
1053+ toCell.setCellValue(fromCell.getStringCellValue().replace((cpCount == 0 ? object : "(" + list + ")[" + (mapKeys == null ? (startIdx - 1) : "'" + mapKeys[startIdx - 1] + "'") + "]"), "(" + list + ")[" + (mapKeys == null ? (i - 1) : "'" + mapKeys[i - 1] + "'") + "]"));
10541054 log.debug("to cell string: {}", toCell.getStringCellValue());
10551055 break;
10561056 }
Show on old repository browser