ó
    ‰*£h8  ã                   óP   • S r SSKJrJr  SSKJr   " S S\5      r " S S\5      rg)	zTabstop-related proxy types.é    )ÚWD_TAB_ALIGNMENTÚWD_TAB_LEADER)ÚElementProxyc                   ó€   ^ • \ rS rSrSrU 4S jrS rS rS rS r	\
R                  \R                  4S jrS	 rS
rU =r$ )ÚTabStopsé   a"  A sequence of |TabStop| objects providing access to the tab stops of a paragraph
or paragraph style.

Supports iteration, indexed access, del, and len(). It is accesed using the
:attr:`~.ParagraphFormat.tab_stops` property of ParagraphFormat; it is not intended
to be constructed directly.
c                 ó:   >• [         [        U ]  US 5        Xl        g ©N)Úsuperr   Ú__init__Ú_pPr©ÚselfÚelementÚ	__class__s     €ÚO/home/mande/repo/quber/.venv/lib/python3.13/site-packages/docx/text/tabstops.pyr   ÚTabStops.__init__   s   ø€ ÜŒh˜Ñ& w°Ô5Ø�	ó    c                 óì   • U R                   R                  n UR                  X!   5        [        U5      S:X  a  U R                   R                  U5        gg! [        [        4 a    [	        S5      ef = f)z0Remove the tab at offset `idx` in this sequence.ztab index out of ranger   N)r   ÚtabsÚremoveÚAttributeErrorÚ
IndexErrorÚlen)r   Úidxr   s      r   Ú__delitem__ÚTabStops.__delitem__   sh   € à�y‰y�~‰~ˆð	7Ø�K‰K˜™	Ô"ô ˆt‹9˜‹>Ø�I‰I×Ñ˜TÕ"ð øô ¤
Ð+ó 	7ÜÐ5Ó6Ð6ð	7ús   ˜A ÁA3c                 ó~   • U R                   R                  nUc  [        S5      eUR                  U   n[	        U5      $ )z#Enables list-style access by index.zTabStops object is empty)r   r   r   Útab_lstÚTabStop)r   r   r   Útabs       r   Ú__getitem__ÚTabStops.__getitem__   s8   € à�y‰y�~‰~ˆØ‰<ÜÐ7Ó8Ð8Ø�l‰l˜3ÑˆÜ�s‹|Ðr   c              #   ó€   #   • U R                   R                  nUb!  UR                   H  n[        U5      v •  M     gg7f)zPGenerate a TabStop object for each of the w:tab elements, in XML document
order.N)r   r   r   r    )r   r   r!   s      r   Ú__iter__ÚTabStops.__iter__'   s7   é € ð �y‰y�~‰~ˆØÑØ—|”|�Ü˜c“lÔ"ò $ð ùs   ‚<>c                 ó`   • U R                   R                  nUc  g[        UR                  5      $ )Nr   )r   r   r   r   )r   r   s     r   Ú__len__ÚTabStops.__len__/   s&   € Ø�y‰y�~‰~ˆØ‰<ØÜ�4—<‘<Ó Ð r   c                 óp   • U R                   R                  5       nUR                  XU5      n[        U5      $ )a½  Add a new tab stop at `position`, a |Length| object specifying the location
of the tab stop relative to the paragraph edge.

A negative `position` value is valid and appears in hanging indentation. Tab
alignment defaults to left, but may be specified by passing a member of the
:ref:`WdTabAlignment` enumeration as `alignment`. An optional leader character
can be specified by passing a member of the :ref:`WdTabLeader` enumeration as
`leader`.
)r   Úget_or_add_tabsÚinsert_tab_in_orderr    )r   ÚpositionÚ	alignmentÚleaderr   r!   s         r   Úadd_tab_stopÚTabStops.add_tab_stop5   s2   € ð �y‰y×(Ñ(Ó*ˆØ×&Ñ& x¸FÓCˆÜ�s‹|Ðr   c                 ó8   • U R                   R                  5         g)zRemove all custom tab stops.N)r   Ú_remove_tabs©r   s    r   Ú	clear_allÚTabStops.clear_allC   s   € à�	‰	×ÑÕ r   )r   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r"   r%   r(   r   ÚLEFTr   ÚSPACESr0   r5   Ú__static_attributes__Ú__classcell__©r   s   @r   r   r      sD   ø† ñõò	#òò#ò!ð 0@×/DÑ/DÈ]×MaÑMaô ÷!ð !r   r   c                   óÈ   ^ • \ rS rSrSrU 4S jr\S 5       r\R                  S 5       r\S 5       r	\	R                  S 5       r	\S 5       r
\
R                  S	 5       r
S
rU =r$ )r    éH   z}An individual tab stop applying to a paragraph or style.

Accessed using list semantics on its containing |TabStops| object.
c                 ó:   >• [         [        U ]  US 5        Xl        g r
   )r   r    r   Ú_tabr   s     €r   r   ÚTabStop.__init__N   s   ø€ ÜŒg�tÑ% g¨tÔ4Ø�	r   c                 ó.   • U R                   R                  $ )zcA member of :ref:`WdTabAlignment` specifying the alignment setting for this
tab stop.

Read/write.
©rD   Úvalr4   s    r   r.   ÚTabStop.alignmentR   ó   € ð �y‰y�}‰}Ðr   c                 ó$   • XR                   l        g r
   rG   ©r   Úvalues     r   r.   rI   [   s   € à�	‰	�r   c                 ó.   • U R                   R                  $ )zÚA member of :ref:`WdTabLeader` specifying a repeating character used as a
"leader", filling in the space spanned by this tab.

Assigning |None| produces the same result as assigning `WD_TAB_LEADER.SPACES`.
Read/write.
©rD   r/   r4   s    r   r/   ÚTabStop.leader_   s   € ð �y‰y×ÑÐr   c                 ó$   • XR                   l        g r
   rO   rL   s     r   r/   rP   i   s   € à �	‰	Õr   c                 ó.   • U R                   R                  $ )zŽA |Length| object representing the distance of this tab stop from the inside
edge of the paragraph.

May be positive or negative. Read/write.
)rD   Úposr4   s    r   r-   ÚTabStop.positionm   rJ   r   c                 ó´   • U R                   nUR                  5       nUR                  XR                  UR                  5      U l         UR                  U5        g r
   )rD   Ú	getparentr,   rH   r/   r   )r   rM   r!   r   s       r   r-   rT   v   s>   € à�i‰iˆØ�}‰}‹ˆØ×,Ñ,¨U·G±G¸S¿Z¹ZÓHˆŒ	Ø�‰�CÕr   )rD   )r7   r8   r9   r:   r;   r   Úpropertyr.   Úsetterr/   r-   r>   r?   r@   s   @r   r    r    H   s“   ø† ñõ
ð ñó ðð ×Ññó ðð ñ ó ð ð ‡]�]ñ!ó ð!ð ñó ðð ‡_�_ñó ör   r    N)r;   Údocx.enum.textr   r   Údocx.sharedr   r   r    © r   r   Ú<module>r\      s'   ðÙ "ç :Ý $ô>!ˆ|ô >!ôB3ˆlõ 3r   