From: Yegor Kozlov Date: Fri, 19 Jun 2009 14:01:37 +0000 (+0000) Subject: exposed TableCellDescriptor in HWPF TableCell, also removed unused private fields... X-Git-Tag: REL_3_5-FINAL~98 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f84283998804e8fa217d3a3a74282c1dc7a76985;p=poi.git 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 --- diff --git a/src/documentation/content/xdocs/status.xml b/src/documentation/content/xdocs/status.xml index bf8b7bd95b..c4762c7537 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 63e534581f..ff5191e781 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 19c0f7d064..ec8425c3e6 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; + } + }