_inFormula = true;
}
}
private void configureStyle(XSSFCellStyle style) {
XSSFFont font = style.getFont();
if (font.getBold()) {
_style.bold();
}
if (font.getItalic()) {
_style.italic();
}
if (font.getUnderline() != FontUnderline.NONE.getByteValue()) {
_style.underline();
}
if (style.getFillPatternEnum() == FillPatternType.SOLID_FOREGROUND) {
XSSFColor fillForegroundXSSFColor = style.getFillForegroundXSSFColor();
String argb = fillForegroundXSSFColor.getARGBHex();
if (argb != null) {
_style.background(argb.substring(2));
}
}
final XSSFFont stdFont = _stylesTable.getStyleAt(0).getFont();
final short fontHeight = style.getFont().getFontHeightInPoints();
if (stdFont.getFontHeightInPoints() != fontHeight) {
_style.fontSize(fontHeight, SizeUnit.PT);
}
XSSFColor fontColor = style.getFont().getXSSFColor();
if (fontColor != null) {