LibreOffice Module sc (master) 1
Functions
ScPassHashHelper Namespace Reference

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)
 

Function Documentation

◆ getHashTypeFromURI()

ScPasswordHash ScPassHashHelper::getHashTypeFromURI ( std::u16string_view  rURI)

◆ getHashURI()

OUString ScPassHashHelper::getHashURI ( ScPasswordHash  eHash)

◆ needsPassHashRegen()

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().