+
    i)                        R t ^ RIHt ^ RIHt ^ RIHtHtHt ^ RI	H
t
HtHtHtHt R t ! R R]
4      t ! R R	]
4      t ! R
 R]
4      t ! R R]
4      tR# )z2Custom element classes related to the styles part.)annotations)WD_STYLE_TYPE)ST_DecimalNumberST_OnOff	ST_String)BaseOxmlElementOptionalAttributeRequiredAttribute
ZeroOrMore	ZeroOrOnec                l    RRRRRRRRR	R
RRRRRRRRRR/
P                  W P                  RR4      4      # )zhReturn the style id corresponding to `name`, taking into account special-case
names such as 'Heading 1'.captionCaptionz	heading 1Heading1z	heading 2Heading2z	heading 3Heading3z	heading 4Heading4z	heading 5Heading5z	heading 6Heading6z	heading 7Heading7z	heading 8Heading8z	heading 9Heading9  )getreplace)names   &V/Users/agent/.openclaw/workspace/venv/lib/python3.14/site-packages/docx/oxml/styles.pystyleId_from_namer      sW     	9ZZZZZZZZZ 
c$S"%&'    c                      ] tR t^!tRt]! RRR7      t]! R]4      t	]! R]
4      t]! R]
4      t]! R]
4      t]! R]4      t]! R	]
4      tR
 tR tR tRtR# )CT_LatentStylesz`w:latentStyles` element, defining behavior defaults for latent styles and
containing `w:lsdException` child elements that each override those defaults for a
named latent style.zw:lsdException
successorszw:countzw:defLockedStatezw:defQFormatzw:defSemiHiddenzw:defUIPriorityzw:defUnhideWhenUsedc                (    \        W4      pVf   R# V# )zXReturn the boolean value of the attribute having `attr_name`, or |False| if
not present.Fgetattrself	attr_namevalues   && r   	bool_propCT_LatentStyles.bool_prop/   s     (=r   c                X    V P                  RV,          4      pV'       g   R# V^ ,          # )zHReturn the `w:lsdException` child having `name`, or |None| if not found.zw:lsdException[@w:name="%s"]Nxpath)r(   r   founds   && r   get_by_nameCT_LatentStyles.get_by_name7   s%    

9D@AQxr   c                0    \        W\        V4      4       R# z7Set the on/off attribute having `attr_name` to `value`.N)setattrboolr'   s   &&&r   set_bool_propCT_LatentStyles.set_bool_prop>   s    e-r    N)__name__
__module____qualname____firstlineno____doc__r
   lsdExceptionr   r   countr   defLockedState
defQFormatdefSemiHiddendefUIPrioritydefUnhideWhenUsedr+   r1   r7   __static_attributes__r9   r   r   r!   r!   !   st     .2>Li)9:E&'98DN">8<J%&7BM%&79IJM)*?J.r   r!   c                      ] tR t^CtRt]! R]4      t]! R]	4      t
]! R]4      t]! R]4      t]! R]4      t]! R]4      tR tR	 tR
 tRtR# )CT_LsdExceptionz^``<w:lsdException>`` element, defining override visibility behaviors for a named
latent style.w:lockedw:name	w:qFormatw:semiHiddenw:uiPriorityw:unhideWhenUsedc                D    V P                  4       P                  V 4       R# )z;Remove this `w:lsdException` element from the XML document.N	getparentremover(   s   &r   deleteCT_LsdException.deleteN       %r   c                    \        W4      # )zWReturn the boolean value of the attribute having `attr_name`, or |None| if
not present.r%   )r(   r)   s   &&r   on_off_propCT_LsdException.on_off_propR   s     t''r   c                    \        WV4       R# r4   )r5   r'   s   &&&r   set_on_off_propCT_LsdException.set_on_off_propW   s    'r   r9   N)r:   r;   r<   r=   r>   r   r   lockedr	   r   r   qFormat
semiHiddenr   
uiPriorityunhideWhenUsedrT   rX   r[   rF   r9   r   r   rH   rH   C   sb     z84FXy1DX6G">8<J">3CDJ&'98DN&(
(r   rH   c                  d   ] tR t^\t$ RtR2t]! R]R,          R7      t]! R]R,          R7      t]! R]R,          R7      t	]! R]R,          R7      t
]! R]R,          R7      t]! R]R,          R7      t]! R]R,          R7      t]! R	]R,          R7      t]! R
]R,          R7      t]! R]R,          R7      tA]! R]4      tR]R&   ]! R]4      tR]R&   ]! R]4      t]! R]4      t]R 4       t]P8                  R  4       t]R! 4       tR" t]R# 4       t]P8                  R$ 4       t]R% 4       t ] P8                  R& 4       t ]R' 4       t!]R( 4       t"]"P8                  R) 4       t"]R* 4       t#]#P8                  R+ 4       t#]R, 4       t$]$P8                  R- 4       t$]R. 4       t%]%P8                  R/ 4       t%R0t&R1# )3CT_Stylez9A ``<w:style>`` element, representing a style definition.rJ   	w:basedOnw:nextrM   rL   rN   rK   rI   w:pPrw:rPr:   NNr"   :   NN:   NN:   NN:	   NN:
   NN:   NN:   NN:   NN:   NNzw:typezWD_STYLE_TYPE | Nonetypez	w:styleIdz
