public String toString() {
    StringBuffer buffer = new StringBuffer();

    buffer.append("[SHTPROPS]\n");
    buffer
        .append("    .flags                = ")
        .append(HexDump.shortToHex(field_1_flags))
        .append('\n');
    buffer
        .append("         .chartTypeManuallyFormatted= ")
        .append(isChartTypeManuallyFormatted())
        .append('\n');
    buffer
        .append("         .plotVisibleOnly           = ")
        .append(isPlotVisibleOnly())
        .append('\n');
    buffer
        .append("         .doNotSizeWithWindow       = ")
        .append(isDoNotSizeWithWindow())
        .append('\n');
    buffer
        .append("         .defaultPlotDimensions     = ")
        .append(isDefaultPlotDimensions())
        .append('\n');
    buffer.append("         .autoPlotArea              = ").append(isAutoPlotArea()).append('\n');
    buffer
        .append("    .empty                = ")
        .append(HexDump.shortToHex(field_2_empty))
        .append('\n');

    buffer.append("[/SHTPROPS]\n");
    return buffer.toString();
  }
Exemplo n.º 2
0
  public String toString() {
    StringBuffer buffer = new StringBuffer();

    buffer.append("[BOF RECORD]\n");
    buffer.append("    .version  = ").append(HexDump.shortToHex(getVersion())).append("\n");
    buffer.append("    .type     = ").append(HexDump.shortToHex(getType()));
    buffer.append(" (").append(getTypeName()).append(")").append("\n");
    buffer.append("    .build    = ").append(HexDump.shortToHex(getBuild())).append("\n");
    buffer.append("    .buildyear= ").append(getBuildYear()).append("\n");
    buffer.append("    .history  = ").append(HexDump.intToHex(getHistoryBitMask())).append("\n");
    buffer.append("    .reqver   = ").append(HexDump.intToHex(getRequiredVersion())).append("\n");
    buffer.append("[/BOF RECORD]\n");
    return buffer.toString();
  }
Exemplo n.º 3
0
 public String toString() {
   StringBuffer sb = new StringBuffer();
   sb.append(getClass().getName()).append(" [ARRAY]\n");
   sb.append(" range=").append(getRange().toString()).append("\n");
   sb.append(" options=").append(HexDump.shortToHex(_options)).append("\n");
   sb.append(" notUsed=").append(HexDump.intToHex(_field3notUsed)).append("\n");
   sb.append(" formula:").append("\n");
   Ptg[] ptgs = _formula.getTokens();
   for (int i = 0; i < ptgs.length; i++) {
     Ptg ptg = ptgs[i];
     sb.append(ptg.toString()).append(ptg.getRVAType()).append("\n");
   }
   sb.append("]");
   return sb.toString();
 }
  @Override
  public String toString() {
    StringBuffer buffer = new StringBuffer();

    buffer.append("[SXVDEX]\n");

    buffer.append("    .grbit1 =").append(HexDump.intToHex(_grbit1)).append("\n");
    buffer.append("    .grbit2 =").append(HexDump.byteToHex(_grbit2)).append("\n");
    buffer.append("    .citmShow =").append(HexDump.byteToHex(_citmShow)).append("\n");
    buffer.append("    .isxdiSort =").append(HexDump.shortToHex(_isxdiSort)).append("\n");
    buffer.append("    .isxdiShow =").append(HexDump.shortToHex(_isxdiShow)).append("\n");
    buffer.append("    .subtotalName =").append(_subtotalName).append("\n");
    buffer.append("[/SXVDEX]\n");
    return buffer.toString();
  }
Exemplo n.º 5
0
  /** print a sort of string representation ([UNKNOWN RECORD] id = x [/UNKNOWN RECORD]) */
  public String toString() {
    String biffName = getBiffName(_sid);
    if (biffName == null) {
      biffName = "UNKNOWNRECORD";
    }
    StringBuffer sb = new StringBuffer();

    sb.append("[").append(biffName).append("] (0x");
    sb.append(Integer.toHexString(_sid).toUpperCase() + ")\n");
    if (_rawData.length > 0) {
      sb.append("  rawData=").append(HexDump.toHex(_rawData)).append("\n");
    }
    sb.append("[/").append(biffName).append("]\n");
    return sb.toString();
  }
  public String toString() {
    StringBuffer buffer = new StringBuffer();

    buffer.append("[AXCEXT]\n");
    buffer
        .append("    .minimumCategory      = ")
        .append("0x")
        .append(HexDump.toHex(getMinimumCategory()))
        .append(" (")
        .append(getMinimumCategory())
        .append(" )");
    buffer.append(System.getProperty("line.separator"));
    buffer
        .append("    .maximumCategory      = ")
        .append("0x")
        .append(HexDump.toHex(getMaximumCategory()))
        .append(" (")
        .append(getMaximumCategory())
        .append(" )");
    buffer.append(System.getProperty("line.separator"));
    buffer
        .append("    .majorUnitValue       = ")
        .append("0x")
        .append(HexDump.toHex(getMajorUnitValue()))
        .append(" (")
        .append(getMajorUnitValue())
        .append(" )");
    buffer.append(System.getProperty("line.separator"));
    buffer
        .append("    .majorUnit            = ")
        .append("0x")
        .append(HexDump.toHex(getMajorUnit()))
        .append(" (")
        .append(getMajorUnit())
        .append(" )");
    buffer.append(System.getProperty("line.separator"));
    buffer
        .append("    .minorUnitValue       = ")
        .append("0x")
        .append(HexDump.toHex(getMinorUnitValue()))
        .append(" (")
        .append(getMinorUnitValue())
        .append(" )");
    buffer.append(System.getProperty("line.separator"));
    buffer
        .append("    .minorUnit            = ")
        .append("0x")
        .append(HexDump.toHex(getMinorUnit()))
        .append(" (")
        .append(getMinorUnit())
        .append(" )");
    buffer.append(System.getProperty("line.separator"));
    buffer
        .append("    .baseUnit             = ")
        .append("0x")
        .append(HexDump.toHex(getBaseUnit()))
        .append(" (")
        .append(getBaseUnit())
        .append(" )");
    buffer.append(System.getProperty("line.separator"));
    buffer
        .append("    .crossingPoint        = ")
        .append("0x")
        .append(HexDump.toHex(getCrossingPoint()))
        .append(" (")
        .append(getCrossingPoint())
        .append(" )");
    buffer.append(System.getProperty("line.separator"));
    buffer
        .append("    .options              = ")
        .append("0x")
        .append(HexDump.toHex(getOptions()))
        .append(" (")
        .append(getOptions())
        .append(" )");
    buffer.append(System.getProperty("line.separator"));
    buffer.append("         .defaultMinimum           = ").append(isDefaultMinimum()).append('\n');
    buffer.append("         .defaultMaximum           = ").append(isDefaultMaximum()).append('\n');
    buffer.append("         .defaultMajor             = ").append(isDefaultMajor()).append('\n');
    buffer
        .append("         .defaultMinorUnit         = ")
        .append(isDefaultMinorUnit())
        .append('\n');
    buffer.append("         .isDate                   = ").append(isIsDate()).append('\n');
    buffer.append("         .defaultBase              = ").append(isDefaultBase()).append('\n');
    buffer.append("         .defaultCross             = ").append(isDefaultCross()).append('\n');
    buffer
        .append("         .defaultDateSettings      = ")
        .append(isDefaultDateSettings())
        .append('\n');

    buffer.append("[/AXCEXT]\n");
    return buffer.toString();
  }