;i+ZdZddlmZddlmZGddeZGddeZdS) zLatent style-related objects.) ElementProxy) BabelFishcneZdZdZdZdZdZdZedZ e j dZ edZ e j d Z ed Z e j d Z ed Z e j d Z edZej dZedZej dZdS) LatentStyleszProvides access to the default behaviors for latent styles in this document and to the collection of |_LatentStyle| objects that define overrides of those defaults for a particular named latent style.ctj|}|j|}|t d|zt |S)z:Enables dictionary-style access to a latent style by name.Nzno latent style with name '%s')r ui2internal_element get_by_nameKeyError _LatentStyle)selfkey style_name lsdExceptions FC:\PYTHON\MyICR_Workspace\venv\Lib\site-packages\docx/styles/latent.py __getitem__zLatentStyles.__getitem__ sO*3// }00<<  ;cABB BL)))c.d|jjDS)Nc34K|]}t|VdSN)r ).0lss r z(LatentStyles.__iter__..s*JJR R  JJJJJJr)r lsdException_lstr s r__iter__zLatentStyles.__iter__sJJ4=+IJJJJrc4t|jjSr)lenr rrs r__len__zLatentStyles.__len__s4=1222rc|j}tj||_t |S)zReturn a newly added |_LatentStyle| object to override the inherited defaults defined in this latent styles object for the built-in style having `name`.)r add_lsdExceptionrrnamer )r r"rs radd_latent_stylezLatentStyles.add_latent_styles8}5577 %1$77 L)))rc|jjS)zInteger between 0 and 99 inclusive specifying the default sort order for latent styles in style lists and the style gallery. |None| if no value is assigned, which causes Word to use the default value 99. r defUIPriorityrs rdefault_priorityzLatentStyles.default_priority!s}**rc||j_dSrr%r values rr'zLatentStyles.default_priority*s&+ ###rc6|jdS)zBoolean specifying whether the default behavior for latent styles is to be hidden. A hidden style does not appear in the recommended list or in the style gallery. defSemiHiddenr bool_proprs rdefault_to_hiddenzLatentStyles.default_to_hidden.s}&&777rc<|jd|dS)Nr,r set_bool_propr)s rr/zLatentStyles.default_to_hidden7s  ##OU;;;;;rc6|jdS)a_Boolean specifying whether the default behavior for latent styles is to be locked. A locked style does not appear in the styles panel or the style gallery and cannot be applied to document content. This behavior is only active when formatting protection is turned on for the document (via the Developer menu). defLockedStater-rs rdefault_to_lockedzLatentStyles.default_to_locked;s}&&'7888rc<|jd|dS)Nr4r1r)s rr5zLatentStyles.default_to_lockedFs! ##$4e<<<<`` element. semiHiddenr on_off_proprs rhiddenz_LatentStyle.hiddens}((666rc<|jd|dS)NrOr set_on_off_propr)s rrRz_LatentStyle.hiddens  %%lE:::::rc6|jdS)aETri-state value specifying whether this latent styles is locked. A locked style does not appear in the styles panel or the style gallery and cannot be applied to document content. This behavior is only active when formatting protection is turned on for the document (via the Developer menu). lockedrPrs rrWz_LatentStyle.lockeds}((222rc<|jd|dS)NrWrTr)s rrWz_LatentStyle.lockeds  %%h66666rc>tj|jjS)z9The name of the built-in style this exception applies to.)r internal2uir r"rs rr"z_LatentStyle.names$T]%7888rc|jjS)z:The integer sort key for this latent style in the Word UI.r uiPriorityrs rpriorityz_LatentStyle.prioritys}''rc||j_dSrr\r)s rr^z_LatentStyle.prioritys#(    rc6|jdS)aTri-state value specifying whether this latent style should appear in the Word styles gallery when not hidden. |None| indicates the effective value should be inherited from the default values in its parent |LatentStyles| object. qFormatrPrs r quick_stylez_LatentStyle.quick_styles}((333rc<|jd|dS)NrarTr)s rrbz_LatentStyle.quick_styles  %%i77777rc6|jdS)a,Tri-state value specifying whether this style should have its :attr:`hidden` attribute set |False| the next time the style is applied to content. |None| indicates the effective value should be inherited from the default specified by its parent |LatentStyles| object. unhideWhenUsedrPrs runhide_when_usedz_LatentStyle.unhide_when_useds}(()9:::rc<|jd|dS)NrerTr)s rrfz_LatentStyle.unhide_when_useds! %%&6>>>>>rN) rDrErFrGrMrHrRrIrWr"r^rbrfrJrrr r nsd   77X7 ];;];33X3 ]77]799X9((X(_))_)44X4888;;X;?????rr N)rG docx.sharedr docx.stylesrrr rJrrrjs##$$$$$$!!!!!!d$d$d$d$d$<d$d$d$NX?X?X?X?X?<X?X?X?X?X?r