str | NonestyleIdz	w:defaultzw:customStylec                >    V P                   pVf   R# VP                  # )z5Value of `w:basedOn/@w:val` or |None| if not present.N)basedOnval)r(   ru   s   & r   basedOn_valCT_Style.basedOn_val   s     ,,?{{r   c                	Z    Vf   V P                  4        R # WP                  4       n        R # N)_remove_basedOnget_or_add_basedOnrv   r(   r*   s   &&r   rw   rx      s"    =  ",1##%)r   c                    V P                   pVf   R# V P                  4       pVP                  VP                  4      pVf   R# V# )zcSibling CT_Style element this style is based on or |None| if no base style or
base style not found.N)ru   rQ   	get_by_idrv   )r(   ru   styles
base_styles   &   r   r   CT_Style.base_style   sD     ,,?!%%gkk2
r   c                D    V P                  4       P                  V 4       R# )zARemove this `w:style` element from its parent `w:styles` element.NrP   rS   s   &r   rT   CT_Style.delete   rV   r   c                >    V P                   pVf   R# VP                  # )z5Value of `w:locked/@w:val` or |False| if not present.F)r]   rv   )r(   r]   s   & r   
locked_valCT_Style.locked_val   s     >zzr   c                	t    V P                  4        \        V4      R J d   V P                  4       pWn        R# R# TN)_remove_lockedr6   _add_lockedrv   )r(   r*   r]   s   && r   r   r      s2    ;$%%'FJ r   c                >    V P                   pVf   R# VP                  # )z5Value of ``<w:name>`` child or |None| if not present.N)r   rv   )r(   r   s   & r   name_valCT_Style.name_val   s     yy<xxr   c                	^    V P                  4        Ve   V P                  4       pWn        R # R # rz   )_remove_name	_add_namerv   )r(   r*   r   s   && r   r   r      s*    >>#DH r   c                |    V P                   pVf   R# V P                  4       pVP                  VP                  4      # )zSibling CT_Style element identified by the value of `w:name/@w:val` or |None|
if no value is present or no style with that style id is found.N)nextrQ   r   rv   )r(   r   r   s   &  r   
next_styleCT_Style.next_style   s6     yy<!))r   c                >    V P                   pVf   R# VP                  # )z6Value of `w:qFormat/@w:val` or |False| if not present.F)r^   rv   )r(   r^   s   & r   qFormat_valCT_Style.qFormat_val   s     ,,?{{r   c                	l    V P                  4        \        V4      '       d   V P                  4        R # R # rz   )_remove_qFormatr6   _add_qFormatr}   s   &&r   r   r      s(    ;; r   c                >    V P                   pVf   R# VP                  # )z<Value of ``<w:semiHidden>`` child or |False| if not present.F)r_   rv   )r(   r_   s   & r   semiHidden_valCT_Style.semiHidden_val   s      __
~~r   c                	t    V P                  4        \        V4      R J d   V P                  4       pWn        R# R# r   )_remove_semiHiddenr6   _add_semiHiddenrv   )r(   r*   r_   s   && r   r   r      s2    !;$--/J"N r   c                >    V P                   pVf   R# VP                  # )z;Value of ``<w:uiPriority>`` child or |None| if not present.N)r`   rv   )r(   r`   s   & r   uiPriority_valCT_Style.uiPriority_val   s      __
~~r   c                	^    V P                  4        Ve   V P                  4       pWn        R # R # rz   )_remove_uiPriority_add_uiPriorityrv   )r(   r*   r`   s   && r   r   r      s,    !--/J"N r   c                >    V P                   pVf   R# VP                  # )z=Value of `w:unhideWhenUsed/@w:val` or |False| if not present.F)ra   rv   )r(   ra   s   & r   unhideWhenUsed_valCT_Style.unhideWhenUsed_val   s$     ,,!!!!r   c                	t    V P                  4        \        V4      R J d   V P                  4       pWn        R# R# r   )_remove_unhideWhenUsedr6   _add_unhideWhenUsedrv   )r(   r*   ra   s   && r   r   r     s3    ##%;$!557N!& r   r9   N)rJ   z	w:aliasesrd   re   zw:linkzw:autoRedefinezw:hiddenrM   rL   rN   rK   rI   z
w:personalzw:personalComposezw:personalReplyzw:rsidrf   rg   zw:tblPrzw:trPrzw:tcPrzw:tblStylePr)'r:   r;   r<   r=   r>   _tag_seqr   r   ru   r   r`   r_   ra   r^   r]   pPrrPrr   r   rr   __annotations__r   rs   r   defaultcustomStylepropertyrw   setterr   rT   r   r   r   r   r   r   r   rF   r9   r   r   rc   rc   \   sf   CH0 X(2,7D=GX(2,7D>hrlCJ>hrlCJ1hsmLN>Gzhsm<F
G
6C
G
6C!2-"D
  ,YGZ   X6G#OX>K  2 2 
 
