diff options
-rw-r--r-- | ucb/source/ucp/webdav-neon/webdavcontent.cxx | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/ucb/source/ucp/webdav-neon/webdavcontent.cxx b/ucb/source/ucp/webdav-neon/webdavcontent.cxx index 96b86f720d2c..96a737130006 100644 --- a/ucb/source/ucp/webdav-neon/webdavcontent.cxx +++ b/ucb/source/ucp/webdav-neon/webdavcontent.cxx @@ -285,34 +285,6 @@ Content::~Content() } -void Content::initOptsCacheLifeTime() -{ - // see description in - // officecfg/registry/schema/org/openoffice/Inet.xcs - // for use of these filed values. - sal_uInt32 nAtime; - nAtime = officecfg::Inet::Settings::OptsCacheLifeImplWeb::get( m_xContext ); - m_nOptsCacheLifeImplWeb = std::max( sal_uInt32( 0 ), - std::min( nAtime, sal_uInt32( 3600 ) ) ); - - nAtime = officecfg::Inet::Settings::OptsCacheLifeDAV::get( m_xContext ); - m_nOptsCacheLifeDAV = std::max( sal_uInt32( 0 ), - std::min( nAtime, sal_uInt32( 3600 ) ) ); - - nAtime = officecfg::Inet::Settings::OptsCacheLifeDAVLocked::get( m_xContext ); - m_nOptsCacheLifeDAVLocked = std::max( sal_uInt32( 0 ), - std::min( nAtime, sal_uInt32( 3600 ) ) ); - - nAtime = officecfg::Inet::Settings::OptsCacheLifeNotImpl::get( m_xContext ); - m_nOptsCacheLifeNotImpl = std::max( sal_uInt32( 0 ), - std::min( nAtime, sal_uInt32( 43200 ) ) ); - - nAtime = officecfg::Inet::Settings::OptsCacheLifeNotFound::get( m_xContext ); - m_nOptsCacheLifeNotFound = std::max( sal_uInt32( 0 ), - std::min( nAtime, sal_uInt32( 30 ) ) ); -} - - // XInterface methods. @@ -4032,6 +4004,34 @@ Content::ResourceType Content::getResourceType( } +void Content::initOptsCacheLifeTime() +{ + // see description in + // officecfg/registry/schema/org/openoffice/Inet.xcs + // for use of these filed values. + sal_uInt32 nAtime; + nAtime = officecfg::Inet::Settings::OptsCacheLifeImplWeb::get( m_xContext ); + m_nOptsCacheLifeImplWeb = std::max( sal_uInt32( 0 ), + std::min( nAtime, sal_uInt32( 3600 ) ) ); + + nAtime = officecfg::Inet::Settings::OptsCacheLifeDAV::get( m_xContext ); + m_nOptsCacheLifeDAV = std::max( sal_uInt32( 0 ), + std::min( nAtime, sal_uInt32( 3600 ) ) ); + + nAtime = officecfg::Inet::Settings::OptsCacheLifeDAVLocked::get( m_xContext ); + m_nOptsCacheLifeDAVLocked = std::max( sal_uInt32( 0 ), + std::min( nAtime, sal_uInt32( 3600 ) ) ); + + nAtime = officecfg::Inet::Settings::OptsCacheLifeNotImpl::get( m_xContext ); + m_nOptsCacheLifeNotImpl = std::max( sal_uInt32( 0 ), + std::min( nAtime, sal_uInt32( 43200 ) ) ); + + nAtime = officecfg::Inet::Settings::OptsCacheLifeNotFound::get( m_xContext ); + m_nOptsCacheLifeNotFound = std::max( sal_uInt32( 0 ), + std::min( nAtime, sal_uInt32( 30 ) ) ); +} + + void Content::getResourceOptions( const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv, DAVOptions& rDAVOptions, |