if (n > 1) {
attrib.set(ITableAttributes.COLUMN_SPAN, n);
}
+
+ switch (fobj.getDisplayAlign()) {
+ case Constants.EN_BEFORE:
+ attrib.set(ITableAttributes.ATTR_CELL_VERT_ALIGN_TOP);
+ break;
+ case Constants.EN_CENTER:
+ attrib.set(ITableAttributes.ATTR_CELL_VERT_ALIGN_CENTER);
+ break;
+ case Constants.EN_AFTER:
+ attrib.set(ITableAttributes.ATTR_CELL_VERT_ALIGN_BOTTOM);
+ break;
+ default: //nop
+ }
return attrib;
}
/** cell border, right */
String CELL_BORDER_RIGHT = "clbrdrr";
+// for vertical alignment in cells
+ /** cell alignment, top */
+ String ATTR_CELL_VERT_ALIGN_TOP = "clvertalt";
+ /** cell alignment, center */
+ String ATTR_CELL_VERT_ALIGN_CENTER = "clvertalc";
+ /** cell alignment, bottom */
+ String ATTR_CELL_VERT_ALIGN_BOTTOM = "clvertalb";
+
//Table row border attributes
/** row border, top */
String ROW_BORDER_TOP = "trbrdrt";
String[] CELL_COLOR = {
CELL_SHADE, CELL_COLOR_BACKGROUND, CELL_COLOR_FOREGROUND
};
+
+ /**
+ * List of ALL vertical alignment attributes, used to select them when writing
+ * attributes
+ */
+ String[] CELL_VERT_ALIGN = {
+ ATTR_CELL_VERT_ALIGN_TOP, ATTR_CELL_VERT_ALIGN_CENTER, ATTR_CELL_VERT_ALIGN_BOTTOM};
+
}
<changes>
<release version="FOP Trunk">
+ <action context="Code" dev="JM" type="add" fixes-bug="40930">
+ Added support for display-align for table-cell in RTF output.
+ </action>
<action context="Code" dev="MM" type="add">
Added support for UAX#14 type line breaking. Support does not extend across nested fo:inline elements.
</action>