diff options
Diffstat (limited to 'ucb/source')
-rw-r--r-- | ucb/source/ucp/webdav/ContentProperties.cxx | 11 | ||||
-rw-r--r-- | ucb/source/ucp/webdav/ContentProperties.hxx | 3 |
2 files changed, 13 insertions, 1 deletions
diff --git a/ucb/source/ucp/webdav/ContentProperties.cxx b/ucb/source/ucp/webdav/ContentProperties.cxx index 0d5e0741465b..5069ef99ae75 100644 --- a/ucb/source/ucp/webdav/ContentProperties.cxx +++ b/ucb/source/ucp/webdav/ContentProperties.cxx @@ -591,6 +591,11 @@ CachableContentProperties::CachableContentProperties( addProperties( rProps ); } +CachableContentProperties::CachableContentProperties( + const DAVResource & rResource ) +{ + addProperties( rResource ); +} void CachableContentProperties::addProperties( const ContentProperties & rProps ) @@ -611,7 +616,6 @@ void CachableContentProperties::addProperties( } } - void CachableContentProperties::addProperties( const std::vector< DAVPropertyValue > & rProps ) { @@ -627,4 +631,9 @@ void CachableContentProperties::addProperties( } } +void CachableContentProperties::addProperties( const DAVResource & rResource ) +{ + addProperties( rResource.properties ); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucb/source/ucp/webdav/ContentProperties.hxx b/ucb/source/ucp/webdav/ContentProperties.hxx index daf3f47654eb..7929b396399a 100644 --- a/ucb/source/ucp/webdav/ContentProperties.hxx +++ b/ucb/source/ucp/webdav/ContentProperties.hxx @@ -173,12 +173,15 @@ private: CachableContentProperties( const CachableContentProperties & ); // n.i. public: + explicit CachableContentProperties( const DAVResource& rResource ); explicit CachableContentProperties( const ContentProperties & rProps ); void addProperties( const ContentProperties & rProps ); void addProperties( const std::vector< DAVPropertyValue > & rProps ); + void addProperties( const DAVResource & rResource ); + bool containsAllNames( const com::sun::star::uno::Sequence< com::sun::star::beans::Property >& rProps, |