diff options
Diffstat (limited to 'src/records')
-rw-r--r-- | src/records/definitions/attached_label_record.xml | 16 | ||||
-rw-r--r-- | src/records/styles/record_test.xsl | 7 |
2 files changed, 22 insertions, 1 deletions
diff --git a/src/records/definitions/attached_label_record.xml b/src/records/definitions/attached_label_record.xml new file mode 100644 index 0000000000..4adc324192 --- /dev/null +++ b/src/records/definitions/attached_label_record.xml @@ -0,0 +1,16 @@ +<record id="0x100c" name="SeriesLabels" package="org.apache.poi.hssf.record"> + <suffix>Record</suffix> + <extends>Record</extends> + <description>The series label record defines the type of label associated with the data format record.</description> + <author>Glen Stampoultzis (glens at apache.org)</author> + <fields> + <field type="int" size="2" name="format flags"> + <bit number="0" name="show actual" description="show actual value of the data point"/> + <bit number="1" name="show percent" description="show value as percentage of total (pie charts only)"/> + <bit number="2" name="label as percentage" description="show category label/value as percentage (pie charts only)"/> + <bit number="3" name="smoothed line" description="show smooth line"/> + <bit number="4" name="show label" description="display category label"/> + <bit number="5" name="show bubble sizes" description="??"/> + </field> + </fields> +</record> diff --git a/src/records/styles/record_test.xsl b/src/records/styles/record_test.xsl index 3b4c94b386..95e3b1cb17 100644 --- a/src/records/styles/record_test.xsl +++ b/src/records/styles/record_test.xsl @@ -87,7 +87,8 @@ public class Test<xsl:value-of select="@name"/>Record public void testLoad() throws Exception { - + fail("Not implemented"); + /* <xsl:value-of select="@name"/>Record record = new <xsl:value-of select="@name"/>Record((short)<xsl:value-of select="@id"/>, (short)data.length, data); <xsl:for-each select="//fields/field"> assertEquals( XXX, record.get<xsl:value-of select="recutil:getFieldName1stCap(@name,0)"/>()); <xsl:apply-templates select="./bit" mode="get"/> @@ -96,10 +97,13 @@ public class Test<xsl:value-of select="@name"/>Record assertEquals( XXX, record.getRecordSize() ); record.validateSid((short)<xsl:value-of select="@id"/>); + */ } public void testStore() { + fail("Not implemented"); + /* <xsl:value-of select="@name"/>Record record = new <xsl:value-of select="@name"/>Record(); <xsl:for-each select="//fields/field"> record.set<xsl:value-of select="recutil:getFieldName1stCap(@name,0)"/>( XXXX ); <xsl:apply-templates select="./bit" mode="set"/> @@ -109,6 +113,7 @@ public class Test<xsl:value-of select="@name"/>Record assertEquals(recordBytes.length - 4, data.length); for (int i = 0; i < data.length; i++) assertEquals("At offset " + i, data[i], recordBytes[i+4]); + */ } } </xsl:template> |