+
    i                        R t ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RI	H
t
 ^ RIHt ^ RIHt ^ RIHtHt  ! R	 R
]
4      tR# )z<Styles object, container for all objects in the styles part.)annotations)warn)WD_STYLE_TYPE)	CT_Styles)ElementProxy)	BabelFish)LatentStyles)	BaseStyleStyleFactoryc                     a  ] tR t^tRtR V 3R lltR tR R ltR tR t	RR	 lt
R
 R ltR R ltR t]R 4       tR R ltR R ltR R ltRtV ;t# )StyleszProvides access to the styles defined in a document.

Accessed using the :attr:`.Document.styles` property. Supports ``len()``, iteration,
and dictionary-style access by style name.
c                   V ^8  d   QhRR/# )   stylesr    )formats   "Y/Users/agent/.openclaw/workspace/.venv/lib/python3.14/site-packages/docx/styles/styles.py__annotate__Styles.__annotate__   s      y     c                	2   < \         SV `  V4       Wn        R # N)super__init___element)selfr   	__class__s   &&r   r   Styles.__init__   s     r   c                   a \         P                  ! V4      o\        ;QJ d3    V3R lV P                  P                   4       F  '       g   K   R# 	  R# ! V3R lV P                  P                   4       4      # )z$Enables `in` operator on style name.c              3  @   <"   T F  qP                   S8H  x  K  	  R # 5ir   )name_val).0styleinternal_names   & r   	<genexpr>&Styles.__contains__.<locals>.<genexpr>   s     X@Wu>>]2@Ws   TF)r   ui2internalanyr   	style_lst)r   namer#   s   &&@r   __contains__Styles.__contains__   sP    !--d3sX@W@WXssXsXsX@W@WXXXr   c                   V ^8  d   QhRR/# )r   keystrr   )r   s   "r   r   r      s     8 8s 8r   c                   V P                   P                  \        P                  ! V4      4      pVe   \	        V4      # V P                   P                  V4      pVe    Rp\        V\        ^R7       \	        V4      # \        RV,          4      h)zEnables dictionary-style access by UI name.

Lookup by style id is deprecated, triggers a warning, and will be removed in a
near-future release.
zFstyle lookup by style_id is deprecated. Use style name as key instead.)
stacklevelzno style with name '%s')	r   get_by_namer   r&   r
   	get_by_idr   UserWarningKeyError)r   r-   	style_elmmsgs   &&  r   __getitem__Styles.__getitem__   s{     MM--i.C.CC.HI	 	**MM++C0	 ZCka0	**03677r   c                	<    R  V P                   P                   4       # )c              3  8   "   T F  p\        V4      x  K  	  R # 5ir   )r
   )r!   r"   s   & r   r$   "Styles.__iter__.<locals>.<genexpr>2   s     I1HU##1Hs   )r   r(   r   s   &r   __iter__Styles.__iter__1   s    I1H1HIIr   c                	@    \        V P                  P                  4      # r   )lenr   r(   r<   s   &r   __len__Styles.__len__4   s    4==**++r   c                    \         P                  ! V4      pW@9   d   \        RV,          4      hV P                  P	                  WBV4      p\        V4      # )zReturn a newly added style object of `style_type` and identified by `name`.

A builtin style can be defined by passing True for the optional `builtin`
argument.
z$document already contains style '%s')r   r&   
ValueErrorr   add_style_of_typer
   )r   r)   
style_typebuiltin
style_namer"   s   &&&&  r   	add_styleStyles.add_style7   sL     **40
CdJKK//
PE""r   c                   V ^8  d   QhRR/# )r   rF   r   r   )r   s   "r   r   r   C   s     # #- #r   c                Z    V P                   P                  V4      pVf   R# \        V4      # )zhReturn the default style for `style_type` or |None| if no default is defined
for that type (not common).N)r   default_forr
   )r   rF   r"   s   && r   defaultStyles.defaultC   s+     ))*5=E""r   c                    V ^8  d   QhRRRR/# r   style_id
