LibreOffice Module sc (master) 1
|
Functions | |
bool | needsPassHashRegen (const ScDocument &rDoc, ScPasswordHash eHash1, ScPasswordHash eHash2=PASSHASH_UNSPECIFIED) |
Check for the compatibility of all password hashes. More... | |
OUString | getHashURI (ScPasswordHash eHash) |
ScPasswordHash | getHashTypeFromURI (std::u16string_view rURI) |
ScPasswordHash ScPassHashHelper::getHashTypeFromURI | ( | std::u16string_view | rURI | ) |
Definition at line 82 of file tabprotection.cxx.
References PASSHASH_SHA1, PASSHASH_SHA256, PASSHASH_UNSPECIFIED, PASSHASH_XL, URI_SHA1, URI_SHA256_ODF12, URI_SHA256_W3C, and URI_XLS_LEGACY.
Referenced by ScXMLBodyContext::ScXMLBodyContext(), and ScXMLTableContext::ScXMLTableContext().
OUString ScPassHashHelper::getHashURI | ( | ScPasswordHash | eHash | ) |
Definition at line 65 of file tabprotection.cxx.
References PASSHASH_SHA1, PASSHASH_SHA256, PASSHASH_UNSPECIFIED, PASSHASH_XL, URI_SHA1, URI_SHA256_ODF12, and URI_XLS_LEGACY.
Referenced by ScXMLExport::SetBodyAttributes(), and ScXMLExport::WriteTable().
bool ScPassHashHelper::needsPassHashRegen | ( | const ScDocument & | rDoc, |
ScPasswordHash | eHash1, | ||
ScPasswordHash | eHash2 = PASSHASH_UNSPECIFIED |
||
) |
Check for the compatibility of all password hashes.
If there is at least one hash that needs to be regenerated, it returns true. If all hash values are compatible with the specified hash type, then it returns false.
Definition at line 41 of file tabprotection.cxx.
References ScDocument::GetDocProtection(), ScDocument::GetTableCount(), ScDocument::GetTabProtection(), i, ScDocument::IsDocProtected(), and p.
Referenced by ScDocShell::ConvertTo(), and ScDocShell::SaveAs().