LibreOffice Module sc (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
ScTableProtectionImpl Class Reference
Collaboration diagram for ScTableProtectionImpl:
[legend]

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_Int8getPasswordHash (ScPasswordHash eHash, ScPasswordHash eHash2) const
 
const ScOoxPasswordHashgetPasswordHash () 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_Int8hashPassword (std::u16string_view aPassText, ScPasswordHash eHash)
 
static Sequence< sal_Int8hashPassword (const Sequence< sal_Int8 > &rPassHash, ScPasswordHash eHash)
 

Private Attributes

OUString maPassText
 
css::uno::Sequence< sal_Int8maPassHash
 
::std::vector< bool > maOptions
 
bool mbEmptyPass
 
bool mbProtected
 
ScPasswordHash meHash1
 
ScPasswordHash meHash2
 
ScOoxPasswordHash maPasswordHash
 
::std::vector< ScEnhancedProtectionmaEnhancedProtection
 

Detailed Description

Definition at line 111 of file tabprotection.cxx.

Constructor & Destructor Documentation

◆ ScTableProtectionImpl() [1/2]

ScTableProtectionImpl::ScTableProtectionImpl ( SCSIZE  nOptSize)
explicit

Definition at line 200 of file tabprotection.cxx.

◆ ScTableProtectionImpl() [2/2]

ScTableProtectionImpl::ScTableProtectionImpl ( const ScTableProtectionImpl r)
explicit

Definition at line 209 of file tabprotection.cxx.

Member Function Documentation

◆ getEnhancedProtection()

const ::std::vector< ScEnhancedProtection > & ScTableProtectionImpl::getEnhancedProtection ( ) const
inline

Definition at line 141 of file tabprotection.cxx.

References maEnhancedProtection.

◆ getPasswordHash() [1/2]

const ScOoxPasswordHash & ScTableProtectionImpl::getPasswordHash ( ) const

Definition at line 313 of file tabprotection.cxx.

References maPasswordHash.

◆ getPasswordHash() [2/2]

Sequence< sal_Int8 > ScTableProtectionImpl::getPasswordHash ( ScPasswordHash  eHash,
ScPasswordHash  eHash2 
) const

◆ hashPassword() [1/2]

Sequence< sal_Int8 > ScTableProtectionImpl::hashPassword ( const Sequence< sal_Int8 > &  rPassHash,
ScPasswordHash  eHash 
)
static

◆ hashPassword() [2/2]

Sequence< sal_Int8 > ScTableProtectionImpl::hashPassword ( std::u16string_view  aPassText,
ScPasswordHash  eHash 
)
static

◆ hasPasswordHash()

bool ScTableProtectionImpl::hasPasswordHash ( ScPasswordHash  eHash,
ScPasswordHash  eHash2 
) const

Definition at line 253 of file tabprotection.cxx.

References maPassText, mbEmptyPass, meHash1, meHash2, and PASSHASH_UNSPECIFIED.

◆ isBlockEditable()

bool ScTableProtectionImpl::isBlockEditable ( const ScRange rRange) const

◆ isOptionEnabled()

bool ScTableProtectionImpl::isOptionEnabled ( SCSIZE  nOptId) const

Definition at line 404 of file tabprotection.cxx.

References maOptions.

◆ isPasswordEmpty()

bool ScTableProtectionImpl::isPasswordEmpty ( ) const
inline

Definition at line 124 of file tabprotection.cxx.

References mbEmptyPass.

◆ isProtected()

bool ScTableProtectionImpl::isProtected ( ) const
inline

Definition at line 120 of file tabprotection.cxx.

References mbProtected.

◆ isProtectedWithPass()

bool ScTableProtectionImpl::isProtectedWithPass ( ) const

◆ isSelectionEditable()

bool ScTableProtectionImpl::isSelectionEditable ( const ScRangeList rRangeList) const

Definition at line 513 of file tabprotection.cxx.

References ScRangeList::empty(), i, isBlockEditable(), and ScRangeList::size().

◆ setEnhancedProtection()

void ScTableProtectionImpl::setEnhancedProtection ( ::std::vector< ScEnhancedProtection > &&  rProt)

Definition at line 426 of file tabprotection.cxx.

References maEnhancedProtection.

◆ setOption()

void ScTableProtectionImpl::setOption ( SCSIZE  nOptId,
bool  bEnabled 
)

Definition at line 415 of file tabprotection.cxx.

References maOptions.

◆ setPassword()

void ScTableProtectionImpl::setPassword ( const OUString &  aPassText)

◆ setPasswordHash() [1/2]

void ScTableProtectionImpl::setPasswordHash ( const css::uno::Sequence< sal_Int8 > &  aPassword,
ScPasswordHash  eHash,
ScPasswordHash  eHash2 
)

Referenced by setPasswordHash().

◆ setPasswordHash() [2/2]

void ScTableProtectionImpl::setPasswordHash ( const OUString &  rAlgorithmName,
const OUString &  rHashValue,
const OUString &  rSaltValue,
sal_uInt32  nSpinCount 
)

◆ setProtected()

void ScTableProtectionImpl::setProtected ( bool  bProtected)

Definition at line 230 of file tabprotection.cxx.

References mbProtected.

◆ updateReference()

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.

◆ verifyPassword()

bool ScTableProtectionImpl::verifyPassword ( const OUString &  aPassText) const

Member Data Documentation

◆ maEnhancedProtection

::std::vector< ScEnhancedProtection > ScTableProtectionImpl::maEnhancedProtection
private

◆ maOptions

::std::vector<bool> ScTableProtectionImpl::maOptions
private

Definition at line 149 of file tabprotection.cxx.

Referenced by isOptionEnabled(), and setOption().

◆ maPassHash

css::uno::Sequence<sal_Int8> ScTableProtectionImpl::maPassHash
private

◆ maPassText

OUString ScTableProtectionImpl::maPassText
private

◆ maPasswordHash

ScOoxPasswordHash ScTableProtectionImpl::maPasswordHash
private

◆ mbEmptyPass

bool ScTableProtectionImpl::mbEmptyPass
private

◆ mbProtected

bool ScTableProtectionImpl::mbProtected
private

Definition at line 151 of file tabprotection.cxx.

Referenced by isProtected(), isProtectedWithPass(), and setProtected().

◆ meHash1

ScPasswordHash ScTableProtectionImpl::meHash1
private

Definition at line 152 of file tabprotection.cxx.

Referenced by getPasswordHash(), hasPasswordHash(), and verifyPassword().

◆ meHash2

ScPasswordHash ScTableProtectionImpl::meHash2
private

Definition at line 153 of file tabprotection.cxx.

Referenced by getPasswordHash(), hasPasswordHash(), and verifyPassword().


The documentation for this class was generated from the following file: