Browse Source

Forgot to include in r1681435

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1681438 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-2_1
Andreas L. Delmelle 9 years ago
parent
commit
4d35002582
1 changed files with 11 additions and 1 deletions
  1. 11
    1
      src/java/org/apache/fop/render/rtf/RTFHandler.java

+ 11
- 1
src/java/org/apache/fop/render/rtf/RTFHandler.java View File

@@ -687,6 +687,7 @@ public class RTFHandler extends FOEventHandler {
try {
RtfAttributes atts = TableAttributesConverter.convertTablePartAttributes(part);

// @SuppressFBWarnings("BC_UNCONFIRMED_CAST_OF_RETURN_VALUE")
RtfTable tbl = (RtfTable)builderContext.getContainer(RtfTable.class, true, this);
tbl.setHeaderAttribs(atts);
} catch (IOException ioe) {
@@ -703,6 +704,7 @@ public class RTFHandler extends FOEventHandler {
}

try {
// @SuppressFBWarnings("BC_UNCONFIRMED_CAST_OF_RETURN_VALUE")
RtfTable tbl = (RtfTable)builderContext.getContainer(RtfTable.class, true, this);
tbl.setHeaderAttribs(null);
} catch (IOException ioe) {
@@ -738,6 +740,7 @@ public class RTFHandler extends FOEventHandler {

try {
// create an RtfTableRow in the current RtfTable
// @SuppressFBWarnings("BC_UNCONFIRMED_CAST_OF_RETURN_VALUE")
final RtfTable tbl = (RtfTable)builderContext.getContainer(RtfTable.class,
true, null);

@@ -768,6 +771,7 @@ public class RTFHandler extends FOEventHandler {

try {
TableContext tctx = builderContext.getTableContext();
// @SuppressFBWarnings("BC_UNCONFIRMED_CAST_OF_RETURN_VALUE")
final RtfTableRow row = (RtfTableRow)builderContext.getContainer(RtfTableRow.class,
true, null);

@@ -805,6 +809,7 @@ public class RTFHandler extends FOEventHandler {

try {
TableContext tctx = builderContext.getTableContext();
// @SuppressFBWarnings("BC_UNCONFIRMED_CAST_OF_RETURN_VALUE")
final RtfTableRow row = (RtfTableRow)builderContext.getContainer(RtfTableRow.class,
true, null);

@@ -894,7 +899,8 @@ public class RTFHandler extends FOEventHandler {
return;
}
try {
RtfTableCell cell = (RtfTableCell) builderContext.getContainer(RtfTableCell.class, false, this);
// @SuppressFBWarnings("BC_UNCONFIRMED_CAST_OF_RETURN_VALUE")
RtfTableCell cell = (RtfTableCell)builderContext.getContainer(RtfTableCell.class, false, this);
cell.finish();

} catch (Exception e) {
@@ -949,6 +955,7 @@ public class RTFHandler extends FOEventHandler {

// create an RtfListItem in the current RtfList
try {
// @SuppressFBWarnings("BC_UNCONFIRMED_CAST_OF_RETURN_VALUE")
RtfList list = (RtfList)builderContext.getContainer(
RtfList.class, true, this);

@@ -995,6 +1002,7 @@ public class RTFHandler extends FOEventHandler {
}

try {
// @SuppressFBWarnings("BC_UNCONFIRMED_CAST_OF_RETURN_VALUE")
RtfListItem item
= (RtfListItem)builderContext.getContainer(RtfListItem.class, true, this);

@@ -1325,6 +1333,7 @@ public class RTFHandler extends FOEventHandler {
}

try {
// @SuppressFBWarnings("BC_UNCONFIRMED_CAST_OF_RETURN_VALUE")
RtfFootnote rtfFootnote
= (RtfFootnote)builderContext.getContainer(
RtfFootnote.class,
@@ -1346,6 +1355,7 @@ public class RTFHandler extends FOEventHandler {
}

try {
// @SuppressFBWarnings("BC_UNCONFIRMED_CAST_OF_RETURN_VALUE")
RtfFootnote rtfFootnote
= (RtfFootnote)builderContext.getContainer(
RtfFootnote.class,

Loading…
Cancel
Save