<?xml version="1.0"?>
<!--
   ====================================================================
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
   ====================================================================
-->
<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>
