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 (const ::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 (const OUString &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::ScTableProtectionImpl ( SCSIZE  nOptSize)
explicit

Definition at line 200 of file tabprotection.cxx.

ScTableProtectionImpl::ScTableProtectionImpl ( const ScTableProtectionImpl r)
explicit

Definition at line 209 of file tabprotection.cxx.

Member Function Documentation

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

Definition at line 141 of file tabprotection.cxx.

References maEnhancedProtection.

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

Definition at line 313 of file tabprotection.cxx.

References maPasswordHash.

Sequence< sal_Int8 > ScTableProtectionImpl::hashPassword ( const OUString &  aPassText,
ScPasswordHash  eHash 
)
static
Sequence< sal_Int8 > ScTableProtectionImpl::hashPassword ( const Sequence< sal_Int8 > &  rPassHash,
ScPasswordHash  eHash 
)
static
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
bool ScTableProtectionImpl::isOptionEnabled ( SCSIZE  nOptId) const

Definition at line 404 of file tabprotection.cxx.

References maOptions.

bool ScTableProtectionImpl::isPasswordEmpty ( ) const
inline

Definition at line 124 of file tabprotection.cxx.

References mbEmptyPass.

bool ScTableProtectionImpl::isProtected ( ) const
inline

Definition at line 120 of file tabprotection.cxx.

References mbProtected.

bool ScTableProtectionImpl::isProtectedWithPass ( ) const
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 ( const ::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)
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 
)
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 maEnhancedProtection.

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

Member Data Documentation

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

Definition at line 149 of file tabprotection.cxx.

Referenced by isOptionEnabled(), and setOption().

css::uno::Sequence<sal_Int8> ScTableProtectionImpl::maPassHash
private
OUString ScTableProtectionImpl::maPassText
private
ScOoxPasswordHash ScTableProtectionImpl::maPasswordHash
private
bool ScTableProtectionImpl::mbEmptyPass
private
bool ScTableProtectionImpl::mbProtected
private

Definition at line 151 of file tabprotection.cxx.

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

ScPasswordHash ScTableProtectionImpl::meHash1
private

Definition at line 152 of file tabprotection.cxx.

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

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: