o
    	'f$(                     @  s   d Z ddlmZ ddlZddlmZ G dd deZeZG dd dejZ	e	Z
G d	d
 d
eZeZG dd deZG dd deZG dd deZG dd deZdS )z7Enumerations related to text in WordprocessingML files.    )annotationsN)BaseXmlEnumc                   @  sD   e Zd ZdZdZ	 dZ	 dZ	 dZ	 dZ	 dZ		 dZ
	 d	Z	 d
ZdS )WD_PARAGRAPH_ALIGNMENTzAlias: **WD_ALIGN_PARAGRAPH**

    Specifies paragraph justification type.

    Example::

        from docx.enum.text import WD_ALIGN_PARAGRAPH

        paragraph = document.add_paragraph()
        paragraph.alignment = WD_ALIGN_PARAGRAPH.CENTER
    )r   leftzLeft-aligned   centerzCenter-aligned.   rightzRight-aligned.)   bothzFully justified.)   
distributezGParagraph characters are distributed to fill entire width of paragraph.)   mediumKashidaz4Justified with a medium character compression ratio.)   highKashidaz2Justified with a high character compression ratio.)   
lowKashidaz1Justified with a low character compression ratio.)	   thaiDistributez.Justified according to Thai formatting layout.N)__name__
__module____qualname____doc__LEFTCENTERRIGHTJUSTIFY
DISTRIBUTEJUSTIFY_MED
JUSTIFY_HIJUSTIFY_LOWTHAI_JUSTIFY r%   r%   F/home/ubuntu/flask/venv/lib/python3.10/site-packages/docx/enum/text.pyr   
   s(    r   c                   @  s<   e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZdS )WD_BREAK_TYPEzoCorresponds to WdBreakType enumeration.

    http://msdn.microsoft.com/en-us/library/office/ff195905.aspx.
    r      r   
      r   r   r   r
   r   N)r   r   r   r   COLUMNLINELINE_CLEAR_LEFTLINE_CLEAR_RIGHTLINE_CLEAR_ALLPAGESECTION_CONTINUOUSSECTION_EVEN_PAGESECTION_NEXT_PAGESECTION_ODD_PAGETEXT_WRAPPINGr%   r%   r%   r&   r'   F   s    r'   c                   @  sz   e Zd ZdZdZ	 dZ	 dZ	 dZ	 dZ	 dZ		 dZ
	 d	Z	 d
Z	 dZ	 dZ	 dZ	 dZ	 dZ	 dZ	 dZ	 dZ	 dZdS )WD_COLOR_INDEXzSpecifies a standard preset color to apply.

    Used for font highlighting and perhaps other applications.

    * MS API name: `WdColorIndex`
    * URL: https://msdn.microsoft.com/EN-US/library/office/ff195343.aspx
    )Nz,Color is inherited from the style hierarchy.)r   defaultz(Automatic color. Default; usually black.)r   blackzBlack color.)r
   bluez
Blue color)r   greenzBright green color.)r   darkBluezDark blue color.)   darkRedzDark red color.)   
darkYellowzDark yellow color.)   	lightGrayz25% shade of gray color.)   darkGrayz50% shade of gray color.)r*   	darkGreenzGreen color.)r   magentazPink color.)r(   redz
Red color.)r)   darkCyanzTeal color.)r   cyanzTurquoise color.)   darkMagentazViolet color.)r   whitezWhite color.)r   yellowzYellow color.N)r   r   r   r   	INHERITEDAUTOBLACKBLUEBRIGHT_GREEN	DARK_BLUEDARK_REDDARK_YELLOWGRAY_25GRAY_50GREENPINKREDTEAL	TURQUOISEVIOLETWHITEYELLOWr%   r%   r%   r&   r6   \   sL    r6   c                   @  2   e Zd ZdZdZ	 dZ	 dZ	 dZ	 dZ	 dZ	dS )	WD_LINE_SPACINGa[  Specifies a line spacing format to be applied to a paragraph.

    Example::

        from docx.enum.text import WD_LINE_SPACING

        paragraph = document.add_paragraph()
        paragraph.line_spacing_rule = WD_LINE_SPACING.EXACTLY


    MS API name: `WdLineSpacing`

    URL: http://msdn.microsoft.com/en-us/library/office/ff844910.aspx
    )r   UNMAPPEDzSingle spaced (default).)r   rb   zSpace-and-a-half line spacing.)r
   rb   zDouble spaced.)r   atLeastzIMinimum line spacing is specified amount. Amount is specified separately.)r   exactzILine spacing is exactly specified amount. Amount is specified separately.)r   autozsLine spacing is specified as multiple of line heights. Changing font size will change line spacing proportionately.N)
