From 2ef203cac936266853e5c223918b6b2a525ce183 Mon Sep 17 00:00:00 2001 From: Yegor Kozlov Date: Fri, 19 Jun 2009 14:01:37 +0000 Subject: [PATCH] exposed TableCellDescriptor in HWPF TableCell, also removed unused private fields in BorderCode, see Bugzilla 47355 and 47356 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@786511 13f79535-47bb-0310-9956-ffa450edef68 --- src/documentation/content/xdocs/status.xml | 2 ++ .../src/org/apache/poi/hwpf/usermodel/BorderCode.java | 6 ------ .../src/org/apache/poi/hwpf/usermodel/TableCell.java | 5 +++++ 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/documentation/content/xdocs/status.xml b/src/documentation/content/xdocs/status.xml index bf8b7bd95..c4762c753 100644 --- a/src/documentation/content/xdocs/status.xml +++ b/src/documentation/content/xdocs/status.xml @@ -33,6 +33,8 @@ + 47356 - removed unused private fields in HWPF BorderCode + 47355 - Improved HWPF TableCell to expose TableCellDescriptor 46610 - Improved HWPF to better handle unicode 47261 - Fixed SlideShow#removeSlide to remove references to Notes 47375 - Fixed HSSFHyperlink to correctly set inter-sheet and file links diff --git a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/BorderCode.java b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/BorderCode.java index 63e534581..ff5191e78 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/BorderCode.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/BorderCode.java @@ -26,13 +26,7 @@ public final class BorderCode { public static final int SIZE = 4; private short _info; - private final static BitField _dptLineWidth = BitFieldFactory.getInstance(0xff); - private final static BitField _brcType = BitFieldFactory.getInstance(0xff00); private short _info2; - private final static BitField _ico = BitFieldFactory.getInstance(0xff); - private final static BitField _dptDpace = BitFieldFactory.getInstance(0x1f00); - private final static BitField _fShadow = BitFieldFactory.getInstance(0x2000); - private final static BitField _fFrame = BitFieldFactory.getInstance(0x4000); public BorderCode() { diff --git a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/TableCell.java b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/TableCell.java index 19c0f7d06..ec8425c3e 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/TableCell.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/TableCell.java @@ -104,4 +104,9 @@ public final class TableCell return _width; } + /** Returns the TableCellDescriptor for this cell.*/ + public TableCellDescriptor getDescriptor(){ + return _tcd; + } + }