new support for sizeless records

PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352631 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew C. Oliver 2002-05-19 15:51:29 +00:00
parent 3e5e8d0275
commit 55114e1551
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,7 @@
<record id="0x1035" name="PlotArea" package="org.apache.poi.hssf.record">
<suffix>Record</suffix>
<extends>Record</extends>
<description>preceeds and identifies a frame as belonging to the plot area.</description>
<author>Andrew C. Oliver (acoliver at apache.org)</author>
<testsize>4</testsize>
</record>

View File

@ -166,7 +166,7 @@ public class <xsl:value-of select="@name"/>Record
public int getRecordSize()
{
<xsl:variable name="fieldIterator" select="field:new()"/>
<xsl:text> return 4 + </xsl:text>
<xsl:text> return 4 </xsl:text>
<xsl:for-each select="//fields/field">
<xsl:value-of select="field:calcSize($fieldIterator,position(),@name,@size,@type)"/>
</xsl:for-each>;