"VfizddlmZmZmZmZddlmZddlmZddl m Z GddZ Gddee Z d S) )BoolStringAliasInteger) Serialisable) Base64Binary) hash_passwordcPeZdZdZddZedZejdZdS) _ProtectedNFc6|st|}||_dS)zSet a password on this sheet.N)r _password)selfvaluealready_hasheds Lc:\PYTHON\DbComparer\venv\Lib\site-packages\openpyxl/worksheet/protection.py set_passwordz_Protected.set_passwords" )!%((Ec|jS)z.Return the password value, regardless of hash.)rrs rpasswordz_Protected.passwords ~rc0||dS)z-Set a password directly, forcing a hash step.N)r)rrs rrz_Protected.passwords %     rr F)__name__ __module__ __qualname__rrpropertyrsetterrrr r seI X_!!_!!!rr ceZdZdZdZeZedZeZ eZ eZ eZ eZ eZeZeZeZeZeZeZeZeZeZedZedZedZedZdZ dd Z dfd Z!d Z"d Z#dZ$xZ%S)SheetProtectionz Information about protection of various aspects of a sheet. True values mean that protection for the object or action is active This is the **default** when protection is active, ie. users cannot do something sheetProtectionsheetT) allow_none)selectLockedCellsselectUnlockedCells algorithmNamer#objects insertRowsinsertHyperlinks autoFilter scenarios formatColumns deleteColumns insertColumns pivotTables deleteRows formatCells saltValue formatRowssort spinCountr hashValueFNc0||_||_||_||_||_||_||_||_| |_| |_ | |_ | |_ | |_ ||_ ||_||_|||_||_||_||_||_dSN)r#r(r,r2r-r4r/r)r*r.r1r%r&r5r+r0rr'r3r6r7)rr#r(r,r2r4r-r/r)r*r.r1r%r&r5r+r0rr'r3r6r7s r__init__zSheetProtection.__init__Ks   "&*$*$ 0*$!2#6  $&  $DM*"""rr ctt|||dSr9)superrenable)rrr __class__s rrzSheetProtection.set_passwordis. UN333 rcd|_dS)NTr#rs rr=zSheetProtection.enablens  rcd|_dS)NFr@rs rdisablezSheetProtection.disablers  rc|jSr9r@rs r__bool__zSheetProtection.__bool__vs zr)FFFTTTTTTTTFFTTTNNNNNr)&rrr__doc__tagnamerr#renabledr(r,r2r-r4r/r)r*r.r1r%r&r5r+r0rr3rr6rr'r7 __attrs__r:rr=rBrD __classcell__)r>s@rr!r!$s  G DFFEeGnnGdffGI$&&KDFFMJDFFMJtvvDFFMJ$&& 466DJ$&&K ---I4(((IFd+++M ---ICBFGKHMTX^b ####< rr!N) openpyxl.descriptorsrrrr!openpyxl.descriptors.serialisableropenpyxl.descriptors.excelropenpyxl.utils.protectionr r r!rrrrNs ;:::::433333!!!!!!!!(SSSSSlJSSSSSr