o
    Xƒx[Y  ã                   @   sŒ   d Z ddlmZmZmZmZ ddlmZmZm	Z	m
Z
mZ edƒG dd„ de
ƒƒZedƒG d	d
„ d
e
ƒƒZG dd„ de
ƒZG dd„ deƒZdS )z:
Enumerations related to tables in WordprocessingML files
é    )Úabsolute_importÚdivisionÚprint_functionÚunicode_literalsé   )ÚaliasÚEnumerationÚ
EnumMemberÚXmlEnumerationÚXmlMappedEnumMemberZWD_ALIGN_VERTICALc                   @   sL   e Zd ZdZdZdZeddddƒedd	d
dƒeddddƒeddddƒfZdS )ÚWD_CELL_VERTICAL_ALIGNMENTa,  
    alias: **WD_ALIGN_VERTICAL**

    Specifies the vertical alignment of text in one or more cells of a table.

    Example::

        from docx.enum.table import WD_ALIGN_VERTICAL

        table = document.add_table(3, 3)
        table.cell(0, 0).vertical_alignment = WD_ALIGN_VERTICAL.BOTTOM
    ZWdCellVerticalAlignmentz=https://msdn.microsoft.com/en-us/library/office/ff193345.aspxZTOPr   Útopz.Text is aligned to the top border of the cell.ÚCENTERr   Úcenterz*Text is aligned to the center of the cell.ZBOTTOMé   Zbottomz1Text is aligned to the bottom border of the cell.ZBOTHée   ZbothzîThis is an option in the OpenXml spec, but not in Word itself. It's not clear what Word behavior this setting produces. If you find out please let us know and we'll update this documentation. Otherwise, probably best to avoid this option.N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú__ms_name__Ú__url__r   Ú__members__© r   r   ú?D:\Projects\ConvertPro\env\Lib\site-packages\docx\enum\table.pyr      s"    ÿÿÿÿôr   ZWD_ROW_HEIGHTc                   @   ó@   e Zd ZdZdZdZeddddƒedd	d
dƒeddddƒfZdS )ÚWD_ROW_HEIGHT_RULEa  
    alias: **WD_ROW_HEIGHT**

    Specifies the rule for determining the height of a table row

    Example::

        from docx.enum.table import WD_ROW_HEIGHT_RULE

        table = document.add_table(3, 3)
        table.rows[0].height_rule = WD_ROW_HEIGHT_RULE.EXACTLY
    ZWdRowHeightRulez=https://msdn.microsoft.com/en-us/library/office/ff193620.aspxZAUTOr   ÚautozGThe row height is adjusted to accommodate the tallest value in the row.ZAT_LEASTr   ZatLeastz5The row height is at least a minimum specified value.ZEXACTLYé   Úexactz!The row height is an exact value.Nr   r   r   r   r   r   9   s    ÿÿÿ÷r   c                   @   r   )ÚWD_TABLE_ALIGNMENTzÒ
    Specifies table justification type.

    Example::

        from docx.enum.table import WD_TABLE_ALIGNMENT

        table = document.add_table(3, 3)
        table.alignment = WD_TABLE_ALIGNMENT.CENTER
    ZWdRowAlignmentz= http://office.microsoft.com/en-us/word-help/HV080607259.aspxÚLEFTr   ÚleftzLeft-alignedr   r   r   zCenter-aligned.ÚRIGHTr   ÚrightzRight-aligned.Nr   r   r   r   r   r!   [   s    ÿÿÿùr!   c                   @   s0   e Zd ZdZdZdZedddƒeddd	ƒfZd
S )ÚWD_TABLE_DIRECTIONa  
    Specifies the direction in which an application orders cells in the
    specified table or row.

    Example::

        from docx.enum.table import WD_TABLE_DIRECTION

        table = document.add_table(3, 3)
        table.direction = WD_TABLE_DIRECTION.RTL
    ZWdTableDirectionz6 http://msdn.microsoft.com/en-us/library/ff835141.aspxZLTRr   zLThe table or row is arranged with the first column in the leftmost position.ZRTLr   zMThe table or row is arranged with the first column in the rightmost position.N)r   r   r   r   r   r   r	   r   r   r   r   r   r&   x   s    ÿÿûr&   N)r   Z
__future__r   r   r   r   Úbaser   r   r	   r
   r   r   r   r!   r&   r   r   r   r   Ú<module>   s   (!