LibreOffice Module sc (master) 1
|
#include <tabprotection.hxx>
Public Types | |
enum | Option { STRUCTURE = 0 , WINDOWS , NONE } |
Public Member Functions | |
ScDocProtection () | |
ScDocProtection (const ScDocProtection &r) | |
virtual | ~ScDocProtection () override |
virtual bool | isProtected () const override |
virtual bool | isProtectedWithPass () const override |
virtual void | setProtected (bool bProtected) override |
virtual bool | isPasswordEmpty () const override |
virtual bool | hasPasswordHash (ScPasswordHash eHash, ScPasswordHash eHash2=PASSHASH_UNSPECIFIED) const override |
virtual void | setPassword (const OUString &aPassText) override |
virtual css::uno::Sequence< sal_Int8 > | getPasswordHash (ScPasswordHash eHash, ScPasswordHash eHash2=PASSHASH_UNSPECIFIED) const override |
virtual const ScOoxPasswordHash & | getPasswordHash () const override |
virtual void | setPasswordHash (const css::uno::Sequence< sal_Int8 > &aPassword, ScPasswordHash eHash, ScPasswordHash eHash2=PASSHASH_UNSPECIFIED) override |
virtual void | setPasswordHash (const OUString &rAlgorithmName, const OUString &rHashValue, const OUString &rSaltValue, sal_uInt32 nSpinCount) override |
virtual bool | verifyPassword (const OUString &aPassText) const override |
bool | isOptionEnabled (Option eOption) const |
void | setOption (Option eOption, bool bEnabled) |
Public Member Functions inherited from ScPassHashProtectable | |
virtual | ~ScPassHashProtectable ()=0 |
virtual bool | isProtected () const =0 |
virtual bool | isProtectedWithPass () const =0 |
virtual void | setProtected (bool bProtected)=0 |
virtual bool | isPasswordEmpty () const =0 |
virtual bool | hasPasswordHash (ScPasswordHash eHash, ScPasswordHash eHash2=PASSHASH_UNSPECIFIED) const =0 |
virtual void | setPassword (const OUString &aPassText)=0 |
virtual css::uno::Sequence< sal_Int8 > | getPasswordHash (ScPasswordHash eHash, ScPasswordHash eHas2=PASSHASH_UNSPECIFIED) const =0 |
virtual const ScOoxPasswordHash & | getPasswordHash () const =0 |
virtual void | setPasswordHash (const css::uno::Sequence< sal_Int8 > &aPassword, ScPasswordHash eHash, ScPasswordHash eHash2=PASSHASH_UNSPECIFIED)=0 |
virtual void | setPasswordHash (const OUString &rAlgorithmName, const OUString &rHashValue, const OUString &rSaltValue, sal_uInt32 nSpinCount)=0 |
virtual bool | verifyPassword (const OUString &aPassText) const =0 |
Private Attributes | |
std::unique_ptr< ScTableProtectionImpl > | mpImpl |
Definition at line 95 of file tabprotection.hxx.
Enumerator | |
---|---|
STRUCTURE | |
WINDOWS | |
NONE | last item - used to resize the vector |
Definition at line 98 of file tabprotection.hxx.
|
explicit |
Definition at line 526 of file tabprotection.cxx.
|
explicit |
Definition at line 531 of file tabprotection.cxx.
|
overridevirtual |
Definition at line 537 of file tabprotection.cxx.
|
overridevirtual |
Implements ScPassHashProtectable.
Definition at line 581 of file tabprotection.cxx.
References mpImpl.
|
overridevirtual |
Implements ScPassHashProtectable.
Definition at line 576 of file tabprotection.cxx.
References mpImpl.
Referenced by lcl_AddWorkbookProtection().
|
overridevirtual |
Implements ScPassHashProtectable.
Definition at line 566 of file tabprotection.cxx.
References mpImpl.
bool ScDocProtection::isOptionEnabled | ( | Option | eOption | ) | const |
Definition at line 603 of file tabprotection.cxx.
References mpImpl.
Referenced by XclExpRoot::IsDocumentEncrypted(), and lcl_AddWorkbookProtection().
|
overridevirtual |
Implements ScPassHashProtectable.
Definition at line 561 of file tabprotection.cxx.
References mpImpl.
|
overridevirtual |
Implements ScPassHashProtectable.
Definition at line 541 of file tabprotection.cxx.
References mpImpl.
Referenced by ScTabViewShell::Execute(), XclExpRoot::IsDocumentEncrypted(), lcl_AddWorkbookProtection(), ScDocFunc::ProtectDocument(), ScRetypePassDlg::SetDataFromDocument(), and ScDocFunc::Unprotect().
|
overridevirtual |
Implements ScPassHashProtectable.
Definition at line 546 of file tabprotection.cxx.
References mpImpl.
Referenced by ScTabViewShell::Execute().
void ScDocProtection::setOption | ( | Option | eOption, |
bool | bEnabled | ||
) |
Definition at line 608 of file tabprotection.cxx.
References mpImpl.
|
overridevirtual |
Implements ScPassHashProtectable.
Definition at line 571 of file tabprotection.cxx.
References mpImpl.
Referenced by ScDocFunc::Protect().
|
overridevirtual |
Implements ScPassHashProtectable.
Referenced by ScXMLBodyContext::endFastElement().
|
overridevirtual |
Implements ScPassHashProtectable.
Definition at line 592 of file tabprotection.cxx.
References mpImpl.
|
overridevirtual |
Implements ScPassHashProtectable.
Definition at line 551 of file tabprotection.cxx.
References mpImpl, and STRUCTURE.
Referenced by ScXMLBodyContext::endFastElement(), ScDocFunc::Protect(), and ScDocFunc::Unprotect().
|
overridevirtual |
Implements ScPassHashProtectable.
Definition at line 598 of file tabprotection.cxx.
References mpImpl.
Referenced by ScDocFunc::Unprotect().
|
private |
Definition at line 130 of file tabprotection.hxx.
Referenced by getPasswordHash(), hasPasswordHash(), isOptionEnabled(), isPasswordEmpty(), isProtected(), isProtectedWithPass(), setOption(), setPassword(), setPasswordHash(), setProtected(), and verifyPassword().