File: //usr/local/lib/python3.6/site-packages/pptx/enum/__pycache__/text.cpython-36.pyc
3
Zƍh � @ s� d Z ddlmZ ddlmZmZmZmZmZm Z G dd� de�Z
ed�G dd � d e��Zed
�G dd� de��Zed
�G dd� de��Z
dS )z/
Enumerations used by text and related objects
� )�absolute_import� )�alias�Enumeration�
EnumMember�ReturnValueOnlyEnumMember�XmlEnumeration�XmlMappedEnumMemberc @ sP e Zd ZdZdZdZdZdZdZe ddd�e d dd
�e ddd�e
d
dd�fZdS )�
MSO_AUTO_SIZEa�
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.
r r � ZMsoAutoSizezIhttp://msdn.microsoft.com/en-us/library/office/ff865367(v=office.15).aspx�NONEz�No 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.�SHAPE_TO_FIT_TEXTa 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.�TEXT_TO_FIT_SHAPEzGThe font size is reduced as necessary to fit the text within the shape.�MIXEDzPReturn value only; indicates a combination of automatic sizing schemes are used.N���)�__name__�
__module__�__qualname__�__doc__r r
r �__ms_name__�__url__r r �__members__� r r �8/usr/local/lib/python3.6/site-packages/pptx/enum/text.pyr
s, r
Z
MSO_UNDERLINEc @ s� e Zd ZdZdZdZedddd�edd d
d�edd
dd�edddd�edddd�edddd�edddd�ed d!d"d#�ed$d%d&d'�ed(d)d*d+�ed,d-d.d/�ed0d1d2d3�ed4d5d6d7�ed8d9d:d;�ed<d=d>d?�ed@dAdBdC�edDdEdFdG�edHdIdJdK�edLdOdM�fZdNS )P�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
ZMsoTextUnderlineTypez5http://msdn.microsoft.com/en-us/library/aa432699.aspxr r �nonezSpecifies no underline.ZDASH_HEAVY_LINE� Z dashHeavyzSpecifies a dash underline.Z DASH_LINE� Zdashz Specifies a dash line underline.ZDASH_LONG_HEAVY_LINE�
Z
dashLongHeavyz&Specifies a long heavy line underline.ZDASH_LONG_LINE� ZdashLongz'Specifies a dashed long line underline.ZDOT_DASH_HEAVY_LINE� ZdotDashHeavyz*Specifies a dot dash heavy line underline.Z
DOT_DASH_LINE� ZdotDashz$Specifies a dot dash line underline.ZDOT_DOT_DASH_HEAVY_LINE� ZdotDotDashHeavyz.Specifies a dot dot dash heavy line underline.ZDOT_DOT_DASH_LINE�
Z
dotDotDashz(Specifies a dot dot dash line underline.ZDOTTED_HEAVY_LINE� ZdottedHeavyz(Specifies a dotted heavy line underline.ZDOTTED_LINE� Zdottedz"Specifies a dotted line underline.ZDOUBLE_LINE� Zdblz"Specifies a double line underline.Z
HEAVY_LINE� Zheavyz!Specifies a heavy line underline.ZSINGLE_LINEr Zsngz"Specifies a single line underline.ZWAVY_DOUBLE_LINE� ZwavyDblz'Specifies a wavy double line underline.ZWAVY_HEAVY_LINE� Z wavyHeavyz&Specifies a wavy heavy line underline.Z WAVY_LINE� Zwavyz Specifies a wavy line underline.ZWORDSr �wordszSpecifies underlining words.r z%Specifies a mixed of underline types.Nr ) r r r r r r r r r r r r r r Q sh
r Z
MSO_ANCHORc @ sV e Zd ZdZdZdZedddd�edddd �ed
ddd
�edddd�eddd�fZdS )�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.
ZMsoVerticalAnchorz<http://msdn.microsoft.com/en-us/library/office/ff865255.aspxNzhText frame has no vertical anchor specified and inherits its value from its layout placeholder or theme.ZTOPr �tz Aligns text to top of text frameZMIDDLEr&