diff options
Diffstat (limited to 'basic/source/uno')
-rw-r--r-- | basic/source/uno/scriptcont.cxx | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/basic/source/uno/scriptcont.cxx b/basic/source/uno/scriptcont.cxx index 46620df77a3d..2142b03e76c5 100644 --- a/basic/source/uno/scriptcont.cxx +++ b/basic/source/uno/scriptcont.cxx @@ -98,35 +98,6 @@ void SfxScriptLibraryContainer::setLibraryPassword( const OUString& rLibraryName catch(const NoSuchElementException& ) {} } -OUString SfxScriptLibraryContainer::getLibraryPassword( const OUString& rLibraryName ) -{ - SfxLibrary* pImplLib = getImplLib( rLibraryName ); - OUString aPassword; - if( pImplLib->mbPasswordVerified ) - { - aPassword = pImplLib->maPassword; - } - return aPassword; -} - -void SfxScriptLibraryContainer::clearLibraryPassword( const OUString& rLibraryName ) -{ - try - { - SfxLibrary* pImplLib = getImplLib( rLibraryName ); - pImplLib->mbDoc50Password = false; - pImplLib->mbPasswordProtected = false; - pImplLib->maPassword.clear(); - } - catch(const NoSuchElementException& ) {} -} - -bool SfxScriptLibraryContainer::hasLibraryPassword( const OUString& rLibraryName ) -{ - SfxLibrary* pImplLib = getImplLib( rLibraryName ); - return pImplLib->mbPasswordProtected; -} - // Ctor for service SfxScriptLibraryContainer::SfxScriptLibraryContainer() :maScriptLanguage( "StarBasic" ) |