}
private String generateInitialTableStyle() throws ReportProcessingException
{
final OfficeStylesCollection predefStyles = getPredefinedStylesCollection();
final OfficeStyles commonStyles = predefStyles.getAutomaticStyles();
if (!commonStyles.containsStyle(OfficeToken.TABLE, "Initial_Table"))
{
final String masterPageName = createMasterPage();
final OfficeStyle tableStyle = new OfficeStyle();
tableStyle.setStyleFamily(OfficeToken.TABLE);
tableStyle.setStyleName("Initial_Table");
tableStyle.setAttribute(OfficeNamespaces.STYLE_NS, "master-page-name", masterPageName);
final Element tableProperties = produceFirstChild(tableStyle, OfficeNamespaces.STYLE_NS, "table-properties");
tableProperties.setAttribute(OfficeNamespaces.FO_NS, OfficeToken.BACKGROUND_COLOR, "transparent");
commonStyles.addStyle(tableStyle);
}
return "Initial_Table";
}