diff options
author | August Sodora <augsod@gmail.com> | 2011-12-17 00:02:24 -0500 |
---|---|---|
committer | August Sodora <augsod@gmail.com> | 2011-12-19 14:36:11 -0500 |
commit | 4327d79148af677629fceb1e0e7ddf99f9540d22 (patch) | |
tree | 8d7a3e6093c109fc558ea5890efa9b85f75bd006 /unotools/source/config | |
parent | db8ff2610aea96597f1a09ec81ae09a7c832d158 (diff) |
Remove unused code
Diffstat (limited to 'unotools/source/config')
-rw-r--r-- | unotools/source/config/extendedsecurityoptions.cxx | 113 |
1 files changed, 0 insertions, 113 deletions
diff --git a/unotools/source/config/extendedsecurityoptions.cxx b/unotools/source/config/extendedsecurityoptions.cxx index d4ee8ff77597..13cec843e2b6 100644 --- a/unotools/source/config/extendedsecurityoptions.cxx +++ b/unotools/source/config/extendedsecurityoptions.cxx @@ -26,11 +26,6 @@ * ************************************************************************/ - -//_________________________________________________________________________________________________________________ -// includes -//_________________________________________________________________________________________________________________ - #include <unotools/extendedsecurityoptions.hxx> #include <unotools/configmgr.hxx> #include <unotools/configitem.hxx> @@ -48,19 +43,11 @@ #include <rtl/logfile.hxx> #include "itemholder1.hxx" -//_________________________________________________________________________________________________________________ -// namespaces -//_________________________________________________________________________________________________________________ - using namespace ::utl ; using namespace ::rtl ; using namespace ::osl ; using namespace ::com::sun::star::uno ; -//_________________________________________________________________________________________________________________ -// const -//_________________________________________________________________________________________________________________ - #define ROOTNODE_SECURITY OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Security")) #define SECURE_EXTENSIONS_SET OUString(RTL_CONSTASCII_USTRINGPARAM("SecureExtensions")) @@ -72,10 +59,6 @@ using namespace ::com::sun::star::uno ; #define PROPERTYCOUNT 1 -//_________________________________________________________________________________________________________________ -// private declarations! -//_________________________________________________________________________________________________________________ - struct OUStringHashCode { size_t operator()( const ::rtl::OUString& sString ) const @@ -98,23 +81,10 @@ class ExtensionHashMap : public ::boost::unordered_map< ::rtl::OUString, class SvtExtendedSecurityOptions_Impl : public ConfigItem { - //------------------------------------------------------------------------------------------------------------- - // public methods - //------------------------------------------------------------------------------------------------------------- - public: - - //--------------------------------------------------------------------------------------------------------- - // constructor / destructor - //--------------------------------------------------------------------------------------------------------- - SvtExtendedSecurityOptions_Impl(); ~SvtExtendedSecurityOptions_Impl(); - //--------------------------------------------------------------------------------------------------------- - // overloaded methods of baseclass - //--------------------------------------------------------------------------------------------------------- - /*-****************************************************************************************************//** @short called for notify of configmanager @descr These method is called from the ConfigManager before application ends or from the @@ -146,33 +116,7 @@ class SvtExtendedSecurityOptions_Impl : public ConfigItem virtual void Commit(); - //--------------------------------------------------------------------------------------------------------- - // public interface - //--------------------------------------------------------------------------------------------------------- - - /*-****************************************************************************************************//** - @short Access method to check for security problems - @descr Different methods to check for security related problems. - - @seealso - - - @param - - @return - - - @onerror - - *//*-*****************************************************************************************************/ - - sal_Bool IsSecureHyperlink( const rtl::OUString& aURL ) const; - Sequence< rtl::OUString > GetSecureExtensionList() const; - SvtExtendedSecurityOptions::OpenHyperlinkMode GetOpenHyperlinkMode(); - void SetOpenHyperlinkMode( SvtExtendedSecurityOptions::OpenHyperlinkMode aMode ); - sal_Bool IsOpenHyperlinkModeReadOnly() const; - - //------------------------------------------------------------------------------------------------------------- - // private methods - //------------------------------------------------------------------------------------------------------------- - private: /*-****************************************************************************************************//** @@ -204,11 +148,6 @@ class SvtExtendedSecurityOptions_Impl : public ConfigItem *//*-*****************************************************************************************************/ void FillExtensionHashMap( ExtensionHashMap& aHashMap ); - //------------------------------------------------------------------------------------------------------------- - // private member - //------------------------------------------------------------------------------------------------------------- - - private: OUString m_aSecureExtensionsSetName; OUString m_aExtensionPropName; @@ -217,10 +156,6 @@ class SvtExtendedSecurityOptions_Impl : public ConfigItem ExtensionHashMap m_aExtensionHashMap; }; -//_________________________________________________________________________________________________________________ -// definitions -//_________________________________________________________________________________________________________________ - //***************************************************************************************************************** // constructor //***************************************************************************************************************** @@ -317,59 +252,11 @@ void SvtExtendedSecurityOptions_Impl::Commit() //***************************************************************************************************************** // public method //***************************************************************************************************************** -sal_Bool SvtExtendedSecurityOptions_Impl::IsSecureHyperlink( const OUString& aURL ) const -{ - INetURLObject aURLObject( aURL ); - - String aExtension = aURLObject.getExtension(); - aExtension.ToLowerAscii(); - - ExtensionHashMap::const_iterator pIter = m_aExtensionHashMap.find( aExtension ); - if ( pIter != m_aExtensionHashMap.end() ) - return sal_True; - else - return sal_False; -} - -//***************************************************************************************************************** -// public method -//***************************************************************************************************************** -Sequence< OUString > SvtExtendedSecurityOptions_Impl::GetSecureExtensionList() const -{ - Sequence< OUString > aResult( m_aExtensionHashMap.size() ); - - sal_Int32 nIndex = 0; - for ( ExtensionHashMap::const_iterator pIter = m_aExtensionHashMap.begin(); - pIter != m_aExtensionHashMap.end(); ++pIter ) - { - aResult[nIndex++] = pIter->first; - } - - return aResult; -} - -//***************************************************************************************************************** -// public method -//***************************************************************************************************************** SvtExtendedSecurityOptions::OpenHyperlinkMode SvtExtendedSecurityOptions_Impl::GetOpenHyperlinkMode() { return m_eOpenHyperlinkMode; } -sal_Bool SvtExtendedSecurityOptions_Impl::IsOpenHyperlinkModeReadOnly() const -{ - return m_bROOpenHyperlinkMode; -} - -//***************************************************************************************************************** -// public method -//***************************************************************************************************************** -void SvtExtendedSecurityOptions_Impl::SetOpenHyperlinkMode( SvtExtendedSecurityOptions::OpenHyperlinkMode eNewMode ) -{ - m_eOpenHyperlinkMode = eNewMode; - SetModified(); -} - //***************************************************************************************************************** // private method //***************************************************************************************************************** |