&       __  * *      
   # #   # # " " ' 'r   rc   c                      ] tR tRtRtRt]! R]R,          R7      t]! RRR7      t	AR t
R tR	 R
 ltR R ltR tRtR# )	CT_Stylesi  zK``<w:styles>`` element, the root element of a styles part, i.e. styles.xml.w:latentStylesw:style:   NNr"   c                    V P                  4       pW$n        V'       d   RMRVn        \        V4      Vn        Wn        V# )zReturn a newly added `w:style` element having `name` and `style_type`.

`w:style/@customStyle` is set based on the value of `builtin`.
NT)	add_stylerr   r   r   rs   r   )r(   r   
style_typebuiltinstyles   &&&& r   add_style_of_typeCT_Styles.add_style_of_type  s7    
  
$+D)$/r   c                    V P                  4        Uu. uF+  q"P                  V8X  g   K  VP                  '       g   K)  VNK-  	  ppV'       g   R# VR,          # u upi )zEReturn `w:style[@w:type="*{style_type}*][-1]` or |None| if not found.N)_iter_stylesrr   r   )r(   r   sdefault_styles_for_types   &&  r   default_forCT_Styles.default_for$  sU     ((*#
*!ff
.BAqyyAA* 	  #
 '&r**#
s   AAAc                    V ^8  d   QhRRRR/# )r   rs   strreturnCT_Style | Noner9   )formats   "r   __annotate__CT_Styles.__annotate__.  s     3 3 3 3r   c                V    RV R2p\        \        V P                  V4      4      R4      # )zB`w:style` child where @styleId = `styleId`.

|None| if not found.
zw:style[@w:styleId="z"]Nr   iterr/   )r(   rs   r/   s   && r   r   CT_Styles.get_by_id.  s-    
 'wir2DE*+T22r   c                    V ^8  d   QhRRRR/# )r   r   r   r   r   r9   )r   s   "r   r   r   6  s     3 3 3 3r   c                \    RV,          p\        \        V P                  V4      4      R4      # )zT`w:style` child with `w:name` grandchild having value `name`.

|None| if not found.
zw:style[w:name/@w:val="%s"]Nr   )r(   r   r/   s   && r   r1   CT_Styles.get_by_name6  s)    
 .4DE*+T22r   c                2    R V P                  R4       4       # )z@Generate each of the `w:style` child elements in document order.c              3  $   "   T F  qx  K  	  R # 5irz   r9   ).0r   s   & r   	<genexpr>)CT_Styles._iter_styles.<locals>.<genexpr>@  s     9#8%#8s   r   r.   rS   s   &r   r   CT_Styles._iter_styles>  s    94::i#899r   r9   N)zw:docDefaultsr   r   )r:   r;   r<   r=   r>   r   r   latentStylesr
   r   r   r   r   r1   r   rF   r9   r   r   r   r     sC    U=H-(2,GLyR0E
+33:r   r   N)r>   
__future__r   docx.enum.styler   docx.oxml.simpletypesr   r   r   docx.oxml.xmlchemyr   r   r	   r
   r   r   r!   rH   rc   r   r9   r   r   <module>r      sW    8 " ) G G '".o .D(o (2q' q'h0: 0:r   