void (int backgroundId) { if (backgroundId == myDefaultBackgroundId) { myBuffer.append("\\plain"); // we cannot use \chcbpat with default background id, as it doesn't work in MS Word, // and we cannot use \chcbpat0 as it doesn't work in OpenOffice addFontSize(myBuffer, myFontSize); if (myFontNameId >= 0) { handleFont(myFontNameId); } if (myForegroundId >= 0) { handleForeground(myForegroundId); } if (myFontStyle >= 0) { handleStyle(myFontStyle); } } else { myBuffer.append("\\chcbpat").append(backgroundId); } myBuffer.append("\\cb").append(backgroundId); myBuffer.append('\n'); }