public String toString() {
   StringBuffer sb = new StringBuffer();
   sb.append("[ftPictFmla]\n");
   sb.append("    .f2unknown     = ").append(HexDump.intToHex(field_1_unknown_int)).append("\n");
   if (field_2_refPtg == null) {
     sb.append("    .f3unknown     = ")
         .append(HexDump.toHex(field_2_unknownFormulaData))
         .append("\n");
   } else {
     sb.append("    .formula       = ").append(field_2_refPtg.toString()).append("\n");
   }
   if (field_4_ole_classname != null) {
     sb.append("    .unicodeFlag   = ").append(field_3_unicode_flag).append("\n");
     sb.append("    .oleClassname  = ").append(field_4_ole_classname).append("\n");
   }
   if (field_4_unknownByte != null) {
     sb.append("    .f4unknown   = ")
         .append(HexDump.byteToHex(field_4_unknownByte.intValue()))
         .append("\n");
   }
   if (field_5_stream_id != null) {
     sb.append("    .streamId      = ")
         .append(HexDump.intToHex(field_5_stream_id.intValue()))
         .append("\n");
   }
   if (field_6_unknown.length > 0) {
     sb.append("    .f7unknown     = ").append(HexDump.toHex(field_6_unknown)).append("\n");
   }
   sb.append("[/ftPictFmla]");
   return sb.toString();
 }
Esempio n. 2
0
 public String toString() {
   StringBuffer sb = new StringBuffer();
   sb.append("[LABEL]\n");
   sb.append("    .row       = ").append(HexDump.shortToHex(getRow())).append("\n");
   sb.append("    .column    = ").append(HexDump.shortToHex(getColumn())).append("\n");
   sb.append("    .xfindex   = ").append(HexDump.shortToHex(getXFIndex())).append("\n");
   sb.append("    .string_len= ").append(HexDump.shortToHex(field_4_string_len)).append("\n");
   sb.append("    .unicode_flag= ").append(HexDump.byteToHex(field_5_unicode_flag)).append("\n");
   sb.append("    .value       = ").append(getValue()).append("\n");
   sb.append("[/LABEL]\n");
   return sb.toString();
 }