str | NonerF   r   r   )r   s   "r   r   r   K   s     5 5* 5- 5r   c                N    Vf   V P                  V4      # V P                  W4      # )zReturn the style of `style_type` matching `style_id`.

Returns the default for `style_type` if `style_id` is not found or is |None|, or
if the style having `style_id` is not of `style_type`.
)rN   
_get_by_id)r   rR   rF   s   &&&r   r2   Styles.get_by_idK   s(     <<
++x44r   c                ~    Vf   R# \        V\        4      '       d   V P                  W4      # V P                  W4      # )aJ  Return the id of the style corresponding to `style_or_name`, or |None| if
`style_or_name` is |None|.

If `style_or_name` is not a style object, the style is looked up using
`style_or_name` as a style name, raising |ValueError| if no style with that name
is defined. Raises |ValueError| if the target style is not of `style_type`.
N)
isinstancer	   _get_style_id_from_style_get_style_id_from_name)r   style_or_namerF   s   &&&r   get_style_idStyles.get_style_idU   s<      y1100KK//JJr   c                H    \        V P                  P                  4       4      # )zA |LatentStyles| object providing access to the default behaviors for latent
styles and the collection of |_LatentStyle| objects that define overrides of
those defaults for a particular named latent style.)r   r   get_or_add_latentStylesr<   s   &r   latent_stylesStyles.latent_stylesd   s    
 DMMAACDDr   c                    V ^8  d   QhRRRR/# rQ   r   )r   s   "r   r   r   k   s     	# 	#: 	#= 	#r   c                    V'       d   V P                   P                  V4      MRpVe   VP                  V8w  d   V P                  V4      # \	        V4      # )zReturn the style of `style_type` matching `style_id`.

Returns the default for `style_type` if `style_id` is not found or if the style
having `style_id` is not of `style_type`.
N)r   r2   typerN   r
   )r   rR   rF   r"   s   &&& r   rU   Styles._get_by_idk   sF     6>''14=EJJ*4<<
++E""r   c               $    V ^8  d   QhRRRRRR/# )r   rH   r.   rF   r   returnrS   r   )r   s   "r   r   r   v   s'     K K# K= KU_ Kr   c                2    V P                  W,          V4      # )zReturn the id of the style of `style_type` corresponding to `style_name`.

Returns |None| if that style is the default style for `style_type`. Raises
|ValueError| if the named style is not found in the document or does not match
`style_type`.
)rY   )r   rH   rF   s   &&&r   rZ   Styles._get_style_id_from_namev   s     ,,T-=zJJr   c               $    V ^8  d   QhRRRRRR/# )r   r"   r	   rF   r   rg   rS   r   )r   s   "r   r   r      s"     	 	i 	] 	Wa 	r   c                    VP                   V8w  d   \        RVP                   : RV: 24      hWP                  V4      8X  d   R# VP                  # )z{Id of `style`, or |None| if it is the default style of `style_type`.

Raises |ValueError| if style is not of `style_type`.
zassigned style is type z, need type N)rd   rD   rN   rR   )r   r"   rF   s   &&&r   rY   Styles._get_style_id_from_style   sA    
 ::#%**V`abbLL,,~~r   )r   )F)__name__
__module____qualname____firstlineno____doc__r   r*   r7   r=   rA   rI   rN   r2   r\   propertyr`   rU   rZ   rY   __static_attributes____classcell__)r   s   @r   r   r      sh     Y
8$J,
##5K E E	#K	 	r   r   N)rq   
__future__r   warningsr   docx.enum.styler   docx.oxml.stylesr   docx.sharedr   docx.stylesr   docx.styles.latentr   docx.styles.styler	   r
   r   r   r   r   <module>r}      s.    B "  ) & $ ! + 5y\ yr   