return null;
}
protected CSSNumericValue computeColumnWidth(final String colStyle)
{
final OfficeStylesCollection contentStyles = getContentStylesCollection();
final OfficeStyle style = contentStyles.getStyle(OfficeToken.TABLE_COLUMN, colStyle);
if (style != null)
{
final Element element = style.getTableColumnProperties();
if (element != null)
{
final String height = (String) element.getAttribute(OfficeNamespaces.STYLE_NS, "column-width");
if (height != null)
{
return parseLength(height);
}
}
final String styleParent = style.getStyleParent();
if (styleParent != null)
{
return computeRowHeight(styleParent);
}
}
final OfficeStylesCollection globalStyles = getGlobalStylesCollection();
final OfficeStyle globalStyle = globalStyles.getStyle(OfficeToken.TABLE_COLUMN, colStyle);
if (globalStyle != null)
{
final Element element = globalStyle.getTableColumnProperties();
if (element != null)
{
final String height = (String) element.getAttribute(OfficeNamespaces.STYLE_NS, "column-width");
if (height != null)
{
return parseLength(height);
}
}
final String styleParent = globalStyle.getStyleParent();
if (styleParent != null)
{
return computeRowHeight(styleParent);
}
}
final OfficeStylesCollection predefStyles = getPredefinedStylesCollection();
final OfficeStyle predefStyle = predefStyles.getStyle(OfficeToken.TABLE_COLUMN, colStyle);
if (predefStyle != null)
{
final Element element = predefStyle.getTableColumnProperties();
if (element != null)
{