|
LibreOffice Module sc (master) 1
|
Public Member Functions | |
| ScTableProtectionImpl (SCSIZE nOptSize) | |
| ScTableProtectionImpl (const ScTableProtectionImpl &r) | |
| bool | isProtected () const |
| bool | isProtectedWithPass () const |
| void | setProtected (bool bProtected) |
| bool | isPasswordEmpty () const |
| bool | hasPasswordHash (ScPasswordHash eHash, ScPasswordHash eHash2) const |
| void | setPassword (const OUString &aPassText) |
| css::uno::Sequence< sal_Int8 > | getPasswordHash (ScPasswordHash eHash, ScPasswordHash eHash2) const |
| const ScOoxPasswordHash & | getPasswordHash () const |
| void | setPasswordHash (const css::uno::Sequence< sal_Int8 > &aPassword, ScPasswordHash eHash, ScPasswordHash eHash2) |
| void | setPasswordHash (const OUString &rAlgorithmName, const OUString &rHashValue, const OUString &rSaltValue, sal_uInt32 nSpinCount) |
| bool | verifyPassword (const OUString &aPassText) const |
| bool | isOptionEnabled (SCSIZE nOptId) const |
| void | setOption (SCSIZE nOptId, bool bEnabled) |
| void | setEnhancedProtection (::std::vector< ScEnhancedProtection > &&rProt) |
| const ::std::vector< ScEnhancedProtection > & | getEnhancedProtection () const |
| bool | updateReference (UpdateRefMode, const ScDocument &, const ScRange &rWhere, SCCOL nDx, SCROW nDy, SCTAB nDz) |
| bool | isBlockEditable (const ScRange &rRange) const |
| bool | isSelectionEditable (const ScRangeList &rRangeList) const |
Static Public Member Functions | |
| static Sequence< sal_Int8 > | hashPassword (std::u16string_view aPassText, ScPasswordHash eHash) |
| static Sequence< sal_Int8 > | hashPassword (const Sequence< sal_Int8 > &rPassHash, ScPasswordHash eHash) |
Private Attributes | |
| OUString | maPassText |
| css::uno::Sequence< sal_Int8 > | maPassHash |
| ::std::vector< bool > | maOptions |
| bool | mbEmptyPass |
| bool | mbProtected |
| ScPasswordHash | meHash1 |
| ScPasswordHash | meHash2 |
| ScOoxPasswordHash | maPasswordHash |
| ::std::vector< ScEnhancedProtection > | maEnhancedProtection |
Definition at line 111 of file tabprotection.cxx.
|
explicit |
Definition at line 200 of file tabprotection.cxx.
|
explicit |
Definition at line 209 of file tabprotection.cxx.
|
inline |
Definition at line 141 of file tabprotection.cxx.
References maEnhancedProtection.
| const ScOoxPasswordHash & ScTableProtectionImpl::getPasswordHash | ( | ) | const |
Definition at line 313 of file tabprotection.cxx.
References maPasswordHash.
| Sequence< sal_Int8 > ScTableProtectionImpl::getPasswordHash | ( | ScPasswordHash | eHash, |
| ScPasswordHash | eHash2 | ||
| ) | const |
Definition at line 273 of file tabprotection.cxx.
References hashPassword(), maPassHash, maPassText, mbEmptyPass, meHash1, meHash2, and PASSHASH_UNSPECIFIED.
|
static |
Definition at line 181 of file tabprotection.cxx.
References SvPasswordHelper::GetHashPassword(), PASSHASH_SHA1, and PASSHASH_UNSPECIFIED.
|
static |
Definition at line 158 of file tabprotection.cxx.
References SvPasswordHelper::GetHashPassword(), SvPasswordHelper::GetHashPasswordSHA1UTF8(), SvPasswordHelper::GetHashPasswordSHA256(), comphelper::DocPasswordHelper::GetXLHashAsSequence(), PASSHASH_SHA1, PASSHASH_SHA1_UTF8, PASSHASH_SHA256, and PASSHASH_XL.
Referenced by getPasswordHash(), and verifyPassword().
| bool ScTableProtectionImpl::hasPasswordHash | ( | ScPasswordHash | eHash, |
| ScPasswordHash | eHash2 | ||
| ) | const |
Definition at line 253 of file tabprotection.cxx.
References maPassText, mbEmptyPass, meHash1, meHash2, and PASSHASH_UNSPECIFIED.
| bool ScTableProtectionImpl::isBlockEditable | ( | const ScRange & | rRange | ) | const |
Definition at line 443 of file tabprotection.cxx.
References ScRange::aEnd, ScRange::aStart, ScRangeList::GetIntersectedRange(), i, maEnhancedProtection, ScRangeList::push_back(), and ScRangeList::size().
Referenced by isSelectionEditable().
| bool ScTableProtectionImpl::isOptionEnabled | ( | SCSIZE | nOptId | ) | const |
Definition at line 404 of file tabprotection.cxx.
References maOptions.
|
inline |
Definition at line 124 of file tabprotection.cxx.
References mbEmptyPass.
|
inline |
Definition at line 120 of file tabprotection.cxx.
References mbProtected.
| bool ScTableProtectionImpl::isProtectedWithPass | ( | ) | const |
Definition at line 222 of file tabprotection.cxx.
References ScOoxPasswordHash::hasPassword(), maPassHash, maPassText, maPasswordHash, and mbProtected.
| bool ScTableProtectionImpl::isSelectionEditable | ( | const ScRangeList & | rRangeList | ) | const |
Definition at line 513 of file tabprotection.cxx.
References ScRangeList::empty(), i, isBlockEditable(), and ScRangeList::size().
| void ScTableProtectionImpl::setEnhancedProtection | ( | ::std::vector< ScEnhancedProtection > && | rProt | ) |
Definition at line 426 of file tabprotection.cxx.
References maEnhancedProtection.
| void ScTableProtectionImpl::setOption | ( | SCSIZE | nOptId, |
| bool | bEnabled | ||
| ) |
Definition at line 415 of file tabprotection.cxx.
References maOptions.
| void ScTableProtectionImpl::setPassword | ( | const OUString & | aPassText | ) |
Definition at line 237 of file tabprotection.cxx.
References ScOoxPasswordHash::clear(), maPassHash, maPassText, maPasswordHash, and mbEmptyPass.
| void ScTableProtectionImpl::setPasswordHash | ( | const css::uno::Sequence< sal_Int8 > & | aPassword, |
| ScPasswordHash | eHash, | ||
| ScPasswordHash | eHash2 | ||
| ) |
Referenced by setPasswordHash().
| void ScTableProtectionImpl::setPasswordHash | ( | const OUString & | rAlgorithmName, |
| const OUString & | rHashValue, | ||
| const OUString & | rSaltValue, | ||
| sal_uInt32 | nSpinCount | ||
| ) |
Definition at line 334 of file tabprotection.cxx.
References ScOoxPasswordHash::maAlgorithmName, ScOoxPasswordHash::maHashValue, maPasswordHash, ScOoxPasswordHash::maSaltValue, mbEmptyPass, ScOoxPasswordHash::mnSpinCount, PASSHASH_UNSPECIFIED, and setPasswordHash().
| void ScTableProtectionImpl::setProtected | ( | bool | bProtected | ) |
Definition at line 230 of file tabprotection.cxx.
References mbProtected.
| bool ScTableProtectionImpl::updateReference | ( | UpdateRefMode | eMode, |
| const ScDocument & | rDoc, | ||
| const ScRange & | rWhere, | ||
| SCCOL | nDx, | ||
| SCROW | nDy, | ||
| SCTAB | nDz | ||
| ) |
Definition at line 431 of file tabprotection.cxx.
References eMode, and maEnhancedProtection.
| bool ScTableProtectionImpl::verifyPassword | ( | const OUString & | aPassText | ) | const |
Definition at line 357 of file tabprotection.cxx.
References hashPassword(), i, maPassHash, maPassText, maPasswordHash, mbEmptyPass, meHash1, meHash2, OUStringToOString(), PASSHASH_SHA1, PASSHASH_SHA1_UTF8, PASSHASH_UNSPECIFIED, and ScOoxPasswordHash::verifyPassword().
|
private |
Definition at line 155 of file tabprotection.cxx.
Referenced by getEnhancedProtection(), isBlockEditable(), setEnhancedProtection(), and updateReference().
|
private |
Definition at line 149 of file tabprotection.cxx.
Referenced by isOptionEnabled(), and setOption().
|
private |
Definition at line 148 of file tabprotection.cxx.
Referenced by getPasswordHash(), isProtectedWithPass(), setPassword(), and verifyPassword().
|
private |
Definition at line 147 of file tabprotection.cxx.
Referenced by getPasswordHash(), hasPasswordHash(), isProtectedWithPass(), setPassword(), and verifyPassword().
|
private |
Definition at line 154 of file tabprotection.cxx.
Referenced by getPasswordHash(), isProtectedWithPass(), setPassword(), setPasswordHash(), and verifyPassword().
|
private |
Definition at line 150 of file tabprotection.cxx.
Referenced by getPasswordHash(), hasPasswordHash(), isPasswordEmpty(), setPassword(), setPasswordHash(), and verifyPassword().
|
private |
Definition at line 151 of file tabprotection.cxx.
Referenced by isProtected(), isProtectedWithPass(), and setProtected().
|
private |
Definition at line 152 of file tabprotection.cxx.
Referenced by getPasswordHash(), hasPasswordHash(), and verifyPassword().
|
private |
Definition at line 153 of file tabprotection.cxx.
Referenced by getPasswordHash(), hasPasswordHash(), and verifyPassword().