public void removeFormatRun(FormatRun r) { field_4_format_runs.remove(r); if (field_4_format_runs.size() == 0) { field_4_format_runs = null; field_2_optionflags = richText.clearByte(field_2_optionflags); } }
void setExtendedRst(ExtRst ext_rst) { if (ext_rst != null) { field_2_optionflags = extBit.setByte(field_2_optionflags); } else { field_2_optionflags = extBit.clearByte(field_2_optionflags); } this.field_5_ext_rst = ext_rst; }
/** * set the actual string this contains * * @param string the text */ public void setString(String string) { field_3_string = string; setCharCount((short) field_3_string.length()); // scan for characters greater than 255 ... if any are // present, we have to use 16-bit encoding. Otherwise, we // can use 8-bit encoding boolean useUTF16 = false; int strlen = string.length(); for (int j = 0; j < strlen; j++) { if (string.charAt(j) > 255) { useUTF16 = true; break; } } if (useUTF16) // Set the uncompressed bit field_2_optionflags = highByte.setByte(field_2_optionflags); else field_2_optionflags = highByte.clearByte(field_2_optionflags); }
public void clearFormatting() { field_4_format_runs = null; field_2_optionflags = richText.clearByte(field_2_optionflags); }