poi/src/records/definitions/textobject_record.xml

43 lines
2.4 KiB
XML
Raw Normal View History

<!-- Copyright (C) 2004 The Apache Software Foundation. All rights reserved. -->
<record id="0x1B6" name="TextObjectBase" excel-record-id="TXO"
package="org.apache.poi.hssf.record">
<suffix>Record</suffix>
<extends>Record</extends>
<description>The TXO record is used to define the properties of a text box. It is followed
by two continue records unless there is no actual text. The first continue record contains
the text data and the next continue record contains the formatting runs.</description>
<author>Glen Stampoultzis (glens at apache.org)</author>
<fields>
<field type="int" size="2" name="options" description="option flags">
<bit number="0" name="reserved1" description="reserved field"/>
<bit mask="0x000E" name="Horizontal text alignment">
<const name="left aligned" value="1"/>
<const name="centered" value="2"/>
<const name="right aligned" value="3"/>
<const name="justified" value="4"/>
</bit>
<bit mask="0x0070" name="Vertical text alignment">
<const name="top" value="1"/>
<const name="center" value="2"/>
<const name="bottom" value="3"/>
<const name="justify" value="4"/>
</bit>
<bit mask="0x0180" name="reserved2"/>
<bit number="9" name="text locked" description="Text has been locked"/>
<bit mask="0xFC00" name="reserved3"/>
</field>
<field type="int" size="2" name="text orientation" description="specifies whether the text is rotated">
<const name="none" value="0"/>
<const name="top_to_bottom" value="1"/>
<const name="rot_right" value="2"/>
<const name="rot_left" value="3"/>
</field>
<field type="int" size="2" name="reserved4" description="reserved field"/>
<field type="int" size="2" name="reserved5" description="reserved field"/>
<field type="int" size="2" name="reserved6" description="reserved field"/>
<field type="int" size="2" name="text length" description="the left of the text string"/>
<field type="int" size="2" name="formatting run length" description="the length of the formatting runs."/>
<field type="int" size="4" name="reserved7" description="reserved field"/>
</fields>
</record>