r   r   r   r   SINGLEONE_POINT_FIVEDOUBLEAT_LEASTEXACTLYMULTIPLEr%   r%   r%   r&   ra      s    ra   c                   @  sJ   e Zd ZdZdZ	 dZ	 dZ	 dZ	 dZ	 dZ		 dZ
	 d	Z	 d
Z	 dZdS )WD_TAB_ALIGNMENTzSpecifies the tab stop alignment to apply.

    MS API name: `WdTabAlignment`

    URL: https://msdn.microsoft.com/EN-US/library/office/ff195609.aspx
    )r   r   zLeft-aligned.r   r	   )r   decimalzDecimal-aligned.)r   barzBar-aligned.)r(   listzList-aligned. (deprecated))e   clearzClear an inherited tab stop.)f   endzRight-aligned.  (deprecated))g   numLeft-aligned.  (deprecated))h   startrv   N)r   r   r   r   r   r   r   DECIMALBARLISTCLEARENDNUMSTARTr%   r%   r%   r&   rl      s,    rl   c                   @  r`   )	WD_TAB_LEADERzSpecifies the character to use as the leader with formatted tabs.

    MS API name: `WdTabLeader`

    URL: https://msdn.microsoft.com/en-us/library/office/ff845050.aspx
    )r   nonezSpaces. Default.)r   dotDots.)r
   hyphenDashes.)r   
underscorezDouble lines.)r   heavyzA heavy line.)r   	middleDotzA vertically-centered dot.N)
r   r   r   r   SPACESDOTSDASHESLINESHEAVY
MIDDLE_DOTr%   r%   r%   r&   r      s    r   c                   @  s   e Zd ZdZdZ	 dZ	 dZ	 dZ	 dZ	 dZ		 dZ
	 d	Z	 d
Z	 dZ	 dZ	 dZ	 dZ	 dZ	 dZ	 dZ	 dZ	 dZ	 dZdS )WD_UNDERLINEzSpecifies the style of underline applied to a run of characters.

    MS API name: `WdUnderline`

    URL: http://msdn.microsoft.com/en-us/library/office/ff822388.aspx
    )r7   Nz4Inherit underline setting from containing paragraph.)r   r   a  No underline.

This setting overrides any inherited underline value, so can be used to remove underline from a run that inherits underlining from its containing paragraph. Note this is not the same as assigning |None| to Run.underline. |None| is a valid assignment value, but causes the run to inherit its underline value. Assigning `WD_UNDERLINE.NONE` causes underlining to be unconditionally turned off.)r   singlezA single line.

Note that this setting is write-only in the sense that |True| (rather than `WD_UNDERLINE.SINGLE`) is returned for a run having this setting.)r
   wordsz Underline individual words only.)r   doublezA double line.)r   dottedr   )r(   thickzA single thick line.)r   dashr   )r   dotDashzAlternating dots and dashes.)r)   
dotDotDashz$An alternating dot-dot-dash pattern.)r*   wavezA single wavy line.)   dottedHeavyzHeavy dots.)   dashedHeavyzHeavy dashes.)   dashDotHeavyz(Alternating heavy dots and heavy dashes.)   dashDotDotHeavyz*An alternating heavy dot-dot-dash pattern.)   	wavyHeavyzA heavy wavy line.)'   dashLongzLong dashes.)+   
wavyDoublezA double wavy line.)7   dashLongHeavyzLong heavy dashes.N)r   r   r   r   rN   NONErf   WORDSrh   DOTTEDTHICKDASHDOT_DASHDOT_DOT_DASHWAVYDOTTED_HEAVY
DASH_HEAVYDOT_DASH_HEAVYDOT_DOT_DASH_HEAVY
WAVY_HEAVY	DASH_LONGWAVY_DOUBLEDASH_LONG_HEAVYr%   r%   r%   r&   r     sP    
	r   )r   
__future__r   enumdocx.enum.baser   r   WD_ALIGN_PARAGRAPHEnumr'   WD_BREAKr6   WD_COLORra   rl   r   r   r%   r%   r%   r&   <module>   s    9@1'