o
    7 h                     @  sp   d Z ddlmZ ddlmZmZ G dd deZG dd deZeZG dd	 d	eZ	e	Z
G d
d deZeZdS )z.Enumerations used by text and related objects.    )annotations)BaseEnumBaseXmlEnumc                   @  &   e Zd ZdZdZ	 dZ	 dZ	 dZdS )MSO_AUTO_SIZEa8  Determines the type of automatic sizing allowed.

    The following names can be used to specify the automatic sizing behavior used to fit a shape's
    text within the shape bounding box, for example::

        from pptx.enum.text import MSO_AUTO_SIZE

        shape.text_frame.auto_size = MSO_AUTO_SIZE.TEXT_TO_FIT_SHAPE

    The word-wrap setting of the text frame interacts with the auto-size setting to determine the
    specific auto-sizing behavior.

    Note that `TextFrame.auto_size` can also be set to |None|, which removes the auto size setting
    altogether. This causes the setting to be inherited, either from the layout placeholder, in the
    case of a placeholder shape, or from the theme.

    MS API Name: `MsoAutoSize`

    http://msdn.microsoft.com/en-us/library/office/ff865367(v=office.15).aspx
    )r   zNo automatic sizing of the shape or text will be done.

Text can freely extend beyond the horizontal and vertical edges of the shape bounding box.)   a  The shape height and possibly width are adjusted to fit the text.

Note this setting interacts with the TextFrame.word_wrap property setting. If word wrap is turned on, only the height of the shape will be adjusted; soft line breaks will be used to fit the text horizontally.)   zGThe font size is reduced as necessary to fit the text within the shape.)zPReturn value only; indicates a combination of automatic sizing schemes are used.N)__name__
__module____qualname____doc__NONESHAPE_TO_FIT_TEXTTEXT_TO_FIT_SHAPEMIXED r   r   V/var/www/html/figdemos/bartoux_crm/venv/lib/python3.10/site-packages/pptx/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Z	 dZ	 dZ	 dZ	 dZ	 dZ	 dZ	 dZdS )MSO_TEXT_UNDERLINE_TYPEa~  
    Indicates the type of underline for text. Used with
    :attr:`.Font.underline` to specify the style of text underlining.

    Alias: ``MSO_UNDERLINE``

    Example::

        from pptx.enum.text import MSO_UNDERLINE

        run.font.underline = MSO_UNDERLINE.DOUBLE_LINE

    MS API Name: `MsoTextUnderlineType`

    http://msdn.microsoft.com/en-us/library/aa432699.aspx
    )r   nonezSpecifies no underline.)   Z	dashHeavyzSpecifies a dash underline.)   dashz Specifies a dash line underline.)
   ZdashLongHeavyz&Specifies a long heavy line underline.)	   ZdashLongz'Specifies a dashed long line underline.)   ZdotDashHeavyz*Specifies a dot dash heavy line underline.)   ZdotDashz$Specifies a dot dash line underline.)   ZdotDotDashHeavyz.Specifies a dot dot dash heavy line underline.)   Z
dotDotDashz(Specifies a dot dot dash line underline.)   ZdottedHeavyz(Specifies a dotted heavy line underline.)   Zdottedz"Specifies a dotted line underline.)   Zdblz"Specifies a double line underline.)   Zheavyz!Specifies a heavy line underline.)r   Zsngz"Specifies a single line underline.)   ZwavyDblz'Specifies a wavy double line underline.)   Z	wavyHeavyz&Specifies a wavy heavy line underline.)   Zwavyz Specifies a wavy line underline.)r   wordszSpecifies underlining words.)r	    z/Specifies a mix of underline types (read-only).N)r
   r   r   r   r   ZDASH_HEAVY_LINEZ	DASH_LINEZDASH_LONG_HEAVY_LINEZDASH_LONG_LINEZDOT_DASH_HEAVY_LINEZDOT_DASH_LINEZDOT_DOT_DASH_HEAVY_LINEZDOT_DOT_DASH_LINEZDOTTED_HEAVY_LINEZDOTTED_LINEZDOUBLE_LINEZ
HEAVY_LINEZSINGLE_LINEZWAVY_DOUBLE_LINEZWAVY_HEAVY_LINEZ	WAVY_LINEZWORDSr   r   r   r   r   r   @   sP    r   c                   @  r   )MSO_VERTICAL_ANCHORa;  Specifies the vertical alignment of text in a text frame.

    Used with the `.vertical_anchor` property of the |TextFrame| object. Note that the
    `vertical_anchor` property can also have the value None, indicating there is no directly
    specified vertical anchor setting and its effective value is inherited from its placeholder if
    it has one or from the theme. |None| may also be assigned to remove an explicitly specified
    vertical anchor setting.

    MS API Name: `MsoVerticalAnchor`

    http://msdn.microsoft.com/en-us/library/office/ff865255.aspx
    )r   tz Aligns text to top of text frame)r!   ctrzCenters text vertically)r"   bz#Aligns text to bottom of text frame)r	   r'   z?Return value only; indicates a combination of the other states.N)r
   r   r   r   TOPZMIDDLEBOTTOMr   r   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
S )PP_PARAGRAPH_ALIGNMENTaG  Specifies the horizontal alignment for one or more paragraphs.

    Alias: `PP_ALIGN`

    Example::

        from pptx.enum.text import PP_ALIGN

        shape.paragraphs[0].alignment = PP_ALIGN.CENTER

    MS API Name: `PpParagraphAlignment`

    http://msdn.microsoft.com/en-us/library/office/ff745375(v=office.15).aspx
    )r   r*   zCenter align)r    distzLEvenly distributes e.g. Japanese characters from left to right within a line)r"   ZjustzJustified, i.e. each line both begins and ends at the margin.

Spacing between words is adjusted such that the line exactly fills the width of the paragraph.)r   ZjustLowz4Justify using a small amount of space between words.)r   lzLeft aligned)r!   rzRight aligned)r   ZthaiDistzThai distributed)r	   r'   zCMultiple alignments are present in a set of paragraphs (read-only).N)r
   r   r   r   CENTERZ
DISTRIBUTEZJUSTIFYZJUSTIFY_LOWLEFTRIGHTZTHAI_DISTRIBUTEr   r   r   r   r   r.      s$    r.   N)r   
__future__r   pptx.enum.baser   r   r   r   ZMSO_UNDERLINEr(   Z
MSO_ANCHORr.   ZPP_ALIGNr   r   r   r   <module>   s    8P5