summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorAlexander Wilms <f.alexander.wilms@gmail.com>2014-02-25 22:38:20 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-02-26 07:31:08 -0600
commit060ab521fa0d5d6b9fcb97eab4718c04e8aec944 (patch)
tree398b92af90dbe2130f45969d2fd86a0922c0e2b9 /ucb
parent482ab0d09620f92eb3618125930dc7c4c8335b5e (diff)
Remove visual noise from ucb
Conflicts: ucb/source/ucp/webdav/webdavdatasupplier.cxx ucb/source/ucp/webdav/webdavresponseparser.cxx Change-Id: I96b69f4867bbaaf42c3d5fd159cbb3e4fe80a4db Reviewed-on: https://gerrit.libreoffice.org/8329 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/cacher/cachedcontentresultset.hxx60
-rw-r--r--ucb/source/cacher/cachedcontentresultsetstub.hxx36
-rw-r--r--ucb/source/cacher/cacheddynamicresultset.hxx28
-rw-r--r--ucb/source/cacher/cacheddynamicresultsetstub.hxx24
-rw-r--r--ucb/source/cacher/cacheserv.cxx20
-rw-r--r--ucb/source/cacher/contentresultsetwrapper.cxx4
-rw-r--r--ucb/source/cacher/contentresultsetwrapper.hxx68
-rw-r--r--ucb/source/cacher/dynamicresultsetwrapper.cxx4
-rw-r--r--ucb/source/cacher/dynamicresultsetwrapper.hxx30
-rw-r--r--ucb/source/core/FileAccess.cxx2
-rw-r--r--ucb/source/core/cmdenv.cxx58
-rw-r--r--ucb/source/core/identify.cxx36
-rw-r--r--ucb/source/core/identify.hxx2
-rw-r--r--ucb/source/core/providermap.hxx6
-rw-r--r--ucb/source/core/provprox.cxx124
-rw-r--r--ucb/source/core/provprox.hxx18
-rw-r--r--ucb/source/core/ucb.cxx174
-rw-r--r--ucb/source/core/ucb.hxx4
-rw-r--r--ucb/source/core/ucbcmds.cxx198
-rw-r--r--ucb/source/core/ucbcmds.hxx8
-rw-r--r--ucb/source/core/ucbprops.cxx94
-rw-r--r--ucb/source/core/ucbprops.hxx10
-rw-r--r--ucb/source/core/ucbserv.cxx22
-rw-r--r--ucb/source/core/ucbstore.cxx398
-rw-r--r--ucb/source/core/ucbstore.hxx8
-rw-r--r--ucb/source/inc/regexp.hxx2
-rw-r--r--ucb/source/inc/regexpmap.hxx18
-rw-r--r--ucb/source/regexp/regexp.cxx14
-rw-r--r--ucb/source/sorter/sortdynres.cxx34
-rw-r--r--ucb/source/sorter/sortdynres.hxx62
-rw-r--r--ucb/source/sorter/sortmain.cxx8
-rw-r--r--ucb/source/sorter/sortresult.cxx40
-rw-r--r--ucb/source/sorter/sortresult.hxx12
-rw-r--r--ucb/source/ucp/expand/ucpexpand.cxx8
-rw-r--r--ucb/source/ucp/ext/ucpext_content.cxx24
-rw-r--r--ucb/source/ucp/ext/ucpext_content.hxx16
-rw-r--r--ucb/source/ucp/ext/ucpext_datasupplier.cxx24
-rw-r--r--ucb/source/ucp/ext/ucpext_datasupplier.hxx12
-rw-r--r--ucb/source/ucp/ext/ucpext_provider.cxx14
-rw-r--r--ucb/source/ucp/ext/ucpext_provider.hxx12
-rw-r--r--ucb/source/ucp/ext/ucpext_resultset.cxx12
-rw-r--r--ucb/source/ucp/ext/ucpext_resultset.hxx12
-rw-r--r--ucb/source/ucp/ext/ucpext_services.cxx12
-rw-r--r--ucb/source/ucp/file/bc.cxx48
-rw-r--r--ucb/source/ucp/file/filinpstr.cxx4
-rw-r--r--ucb/source/ucp/file/filinsreq.cxx12
-rw-r--r--ucb/source/ucp/file/filrset.cxx10
-rw-r--r--ucb/source/ucp/file/filstr.cxx8
-rw-r--r--ucb/source/ucp/file/prov.cxx24
-rw-r--r--ucb/source/ucp/file/shell.cxx68
-rw-r--r--ucb/source/ucp/file/shell.hxx4
-rw-r--r--ucb/source/ucp/ftp/ftpcontent.cxx62
-rw-r--r--ucb/source/ucp/ftp/ftpcontent.hxx4
-rw-r--r--ucb/source/ucp/ftp/ftpcontentcaps.cxx14
-rw-r--r--ucb/source/ucp/ftp/ftpcontentprovider.cxx54
-rw-r--r--ucb/source/ucp/ftp/ftpdynresultset.cxx22
-rw-r--r--ucb/source/ucp/ftp/ftpintreq.cxx12
-rw-r--r--ucb/source/ucp/ftp/ftpservices.cxx6
-rw-r--r--ucb/source/ucp/gvfs/gvfs_content.cxx24
-rw-r--r--ucb/source/ucp/gvfs/gvfs_content.hxx12
-rw-r--r--ucb/source/ucp/gvfs/gvfs_directory.cxx20
-rw-r--r--ucb/source/ucp/gvfs/gvfs_provider.cxx54
-rw-r--r--ucb/source/ucp/hierarchy/dynamicresultset.cxx22
-rw-r--r--ucb/source/ucp/hierarchy/hierarchycontent.cxx192
-rw-r--r--ucb/source/ucp/hierarchy/hierarchycontent.hxx14
-rw-r--r--ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx198
-rw-r--r--ucb/source/ucp/hierarchy/hierarchydata.cxx64
-rw-r--r--ucb/source/ucp/hierarchy/hierarchydata.hxx4
-rw-r--r--ucb/source/ucp/hierarchy/hierarchydatasource.cxx224
-rw-r--r--ucb/source/ucp/hierarchy/hierarchydatasource.hxx2
-rw-r--r--ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx64
-rw-r--r--ucb/source/ucp/hierarchy/hierarchyprovider.cxx74
-rw-r--r--ucb/source/ucp/hierarchy/hierarchyprovider.hxx6
-rw-r--r--ucb/source/ucp/hierarchy/hierarchyservices.cxx12
-rw-r--r--ucb/source/ucp/hierarchy/hierarchyuri.cxx16
-rw-r--r--ucb/source/ucp/hierarchy/hierarchyuri.hxx4
-rw-r--r--ucb/source/ucp/inc/urihelper.hxx2
-rw-r--r--ucb/source/ucp/package/pkgcontent.cxx230
-rw-r--r--ucb/source/ucp/package/pkgcontent.hxx14
-rw-r--r--ucb/source/ucp/package/pkgcontentcaps.cxx138
-rw-r--r--ucb/source/ucp/package/pkgdatasupplier.cxx64
-rw-r--r--ucb/source/ucp/package/pkgprovider.cxx80
-rw-r--r--ucb/source/ucp/package/pkgprovider.hxx12
-rw-r--r--ucb/source/ucp/package/pkgresultset.cxx22
-rw-r--r--ucb/source/ucp/package/pkgservices.cxx8
-rw-r--r--ucb/source/ucp/package/pkguri.cxx16
-rw-r--r--ucb/source/ucp/package/pkguri.hxx4
-rw-r--r--ucb/source/ucp/tdoc/tdoc_content.cxx220
-rw-r--r--ucb/source/ucp/tdoc/tdoc_content.hxx14
-rw-r--r--ucb/source/ucp/tdoc/tdoc_contentcaps.cxx198
-rw-r--r--ucb/source/ucp/tdoc/tdoc_datasupplier.cxx26
-rw-r--r--ucb/source/ucp/tdoc/tdoc_docmgr.cxx92
-rw-r--r--ucb/source/ucp/tdoc/tdoc_docmgr.hxx6
-rw-r--r--ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx44
-rw-r--r--ucb/source/ucp/tdoc/tdoc_passwordrequest.cxx62
-rw-r--r--ucb/source/ucp/tdoc/tdoc_provider.cxx94
-rw-r--r--ucb/source/ucp/tdoc/tdoc_provider.hxx4
-rw-r--r--ucb/source/ucp/tdoc/tdoc_resultset.cxx22
-rw-r--r--ucb/source/ucp/tdoc/tdoc_services.cxx12
-rw-r--r--ucb/source/ucp/tdoc/tdoc_stgelems.cxx280
-rw-r--r--ucb/source/ucp/tdoc/tdoc_stgelems.hxx8
-rw-r--r--ucb/source/ucp/tdoc/tdoc_storage.cxx38
-rw-r--r--ucb/source/ucp/tdoc/tdoc_uri.cxx12
-rw-r--r--ucb/source/ucp/tdoc/tdoc_uri.hxx4
-rw-r--r--ucb/source/ucp/webdav-neon/ContentProperties.cxx64
-rw-r--r--ucb/source/ucp/webdav-neon/ContentProperties.hxx10
-rw-r--r--ucb/source/ucp/webdav-neon/DAVAuthListenerImpl.hxx14
-rw-r--r--ucb/source/ucp/webdav-neon/DAVException.hxx6
-rw-r--r--ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx90
-rw-r--r--ucb/source/ucp/webdav-neon/DAVResourceAccess.hxx2
-rw-r--r--ucb/source/ucp/webdav-neon/DAVSession.hxx2
-rw-r--r--ucb/source/ucp/webdav-neon/LinkSequence.cxx12
-rw-r--r--ucb/source/ucp/webdav-neon/LockEntrySequence.cxx10
-rw-r--r--ucb/source/ucp/webdav-neon/LockSequence.cxx14
-rw-r--r--ucb/source/ucp/webdav-neon/PropertyMap.hxx2
-rw-r--r--ucb/source/ucp/webdav-neon/UCBDeadPropertyValue.cxx20
-rw-r--r--ucb/source/ucp/webdav-neon/webdavcontent.cxx214
-rw-r--r--ucb/source/ucp/webdav-neon/webdavcontent.hxx12
-rw-r--r--ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx42
-rw-r--r--ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx62
-rw-r--r--ucb/source/ucp/webdav-neon/webdavprovider.cxx54
-rw-r--r--ucb/source/ucp/webdav-neon/webdavprovider.hxx12
-rw-r--r--ucb/source/ucp/webdav-neon/webdavresultset.cxx22
-rw-r--r--ucb/source/ucp/webdav-neon/webdavservices.cxx8
-rw-r--r--ucb/source/ucp/webdav/ContentProperties.cxx68
-rw-r--r--ucb/source/ucp/webdav/ContentProperties.hxx10
-rw-r--r--ucb/source/ucp/webdav/DAVAuthListenerImpl.hxx14
-rw-r--r--ucb/source/ucp/webdav/DAVException.hxx6
-rw-r--r--ucb/source/ucp/webdav/DAVResourceAccess.cxx88
-rw-r--r--ucb/source/ucp/webdav/DAVResourceAccess.hxx2
-rw-r--r--ucb/source/ucp/webdav/DAVSession.hxx2
-rw-r--r--ucb/source/ucp/webdav/PropertyMap.hxx2
-rw-r--r--ucb/source/ucp/webdav/SerfInputStream.hxx4
-rw-r--r--ucb/source/ucp/webdav/SerfSession.hxx4
-rw-r--r--ucb/source/ucp/webdav/SerfUri.hxx4
-rw-r--r--ucb/source/ucp/webdav/UCBDeadPropertyValue.cxx20
-rw-r--r--ucb/source/ucp/webdav/webdavcontent.cxx214
-rw-r--r--ucb/source/ucp/webdav/webdavcontent.hxx12
-rw-r--r--ucb/source/ucp/webdav/webdavcontentcaps.cxx42
-rw-r--r--ucb/source/ucp/webdav/webdavdatasupplier.cxx63
-rw-r--r--ucb/source/ucp/webdav/webdavprovider.cxx54
-rw-r--r--ucb/source/ucp/webdav/webdavprovider.hxx12
-rw-r--r--ucb/source/ucp/webdav/webdavresponseparser.cxx14
-rw-r--r--ucb/source/ucp/webdav/webdavresponseparser.hxx6
-rw-r--r--ucb/source/ucp/webdav/webdavresultset.cxx22
-rw-r--r--ucb/source/ucp/webdav/webdavservices.cxx10
-rw-r--r--ucb/workben/cachemap/cachemaptest.cxx2
-rw-r--r--ucb/workben/ucb/srcharg.cxx40
-rw-r--r--ucb/workben/ucb/srcharg.hxx2
-rw-r--r--ucb/workben/ucb/ucbdemo.cxx74
150 files changed, 3158 insertions, 3161 deletions
diff --git a/ucb/source/cacher/cachedcontentresultset.hxx b/ucb/source/cacher/cachedcontentresultset.hxx
index bcb52ed6d744..73fbc8dc4b7d 100644
--- a/ucb/source/cacher/cachedcontentresultset.hxx
+++ b/ucb/source/cacher/cachedcontentresultset.hxx
@@ -32,7 +32,7 @@
#define CACHED_CONTENT_RESULTSET_SERVICE_NAME "com.sun.star.ucb.CachedContentResultSet"
#define CACHED_CONTENT_RESULTSET_FACTORY_NAME "com.sun.star.ucb.CachedContentResultSetFactory"
-//=========================================================================
+
namespace com { namespace sun { namespace star { namespace script {
class XTypeConverter;
@@ -44,7 +44,7 @@ class CachedContentResultSet
, public com::sun::star::lang::XTypeProvider
, public com::sun::star::lang::XServiceInfo
{
- //--------------------------------------------------------------------------
+
// class CCRS_Cache
class CCRS_Cache
@@ -90,7 +90,7 @@ class CachedContentResultSet
sal_Bool SAL_CALL
hasKnownLast();
- //---
+
const com::sun::star::uno::Any& SAL_CALL
getAny( sal_Int32 nRow, sal_Int32 nColumnIndex )
throw( com::sun::star::sdbc::SQLException,
@@ -110,7 +110,7 @@ class CachedContentResultSet
getContent( sal_Int32 nRow )
throw( com::sun::star::uno::RuntimeException );
};
- //-----------------------------------------------------------------
+
//members
com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >
@@ -129,7 +129,7 @@ class CachedContentResultSet
CCRS_PropertySetInfo* m_pMyPropSetInfo;
- //
+
com::sun::star::uno::Reference< com::sun::star::ucb::XContentIdentifierMapping >
m_xContentIdentifierMapping;// can be used for remote optimized ContentAccess
@@ -157,12 +157,12 @@ class CachedContentResultSet
private:
- //-----------------------------------------------------------------
+
//helping XPropertySet methods.
virtual void SAL_CALL impl_initPropertySetInfo();
- //-----------------------------------------------------------------
+
sal_Bool SAL_CALL
applyPositionToOrigin( sal_Int32 nRow )
throw( com::sun::star::sdbc::SQLException,
@@ -198,22 +198,22 @@ public:
virtual ~CachedContentResultSet();
- //-----------------------------------------------------------------
+
// XInterface inherited
- //-----------------------------------------------------------------
+
XINTERFACE_DECL()
- //-----------------------------------------------------------------
+
// XTypeProvider
- //-----------------------------------------------------------------
+
XTYPEPROVIDER_DECL()
- //-----------------------------------------------------------------
+
// XServiceInfo
- //-----------------------------------------------------------------
+
XSERVICEINFO_NOFACTORY_DECL()
- //-----------------------------------------------------------------
+
// XPropertySet inherited
- //-----------------------------------------------------------------
+
virtual void SAL_CALL
setPropertyValue( const OUString& aPropertyName,
@@ -230,9 +230,9 @@ public:
com::sun::star::lang::WrappedTargetException,
com::sun::star::uno::RuntimeException );
- //-----------------------------------------------------------------
+
// own inherited
- //-----------------------------------------------------------------
+
virtual void SAL_CALL
impl_disposing( const com::sun::star::lang::EventObject& Source )
throw( com::sun::star::uno::RuntimeException );
@@ -246,9 +246,9 @@ public:
throw( com::sun::star::beans::PropertyVetoException,
com::sun::star::uno::RuntimeException );
- //-----------------------------------------------------------------
+
// XContentAccess inherited
- //-----------------------------------------------------------------
+
virtual OUString SAL_CALL
queryContentIdentifierString()
throw( com::sun::star::uno::RuntimeException );
@@ -263,9 +263,9 @@ public:
queryContent()
throw( com::sun::star::uno::RuntimeException );
- //-----------------------------------------------------------------
+
// XResultSet inherited
- //-----------------------------------------------------------------
+
virtual sal_Bool SAL_CALL
next()
throw( com::sun::star::sdbc::SQLException,
@@ -340,9 +340,9 @@ public:
throw( com::sun::star::sdbc::SQLException,
com::sun::star::uno::RuntimeException );
- //-----------------------------------------------------------------
+
// XRow inherited
- //-----------------------------------------------------------------
+
virtual sal_Bool SAL_CALL
wasNull()
throw( com::sun::star::sdbc::SQLException,
@@ -451,9 +451,9 @@ public:
throw( com::sun::star::sdbc::SQLException,
com::sun::star::uno::RuntimeException );
- //-----------------------------------------------------------------
+
// Type Converter support
- //-----------------------------------------------------------------
+
private:
sal_Bool m_bTriedToGetTypeConverter;
@@ -467,7 +467,7 @@ private:
T (SAL_CALL css::sdbc::XRow::* f)(sal_Int32), sal_Int32 columnIndex);
};
-//=========================================================================
+
class CachedContentResultSetFactory
: public cppu::OWeakObject
@@ -487,19 +487,19 @@ public:
virtual ~CachedContentResultSetFactory();
- //-----------------------------------------------------------------
+
// XInterface
XINTERFACE_DECL()
- //-----------------------------------------------------------------
+
// XTypeProvider
XTYPEPROVIDER_DECL()
- //-----------------------------------------------------------------
+
// XServiceInfo
XSERVICEINFO_DECL()
- //-----------------------------------------------------------------
+
// XCachedContentResultSetFactory
virtual com::sun::star::uno::Reference<
diff --git a/ucb/source/cacher/cachedcontentresultsetstub.hxx b/ucb/source/cacher/cachedcontentresultsetstub.hxx
index 5ab38ff3cea6..b42fb8caa1c3 100644
--- a/ucb/source/cacher/cachedcontentresultsetstub.hxx
+++ b/ucb/source/cacher/cachedcontentresultsetstub.hxx
@@ -30,7 +30,7 @@
#define CACHED_CRS_STUB_SERVICE_NAME "com.sun.star.ucb.CachedContentResultSetStub"
#define CACHED_CRS_STUB_FACTORY_NAME "com.sun.star.ucb.CachedContentResultSetStubFactory"
-//=========================================================================
+
class CachedContentResultSetStub
: public ContentResultSetWrapper
@@ -95,13 +95,13 @@ public:
virtual ~CachedContentResultSetStub();
- //-----------------------------------------------------------------
+
// XInterface inherited
- //-----------------------------------------------------------------
+
XINTERFACE_DECL()
- //-----------------------------------------------------------------
+
// own inherited
- //-----------------------------------------------------------------
+
virtual void SAL_CALL
impl_propertyChange( const com::sun::star::beans::PropertyChangeEvent& evt )
throw( com::sun::star::uno::RuntimeException );
@@ -110,27 +110,27 @@ public:
impl_vetoableChange( const com::sun::star::beans::PropertyChangeEvent& aEvent )
throw( com::sun::star::beans::PropertyVetoException,
com::sun::star::uno::RuntimeException );
- //-----------------------------------------------------------------
+
// XTypeProvider
- //-----------------------------------------------------------------
+
XTYPEPROVIDER_DECL()
- //-----------------------------------------------------------------
+
// XServiceInfo
- //-----------------------------------------------------------------
+
XSERVICEINFO_NOFACTORY_DECL()
- //-----------------------------------------------------------------
+
// XFetchProvider
- //-----------------------------------------------------------------
+
virtual com::sun::star::ucb::FetchResult SAL_CALL
fetch( sal_Int32 nRowStartPosition
, sal_Int32 nRowCount, sal_Bool bDirection )
throw( com::sun::star::uno::RuntimeException );
- //-----------------------------------------------------------------
+
// XFetchProviderForContentAccess
- //-----------------------------------------------------------------
+
virtual com::sun::star::ucb::FetchResult SAL_CALL
fetchContentIdentifierStrings( sal_Int32 nRowStartPosition
, sal_Int32 nRowCount, sal_Bool bDirection )
@@ -147,7 +147,7 @@ public:
throw( com::sun::star::uno::RuntimeException );
};
-//=========================================================================
+
class CachedContentResultSetStubFactory
: public cppu::OWeakObject
@@ -167,19 +167,19 @@ public:
virtual ~CachedContentResultSetStubFactory();
- //-----------------------------------------------------------------
+
// XInterface
XINTERFACE_DECL()
- //-----------------------------------------------------------------
+
// XTypeProvider
XTYPEPROVIDER_DECL()
- //-----------------------------------------------------------------
+
// XServiceInfo
XSERVICEINFO_DECL()
- //-----------------------------------------------------------------
+
// XCachedContentResultSetStubFactory
virtual com::sun::star::uno::Reference<
diff --git a/ucb/source/cacher/cacheddynamicresultset.hxx b/ucb/source/cacher/cacheddynamicresultset.hxx
index 6b7c84fb93cb..f6eb0a1ff34c 100644
--- a/ucb/source/cacher/cacheddynamicresultset.hxx
+++ b/ucb/source/cacher/cacheddynamicresultset.hxx
@@ -27,7 +27,7 @@
#define CACHED_DRS_SERVICE_NAME "com.sun.star.ucb.CachedDynamicResultSet"
#define CACHED_DRS_FACTORY_NAME "com.sun.star.ucb.CachedDynamicResultSetFactory"
-//=========================================================================
+
class CachedDynamicResultSet
: public DynamicResultSetWrapper
@@ -56,28 +56,28 @@ public:
virtual ~CachedDynamicResultSet();
- //-----------------------------------------------------------------
+
// XInterface inherited
- //-----------------------------------------------------------------
+
XINTERFACE_DECL()
- //-----------------------------------------------------------------
+
// XTypeProvider
- //-----------------------------------------------------------------
+
XTYPEPROVIDER_DECL()
- //-----------------------------------------------------------------
+
// XServiceInfo
- //-----------------------------------------------------------------
+
XSERVICEINFO_NOFACTORY_DECL()
- //-----------------------------------------------------------------
+
// own methods ( inherited )
- //-----------------------------------------------------------------
+
virtual void SAL_CALL
impl_disposing( const com::sun::star::lang::EventObject& Source )
throw( com::sun::star::uno::RuntimeException );
};
-//=========================================================================
+
class CachedDynamicResultSetFactory
: public cppu::OWeakObject
@@ -97,19 +97,19 @@ public:
virtual ~CachedDynamicResultSetFactory();
- //-----------------------------------------------------------------
+
// XInterface
XINTERFACE_DECL()
- //-----------------------------------------------------------------
+
// XTypeProvider
XTYPEPROVIDER_DECL()
- //-----------------------------------------------------------------
+
// XServiceInfo
XSERVICEINFO_DECL()
- //-----------------------------------------------------------------
+
// XCachedDynamicResultSetFactory
virtual com::sun::star::uno::Reference<
diff --git a/ucb/source/cacher/cacheddynamicresultsetstub.hxx b/ucb/source/cacher/cacheddynamicresultsetstub.hxx
index a65d836662bf..bc4f420dd705 100644
--- a/ucb/source/cacher/cacheddynamicresultsetstub.hxx
+++ b/ucb/source/cacher/cacheddynamicresultsetstub.hxx
@@ -26,7 +26,7 @@
#define CACHED_DRS_STUB_SERVICE_NAME "com.sun.star.ucb.CachedDynamicResultSetStub"
#define CACHED_DRS_STUB_FACTORY_NAME "com.sun.star.ucb.CachedDynamicResultSetStubFactory"
-//=========================================================================
+
class CachedDynamicResultSetStub
: public DynamicResultSetWrapper
@@ -50,21 +50,21 @@ public:
virtual ~CachedDynamicResultSetStub();
- //-----------------------------------------------------------------
+
// XInterface inherited
- //-----------------------------------------------------------------
+
XINTERFACE_DECL()
- //-----------------------------------------------------------------
+
// XTypeProvider
- //-----------------------------------------------------------------
+
XTYPEPROVIDER_DECL()
- //-----------------------------------------------------------------
+
// XServiceInfo
- //-----------------------------------------------------------------
+
XSERVICEINFO_NOFACTORY_DECL()
};
-//=========================================================================
+
class CachedDynamicResultSetStubFactory
: public cppu::OWeakObject
@@ -84,19 +84,19 @@ public:
virtual ~CachedDynamicResultSetStubFactory();
- //-----------------------------------------------------------------
+
// XInterface
XINTERFACE_DECL()
- //-----------------------------------------------------------------
+
// XTypeProvider
XTYPEPROVIDER_DECL()
- //-----------------------------------------------------------------
+
// XServiceInfo
XSERVICEINFO_DECL()
- //-----------------------------------------------------------------
+
// XCachedDynamicResultSetStubFactory
virtual com::sun::star::uno::Reference<
diff --git a/ucb/source/cacher/cacheserv.cxx b/ucb/source/cacher/cacheserv.cxx
index e8b129adde1b..ea63ddb6d006 100644
--- a/ucb/source/cacher/cacheserv.cxx
+++ b/ucb/source/cacher/cacheserv.cxx
@@ -30,7 +30,7 @@ using namespace com::sun::star::lang;
using namespace com::sun::star::registry;
-//=========================================================================
+
extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL cached1_component_getFactory(
const sal_Char * pImplName, void * pServiceManager, void * )
{
@@ -40,9 +40,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL cached1_component_getFactory(
reinterpret_cast< XMultiServiceFactory * >( pServiceManager ) );
Reference< XSingleServiceFactory > xFactory;
- //////////////////////////////////////////////////////////////////////
+
// CachedContentResultSetFactory.
- //////////////////////////////////////////////////////////////////////
+
if ( CachedContentResultSetFactory::getImplementationName_Static().
equalsAscii( pImplName ) )
@@ -50,9 +50,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL cached1_component_getFactory(
xFactory = CachedContentResultSetFactory::createServiceFactory( xSMgr );
}
- //////////////////////////////////////////////////////////////////////
+
// CachedContentResultSetStubFactory.
- //////////////////////////////////////////////////////////////////////
+
else if ( CachedContentResultSetStubFactory::getImplementationName_Static().
equalsAscii( pImplName ) )
@@ -60,9 +60,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL cached1_component_getFactory(
xFactory = CachedContentResultSetStubFactory::createServiceFactory( xSMgr );
}
- //////////////////////////////////////////////////////////////////////
+
// CachedDynamicResultSetFactory.
- //////////////////////////////////////////////////////////////////////
+
else if ( CachedDynamicResultSetFactory::getImplementationName_Static().
equalsAscii( pImplName ) )
@@ -70,9 +70,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL cached1_component_getFactory(
xFactory = CachedDynamicResultSetFactory::createServiceFactory( xSMgr );
}
- //////////////////////////////////////////////////////////////////////
+
// CachedDynamicResultSetStubFactory.
- //////////////////////////////////////////////////////////////////////
+
else if ( CachedDynamicResultSetStubFactory::getImplementationName_Static().
equalsAscii( pImplName ) )
@@ -80,7 +80,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL cached1_component_getFactory(
xFactory = CachedDynamicResultSetStubFactory::createServiceFactory( xSMgr );
}
- //////////////////////////////////////////////////////////////////////
+
if ( xFactory.is() )
{
diff --git a/ucb/source/cacher/contentresultsetwrapper.cxx b/ucb/source/cacher/contentresultsetwrapper.cxx
index 19826e66412a..4a00bceac909 100644
--- a/ucb/source/cacher/contentresultsetwrapper.cxx
+++ b/ucb/source/cacher/contentresultsetwrapper.cxx
@@ -124,7 +124,7 @@ void SAL_CALL ContentResultSetWrapper::impl_init_xPropertySetOrigin()
void SAL_CALL ContentResultSetWrapper::impl_init()
{
//call this at the end of constructor of derived class
- //
+
//listen to disposing from Origin:
Reference< XComponent > xComponentOrigin( m_xResultSetOrigin, UNO_QUERY );
@@ -144,7 +144,7 @@ ContentResultSetWrapper::~ContentResultSetWrapper()
void SAL_CALL ContentResultSetWrapper::impl_deinit()
{
//call this at start of destructor of derived class
- //
+
m_pMyListenerImpl->impl_OwnerDies();
}
diff --git a/ucb/source/cacher/contentresultsetwrapper.hxx b/ucb/source/cacher/contentresultsetwrapper.hxx
index 9874049d55e0..9f7f409ceb8e 100644
--- a/ucb/source/cacher/contentresultsetwrapper.hxx
+++ b/ucb/source/cacher/contentresultsetwrapper.hxx
@@ -34,7 +34,7 @@
#include <com/sun/star/lang/DisposedException.hpp>
#include <cppuhelper/interfacecontainer.hxx>
-//=========================================================================
+
class ContentResultSetWrapperListener;
class ContentResultSetWrapper
@@ -49,13 +49,13 @@ class ContentResultSetWrapper
{
protected:
- //--------------------------------------------------------------------------
+
//class PropertyChangeListenerContainer_Impl.
typedef cppu::OMultiTypeInterfaceContainerHelperVar
< OUString, OUStringHash >
PropertyChangeListenerContainer_Impl;
- //--------------------------------------------------------------------------
+
// class ReacquireableGuard
class ReacquireableGuard
@@ -101,7 +101,7 @@ protected:
}
};
- //-----------------------------------------------------------------
+
//members
//my Mutex
@@ -146,7 +146,7 @@ private:
PropertyChangeListenerContainer_Impl*
m_pVetoableChangeListeners;
- //-----------------------------------------------------------------
+
//methods:
private:
PropertyChangeListenerContainer_Impl* SAL_CALL
@@ -156,7 +156,7 @@ private:
impl_getVetoableChangeListenerContainer();
protected:
- //-----------------------------------------------------------------
+
ContentResultSetWrapper( com::sun::star::uno::Reference<
com::sun::star::sdbc::XResultSet > xOrigin );
@@ -195,16 +195,16 @@ protected:
public:
- //-----------------------------------------------------------------
+
// XInterface
- //-----------------------------------------------------------------
+
virtual com::sun::star::uno::Any SAL_CALL
queryInterface( const com::sun::star::uno::Type & rType )
throw( com::sun::star::uno::RuntimeException );
- //-----------------------------------------------------------------
+
// XComponent
- //-----------------------------------------------------------------
+
virtual void SAL_CALL
dispose() throw( com::sun::star::uno::RuntimeException );
@@ -218,26 +218,26 @@ public:
com::sun::star::lang::XEventListener >& Listener )
throw( com::sun::star::uno::RuntimeException );
- //-----------------------------------------------------------------
+
//XCloseable
- //-----------------------------------------------------------------
+
virtual void SAL_CALL
close()
throw( com::sun::star::sdbc::SQLException,
com::sun::star::uno::RuntimeException );
- //-----------------------------------------------------------------
+
//XResultSetMetaDataSupplier
- //-----------------------------------------------------------------
+
virtual com::sun::star::uno::Reference<
com::sun::star::sdbc::XResultSetMetaData > SAL_CALL
getMetaData()
throw( com::sun::star::sdbc::SQLException,
com::sun::star::uno::RuntimeException );
- //-----------------------------------------------------------------
+
// XPropertySet
- //-----------------------------------------------------------------
+
virtual com::sun::star::uno::Reference<
com::sun::star::beans::XPropertySetInfo > SAL_CALL
getPropertySetInfo()
@@ -290,9 +290,9 @@ public:
com::sun::star::lang::WrappedTargetException,
com::sun::star::uno::RuntimeException );
- //-----------------------------------------------------------------
+
// own methods
- //-----------------------------------------------------------------
+
virtual void SAL_CALL
impl_disposing( const com::sun::star::lang::EventObject& Source )
throw( com::sun::star::uno::RuntimeException );
@@ -306,9 +306,9 @@ public:
throw( com::sun::star::beans::PropertyVetoException,
com::sun::star::uno::RuntimeException );
- //-----------------------------------------------------------------
+
// XContentAccess
- //-----------------------------------------------------------------
+
virtual OUString SAL_CALL
queryContentIdentifierString()
throw( com::sun::star::uno::RuntimeException );
@@ -323,9 +323,9 @@ public:
queryContent()
throw( com::sun::star::uno::RuntimeException );
- //-----------------------------------------------------------------
+
// XResultSet
- //-----------------------------------------------------------------
+
virtual sal_Bool SAL_CALL
next()
throw( com::sun::star::sdbc::SQLException,
@@ -400,9 +400,9 @@ public:
throw( com::sun::star::sdbc::SQLException,
com::sun::star::uno::RuntimeException );
- //-----------------------------------------------------------------
+
// XRow
- //-----------------------------------------------------------------
+
virtual sal_Bool SAL_CALL
wasNull()
throw( com::sun::star::sdbc::SQLException,
@@ -512,7 +512,7 @@ public:
com::sun::star::uno::RuntimeException );
};
-//=========================================================================
+
class ContentResultSetWrapperListener
: public cppu::OWeakObject
@@ -527,34 +527,34 @@ public:
virtual ~ContentResultSetWrapperListener();
- //-----------------------------------------------------------------
+
// XInterface
- //-----------------------------------------------------------------
+
XINTERFACE_DECL()
- //-----------------------------------------------------------------
+
//XEventListener
- //-----------------------------------------------------------------
+
virtual void SAL_CALL
disposing( const com::sun::star::lang::EventObject& Source )
throw( com::sun::star::uno::RuntimeException );
- //-----------------------------------------------------------------
+
//XPropertyChangeListener
- //-----------------------------------------------------------------
+
virtual void SAL_CALL
propertyChange( const com::sun::star::beans::PropertyChangeEvent& evt )
throw( com::sun::star::uno::RuntimeException );
- //-----------------------------------------------------------------
+
//XVetoableChangeListener
- //-----------------------------------------------------------------
+
virtual void SAL_CALL
vetoableChange( const com::sun::star::beans::PropertyChangeEvent& aEvent )
throw( com::sun::star::beans::PropertyVetoException,
com::sun::star::uno::RuntimeException );
- //-----------------------------------------------------------------
+
// own methods:
void SAL_CALL impl_OwnerDies();
};
diff --git a/ucb/source/cacher/dynamicresultsetwrapper.cxx b/ucb/source/cacher/dynamicresultsetwrapper.cxx
index dc96206bdf13..f99e23704d33 100644
--- a/ucb/source/cacher/dynamicresultsetwrapper.cxx
+++ b/ucb/source/cacher/dynamicresultsetwrapper.cxx
@@ -66,7 +66,7 @@ DynamicResultSetWrapper::DynamicResultSetWrapper(
void SAL_CALL DynamicResultSetWrapper::impl_init()
{
//call this at the end of constructor of derived class
- //
+
Reference< XDynamicResultSet > xSource = NULL;
{
@@ -88,7 +88,7 @@ DynamicResultSetWrapper::~DynamicResultSetWrapper()
void SAL_CALL DynamicResultSetWrapper::impl_deinit()
{
//call this at start of destructor of derived class
- //
+
m_pMyListenerImpl->impl_OwnerDies();
}
diff --git a/ucb/source/cacher/dynamicresultsetwrapper.hxx b/ucb/source/cacher/dynamicresultsetwrapper.hxx
index 8c7c6e616954..f4d09d801a1b 100644
--- a/ucb/source/cacher/dynamicresultsetwrapper.hxx
+++ b/ucb/source/cacher/dynamicresultsetwrapper.hxx
@@ -36,7 +36,7 @@
#include <com/sun/star/ucb/XDynamicResultSetListener.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
-//=========================================================================
+
class DynamicResultSetWrapperListener;
class DynamicResultSetWrapper
@@ -74,12 +74,12 @@ protected:
//com::sun::star::uno::Reference< com::sun::star::sdbc::XResultSet >
// m_xSourceResultCurrent;
//sal_Bool m_bUseOne;
- //
+
com::sun::star::uno::Reference< com::sun::star::sdbc::XResultSet >
m_xMyResultOne;
com::sun::star::uno::Reference< com::sun::star::sdbc::XResultSet >
m_xMyResultTwo;
- //
+
com::sun::star::uno::Reference< com::sun::star::ucb::XDynamicResultSetListener >
m_xListener;
@@ -111,13 +111,13 @@ public:
virtual ~DynamicResultSetWrapper();
- //-----------------------------------------------------------------
+
// XInterface
virtual com::sun::star::uno::Any SAL_CALL
queryInterface( const com::sun::star::uno::Type & rType )
throw( com::sun::star::uno::RuntimeException );
- //-----------------------------------------------------------------
+
// XDynamicResultSet
virtual com::sun::star::uno::Reference< com::sun::star::sdbc::XResultSet > SAL_CALL
getStaticResultSet()
@@ -141,7 +141,7 @@ public:
virtual sal_Int16 SAL_CALL
getCapabilities() throw( com::sun::star::uno::RuntimeException );
- //-----------------------------------------------------------------
+
// XComponent ( base of XDynamicResultSet )
virtual void SAL_CALL
dispose() throw( com::sun::star::uno::RuntimeException );
@@ -156,7 +156,7 @@ public:
com::sun::star::lang::XEventListener >& Listener )
throw( com::sun::star::uno::RuntimeException );
- //-----------------------------------------------------------------
+
// XSourceInitialization
virtual void SAL_CALL
@@ -165,7 +165,7 @@ public:
throw( com::sun::star::ucb::AlreadyInitializedException
, com::sun::star::uno::RuntimeException );
- //-----------------------------------------------------------------
+
// own methods:
virtual void SAL_CALL
impl_disposing( const com::sun::star::lang::EventObject& Source )
@@ -176,7 +176,7 @@ public:
throw( com::sun::star::uno::RuntimeException );
};
-//=========================================================================
+
class DynamicResultSetWrapperListener
: public cppu::OWeakObject
@@ -191,24 +191,24 @@ public:
virtual ~DynamicResultSetWrapperListener();
- //-----------------------------------------------------------------
+
// XInterface
- //-----------------------------------------------------------------
+
XINTERFACE_DECL()
- //-----------------------------------------------------------------
+
// XEventListener ( base of XDynamicResultSetListener )
- //-----------------------------------------------------------------
+
virtual void SAL_CALL
disposing( const com::sun::star::lang::EventObject& Source )
throw( com::sun::star::uno::RuntimeException );
- //-----------------------------------------------------------------
+
// XDynamicResultSetListener
virtual void SAL_CALL
notify( const ::com::sun::star::ucb::ListEvent& Changes )
throw( com::sun::star::uno::RuntimeException );
- //-----------------------------------------------------------------
+
// own methods:
void SAL_CALL impl_OwnerDies();
};
diff --git a/ucb/source/core/FileAccess.cxx b/ucb/source/core/FileAccess.cxx
index f629b37897fd..a5dee2c4841f 100644
--- a/ucb/source/core/FileAccess.cxx
+++ b/ucb/source/core/FileAccess.cxx
@@ -228,7 +228,7 @@ void OFileAccess::transferImpl( const OUString& rSource,
// non-hierachical URL
// #i29648#
- //
+
if ( aDestObj.GetProtocol() == INET_PROT_VND_SUN_STAR_EXPAND )
{
diff --git a/ucb/source/core/cmdenv.cxx b/ucb/source/core/cmdenv.cxx
index 0752b59b53e8..0171383c578d 100644
--- a/ucb/source/core/cmdenv.cxx
+++ b/ucb/source/core/cmdenv.cxx
@@ -32,13 +32,13 @@
using namespace com::sun::star;
using namespace ucb_cmdenv;
-//=========================================================================
-//=========================================================================
-//
+
+
+
// UcbCommandEnvironment Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
UcbCommandEnvironment::UcbCommandEnvironment(
const uno::Reference< lang::XMultiServiceFactory >& /*xSMgr*/ )
@@ -46,17 +46,17 @@ UcbCommandEnvironment::UcbCommandEnvironment(
{
}
-//=========================================================================
+
// virtual
UcbCommandEnvironment::~UcbCommandEnvironment()
{
}
-//=========================================================================
-//
+
+
// XInitialization methods.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL UcbCommandEnvironment::initialize(
@@ -70,11 +70,11 @@ void SAL_CALL UcbCommandEnvironment::initialize(
throw lang::IllegalArgumentException();
}
-//=========================================================================
-//
+
+
// XServiceInfo methods.
-//
-//=========================================================================
+
+
// virtual
OUString SAL_CALL UcbCommandEnvironment::getImplementationName()
@@ -83,7 +83,7 @@ OUString SAL_CALL UcbCommandEnvironment::getImplementationName()
return getImplementationName_Static();
}
-//=========================================================================
+
// virtual
sal_Bool SAL_CALL
UcbCommandEnvironment::supportsService( const OUString& ServiceName )
@@ -92,7 +92,7 @@ UcbCommandEnvironment::supportsService( const OUString& ServiceName )
return cppu::supportsService(this, ServiceName);
}
-//=========================================================================
+
// virtual
uno::Sequence< OUString > SAL_CALL
UcbCommandEnvironment::getSupportedServiceNames()
@@ -101,14 +101,14 @@ UcbCommandEnvironment::getSupportedServiceNames()
return getSupportedServiceNames_Static();
}
-//=========================================================================
+
// static
OUString UcbCommandEnvironment::getImplementationName_Static()
{
return OUString( "com.sun.star.comp.ucb.CommandEnvironment" );
}
-//=========================================================================
+
// static
uno::Sequence< OUString >
UcbCommandEnvironment::getSupportedServiceNames_Static()
@@ -118,11 +118,11 @@ UcbCommandEnvironment::getSupportedServiceNames_Static()
return aSNS;
}
-//=========================================================================
-//
+
+
// XCommandInfo methods.
-//
-//=========================================================================
+
+
// virtual
uno::Reference< task::XInteractionHandler > SAL_CALL
@@ -132,7 +132,7 @@ UcbCommandEnvironment::getInteractionHandler()
return m_xIH;
}
-//=========================================================================
+
// virtual
uno::Reference< ucb::XProgressHandler > SAL_CALL
UcbCommandEnvironment::getProgressHandler()
@@ -141,11 +141,11 @@ UcbCommandEnvironment::getProgressHandler()
return m_xPH;
}
-//=========================================================================
-//
+
+
// Service factory implementation.
-//
-//=========================================================================
+
+
static uno::Reference< uno::XInterface > SAL_CALL
UcbCommandEnvironment_CreateInstance(
@@ -157,7 +157,7 @@ UcbCommandEnvironment_CreateInstance(
return uno::Reference< uno::XInterface >::query( pX );
}
-//=========================================================================
+
// static
uno::Reference< lang::XSingleServiceFactory >
UcbCommandEnvironment::createServiceFactory(
diff --git a/ucb/source/core/identify.cxx b/ucb/source/core/identify.cxx
index 53d0dff03aaf..0eacd9f81cb2 100644
--- a/ucb/source/core/identify.cxx
+++ b/ucb/source/core/identify.cxx
@@ -31,11 +31,11 @@ using namespace com::sun::star::lang;
using namespace com::sun::star::ucb;
-//=========================================================================
-//
+
+
// ContentIdentifier Implementation.
-//
-//=========================================================================
+
+
ContentIdentifier::ContentIdentifier(
const OUString& ContentId )
@@ -43,37 +43,37 @@ ContentIdentifier::ContentIdentifier(
{
}
-//=========================================================================
+
// virtual
ContentIdentifier::~ContentIdentifier()
{
}
-//=========================================================================
-//
+
+
// XInterface methods.
-//
-//=========================================================================
+
+
XINTERFACE_IMPL_2( ContentIdentifier,
XTypeProvider,
XContentIdentifier );
-//=========================================================================
-//
+
+
// XTypeProvider methods.
-//
-//=========================================================================
+
+
XTYPEPROVIDER_IMPL_2( ContentIdentifier,
XTypeProvider,
XContentIdentifier );
-//=========================================================================
-//
+
+
// XContentIdentifier methods.
-//
-//=========================================================================
+
+
// virtual
OUString SAL_CALL ContentIdentifier::getContentIdentifier()
@@ -82,7 +82,7 @@ OUString SAL_CALL ContentIdentifier::getContentIdentifier()
return m_aContentId;
}
-//=========================================================================
+
// virtual
OUString SAL_CALL ContentIdentifier::getContentProviderScheme()
throw( RuntimeException )
diff --git a/ucb/source/core/identify.hxx b/ucb/source/core/identify.hxx
index 753257871ce5..2aa7803919ba 100644
--- a/ucb/source/core/identify.hxx
+++ b/ucb/source/core/identify.hxx
@@ -27,7 +27,7 @@
#include <cppuhelper/weak.hxx>
#include <ucbhelper/macros.hxx>
-//=========================================================================
+
class ContentIdentifier :
public cppu::OWeakObject,
diff --git a/ucb/source/core/providermap.hxx b/ucb/source/core/providermap.hxx
index f9295fcfbb46..8057f73bad8e 100644
--- a/ucb/source/core/providermap.hxx
+++ b/ucb/source/core/providermap.hxx
@@ -28,7 +28,7 @@ namespace com { namespace sun { namespace star { namespace ucb {
class XContentProvider;
} } } }
-//============================================================================
+
class ProviderListEntry_Impl
{
com::sun::star::uno::Reference<
@@ -59,10 +59,10 @@ ProviderListEntry_Impl::getResolvedProvider() const
return m_xResolvedProvider.is() ? m_xResolvedProvider : resolveProvider();
}
-//============================================================================
+
typedef std::list< ProviderListEntry_Impl > ProviderList_Impl;
-//============================================================================
+
typedef ucb_impl::RegexpMap< ProviderList_Impl > ProviderMap_Impl;
#endif // _UCB_PROVIDERMAP_HXX_
diff --git a/ucb/source/core/provprox.cxx b/ucb/source/core/provprox.cxx
index bae3f77b23c5..a9c4356ff8f3 100644
--- a/ucb/source/core/provprox.cxx
+++ b/ucb/source/core/provprox.cxx
@@ -28,13 +28,13 @@ using namespace com::sun::star::ucb;
using namespace com::sun::star::uno;
-//=========================================================================
-//=========================================================================
-//
+
+
+
// UcbContentProviderProxyFactory Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
UcbContentProviderProxyFactory::UcbContentProviderProxyFactory(
const Reference< XMultiServiceFactory >& rxSMgr )
@@ -42,57 +42,57 @@ UcbContentProviderProxyFactory::UcbContentProviderProxyFactory(
{
}
-//=========================================================================
+
// virtual
UcbContentProviderProxyFactory::~UcbContentProviderProxyFactory()
{
}
-//=========================================================================
-//
+
+
// XInterface methods.
-//
-//=========================================================================
+
+
XINTERFACE_IMPL_3( UcbContentProviderProxyFactory,
XTypeProvider,
XServiceInfo,
XContentProviderFactory );
-//=========================================================================
-//
+
+
// XTypeProvider methods.
-//
-//=========================================================================
+
+
XTYPEPROVIDER_IMPL_3( UcbContentProviderProxyFactory,
XTypeProvider,
XServiceInfo,
XContentProviderFactory );
-//=========================================================================
-//
+
+
// XServiceInfo methods.
-//
-//=========================================================================
+
+
XSERVICEINFO_IMPL_1( UcbContentProviderProxyFactory,
OUString( "com.sun.star.comp.ucb.UcbContentProviderProxyFactory" ),
OUString( PROVIDER_FACTORY_SERVICE_NAME ) );
-//=========================================================================
-//
+
+
// Service factory implementation.
-//
-//=========================================================================
+
+
ONE_INSTANCE_SERVICE_FACTORY_IMPL( UcbContentProviderProxyFactory );
-//=========================================================================
-//
+
+
// XContentProviderFactory methods.
-//
-//=========================================================================
+
+
// virtual
Reference< XContentProvider > SAL_CALL
@@ -104,13 +104,13 @@ UcbContentProviderProxyFactory::createContentProvider(
new UcbContentProviderProxy( m_xSMgr, Service ) );
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// UcbContentProviderProxy Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
UcbContentProviderProxy::UcbContentProviderProxy(
const Reference< XMultiServiceFactory >& rxSMgr,
@@ -122,21 +122,21 @@ UcbContentProviderProxy::UcbContentProviderProxy(
{
}
-//=========================================================================
+
// virtual
UcbContentProviderProxy::~UcbContentProviderProxy()
{
}
-//=========================================================================
-//
+
+
// XInterface methods.
-//
-//=========================================================================
+
+
XINTERFACE_COMMON_IMPL( UcbContentProviderProxy );
-//============================================================================
+
// virtual
Any SAL_CALL
UcbContentProviderProxy::queryInterface( const Type & rType )
@@ -164,15 +164,15 @@ UcbContentProviderProxy::queryInterface( const Type & rType )
return aRet;
}
-//=========================================================================
-//
+
+
// XTypeProvider methods.
-//
-//=========================================================================
+
+
XTYPEPROVIDER_COMMON_IMPL( UcbContentProviderProxy );
-//=========================================================================
+
Sequence< Type > SAL_CALL UcbContentProviderProxy::getTypes() \
throw( RuntimeException )
@@ -196,21 +196,21 @@ Sequence< Type > SAL_CALL UcbContentProviderProxy::getTypes()
}
}
-//=========================================================================
-//
+
+
// XServiceInfo methods.
-//
-//=========================================================================
+
+
XSERVICEINFO_NOFACTORY_IMPL_1( UcbContentProviderProxy,
OUString( "com.sun.star.comp.ucb.UcbContentProviderProxy" ),
OUString( PROVIDER_PROXY_SERVICE_NAME ) );
-//=========================================================================
-//
+
+
// XContentProvider methods.
-//
-//=========================================================================
+
+
// virtual
Reference< XContent > SAL_CALL UcbContentProviderProxy::queryContent(
@@ -229,7 +229,7 @@ Reference< XContent > SAL_CALL UcbContentProviderProxy::queryContent(
return Reference< XContent >();
}
-//=========================================================================
+
// virtual
sal_Int32 SAL_CALL UcbContentProviderProxy::compareContentIds(
const Reference< XContentIdentifier >& Id1,
@@ -249,11 +249,11 @@ sal_Int32 SAL_CALL UcbContentProviderProxy::compareContentIds(
return 0;
}
-//=========================================================================
-//
+
+
// XParameterizedContentProvider methods.
-//
-//=========================================================================
+
+
// virtual
Reference< XContentProvider > SAL_CALL
@@ -279,7 +279,7 @@ UcbContentProviderProxy::registerInstance( const OUString& Template,
return this;
}
-//=========================================================================
+
// virtual
Reference< XContentProvider > SAL_CALL
UcbContentProviderProxy::deregisterInstance( const OUString& Template,
@@ -314,11 +314,11 @@ UcbContentProviderProxy::deregisterInstance( const OUString& Template,
return this;
}
-//=========================================================================
-//
+
+
// XContentProviderSupplier methods.
-//
-//=========================================================================
+
+
// virtual
Reference< XContentProvider > SAL_CALL
diff --git a/ucb/source/core/provprox.hxx b/ucb/source/core/provprox.hxx
index fd40d0ca733c..4bfc5799a4f1 100644
--- a/ucb/source/core/provprox.hxx
+++ b/ucb/source/core/provprox.hxx
@@ -31,18 +31,18 @@
#include <cppuhelper/weak.hxx>
#include <ucbhelper/macros.hxx>
-//=========================================================================
+
#define PROVIDER_FACTORY_SERVICE_NAME \
"com.sun.star.ucb.ContentProviderProxyFactory"
#define PROVIDER_PROXY_SERVICE_NAME \
"com.sun.star.ucb.ContentProviderProxy"
-//============================================================================
-//
+
+
// class UcbContentProviderProxyFactory.
-//
-//============================================================================
+
+
class UcbContentProviderProxyFactory :
public cppu::OWeakObject,
@@ -75,11 +75,11 @@ public:
throw( ::com::sun::star::uno::RuntimeException );
};
-//============================================================================
-//
+
+
// class UcbContentProviderProxy.
-//
-//============================================================================
+
+
class UcbContentProviderProxy :
public cppu::OWeakObject,
diff --git a/ucb/source/core/ucb.cxx b/ucb/source/core/ucb.cxx
index eb8acce5b3cb..b95ad1f2240e 100644
--- a/ucb/source/core/ucb.cxx
+++ b/ucb/source/core/ucb.cxx
@@ -224,11 +224,11 @@ bool createContentProviderData(
}
-//=========================================================================
-//
+
+
// UniversalContentBroker Implementation.
-//
-//=========================================================================
+
+
UniversalContentBroker::UniversalContentBroker(
const Reference< com::sun::star::uno::XComponentContext >& xContext )
@@ -241,18 +241,18 @@ UniversalContentBroker::UniversalContentBroker(
"UniversalContentBroker ctor: No service manager" );
}
-//=========================================================================
+
// virtual
UniversalContentBroker::~UniversalContentBroker()
{
delete m_pDisposeEventListeners;
}
-//=========================================================================
-//
+
+
// XInterface methods.
-//
-//=========================================================================
+
+
XINTERFACE_IMPL_9( UniversalContentBroker,
XUniversalContentBroker,
@@ -265,11 +265,11 @@ XINTERFACE_IMPL_9( UniversalContentBroker,
XContentIdentifierFactory,
XCommandProcessor );
-//=========================================================================
-//
+
+
// XTypeProvider methods.
-//
-//=========================================================================
+
+
XTYPEPROVIDER_IMPL_9( UniversalContentBroker,
XUniversalContentBroker,
@@ -282,11 +282,11 @@ XTYPEPROVIDER_IMPL_9( UniversalContentBroker,
XContentIdentifierFactory,
XCommandProcessor );
-//=========================================================================
-//
+
+
// XComponent methods.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL UniversalContentBroker::dispose()
@@ -303,7 +303,7 @@ void SAL_CALL UniversalContentBroker::dispose()
m_xNotifier->removeChangesListener( this );
}
-//=========================================================================
+
// virtual
void SAL_CALL UniversalContentBroker::addEventListener(
const Reference< XEventListener >& Listener )
@@ -315,7 +315,7 @@ void SAL_CALL UniversalContentBroker::addEventListener(
m_pDisposeEventListeners->addInterface( Listener );
}
-//=========================================================================
+
// virtual
void SAL_CALL UniversalContentBroker::removeEventListener(
const Reference< XEventListener >& Listener )
@@ -327,29 +327,29 @@ void SAL_CALL UniversalContentBroker::removeEventListener(
// Note: Don't want to delete empty container here -> performance.
}
-//=========================================================================
-//
+
+
// XServiceInfo methods.
-//
-//=========================================================================
+
+
XSERVICEINFO_IMPL_1_CTX( UniversalContentBroker,
OUString( "com.sun.star.comp.ucb.UniversalContentBroker" ),
OUString( UCB_SERVICE_NAME ) );
-//=========================================================================
-//
+
+
// Service factory implementation.
-//
-//=========================================================================
+
+
ONE_INSTANCE_SERVICE_FACTORY_IMPL( UniversalContentBroker );
-//=========================================================================
-//
+
+
// XInitialization methods.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL UniversalContentBroker::initialize(
@@ -387,11 +387,11 @@ void SAL_CALL UniversalContentBroker::initialize(
configureUcb();
}
-//=========================================================================
-//
+
+
// XContentProviderManager methods.
-//
-//=========================================================================
+
+
// virtual
Reference< XContentProvider > SAL_CALL
@@ -440,7 +440,7 @@ UniversalContentBroker::registerContentProvider(
return xPrevious;
}
-//=========================================================================
+
// virtual
void SAL_CALL UniversalContentBroker::deregisterContentProvider(
const Reference< XContentProvider >& Provider,
@@ -479,7 +479,7 @@ void SAL_CALL UniversalContentBroker::deregisterContentProvider(
}
}
-//=========================================================================
+
// virtual
com::sun::star::uno::Sequence< ContentProviderInfo > SAL_CALL
UniversalContentBroker::queryContentProviders()
@@ -506,7 +506,7 @@ com::sun::star::uno::Sequence< ContentProviderInfo > SAL_CALL
return aSeq;
}
-//=========================================================================
+
// virtual
Reference< XContentProvider > SAL_CALL
UniversalContentBroker::queryContentProvider( const OUString&
@@ -516,21 +516,21 @@ Reference< XContentProvider > SAL_CALL
return queryContentProvider( Identifier, sal_False );
}
-//=========================================================================
-//
+
+
// XContentProvider methods.
-//
-//=========================================================================
+
+
// virtual
Reference< XContent > SAL_CALL UniversalContentBroker::queryContent(
const Reference< XContentIdentifier >& Identifier )
throw( IllegalIdentifierException, com::sun::star::uno::RuntimeException )
{
- //////////////////////////////////////////////////////////////////////
+
// Let the content provider for the scheme given with the content
// identifier create the XContent instance.
- //////////////////////////////////////////////////////////////////////
+
if ( !Identifier.is() )
return Reference< XContent >();
@@ -543,7 +543,7 @@ Reference< XContent > SAL_CALL UniversalContentBroker::queryContent(
return Reference< XContent >();
}
-//=========================================================================
+
// virtual
sal_Int32 SAL_CALL UniversalContentBroker::compareContentIds(
const Reference< XContentIdentifier >& Id1,
@@ -567,11 +567,11 @@ sal_Int32 SAL_CALL UniversalContentBroker::compareContentIds(
return aURI1.compareTo( aURI2 );
}
-//=========================================================================
-//
+
+
// XContentIdentifierFactory methods.
-//
-//=========================================================================
+
+
// virtual
Reference< XContentIdentifier > SAL_CALL
@@ -579,12 +579,12 @@ Reference< XContentIdentifier > SAL_CALL
const OUString& ContentId )
throw( com::sun::star::uno::RuntimeException )
{
- //////////////////////////////////////////////////////////////////////
+
// Let the content provider for the scheme given with content
// identifier create the XContentIdentifier instance, if he supports
// the XContentIdentifierFactory interface. Otherwise create standard
// implementation object for XContentIdentifier.
- //////////////////////////////////////////////////////////////////////
+
Reference< XContentIdentifier > xIdentifier;
@@ -603,11 +603,11 @@ Reference< XContentIdentifier > SAL_CALL
return xIdentifier;
}
-//=========================================================================
-//
+
+
// XCommandProcessor methods.
-//
-//=========================================================================
+
+
// virtual
sal_Int32 SAL_CALL UniversalContentBroker::createCommandIdentifier()
@@ -619,7 +619,7 @@ sal_Int32 SAL_CALL UniversalContentBroker::createCommandIdentifier()
return ++m_nCommandId;
}
-//=========================================================================
+
// virtual
Any SAL_CALL UniversalContentBroker::execute(
const Command& aCommand,
@@ -629,24 +629,24 @@ Any SAL_CALL UniversalContentBroker::execute(
{
Any aRet;
- //////////////////////////////////////////////////////////////////////
+
// Note: Don't forget to adapt ucb_commands::CommandProcessorInfo
// ctor in ucbcmds.cxx when adding new commands!
- //////////////////////////////////////////////////////////////////////
+
if ( ( aCommand.Handle == GETCOMMANDINFO_HANDLE ) || aCommand.Name == GETCOMMANDINFO_NAME )
{
- //////////////////////////////////////////////////////////////////
+
// getCommandInfo
- //////////////////////////////////////////////////////////////////
+
aRet <<= getCommandInfo();
}
else if ( ( aCommand.Handle == GLOBALTRANSFER_HANDLE ) || aCommand.Name == GLOBALTRANSFER_NAME )
{
- //////////////////////////////////////////////////////////////////
+
// globalTransfer
- //////////////////////////////////////////////////////////////////
+
GlobalTransferCommandArgument2 aTransferArg;
if ( !( aCommand.Argument >>= aTransferArg ) )
@@ -690,9 +690,9 @@ Any SAL_CALL UniversalContentBroker::execute(
}
else
{
- //////////////////////////////////////////////////////////////////
+
// Unknown command
- //////////////////////////////////////////////////////////////////
+
ucbhelper::cancelCommandExecution(
makeAny( UnsupportedCommandException(
@@ -705,11 +705,11 @@ Any SAL_CALL UniversalContentBroker::execute(
return aRet;
}
-//=========================================================================
-//
+
+
// XCommandProcessor2 methods.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL UniversalContentBroker::releaseCommandIdentifier(sal_Int32 /*aCommandId*/)
@@ -718,7 +718,7 @@ void SAL_CALL UniversalContentBroker::releaseCommandIdentifier(sal_Int32 /*aComm
// @@@ Not implemeted ( yet).
}
-//=========================================================================
+
// virtual
void SAL_CALL UniversalContentBroker::abort( sal_Int32 )
throw( RuntimeException )
@@ -726,11 +726,11 @@ void SAL_CALL UniversalContentBroker::abort( sal_Int32 )
// @@@ Not implemeted ( yet).
}
-//=========================================================================
-//
+
+
// XChangesListener methods
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL UniversalContentBroker::changesOccurred( const util::ChangesEvent& Event )
throw( uno::RuntimeException )
@@ -760,7 +760,7 @@ void SAL_CALL UniversalContentBroker::changesOccurred( const util::ChangesEvent&
// ElementChange whether it is an addition or a removal, so as a
// heuristic consider as removals those that cause a
// NoSuchElementException in createContentProviderData.
- //
+
// For now, removal of UCPs from the configuration is simply ignored
// (and not reflected in the UCB's data structures):
if (createContentProviderData(aKey, xHierNameAccess, aInfo))
@@ -773,11 +773,11 @@ void SAL_CALL UniversalContentBroker::changesOccurred( const util::ChangesEvent&
}
}
-//=========================================================================
-//
+
+
// XEventListener methods
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL UniversalContentBroker::disposing(const lang::EventObject&)
throw( uno::RuntimeException )
@@ -791,11 +791,11 @@ void SAL_CALL UniversalContentBroker::disposing(const lang::EventObject&)
}
}
-//=========================================================================
-//
+
+
// Non-interface methods
-//
-//=========================================================================
+
+
Reference< XContentProvider > UniversalContentBroker::queryContentProvider(
const OUString& Identifier,
@@ -857,7 +857,7 @@ void UniversalContentBroker::prepareAndRegister(
}
}
-//=========================================================================
+
bool UniversalContentBroker::getContentProviderData(
const OUString & rKey1,
const OUString & rKey2,
@@ -958,11 +958,11 @@ bool UniversalContentBroker::getContentProviderData(
return true;
}
-//=========================================================================
-//
+
+
// ProviderListEntry_Impl implementation.
-//
-//=========================================================================
+
+
Reference< XContentProvider > ProviderListEntry_Impl::resolveProvider() const
{
diff --git a/ucb/source/core/ucb.hxx b/ucb/source/core/ucb.hxx
index 54e215b4341d..36ba6412d7ec 100644
--- a/ucb/source/core/ucb.hxx
+++ b/ucb/source/core/ucb.hxx
@@ -40,11 +40,11 @@
#include <ucbhelper/registerucb.hxx>
#include <vector>
-//=========================================================================
+
#define UCB_SERVICE_NAME "com.sun.star.ucb.UniversalContentBroker"
-//=========================================================================
+
namespace cppu { class OInterfaceContainerHelper; }
diff --git a/ucb/source/core/ucbcmds.cxx b/ucb/source/core/ucbcmds.cxx
index 933444120b12..a3ffcd4b9270 100644
--- a/ucb/source/core/ucbcmds.cxx
+++ b/ucb/source/core/ucbcmds.cxx
@@ -68,11 +68,11 @@ using namespace com::sun::star;
namespace
{
-//=========================================================================
-//
+
+
// struct TransferCommandContext.
-//
-//=========================================================================
+
+
struct TransferCommandContext
{
@@ -92,11 +92,11 @@ struct TransferCommandContext
xOrigEnv( rxOrigEnv ), aArg( rArg ) {}
};
-//=========================================================================
-//
+
+
// class InteractionHandlerProxy.
-//
-//=========================================================================
+
+
class InteractionHandlerProxy :
public cppu::WeakImplHelper1< task::XInteractionHandler >
@@ -114,7 +114,7 @@ public:
throw ( uno::RuntimeException );
};
-//=========================================================================
+
// virtual
void SAL_CALL InteractionHandlerProxy::handle(
const uno::Reference< task::XInteractionRequest >& Request )
@@ -166,11 +166,11 @@ void SAL_CALL InteractionHandlerProxy::handle(
m_xOrig->handle( Request );
}
-//=========================================================================
-//
+
+
// class ActiveDataSink.
-//
-//=========================================================================
+
+
class ActiveDataSink : public cppu::WeakImplHelper1< io::XActiveDataSink >
{
@@ -185,7 +185,7 @@ public:
throw( uno::RuntimeException );
};
-//=========================================================================
+
// virtual
void SAL_CALL ActiveDataSink::setInputStream(
const uno::Reference< io::XInputStream >& aStream )
@@ -194,7 +194,7 @@ void SAL_CALL ActiveDataSink::setInputStream(
m_xStream = aStream;
}
-//=========================================================================
+
// virtual
uno::Reference< io::XInputStream > SAL_CALL ActiveDataSink::getInputStream()
throw( uno::RuntimeException )
@@ -202,11 +202,11 @@ uno::Reference< io::XInputStream > SAL_CALL ActiveDataSink::getInputStream()
return m_xStream;
}
-//=========================================================================
-//
+
+
// class CommandProcessorInfo.
-//
-//=========================================================================
+
+
class CommandProcessorInfo :
public cppu::WeakImplHelper1< ucb::XCommandInfo >
@@ -232,7 +232,7 @@ public:
throw( uno::RuntimeException );
};
-//=========================================================================
+
CommandProcessorInfo::CommandProcessorInfo()
{
m_pInfo = new uno::Sequence< ucb::CommandInfo >( 2 );
@@ -258,14 +258,14 @@ CommandProcessorInfo::CommandProcessorInfo()
ucb::GlobalTransferCommandArgument * >( 0 ) ) ); // ArgType
}
-//=========================================================================
+
// virtual
CommandProcessorInfo::~CommandProcessorInfo()
{
delete m_pInfo;
}
-//=========================================================================
+
// virtual
uno::Sequence< ucb::CommandInfo > SAL_CALL
CommandProcessorInfo::getCommands()
@@ -274,7 +274,7 @@ CommandProcessorInfo::getCommands()
return uno::Sequence< ucb::CommandInfo >( *m_pInfo );
}
-//=========================================================================
+
// virtual
ucb::CommandInfo SAL_CALL
CommandProcessorInfo::getCommandInfoByName( const OUString& Name )
@@ -289,7 +289,7 @@ CommandProcessorInfo::getCommandInfoByName( const OUString& Name )
throw ucb::UnsupportedCommandException();
}
-//=========================================================================
+
// virtual
ucb::CommandInfo SAL_CALL
CommandProcessorInfo::getCommandInfoByHandle( sal_Int32 Handle )
@@ -304,7 +304,7 @@ CommandProcessorInfo::getCommandInfoByHandle( sal_Int32 Handle )
throw ucb::UnsupportedCommandException();
}
-//=========================================================================
+
// virtual
sal_Bool SAL_CALL CommandProcessorInfo::hasCommandByName(
const OUString& Name )
@@ -319,7 +319,7 @@ sal_Bool SAL_CALL CommandProcessorInfo::hasCommandByName(
return sal_False;
}
-//=========================================================================
+
// virtual
sal_Bool SAL_CALL CommandProcessorInfo::hasCommandByHandle( sal_Int32 Handle )
throw( uno::RuntimeException )
@@ -333,9 +333,9 @@ sal_Bool SAL_CALL CommandProcessorInfo::hasCommandByHandle( sal_Int32 Handle )
return sal_False;
}
-//=========================================================================
-//=========================================================================
-//=========================================================================
+
+
+
OUString createDesiredName(
const OUString & rSourceURL, const OUString & rNewTitle )
@@ -398,7 +398,7 @@ OUString createDesiredName(
return createDesiredName( rArg.SourceURL, rArg.NewTitle );
}
-//=========================================================================
+
enum NameClashContinuation { NOT_HANDLED, ABORT, OVERWRITE, NEW_NAME, UNKNOWN };
NameClashContinuation interactiveNameClashResolve(
@@ -474,7 +474,7 @@ NameClashContinuation interactiveNameClashResolve(
return NOT_HANDLED;
}
-//=========================================================================
+
bool setTitle(
const uno::Reference< ucb::XCommandProcessor > & xCommandProcessor,
const uno::Reference< ucb::XCommandEnvironment > & xEnv,
@@ -521,7 +521,7 @@ bool setTitle(
return true;
}
-//=========================================================================
+
uno::Reference< ucb::XContent > createNew(
const TransferCommandContext & rContext,
const uno::Reference< ucb::XContent > & xTarget,
@@ -530,11 +530,11 @@ uno::Reference< ucb::XContent > createNew(
sal_Bool bSourceIsLink )
throw( uno::Exception )
{
- //////////////////////////////////////////////////////////////////////
- //
+
+
// (1) Obtain creatable types from target.
- //
- //////////////////////////////////////////////////////////////////////
+
+
// First, try it using "CreatabeleContentsInfo" property and
// "createNewContent" command -> the "new" way.
@@ -630,11 +630,11 @@ uno::Reference< ucb::XContent > createNew(
// Unreachable
}
- //////////////////////////////////////////////////////////////////////
- //
+
+
// (2) Try to find a matching target type for the source object.
- //
- //////////////////////////////////////////////////////////////////////
+
+
uno::Reference< ucb::XContent > xNew;
for ( sal_Int32 n = 0; n < nCount; ++n )
@@ -672,7 +672,7 @@ uno::Reference< ucb::XContent > createNew(
{
// (not a and not b) or (a and b)
// not( a or b) or (a and b)
- //
+
if ( ( !!bSourceIsFolder ==
!!( nAttribs
& ucb::ContentInfoAttribute::KIND_FOLDER ) )
@@ -700,11 +700,11 @@ uno::Reference< ucb::XContent > createNew(
if ( bMatch )
{
- //////////////////////////////////////////////////////////////
- //
+
+
// (3) Create a new, empty object of matched type.
- //
- //////////////////////////////////////////////////////////////
+
+
if ( !xCreator.is() )
{
@@ -750,7 +750,7 @@ uno::Reference< ucb::XContent > createNew(
return xNew;
}
-//=========================================================================
+
void transferProperties(
const TransferCommandContext & rContext,
const uno::Reference< ucb::XCommandProcessor > & xCommandProcessorS,
@@ -909,7 +909,7 @@ void transferProperties(
// new object? addProperty ???
}
-//=========================================================================
+
uno::Reference< io::XInputStream > getInputStream(
const TransferCommandContext & rContext,
const uno::Reference< ucb::XCommandProcessor > & xCommandProcessorS )
@@ -917,11 +917,11 @@ uno::Reference< io::XInputStream > getInputStream(
{
uno::Reference< io::XInputStream > xInputStream;
- //////////////////////////////////////////////////////////////////////
- //
+
+
// (1) Try to get data as XInputStream via XActiveDataSink.
- //
- //////////////////////////////////////////////////////////////////////
+
+
try
{
@@ -952,11 +952,11 @@ uno::Reference< io::XInputStream > getInputStream(
if ( !xInputStream.is() )
{
- //////////////////////////////////////////////////////////////////
- //
+
+
// (2) Try to get data via XOutputStream.
- //
- //////////////////////////////////////////////////////////////////
+
+
try
{
@@ -991,7 +991,7 @@ uno::Reference< io::XInputStream > getInputStream(
return xInputStream;
}
-//=========================================================================
+
uno::Reference< sdbc::XResultSet > getResultSet(
const TransferCommandContext & rContext,
const uno::Reference< ucb::XCommandProcessor > & xCommandProcessorS )
@@ -1037,7 +1037,7 @@ uno::Reference< sdbc::XResultSet > getResultSet(
return xResultSet;
}
-//=========================================================================
+
void handleNameClashRename(
const TransferCommandContext & rContext,
const uno::Reference< ucb::XContent > & xNew,
@@ -1210,7 +1210,7 @@ void handleNameClashRename(
}
}
-//=========================================================================
+
void globalTransfer_(
const TransferCommandContext & rContext,
const uno::Reference< ucb::XContent > & xSource,
@@ -1247,12 +1247,12 @@ void globalTransfer_(
// TargetURL: property is optional.
sal_Bool bSourceIsLink = !xSourceProps->getString( 3 ).isEmpty();
- //////////////////////////////////////////////////////////////////////
- //
+
+
// (1) Try to find a matching target type for the source object and
// create a new, empty object of that type.
- //
- //////////////////////////////////////////////////////////////////////
+
+
uno::Reference< ucb::XContent > xNew = createNew( rContext,
xTarget,
@@ -1276,11 +1276,11 @@ void globalTransfer_(
// Unreachable
}
- //////////////////////////////////////////////////////////////////////
- //
+
+
// (2) Transfer property values from source to new object.
- //
- //////////////////////////////////////////////////////////////////////
+
+
uno::Reference< ucb::XCommandProcessor > xCommandProcessorN(
xNew, uno::UNO_QUERY );
@@ -1326,11 +1326,11 @@ void globalTransfer_(
transferProperties( rContext, xCommandProcessorS, xCommandProcessorN );
- //////////////////////////////////////////////////////////////////////
- //
+
+
// (3) Try to obtain a data stream from source.
- //
- //////////////////////////////////////////////////////////////////////
+
+
uno::Reference< io::XInputStream > xInputStream;
@@ -1338,11 +1338,11 @@ void globalTransfer_(
!= ucb::TransferCommandOperation_LINK ) )
xInputStream = getInputStream( rContext, xCommandProcessorS );
- //////////////////////////////////////////////////////////////////////
- //
+
+
// (4) Try to obtain a resultset (children) from source.
- //
- //////////////////////////////////////////////////////////////////////
+
+
uno::Reference< sdbc::XResultSet > xResultSet;
@@ -1350,11 +1350,11 @@ void globalTransfer_(
!= ucb::TransferCommandOperation_LINK ) )
xResultSet = getResultSet( rContext, xCommandProcessorS );
- //////////////////////////////////////////////////////////////////////
- //
+
+
// (5) Insert (store) new content.
- //
- //////////////////////////////////////////////////////////////////////
+
+
ucb::InsertCommandArgument2 aArg;
aArg.Data = xInputStream;
@@ -1547,11 +1547,11 @@ void globalTransfer_(
}
while ( bRetry );
- //////////////////////////////////////////////////////////////////////
- //
+
+
// (6) Process children of source.
- //
- //////////////////////////////////////////////////////////////////////
+
+
if ( xResultSet.is() )
{
@@ -1677,11 +1677,11 @@ void globalTransfer_(
} /* namescpace */
-//=========================================================================
-//
+
+
// UniversalContentBroker implementation ( XCommandProcessor commands ).
-//
-//=========================================================================
+
+
uno::Reference< ucb::XCommandInfo >
UniversalContentBroker::getCommandInfo()
@@ -1689,7 +1689,7 @@ UniversalContentBroker::getCommandInfo()
return uno::Reference< ucb::XCommandInfo >( new CommandProcessorInfo() );
}
-//=========================================================================
+
void UniversalContentBroker::globalTransfer(
const ucb::GlobalTransferCommandArgument2 & rArg,
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
@@ -1707,11 +1707,11 @@ void UniversalContentBroker::globalTransfer(
xEnv->getProgressHandler() ) );
}
- //////////////////////////////////////////////////////////////////////
- //
+
+
// (1) Try to transfer the content using 'transfer' command.
- //
- //////////////////////////////////////////////////////////////////////
+
+
uno::Reference< ucb::XContent > xTarget;
uno::Reference< ucb::XContentIdentifier > xId
@@ -1894,11 +1894,11 @@ void UniversalContentBroker::globalTransfer(
while ( bRetry );
}
- //////////////////////////////////////////////////////////////////////
- //
+
+
// (2) Try to transfer the content "manually".
- //
- //////////////////////////////////////////////////////////////////////
+
+
uno::Reference< ucb::XContent > xSource;
try
@@ -2004,11 +2004,11 @@ void UniversalContentBroker::globalTransfer(
// Do it!
globalTransfer_( aTransferCtx, xSource, xTarget, xRow );
- //////////////////////////////////////////////////////////////////////
- //
+
+
// (3) Delete source, if operation is MOVE.
- //
- //////////////////////////////////////////////////////////////////////
+
+
if ( rArg.Operation == ucb::TransferCommandOperation_MOVE )
{
diff --git a/ucb/source/core/ucbcmds.hxx b/ucb/source/core/ucbcmds.hxx
index c0664f39705c..3926f80506eb 100644
--- a/ucb/source/core/ucbcmds.hxx
+++ b/ucb/source/core/ucbcmds.hxx
@@ -20,11 +20,11 @@
#ifndef _UCBCMDS_HXX
#define _UCBCMDS_HXX
-//////////////////////////////////////////////////////////////////////////
-//
+
+
// Definitions for the commands supported by the UCB.
-//
-//////////////////////////////////////////////////////////////////////////
+
+
#define GETCOMMANDINFO_NAME "getCommandInfo"
#define GETCOMMANDINFO_HANDLE 1024
diff --git a/ucb/source/core/ucbprops.cxx b/ucb/source/core/ucbprops.cxx
index ee61cb6e0840..11fdf82e7f97 100644
--- a/ucb/source/core/ucbprops.cxx
+++ b/ucb/source/core/ucbprops.cxx
@@ -39,11 +39,11 @@ using namespace com::sun::star::uno;
using namespace com::sun::star::util;
-//=========================================================================
-//
+
+
// struct PropertyTableEntry
-//
-//=========================================================================
+
+
struct PropertyTableEntry
{
@@ -53,11 +53,11 @@ struct PropertyTableEntry
const com::sun::star::uno::Type& (*pGetCppuType)();
};
-//////////////////////////////////////////////////////////////////////////
-//
+
+
// CPPU type access functions.
-//
-//////////////////////////////////////////////////////////////////////////
+
+
static const com::sun::star::uno::Type& OUString_getCppuType()
{
@@ -158,9 +158,9 @@ static const com::sun::star::uno::Type& Sequence_SendMediaTypes_getCppuType()
com::sun::star::ucb::SendMediaTypes > * >( 0 ) );
}
-//////////////////////////////////////////////////////////////////////////////////////////////////////////////
+
// A table with all well-known UCB properties.
-//////////////////////////////////////////////////////////////////////////////////////////////////////////////
+
#define ATTR_DEFAULT ( PropertyAttribute::BOUND | PropertyAttribute::MAYBEVOID | PropertyAttribute::MAYBEDEFAULT )
@@ -278,20 +278,20 @@ static const PropertyTableEntry __aPropertyTable[] =
{ "VIMPostOfficePath", -1, ATTR_DEFAULT, &OUString_getCppuType },
{ "VerificationMode", -1, ATTR_DEFAULT, &enum_getCppuType },
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////
+
// EOT.
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////
+
{ 0, 0, 0, 0 }
};
-//=========================================================================
-//=========================================================================
-//
+
+
+
// UcbPropertiesManager Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
UcbPropertiesManager::UcbPropertiesManager(
const Reference< XMultiServiceFactory >& )
@@ -299,58 +299,58 @@ UcbPropertiesManager::UcbPropertiesManager(
{
}
-//=========================================================================
+
// virtual
UcbPropertiesManager::~UcbPropertiesManager()
{
delete m_pProps;
}
-//=========================================================================
-//
+
+
// XInterface methods.
-//
-//=========================================================================
+
+
XINTERFACE_IMPL_3( UcbPropertiesManager,
XTypeProvider,
XServiceInfo,
XPropertySetInfo );
-//=========================================================================
-//
+
+
// XTypeProvider methods.
-//
-//=========================================================================
+
+
XTYPEPROVIDER_IMPL_3( UcbPropertiesManager,
XTypeProvider,
XServiceInfo,
XPropertySetInfo );
-//=========================================================================
-//
+
+
// XServiceInfo methods.
-//
-//=========================================================================
+
+
XSERVICEINFO_IMPL_1( UcbPropertiesManager,
OUString( "com.sun.star.comp.ucb.UcbPropertiesManager" ),
OUString( PROPERTIES_MANAGER_SERVICE_NAME ) );
-//=========================================================================
-//
+
+
// Service factory implementation.
-//
-//=========================================================================
+
+
ONE_INSTANCE_SERVICE_FACTORY_IMPL( UcbPropertiesManager );
-//=========================================================================
-//
+
+
// XPropertySetInfo methods.
-//
-//=========================================================================
+
+
// virtual
Sequence< Property > SAL_CALL UcbPropertiesManager::getProperties()
@@ -365,9 +365,9 @@ Sequence< Property > SAL_CALL UcbPropertiesManager::getProperties()
sal_Int32 nPos = 0;
sal_Int32 nSize = m_pProps->getLength();
- //////////////////////////////////////////////////////////////////
+
// Get info for well-known properties.
- //////////////////////////////////////////////////////////////////
+
const PropertyTableEntry* pCurr = &__aPropertyTable[ 0 ];
while ( pCurr->pName )
@@ -401,7 +401,7 @@ Sequence< Property > SAL_CALL UcbPropertiesManager::getProperties()
return *m_pProps;
}
-//=========================================================================
+
// virtual
Property SAL_CALL UcbPropertiesManager::getPropertyByName( const OUString& aName )
throw( UnknownPropertyException, RuntimeException )
@@ -413,7 +413,7 @@ Property SAL_CALL UcbPropertiesManager::getPropertyByName( const OUString& aName
throw UnknownPropertyException();
}
-//=========================================================================
+
// virtual
sal_Bool SAL_CALL UcbPropertiesManager::hasPropertyByName( const OUString& Name )
throw( RuntimeException )
@@ -422,11 +422,11 @@ sal_Bool SAL_CALL UcbPropertiesManager::hasPropertyByName( const OUString& Name
return queryProperty( Name, aProp );
}
-//=========================================================================
-//
+
+
// Non-Interface methods.
-//
-//=========================================================================
+
+
sal_Bool UcbPropertiesManager::queryProperty(
const OUString& rName, Property& rProp )
diff --git a/ucb/source/core/ucbprops.hxx b/ucb/source/core/ucbprops.hxx
index c63c03a8b4cf..1ab89649ae57 100644
--- a/ucb/source/core/ucbprops.hxx
+++ b/ucb/source/core/ucbprops.hxx
@@ -28,15 +28,15 @@
#include <osl/mutex.hxx>
#include <ucbhelper/macros.hxx>
-//=========================================================================
+
#define PROPERTIES_MANAGER_SERVICE_NAME "com.sun.star.ucb.PropertiesManager"
-//============================================================================
-//
+
+
// class UcbPropertiesManager.
-//
-//============================================================================
+
+
class UcbPropertiesManager :
public cppu::OWeakObject,
diff --git a/ucb/source/core/ucbserv.cxx b/ucb/source/core/ucbserv.cxx
index 59233c28d7ef..df41eaaa1f4c 100644
--- a/ucb/source/core/ucbserv.cxx
+++ b/ucb/source/core/ucbserv.cxx
@@ -29,7 +29,7 @@
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
-//=========================================================================
+
extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucb_component_getFactory(
const sal_Char * pImplName, void * pServiceManager, void * )
{
@@ -39,9 +39,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucb_component_getFactory(
reinterpret_cast< XMultiServiceFactory * >( pServiceManager ) );
Reference< XSingleServiceFactory > xFactory;
- //////////////////////////////////////////////////////////////////////
+
// Universal Content Broker.
- //////////////////////////////////////////////////////////////////////
+
if ( UniversalContentBroker::getImplementationName_Static().
equalsAscii( pImplName ) )
@@ -49,9 +49,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucb_component_getFactory(
xFactory = UniversalContentBroker::createServiceFactory( xSMgr );
}
- //////////////////////////////////////////////////////////////////////
+
// UCB Store.
- //////////////////////////////////////////////////////////////////////
+
else if ( UcbStore::getImplementationName_Static().
equalsAscii( pImplName ) )
@@ -59,9 +59,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucb_component_getFactory(
xFactory = UcbStore::createServiceFactory( xSMgr );
}
- //////////////////////////////////////////////////////////////////////
+
// UCB PropertiesManager.
- //////////////////////////////////////////////////////////////////////
+
else if ( UcbPropertiesManager::getImplementationName_Static().
equalsAscii( pImplName ) )
@@ -69,9 +69,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucb_component_getFactory(
xFactory = UcbPropertiesManager::createServiceFactory( xSMgr );
}
- //////////////////////////////////////////////////////////////////////
+
// UCP Proxy Factory.
- //////////////////////////////////////////////////////////////////////
+
else if ( UcbContentProviderProxyFactory::getImplementationName_Static().
equalsAscii( pImplName ) )
@@ -79,9 +79,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucb_component_getFactory(
xFactory = UcbContentProviderProxyFactory::createServiceFactory( xSMgr );
}
- //////////////////////////////////////////////////////////////////////
+
// Command Environment.
- //////////////////////////////////////////////////////////////////////
+
else if ( ucb_cmdenv::UcbCommandEnvironment::getImplementationName_Static().
equalsAscii( pImplName ) )
diff --git a/ucb/source/core/ucbstore.cxx b/ucb/source/core/ucbstore.cxx
index 04a961fb4e6c..9a8fe60498f9 100644
--- a/ucb/source/core/ucbstore.cxx
+++ b/ucb/source/core/ucbstore.cxx
@@ -49,7 +49,7 @@ using namespace com::sun::star::util;
using namespace cppu;
-//=========================================================================
+
OUString makeHierarchalNameSegment( const OUString & rIn )
{
OUStringBuffer aBuffer;
@@ -91,7 +91,7 @@ OUString makeHierarchalNameSegment( const OUString & rIn )
return OUString( aBuffer.makeStringAndClear() );
}
-//=========================================================================
+
#define STORE_CONTENTPROPERTIES_KEY "/org.openoffice.ucb.Store/ContentProperties"
@@ -100,11 +100,11 @@ OUString makeHierarchalNameSegment( const OUString & rIn )
// true->async. update; false->sync. update
#define CFGPROPERTY_LAZYWRITE "lazywrite"
-//=========================================================================
-//
+
+
// PropertySetMap_Impl.
-//
-//=========================================================================
+
+
typedef boost::unordered_map
<
@@ -114,11 +114,11 @@ typedef boost::unordered_map
>
PropertySetMap_Impl;
-//=========================================================================
-//
+
+
// class PropertySetInfo_Impl
-//
-//=========================================================================
+
+
class PropertySetInfo_Impl :
public OWeakObject, public XTypeProvider, public XPropertySetInfo
@@ -150,11 +150,11 @@ public:
void reset() { delete m_pProps; m_pProps = 0; }
};
-//=========================================================================
-//
+
+
// UcbStore_Impl.
-//
-//=========================================================================
+
+
struct UcbStore_Impl
{
@@ -163,15 +163,15 @@ struct UcbStore_Impl
Reference< XPropertySetRegistry > m_xTheRegistry;
};
-//=========================================================================
-//=========================================================================
-//=========================================================================
-//
+
+
+
+
// UcbStore Implementation.
-//
-//=========================================================================
-//=========================================================================
-//=========================================================================
+
+
+
+
UcbStore::UcbStore( const Reference< XComponentContext >& xContext )
: m_xContext( xContext ),
@@ -179,18 +179,18 @@ UcbStore::UcbStore( const Reference< XComponentContext >& xContext )
{
}
-//=========================================================================
+
// virtual
UcbStore::~UcbStore()
{
delete m_pImpl;
}
-//=========================================================================
-//
+
+
// XInterface methods.
-//
-//=========================================================================
+
+
XINTERFACE_IMPL_4( UcbStore,
XTypeProvider,
@@ -198,11 +198,11 @@ XINTERFACE_IMPL_4( UcbStore,
XPropertySetRegistryFactory,
XInitialization );
-//=========================================================================
-//
+
+
// XTypeProvider methods.
-//
-//=========================================================================
+
+
XTYPEPROVIDER_IMPL_4( UcbStore,
XTypeProvider,
@@ -210,29 +210,29 @@ XTYPEPROVIDER_IMPL_4( UcbStore,
XPropertySetRegistryFactory,
XInitialization );
-//=========================================================================
-//
+
+
// XServiceInfo methods.
-//
-//=========================================================================
+
+
XSERVICEINFO_IMPL_1_CTX( UcbStore,
OUString( "com.sun.star.comp.ucb.UcbStore" ),
OUString( STORE_SERVICE_NAME ) );
-//=========================================================================
-//
+
+
// Service factory implementation.
-//
-//=========================================================================
+
+
ONE_INSTANCE_SERVICE_FACTORY_IMPL( UcbStore );
-//=========================================================================
-//
+
+
// XPropertySetRegistryFactory methods.
-//
-//=========================================================================
+
+
// virtual
Reference< XPropertySetRegistry > SAL_CALL
@@ -252,11 +252,11 @@ UcbStore::createPropertySetRegistry( const OUString& )
return m_pImpl->m_xTheRegistry;
}
-//=========================================================================
-//
+
+
// XInitialization methods.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL UcbStore::initialize( const Sequence< Any >& aArguments )
@@ -266,17 +266,17 @@ void SAL_CALL UcbStore::initialize( const Sequence< Any >& aArguments )
m_pImpl->m_aInitArgs = aArguments;
}
-//=========================================================================
+
const Sequence< Any >& UcbStore::getInitArgs() const
{
return m_pImpl->m_aInitArgs;
}
-//=========================================================================
-//
+
+
// PropertySetRegistry_Impl.
-//
-//=========================================================================
+
+
struct PropertySetRegistry_Impl
{
@@ -297,15 +297,15 @@ struct PropertySetRegistry_Impl
}
};
-//=========================================================================
-//=========================================================================
-//=========================================================================
-//
+
+
+
+
// PropertySetRegistry Implementation.
-//
-//=========================================================================
-//=========================================================================
-//=========================================================================
+
+
+
+
PropertySetRegistry::PropertySetRegistry(
const Reference< XComponentContext >& xContext,
@@ -315,18 +315,18 @@ PropertySetRegistry::PropertySetRegistry(
{
}
-//=========================================================================
+
// virtual
PropertySetRegistry::~PropertySetRegistry()
{
delete m_pImpl;
}
-//=========================================================================
-//
+
+
// XInterface methods.
-//
-//=========================================================================
+
+
XINTERFACE_IMPL_5( PropertySetRegistry,
XTypeProvider,
@@ -335,11 +335,11 @@ XINTERFACE_IMPL_5( PropertySetRegistry,
XElementAccess, /* base of XNameAccess */
XNameAccess );
-//=========================================================================
-//
+
+
// XTypeProvider methods.
-//
-//=========================================================================
+
+
XTYPEPROVIDER_IMPL_4( PropertySetRegistry,
XTypeProvider,
@@ -347,21 +347,21 @@ XTYPEPROVIDER_IMPL_4( PropertySetRegistry,
XPropertySetRegistry,
XNameAccess );
-//=========================================================================
-//
+
+
// XServiceInfo methods.
-//
-//=========================================================================
+
+
XSERVICEINFO_NOFACTORY_IMPL_1( PropertySetRegistry,
OUString( "com.sun.star.comp.ucb.PropertySetRegistry" ),
OUString( PROPSET_REG_SERVICE_NAME ) );
-//=========================================================================
-//
+
+
// XPropertySetRegistry methods.
-//
-//=========================================================================
+
+
// virtual
Reference< XPersistentPropertySet > SAL_CALL
@@ -493,7 +493,7 @@ PropertySetRegistry::openPropertySet( const OUString& key, sal_Bool create )
return Reference< XPersistentPropertySet >();
}
-//=========================================================================
+
// virtual
void SAL_CALL PropertySetRegistry::removePropertySet( const OUString& key )
throw( RuntimeException )
@@ -550,11 +550,11 @@ void SAL_CALL PropertySetRegistry::removePropertySet( const OUString& key )
OSL_TRACE( "PropertySetRegistry::removePropertySet - no root access" );
}
-//=========================================================================
-//
+
+
// XElementAccess methods.
-//
-//=========================================================================
+
+
// virtual
com::sun::star::uno::Type SAL_CALL PropertySetRegistry::getElementType()
@@ -563,7 +563,7 @@ com::sun::star::uno::Type SAL_CALL PropertySetRegistry::getElementType()
return getCppuType( ( Reference< XPersistentPropertySet > * ) 0 );
}
-//=========================================================================
+
// virtual
sal_Bool SAL_CALL PropertySetRegistry::hasElements()
throw( RuntimeException )
@@ -578,11 +578,11 @@ sal_Bool SAL_CALL PropertySetRegistry::hasElements()
return sal_False;
}
-//=========================================================================
-//
+
+
// XNameAccess methods.
-//
-//=========================================================================
+
+
// virtual
Any SAL_CALL PropertySetRegistry::getByName( const OUString& aName )
@@ -612,7 +612,7 @@ Any SAL_CALL PropertySetRegistry::getByName( const OUString& aName )
return Any();
}
-//=========================================================================
+
// virtual
Sequence< OUString > SAL_CALL PropertySetRegistry::getElementNames()
throw( RuntimeException )
@@ -628,7 +628,7 @@ Sequence< OUString > SAL_CALL PropertySetRegistry::getElementNames()
return Sequence< OUString >( 0 );
}
-//=========================================================================
+
// virtual
sal_Bool SAL_CALL PropertySetRegistry::hasByName( const OUString& aName )
throw( RuntimeException )
@@ -645,7 +645,7 @@ sal_Bool SAL_CALL PropertySetRegistry::hasByName( const OUString& aName )
return sal_False;
}
-//=========================================================================
+
void PropertySetRegistry::add( PersistentPropertySet* pSet )
{
OUString key( pSet->getKey() );
@@ -657,7 +657,7 @@ void PropertySetRegistry::add( PersistentPropertySet* pSet )
}
}
-//=========================================================================
+
void PropertySetRegistry::remove( PersistentPropertySet* pSet )
{
OUString key( pSet->getKey() );
@@ -677,7 +677,7 @@ void PropertySetRegistry::remove( PersistentPropertySet* pSet )
}
}
-//=========================================================================
+
void PropertySetRegistry::renamePropertySet( const OUString& rOldKey,
const OUString& rNewKey )
{
@@ -717,9 +717,9 @@ void PropertySetRegistry::renamePropertySet( const OUString& rOldKey,
if ( xFac.is() && xBatch.is() && xContainer.is() )
{
- //////////////////////////////////////////////////////
+
// Create new "Properties" config item.
- //////////////////////////////////////////////////////
+
try
{
@@ -774,9 +774,9 @@ void PropertySetRegistry::renamePropertySet( const OUString& rOldKey,
return;
}
- //////////////////////////////////////////////////////
+
// Copy data...
- //////////////////////////////////////////////////////
+
Reference< XHierarchicalNameAccess > xRootHierNameAccess(
xRootNameAccess, UNO_QUERY );
@@ -958,9 +958,9 @@ void PropertySetRegistry::renamePropertySet( const OUString& rOldKey,
return;
}
- //////////////////////////////////////////////////////
+
// Remove old entry...
- //////////////////////////////////////////////////////
+
try
{
@@ -995,7 +995,7 @@ void PropertySetRegistry::renamePropertySet( const OUString& rOldKey,
OSL_FAIL( "PropertySetRegistry::renamePropertySet - Error!" );
}
-//=========================================================================
+
Reference< XMultiServiceFactory > PropertySetRegistry::getConfigProvider()
{
if ( !m_pImpl->m_xConfigProvider.is() )
@@ -1032,7 +1032,7 @@ Reference< XMultiServiceFactory > PropertySetRegistry::getConfigProvider()
return m_pImpl->m_xConfigProvider;
}
-//=========================================================================
+
Reference< XInterface > PropertySetRegistry::getRootConfigReadAccess()
{
try
@@ -1090,7 +1090,7 @@ Reference< XInterface > PropertySetRegistry::getRootConfigReadAccess()
return Reference< XInterface >();
}
-//=========================================================================
+
Reference< XInterface > PropertySetRegistry::getConfigWriteAccess(
const OUString& rPath )
{
@@ -1179,11 +1179,11 @@ Reference< XInterface > PropertySetRegistry::getConfigWriteAccess(
return Reference< XInterface >();
}
-//=========================================================================
-//
+
+
// PropertyListeners_Impl.
-//
-//=========================================================================
+
+
typedef OMultiTypeInterfaceContainerHelperVar
<
@@ -1191,11 +1191,11 @@ typedef OMultiTypeInterfaceContainerHelperVar
OUStringHash
> PropertyListeners_Impl;
-//=========================================================================
-//
+
+
// PersistentPropertySet_Impl.
-//
-//=========================================================================
+
+
struct PersistentPropertySet_Impl
{
@@ -1230,15 +1230,15 @@ struct PersistentPropertySet_Impl
}
};
-//=========================================================================
-//=========================================================================
-//=========================================================================
-//
+
+
+
+
// PersistentPropertySet Implementation.
-//
-//=========================================================================
-//=========================================================================
-//=========================================================================
+
+
+
+
PersistentPropertySet::PersistentPropertySet(
const Reference< XComponentContext >& xContext,
@@ -1251,7 +1251,7 @@ PersistentPropertySet::PersistentPropertySet(
rCreator.add( this );
}
-//=========================================================================
+
// virtual
PersistentPropertySet::~PersistentPropertySet()
{
@@ -1261,11 +1261,11 @@ PersistentPropertySet::~PersistentPropertySet()
delete m_pImpl;
}
-//=========================================================================
-//
+
+
// XInterface methods.
-//
-//=========================================================================
+
+
XINTERFACE_IMPL_9( PersistentPropertySet,
XTypeProvider,
@@ -1278,11 +1278,11 @@ XINTERFACE_IMPL_9( PersistentPropertySet,
XPropertySetInfoChangeNotifier,
XPropertyAccess );
-//=========================================================================
-//
+
+
// XTypeProvider methods.
-//
-//=========================================================================
+
+
XTYPEPROVIDER_IMPL_8( PersistentPropertySet,
XTypeProvider,
@@ -1294,21 +1294,21 @@ XTYPEPROVIDER_IMPL_8( PersistentPropertySet,
XPropertySetInfoChangeNotifier,
XPropertyAccess );
-//=========================================================================
-//
+
+
// XServiceInfo methods.
-//
-//=========================================================================
+
+
XSERVICEINFO_NOFACTORY_IMPL_1( PersistentPropertySet,
OUString( "com.sun.star.comp.ucb.PersistentPropertySet" ),
OUString( PERS_PROPSET_SERVICE_NAME ) );
-//=========================================================================
-//
+
+
// XComponent methods.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL PersistentPropertySet::dispose()
@@ -1338,7 +1338,7 @@ void SAL_CALL PersistentPropertySet::dispose()
}
}
-//=========================================================================
+
// virtual
void SAL_CALL PersistentPropertySet::addEventListener(
const Reference< XEventListener >& Listener )
@@ -1351,7 +1351,7 @@ void SAL_CALL PersistentPropertySet::addEventListener(
m_pImpl->m_pDisposeEventListeners->addInterface( Listener );
}
-//=========================================================================
+
// virtual
void SAL_CALL PersistentPropertySet::removeEventListener(
const Reference< XEventListener >& Listener )
@@ -1363,11 +1363,11 @@ void SAL_CALL PersistentPropertySet::removeEventListener(
// Note: Don't want to delete empty container here -> performance.
}
-//=========================================================================
-//
+
+
// XPropertySet methods.
-//
-//=========================================================================
+
+
// virtual
Reference< XPropertySetInfo > SAL_CALL
@@ -1385,7 +1385,7 @@ Reference< XPropertySetInfo > SAL_CALL
return Reference< XPropertySetInfo >( rpInfo );
}
-//=========================================================================
+
// virtual
void SAL_CALL PersistentPropertySet::setPropertyValue(
const OUString& aPropertyName, const Any& aValue )
@@ -1493,7 +1493,7 @@ void SAL_CALL PersistentPropertySet::setPropertyValue(
throw UnknownPropertyException();
}
-//=========================================================================
+
// virtual
Any SAL_CALL PersistentPropertySet::getPropertyValue(
const OUString& PropertyName )
@@ -1527,7 +1527,7 @@ Any SAL_CALL PersistentPropertySet::getPropertyValue(
throw UnknownPropertyException();
}
-//=========================================================================
+
// virtual
void SAL_CALL PersistentPropertySet::addPropertyChangeListener(
const OUString& aPropertyName,
@@ -1546,7 +1546,7 @@ void SAL_CALL PersistentPropertySet::addPropertyChangeListener(
aPropertyName, xListener );
}
-//=========================================================================
+
// virtual
void SAL_CALL PersistentPropertySet::removePropertyChangeListener(
const OUString& aPropertyName,
@@ -1564,7 +1564,7 @@ void SAL_CALL PersistentPropertySet::removePropertyChangeListener(
// Note: Don't want to delete empty container here -> performance.
}
-//=========================================================================
+
// virtual
void SAL_CALL PersistentPropertySet::addVetoableChangeListener(
const OUString&,
@@ -1577,7 +1577,7 @@ void SAL_CALL PersistentPropertySet::addVetoableChangeListener(
// OSL_FAIL( // "PersistentPropertySet::addVetoableChangeListener - N.Y.I." );
}
-//=========================================================================
+
// virtual
void SAL_CALL PersistentPropertySet::removeVetoableChangeListener(
const OUString&,
@@ -1590,11 +1590,11 @@ void SAL_CALL PersistentPropertySet::removeVetoableChangeListener(
// OSL_FAIL( // "PersistentPropertySet::removeVetoableChangeListener - N.Y.I." );
}
-//=========================================================================
-//
+
+
// XPersistentPropertySet methods.
-//
-//=========================================================================
+
+
// virtual
Reference< XPropertySetRegistry > SAL_CALL PersistentPropertySet::getRegistry()
@@ -1603,7 +1603,7 @@ Reference< XPropertySetRegistry > SAL_CALL PersistentPropertySet::getRegistry()
return Reference< XPropertySetRegistry >( m_pImpl->m_pCreator );
}
-//=========================================================================
+
// virtual
OUString SAL_CALL PersistentPropertySet::getKey()
throw( RuntimeException )
@@ -1611,11 +1611,11 @@ OUString SAL_CALL PersistentPropertySet::getKey()
return m_pImpl->m_aKey;
}
-//=========================================================================
-//
+
+
// XNamed methods.
-//
-//=========================================================================
+
+
// virtual
OUString SAL_CALL PersistentPropertySet::getName()
@@ -1625,7 +1625,7 @@ OUString SAL_CALL PersistentPropertySet::getName()
return m_pImpl->m_aKey;
}
-//=========================================================================
+
// virtual
void SAL_CALL PersistentPropertySet::setName( const OUString& aName )
throw( RuntimeException )
@@ -1634,11 +1634,11 @@ void SAL_CALL PersistentPropertySet::setName( const OUString& aName )
m_pImpl->m_pCreator->renamePropertySet( m_pImpl->m_aKey, aName );
}
-//=========================================================================
-//
+
+
// XPropertyContainer methods.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL PersistentPropertySet::addProperty(
@@ -1803,7 +1803,7 @@ void SAL_CALL PersistentPropertySet::addProperty(
OSL_FAIL( "PersistentPropertySet::addProperty - Error!" );
}
-//=========================================================================
+
// virtual
void SAL_CALL PersistentPropertySet::removeProperty( const OUString& Name )
throw( UnknownPropertyException,
@@ -1951,11 +1951,11 @@ void SAL_CALL PersistentPropertySet::removeProperty( const OUString& Name )
OSL_FAIL( "PersistentPropertySet::removeProperty - Error!" );
}
-//=========================================================================
-//
+
+
// XPropertySetInfoChangeNotifier methods.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL PersistentPropertySet::addPropertySetInfoChangeListener(
@@ -1969,7 +1969,7 @@ void SAL_CALL PersistentPropertySet::addPropertySetInfoChangeListener(
m_pImpl->m_pPropSetChangeListeners->addInterface( Listener );
}
-//=========================================================================
+
// virtual
void SAL_CALL PersistentPropertySet::removePropertySetInfoChangeListener(
const Reference< XPropertySetInfoChangeListener >& Listener )
@@ -1979,11 +1979,11 @@ void SAL_CALL PersistentPropertySet::removePropertySetInfoChangeListener(
m_pImpl->m_pPropSetChangeListeners->removeInterface( Listener );
}
-//=========================================================================
-//
+
+
// XPropertyAccess methods.
-//
-//=========================================================================
+
+
// virtual
Sequence< PropertyValue > SAL_CALL PersistentPropertySet::getPropertyValues()
@@ -2116,7 +2116,7 @@ Sequence< PropertyValue > SAL_CALL PersistentPropertySet::getPropertyValues()
return Sequence< PropertyValue >( 0 );
}
-//=========================================================================
+
// virtual
void SAL_CALL PersistentPropertySet::setPropertyValues(
const Sequence< PropertyValue >& aProps )
@@ -2244,11 +2244,11 @@ void SAL_CALL PersistentPropertySet::setPropertyValues(
OSL_FAIL( "PersistentPropertySet::setPropertyValues - Nothing set!" );
}
-//=========================================================================
-//
+
+
// Non-interface methods
-//
-//=========================================================================
+
+
void PersistentPropertySet::notifyPropertyChangeEvent(
const PropertyChangeEvent& rEvent ) const
@@ -2287,7 +2287,7 @@ void PersistentPropertySet::notifyPropertyChangeEvent(
}
}
-//=========================================================================
+
void PersistentPropertySet::notifyPropertySetInfoChange(
const PropertySetInfoChangeEvent& evt ) const
{
@@ -2306,7 +2306,7 @@ void PersistentPropertySet::notifyPropertySetInfoChange(
}
}
-//=========================================================================
+
const OUString& PersistentPropertySet::getFullKey()
{
if ( m_pImpl->m_aFullKey.isEmpty() )
@@ -2324,19 +2324,19 @@ const OUString& PersistentPropertySet::getFullKey()
return m_pImpl->m_aFullKey;
}
-//=========================================================================
+
PropertySetRegistry& PersistentPropertySet::getPropertySetRegistry()
{
return *m_pImpl->m_pCreator;
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// PropertySetInfo_Impl Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
PropertySetInfo_Impl::PropertySetInfo_Impl(
const Reference< XComponentContext >& xContext,
@@ -2347,7 +2347,7 @@ PropertySetInfo_Impl::PropertySetInfo_Impl(
{
}
-//=========================================================================
+
// virtual
PropertySetInfo_Impl::~PropertySetInfo_Impl()
{
@@ -2356,31 +2356,31 @@ PropertySetInfo_Impl::~PropertySetInfo_Impl()
// !!! Do not delete m_pOwner !!!
}
-//=========================================================================
-//
+
+
// XInterface methods.
-//
-//=========================================================================
+
+
XINTERFACE_IMPL_2( PropertySetInfo_Impl,
XTypeProvider,
XPropertySetInfo );
-//=========================================================================
-//
+
+
// XTypeProvider methods.
-//
-//=========================================================================
+
+
XTYPEPROVIDER_IMPL_2( PropertySetInfo_Impl,
XTypeProvider,
XPropertySetInfo );
-//=========================================================================
-//
+
+
// XPropertySetInfo methods.
-//
-//=========================================================================
+
+
// virtual
Sequence< Property > SAL_CALL PropertySetInfo_Impl::getProperties()
@@ -2528,7 +2528,7 @@ Sequence< Property > SAL_CALL PropertySetInfo_Impl::getProperties()
return *m_pProps;
}
-//=========================================================================
+
// virtual
Property SAL_CALL PropertySetInfo_Impl::getPropertyByName(
const OUString& aName )
@@ -2612,7 +2612,7 @@ Property SAL_CALL PropertySetInfo_Impl::getPropertyByName(
return Property();
}
-//=========================================================================
+
// virtual
sal_Bool SAL_CALL PropertySetInfo_Impl::hasPropertyByName(
const OUString& Name )
diff --git a/ucb/source/core/ucbstore.hxx b/ucb/source/core/ucbstore.hxx
index 2a9d70a8f42f..2af51b2203ef 100644
--- a/ucb/source/core/ucbstore.hxx
+++ b/ucb/source/core/ucbstore.hxx
@@ -36,13 +36,13 @@
#include <cppuhelper/weak.hxx>
#include <ucbhelper/macros.hxx>
-//=========================================================================
+
#define STORE_SERVICE_NAME "com.sun.star.ucb.Store"
#define PROPSET_REG_SERVICE_NAME "com.sun.star.ucb.PropertySetRegistry"
#define PERS_PROPSET_SERVICE_NAME "com.sun.star.ucb.PersistentPropertySet"
-//=========================================================================
+
struct UcbStore_Impl;
@@ -89,7 +89,7 @@ public:
getInitArgs() const;
};
-//=========================================================================
+
struct PropertySetRegistry_Impl;
class PersistentPropertySet;
@@ -171,7 +171,7 @@ public:
getConfigWriteAccess( const OUString& rPath );
};
-//=========================================================================
+
struct PersistentPropertySet_Impl;
diff --git a/ucb/source/inc/regexp.hxx b/ucb/source/inc/regexp.hxx
index ddee7c11314d..39c5f5b00813 100644
--- a/ucb/source/inc/regexp.hxx
+++ b/ucb/source/inc/regexp.hxx
@@ -22,7 +22,7 @@
#include <rtl/ustring.hxx>
-//============================================================================
+
namespace ucb_impl {
class Regexp
diff --git a/ucb/source/inc/regexpmap.hxx b/ucb/source/inc/regexpmap.hxx
index dc1f95d85416..0d5fcb7a318d 100644
--- a/ucb/source/inc/regexpmap.hxx
+++ b/ucb/source/inc/regexpmap.hxx
@@ -34,7 +34,7 @@ namespace ucb_impl {
template< typename Val > class RegexpMap;
template< typename Val > class RegexpMapIter;
-//============================================================================
+
template< typename Val >
class RegexpMapEntry
{
@@ -54,7 +54,7 @@ private:
Val * m_pValue;
};
-//============================================================================
+
template< typename Val >
struct Entry
@@ -66,10 +66,10 @@ struct Entry
m_aRegexp(rTheRegexp), m_aValue(rTheValue) {}
};
-//============================================================================
+
template< typename Val > class List: public std::list< Entry< Val > > {};
-//============================================================================
+
template< typename Val >
struct RegexpMapImpl
{
@@ -81,7 +81,7 @@ struct RegexpMapImpl
~RegexpMapImpl() { delete m_pDefault; }
};
-//============================================================================
+
template< typename Val >
class RegexpMapIterImpl
{
@@ -246,7 +246,7 @@ RegexpMapEntry< Val > & RegexpMapIterImpl< Val >::get()
return m_aEntry;
}
-//============================================================================
+
template< typename Val >
class RegexpMapConstIter
{
@@ -344,7 +344,7 @@ bool RegexpMapConstIter< Val >::equals(RegexpMapConstIter const & rOther)
return *m_pImpl == *rOther.m_pImpl;
}
-//============================================================================
+
template< typename Val >
class RegexpMapIter: public RegexpMapConstIter< Val >
{
@@ -413,7 +413,7 @@ RegexpMapEntry< Val > const * RegexpMapIter< Val >::operator ->() const
return &this->m_pImpl->get();
}
-//============================================================================
+
template< typename Val >
class RegexpMap
{
@@ -643,7 +643,7 @@ Val const * RegexpMap< Val >::map(rtl::OUString const & rString,
}
-//============================================================================
+
template< typename Val >
inline bool operator ==(ucb_impl::RegexpMapConstIter< Val > const & rIter1,
ucb_impl::RegexpMapConstIter< Val > const & rIter2)
diff --git a/ucb/source/regexp/regexp.cxx b/ucb/source/regexp/regexp.cxx
index 6701f409d314..4b055a1448bb 100644
--- a/ucb/source/regexp/regexp.cxx
+++ b/ucb/source/regexp/regexp.cxx
@@ -33,11 +33,11 @@ namespace unnamed_ucb_regexp {} using namespace unnamed_ucb_regexp;
using namespace com::sun::star;
using namespace ucb_impl;
-//============================================================================
-//
+
+
// Regexp
-//
-//============================================================================
+
+
inline Regexp::Regexp(Kind eTheKind, OUString const & rThePrefix,
bool bTheEmptyDomain, OUString const & rTheInfix,
@@ -55,7 +55,7 @@ inline Regexp::Regexp(Kind eTheKind, OUString const & rThePrefix,
OSL_ASSERT(m_bTranslation || m_aReversePrefix.isEmpty());
}
-//============================================================================
+
namespace unnamed_ucb_regexp {
bool matchStringIgnoreCase(sal_Unicode const ** pBegin,
@@ -173,7 +173,7 @@ bool Regexp::matches(OUString const & rString,
return bMatches;
}
-//============================================================================
+
namespace unnamed_ucb_regexp {
bool isScheme(OUString const & rString, bool bColon)
@@ -293,7 +293,7 @@ OUString Regexp::getRegexp(bool bReverse) const
}
}
-//============================================================================
+
namespace unnamed_ucb_regexp {
bool matchString(sal_Unicode const ** pBegin, sal_Unicode const * pEnd,
diff --git a/ucb/source/sorter/sortdynres.cxx b/ucb/source/sorter/sortdynres.cxx
index ef1e7895727d..c9546c1681e4 100644
--- a/ucb/source/sorter/sortdynres.cxx
+++ b/ucb/source/sorter/sortdynres.cxx
@@ -36,7 +36,7 @@ using namespace com::sun::star::uno;
using namespace cppu;
-//=========================================================================
+
// The mutex to synchronize access to containers.
static osl::Mutex& getContainerMutex()
@@ -55,11 +55,11 @@ static osl::Mutex& getContainerMutex()
return *pMutex;
}
-//=========================================================================
-//
+
+
// SortedDynamicResultSet
-//
-//=========================================================================
+
+
SortedDynamicResultSet::SortedDynamicResultSet(
const Reference < XDynamicResultSet > &xOriginal,
@@ -459,11 +459,11 @@ void SortedDynamicResultSet::SendNotify()
maActions.Clear();
}
-//=========================================================================
-//
+
+
// SortedDynamicResultSetFactory
-//
-//=========================================================================
+
+
SortedDynamicResultSetFactory::SortedDynamicResultSetFactory(
const Reference< XComponentContext > & rxContext )
{
@@ -522,11 +522,11 @@ SortedDynamicResultSetFactory::createSortedDynamicResultSet(
return xRet;
}
-//=========================================================================
-//
+
+
// EventList
-//
-//=========================================================================
+
+
void EventList::Clear()
{
@@ -550,11 +550,11 @@ void EventList::AddEvent( sal_IntPtr nType, sal_IntPtr nPos, sal_IntPtr nCount )
Insert( pAction );
}
-//=================================================================
-//
+
+
// SortedDynamicResultSetListener
-//
-//=================================================================
+
+
SortedDynamicResultSetListener::SortedDynamicResultSetListener(
SortedDynamicResultSet *mOwner )
diff --git a/ucb/source/sorter/sortdynres.hxx b/ucb/source/sorter/sortdynres.hxx
index b9ad1b784091..ae875e6d5454 100644
--- a/ucb/source/sorter/sortdynres.hxx
+++ b/ucb/source/sorter/sortdynres.hxx
@@ -39,12 +39,12 @@ namespace cppu {
class OInterfaceContainerHelper;
}
-//-----------------------------------------------------------------------------
+
#define DYNAMIC_RESULTSET_SERVICE_NAME "com.sun.star.ucb.SortedDynamicResultSet"
#define DYNAMIC_RESULTSET_FACTORY_NAME "com.sun.star.ucb.SortedDynamicResultSetFactory"
-//-----------------------------------------------------------------------------
+
class SortedDynamicResultSetListener;
class SortedDynamicResultSet:
@@ -87,24 +87,24 @@ public:
~SortedDynamicResultSet();
- //-----------------------------------------------------------------
+
// XInterface
- //-----------------------------------------------------------------
+
XINTERFACE_DECL()
- //-----------------------------------------------------------------
+
// XTypeProvider
- //-----------------------------------------------------------------
+
XTYPEPROVIDER_DECL()
- //-----------------------------------------------------------------
+
// XServiceInfo
- //-----------------------------------------------------------------
+
XSERVICEINFO_NOFACTORY_DECL()
- //-----------------------------------------------------------------
+
// XComponent
- //-----------------------------------------------------------------
+
virtual void SAL_CALL
dispose() throw( css::uno::RuntimeException );
@@ -116,9 +116,9 @@ public:
removeEventListener( const css::uno::Reference< css::lang::XEventListener >& Listener )
throw( css::uno::RuntimeException );
- //-----------------------------------------------------------------
+
// XDynamicResultSet
- //-----------------------------------------------------------------
+
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL
getStaticResultSet( )
throw( css::ucb::ListenerAlreadySetException, css::uno::RuntimeException );
@@ -138,9 +138,9 @@ public:
getCapabilities()
throw( css::uno::RuntimeException );
- //-----------------------------------------------------------------
+
// own methods:
- //-----------------------------------------------------------------
+
virtual void SAL_CALL
impl_disposing( const css::lang::EventObject& Source )
throw( css::uno::RuntimeException );
@@ -150,7 +150,7 @@ public:
throw( css::uno::RuntimeException );
};
-//-----------------------------------------------------------------------------
+
class SortedDynamicResultSetListener:
public cppu::OWeakObject,
@@ -163,32 +163,32 @@ public:
SortedDynamicResultSetListener( SortedDynamicResultSet *mOwner );
~SortedDynamicResultSetListener();
- //-----------------------------------------------------------------
+
// XInterface
- //-----------------------------------------------------------------
+
XINTERFACE_DECL()
- //-----------------------------------------------------------------
+
// XEventListener ( base of XDynamicResultSetListener )
- //-----------------------------------------------------------------
+
virtual void SAL_CALL
disposing( const css::lang::EventObject& Source )
throw( css::uno::RuntimeException );
- //-----------------------------------------------------------------
+
// XDynamicResultSetListener
- //-----------------------------------------------------------------
+
virtual void SAL_CALL
notify( const css::ucb::ListEvent& Changes )
throw( css::uno::RuntimeException );
- //-----------------------------------------------------------------
+
// own methods:
- //-----------------------------------------------------------------
+
void SAL_CALL impl_OwnerDies();
};
-//-----------------------------------------------------------------------------
+
class SortedDynamicResultSetFactory:
public cppu::OWeakObject,
@@ -206,22 +206,22 @@ public:
~SortedDynamicResultSetFactory();
- //-----------------------------------------------------------------
+
// XInterface
- //-----------------------------------------------------------------
+
XINTERFACE_DECL()
- //-----------------------------------------------------------------
+
// XTypeProvider
- //-----------------------------------------------------------------
+
XTYPEPROVIDER_DECL()
- //-----------------------------------------------------------------
+
// XServiceInfo
- //-----------------------------------------------------------------
+
XSERVICEINFO_DECL()
- //-----------------------------------------------------------------
+
// XSortedDynamicResultSetFactory
virtual css::uno::Reference< css::ucb::XDynamicResultSet > SAL_CALL
diff --git a/ucb/source/sorter/sortmain.cxx b/ucb/source/sorter/sortmain.cxx
index 8def7d7528e0..75ca0452f1ce 100644
--- a/ucb/source/sorter/sortmain.cxx
+++ b/ucb/source/sorter/sortmain.cxx
@@ -25,7 +25,7 @@ using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
-//=========================================================================
+
extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL srtrs1_component_getFactory(
const sal_Char * pImplName, void * pServiceManager, void * )
{
@@ -35,9 +35,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL srtrs1_component_getFactory(
reinterpret_cast< XMultiServiceFactory * >( pServiceManager ) );
Reference< XSingleServiceFactory > xFactory;
- //////////////////////////////////////////////////////////////////////
+
// SortedDynamicResultSetFactory.
- //////////////////////////////////////////////////////////////////////
+
if ( SortedDynamicResultSetFactory::getImplementationName_Static().
equalsAscii( pImplName ) )
@@ -45,7 +45,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL srtrs1_component_getFactory(
xFactory = SortedDynamicResultSetFactory::createServiceFactory( xSMgr );
}
- //////////////////////////////////////////////////////////////////////
+
if ( xFactory.is() )
{
diff --git a/ucb/source/sorter/sortresult.cxx b/ucb/source/sorter/sortresult.cxx
index ca09eae5643a..fb2e0d61225d 100644
--- a/ucb/source/sorter/sortresult.cxx
+++ b/ucb/source/sorter/sortresult.cxx
@@ -41,7 +41,7 @@ using namespace com::sun::star::util;
using namespace cppu;
-//=========================================================================
+
// The mutex to synchronize access to containers.
static osl::Mutex& getContainerMutex()
@@ -60,7 +60,7 @@ static osl::Mutex& getContainerMutex()
return *pMutex;
}
-//==========================================================================
+
struct SortInfo
{
@@ -84,11 +84,11 @@ struct SortListData
SortListData( sal_IntPtr nPos, sal_Bool bModified = sal_False );
};
-//============================================================================
-//
+
+
// class SRSPropertySetInfo.
-//
-//============================================================================
+
+
class SRSPropertySetInfo :
public OWeakObject,
@@ -118,11 +118,11 @@ public:
throw( RuntimeException );
};
-//=========================================================================
-//
+
+
// PropertyChangeListenerContainer_Impl.
-//
-//=========================================================================
+
+
struct equalStr_Impl
{
@@ -147,11 +147,11 @@ typedef OMultiTypeInterfaceContainerHelperVar
equalStr_Impl
> PropertyChangeListenerContainer_Impl;
-//=========================================================================
-//
+
+
// class PropertyChangeListeners_Impl
-//
-//=========================================================================
+
+
class PropertyChangeListeners_Impl : public PropertyChangeListenerContainer_Impl
{
@@ -160,7 +160,7 @@ public:
: PropertyChangeListenerContainer_Impl( getContainerMutex() ) {}
};
-//==========================================================================
+
SortedResultSet::SortedResultSet( Reference< XResultSet > aResult )
{
mpDisposeEventListeners = NULL;
@@ -1848,9 +1848,9 @@ void SortedResultSet::ResortNew( EventList* pList )
}
-//
+
// SortListData
-//
+
SortListData::SortListData( sal_IntPtr nPos, sal_Bool bModified )
{
@@ -1860,7 +1860,7 @@ SortListData::SortListData( sal_IntPtr nPos, sal_Bool bModified )
};
-//=========================================================================
+
void SortedEntryList::Clear()
{
for ( std::deque< ListAction* >::size_type i = 0;
@@ -1991,9 +1991,9 @@ void SimpleList::Replace( void* pData, sal_uInt32 nPos )
}
-//
+
// class SRSPropertySetInfo.
-//
+
SRSPropertySetInfo::SRSPropertySetInfo()
diff --git a/ucb/source/sorter/sortresult.hxx b/ucb/source/sorter/sortresult.hxx
index 76d6a5e3c0d7..683fad9a538b 100644
--- a/ucb/source/sorter/sortresult.hxx
+++ b/ucb/source/sorter/sortresult.hxx
@@ -44,13 +44,13 @@ namespace cppu {
class OInterfaceContainerHelper;
}
-//-----------------------------------------------------------------------------
+
struct SortInfo;
struct SortListData;
class SRSPropertySetInfo;
class PropertyChangeListeners_Impl;
-//-----------------------------------------------------------------------------
+
class SortedEntryList
{
std::deque < SortListData* > maData;
@@ -69,7 +69,7 @@ public:
sal_IntPtr operator [] ( sal_IntPtr nPos ) const;
};
-//-----------------------------------------------------------------------------
+
class EventList
{
@@ -87,7 +87,7 @@ public:
css::ucb::ListAction* GetAction( sal_IntPtr nIndex ) { return maData[ nIndex ]; }
};
-//-----------------------------------------------------------------------------
+
class SimpleList
{
@@ -110,11 +110,11 @@ public:
void Replace( void* pData, sal_uInt32 nPos );
};
-//-----------------------------------------------------------------------------
+
#define RESULTSET_SERVICE_NAME "com.sun.star.ucb.SortedResultSet"
-//-----------------------------------------------------------------------------
+
class SortedResultSet:
public cppu::OWeakObject,
diff --git a/ucb/source/ucp/expand/ucpexpand.cxx b/ucb/source/ucp/expand/ucpexpand.cxx
index ae4b4847fb8a..5bdbcce7e6c5 100644
--- a/ucb/source/ucp/expand/ucpexpand.cxx
+++ b/ucb/source/ucp/expand/ucpexpand.cxx
@@ -50,7 +50,7 @@ struct MutexHolder
typedef ::cppu::WeakComponentImplHelper2<
lang::XServiceInfo, ucb::XContentProvider > t_impl_helper;
-//==============================================================================
+
class ExpandContentProviderImpl : protected MutexHolder, public t_impl_helper
{
uno::Reference< uno::XComponentContext > m_xComponentContext;
@@ -114,7 +114,7 @@ void ExpandContentProviderImpl::disposing()
{
}
-//==============================================================================
+
static uno::Reference< uno::XInterface > SAL_CALL create(
uno::Reference< uno::XComponentContext > const & xComponentContext )
SAL_THROW( (uno::Exception) )
@@ -123,13 +123,13 @@ static uno::Reference< uno::XInterface > SAL_CALL create(
new ExpandContentProviderImpl( xComponentContext ) );
}
-//==============================================================================
+
static OUString SAL_CALL implName()
{
return OUString("com.sun.star.comp.ucb.ExpandContentProvider");
}
-//==============================================================================
+
static uno::Sequence< OUString > SAL_CALL supportedServices()
{
OUString names [] = {
diff --git a/ucb/source/ucp/ext/ucpext_content.cxx b/ucb/source/ucp/ext/ucpext_content.cxx
index 2b9a16f96781..b0f3fa5133ff 100644
--- a/ucb/source/ucp/ext/ucpext_content.cxx
+++ b/ucb/source/ucp/ext/ucpext_content.cxx
@@ -49,10 +49,10 @@
#include <algorithm>
-//......................................................................................................................
+
namespace ucb { namespace ucp { namespace ext
{
-//......................................................................................................................
+
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::XInterface;
@@ -95,9 +95,9 @@ namespace ucb { namespace ucp { namespace ext
namespace OpenMode = ::com::sun::star::ucb::OpenMode;
namespace PropertyAttribute = ::com::sun::star::beans::PropertyAttribute;
- //==================================================================================================================
+
//= helper
- //==================================================================================================================
+
namespace
{
@@ -122,9 +122,9 @@ namespace ucb { namespace ucp { namespace ext
};
}
- //==================================================================================================================
+
//= Content
- //==================================================================================================================
+
Content::Content( const Reference< XComponentContext >& rxContext, ::ucbhelper::ContentProviderImplHelper* i_pProvider,
const Reference< XContentIdentifier >& i_rIdentifier )
@@ -548,9 +548,9 @@ namespace ucb { namespace ucp { namespace ext
sal_uInt32 nCommandCount = 5;
static const CommandInfo aCommandInfoTable[] =
{
- ///////////////////////////////////////////////////////////////
+
// Mandatory commands
- ///////////////////////////////////////////////////////////////
+
CommandInfo(
OUString( "getCommandInfo" ),
-1,
@@ -573,9 +573,9 @@ namespace ucb { namespace ucp { namespace ext
getCppuType(
static_cast< Sequence< PropertyValue > * >( 0 ) )
)
- ///////////////////////////////////////////////////////////////
+
// Optional standard commands
- ///////////////////////////////////////////////////////////////
+
, CommandInfo(
OUString( "open" ),
-1,
@@ -664,8 +664,8 @@ namespace ucb { namespace ucp { namespace ext
}
}
-//......................................................................................................................
+
} } } // namespace ucp::ext
-//......................................................................................................................
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/ucb/source/ucp/ext/ucpext_content.hxx b/ucb/source/ucp/ext/ucpext_content.hxx
index f28fa7f4097b..9fbea8a55833 100644
--- a/ucb/source/ucp/ext/ucpext_content.hxx
+++ b/ucb/source/ucp/ext/ucpext_content.hxx
@@ -29,14 +29,14 @@
#include <list>
#include <boost/optional.hpp>
-//......................................................................................................................
+
namespace ucb { namespace ucp { namespace ext
{
-//......................................................................................................................
- //==================================================================================================================
+
+
//= ExtensionContentType
- //==================================================================================================================
+
enum ExtensionContentType
{
E_ROOT,
@@ -46,9 +46,9 @@ namespace ucb { namespace ucp { namespace ext
E_UNKNOWN
};
- //==================================================================================================================
+
//= ContentProvider
- //==================================================================================================================
+
typedef ::ucbhelper::ContentImplHelper Content_Base;
class Content : public Content_Base
{
@@ -138,9 +138,9 @@ namespace ucb { namespace ucp { namespace ext
OUString m_sPathIntoExtension;
};
-//......................................................................................................................
+
} } } // namespace ucb::ucp::ext
-//......................................................................................................................
+
#endif // UCB_UCPEXT_CONTENT_HXX
diff --git a/ucb/source/ucp/ext/ucpext_datasupplier.cxx b/ucb/source/ucp/ext/ucpext_datasupplier.cxx
index 20e9409ef68d..048767cfa21a 100644
--- a/ucb/source/ucp/ext/ucpext_datasupplier.cxx
+++ b/ucb/source/ucp/ext/ucpext_datasupplier.cxx
@@ -35,10 +35,10 @@
#include <vector>
#include <boost/shared_ptr.hpp>
-//......................................................................................................................
+
namespace ucb { namespace ucp { namespace ext
{
-//......................................................................................................................
+
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::XInterface;
@@ -64,9 +64,9 @@ namespace ucb { namespace ucp { namespace ext
using ::com::sun::star::sdbc::XResultSet;
using ::com::sun::star::ucb::XCommandEnvironment;
- //==================================================================================================================
+
//= ResultListEntry
- //==================================================================================================================
+
struct ResultListEntry
{
OUString sId;
@@ -77,9 +77,9 @@ namespace ucb { namespace ucp { namespace ext
typedef ::std::vector< ResultListEntry > ResultList;
- //==================================================================================================================
+
//= DataSupplier_Impl
- //==================================================================================================================
+
struct DataSupplier_Impl
{
::osl::Mutex m_aMutex;
@@ -103,9 +103,9 @@ namespace ucb { namespace ucp { namespace ext
{
}
- //==================================================================================================================
+
//= helper
- //==================================================================================================================
+
namespace
{
OUString lcl_compose( const OUString& i_rBaseURL, const OUString& i_rRelativeURL )
@@ -121,9 +121,9 @@ namespace ucb { namespace ucp { namespace ext
}
- //==================================================================================================================
+
//= DataSupplier
- //==================================================================================================================
+
DataSupplier::DataSupplier( const Reference< XComponentContext >& rxContext,
const ::rtl::Reference< Content >& i_rContent,
@@ -362,8 +362,8 @@ namespace ucb { namespace ucp { namespace ext
{
}
-//......................................................................................................................
+
} } } // namespace ucp::ext
-//......................................................................................................................
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/ucb/source/ucp/ext/ucpext_datasupplier.hxx b/ucb/source/ucp/ext/ucpext_datasupplier.hxx
index 6b123bedb1db..48ba72cc4651 100644
--- a/ucb/source/ucp/ext/ucpext_datasupplier.hxx
+++ b/ucb/source/ucp/ext/ucpext_datasupplier.hxx
@@ -25,17 +25,17 @@
#include <boost/scoped_ptr.hpp>
-//......................................................................................................................
+
namespace ucb { namespace ucp { namespace ext
{
-//......................................................................................................................
+
struct DataSupplier_Impl;
class Content;
- //==================================================================================================================
+
//= DataSupplier
- //==================================================================================================================
+
typedef ::ucbhelper::ResultSetDataSupplier DataSupplier_Base;
class DataSupplier : public ::ucbhelper::ResultSetDataSupplier
{
@@ -72,9 +72,9 @@ namespace ucb { namespace ucp { namespace ext
::boost::scoped_ptr< DataSupplier_Impl > m_pImpl;
};
-//......................................................................................................................
+
} } } // namespace ucp::ext
-//......................................................................................................................
+
#endif // UCB_UCPEXT_DATA_SUPPLIER_HXX
diff --git a/ucb/source/ucp/ext/ucpext_provider.cxx b/ucb/source/ucp/ext/ucpext_provider.cxx
index 05b83dcaae25..13413dd8d9b8 100644
--- a/ucb/source/ucp/ext/ucpext_provider.cxx
+++ b/ucb/source/ucp/ext/ucpext_provider.cxx
@@ -25,10 +25,10 @@
#include <osl/mutex.hxx>
#include <rtl/ustrbuf.hxx>
-//......................................................................................................................
+
namespace ucb { namespace ucp { namespace ext
{
-//......................................................................................................................
+
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::XInterface;
@@ -47,9 +47,9 @@ namespace ucb { namespace ucp { namespace ext
using ::com::sun::star::ucb::XContent;
using ::com::sun::star::uno::XComponentContext;
- //==================================================================================================================
+
//= ContentProvider
- //==================================================================================================================
+
ContentProvider::ContentProvider( const Reference< XComponentContext >& rxContext )
:ContentProvider_Base( rxContext )
@@ -144,7 +144,7 @@ namespace ucb { namespace ucp { namespace ext
// the normalized form requires one additional /, but we also accept identifiers which don't have it
if ( sRemaining.isEmpty() )
{
- // the root content is a special case, it requires ///
+ // the root content is a special case, it requires /
aComposer.appendAscii( "//" );
}
else
@@ -187,8 +187,8 @@ namespace ucb { namespace ucp { namespace ext
return xContent;
}
-//......................................................................................................................
+
} } } // namespace ucb::ucp::ext
-//......................................................................................................................
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/ucb/source/ucp/ext/ucpext_provider.hxx b/ucb/source/ucp/ext/ucpext_provider.hxx
index 55ddc498553f..6483ac68bac9 100644
--- a/ucb/source/ucp/ext/ucpext_provider.hxx
+++ b/ucb/source/ucp/ext/ucpext_provider.hxx
@@ -22,14 +22,14 @@
#include <ucbhelper/providerhelper.hxx>
-//......................................................................................................................
+
namespace ucb { namespace ucp { namespace ext
{
-//......................................................................................................................
- //==================================================================================================================
+
+
//= ContentProvider
- //==================================================================================================================
+
typedef ::ucbhelper::ContentProviderImplHelper ContentProvider_Base;
class ContentProvider : public ContentProvider_Base
{
@@ -54,9 +54,9 @@ namespace ucb { namespace ucp { namespace ext
static OUString getArtificialNodeContentType();
};
-//......................................................................................................................
+
} } } // namespace ucb::ucp::ext
-//......................................................................................................................
+
#endif // UCB_UCPEXT_CONTENT_PROVIDER_HXX
diff --git a/ucb/source/ucp/ext/ucpext_resultset.cxx b/ucb/source/ucp/ext/ucpext_resultset.cxx
index 415e0ceab799..2c9b6a99bbb5 100644
--- a/ucb/source/ucp/ext/ucpext_resultset.cxx
+++ b/ucb/source/ucp/ext/ucpext_resultset.cxx
@@ -24,10 +24,10 @@
#include <ucbhelper/resultset.hxx>
#include <comphelper/processfactory.hxx>
-//......................................................................................................................
+
namespace ucb { namespace ucp { namespace ext
{
-//......................................................................................................................
+
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::XInterface;
@@ -46,9 +46,9 @@ namespace ucb { namespace ucp { namespace ext
using ::com::sun::star::ucb::OpenCommandArgument2;
using ::com::sun::star::ucb::XCommandEnvironment;
- //==================================================================================================================
+
//= ResultSet
- //==================================================================================================================
+
ResultSet::ResultSet( const Reference< XComponentContext >& rxContext, const ::rtl::Reference< Content >& i_rContent,
const OpenCommandArgument2& i_rCommand, const Reference< XCommandEnvironment >& i_rEnv )
@@ -82,8 +82,8 @@ namespace ucb { namespace ucp { namespace ext
m_xResultSet2 = m_xResultSet1;
}
-//......................................................................................................................
+
} } } // namespace ucp::ext
-//......................................................................................................................
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/ucb/source/ucp/ext/ucpext_resultset.hxx b/ucb/source/ucp/ext/ucpext_resultset.hxx
index 3b097355326c..51e5a21fb5e7 100644
--- a/ucb/source/ucp/ext/ucpext_resultset.hxx
+++ b/ucb/source/ucp/ext/ucpext_resultset.hxx
@@ -23,16 +23,16 @@
#include <rtl/ref.hxx>
#include <ucbhelper/resultsethelper.hxx>
-//......................................................................................................................
+
namespace ucb { namespace ucp { namespace ext
{
-//......................................................................................................................
+
class Content;
- //==================================================================================================================
+
//= ResultSet
- //==================================================================================================================
+
class ResultSet : public ::ucbhelper::ResultSetImplHelper
{
public:
@@ -52,9 +52,9 @@ namespace ucb { namespace ucp { namespace ext
virtual void initDynamic();
};
-//......................................................................................................................
+
} } } // namespace ucp::ext
-//......................................................................................................................
+
#endif // UCB_UCPEXT_RESULT_SET_HXX
diff --git a/ucb/source/ucp/ext/ucpext_services.cxx b/ucb/source/ucp/ext/ucpext_services.cxx
index 8b2388fdb920..19c6b0178f3b 100644
--- a/ucb/source/ucp/ext/ucpext_services.cxx
+++ b/ucb/source/ucp/ext/ucpext_services.cxx
@@ -21,10 +21,10 @@
#include <cppuhelper/implementationentry.hxx>
-//......................................................................................................................
+
namespace ucb { namespace ucp { namespace ext
{
-//......................................................................................................................
+
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::XInterface;
@@ -39,9 +39,9 @@ namespace ucb { namespace ucp { namespace ext
using ::com::sun::star::uno::Type;
using ::com::sun::star::lang::XSingleComponentFactory;
- //==================================================================================================================
+
//= descriptors for the services implemented in this component
- //==================================================================================================================
+
static struct ::cppu::ImplementationEntry s_aServiceEntries[] =
{
{
@@ -53,9 +53,9 @@ namespace ucb { namespace ucp { namespace ext
{ 0, 0, 0, 0, 0, 0 }
};
-//......................................................................................................................
+
} } } // namespace ucb::ucp::ext
-//......................................................................................................................
+
extern "C"
{
diff --git a/ucb/source/ucp/file/bc.cxx b/ucb/source/ucp/file/bc.cxx
index 738aaf039360..e5b92482203e 100644
--- a/ucb/source/ucp/file/bc.cxx
+++ b/ucb/source/ucp/file/bc.cxx
@@ -76,7 +76,7 @@ public:
/* */
/****************************************************************************************/
-////////////////////////////////////////////////////////////////////////////////
+
// Private Constructor for just inserted Contents
BaseContent::BaseContent( shell* pMyShell,
@@ -97,7 +97,7 @@ BaseContent::BaseContent( shell* pMyShell,
}
-////////////////////////////////////////////////////////////////////////////////
+
// Constructor for full featured Contents
BaseContent::BaseContent( shell* pMyShell,
@@ -134,9 +134,9 @@ BaseContent::~BaseContent( )
}
-//////////////////////////////////////////////////////////////////////////
+
// XInterface
-//////////////////////////////////////////////////////////////////////////
+
void SAL_CALL
BaseContent::acquire( void )
@@ -175,9 +175,9 @@ BaseContent::queryInterface( const Type& rType )
-//////////////////////////////////////////////////////////////////////////////////////////
+
// XComponent
-////////////////////////////////////////////////////////////////////////////////////////
+
void SAL_CALL
BaseContent::addEventListener( const Reference< lang::XEventListener >& Listener )
@@ -253,9 +253,9 @@ BaseContent::dispose()
-//////////////////////////////////////////////////////////////////////////////////////////
+
// XServiceInfo
-//////////////////////////////////////////////////////////////////////////////////////////
+
OUString SAL_CALL
BaseContent::getImplementationName()
@@ -289,9 +289,9 @@ BaseContent::getSupportedServiceNames()
-//////////////////////////////////////////////////////////////////////////////////////////
+
// XTypeProvider
-//////////////////////////////////////////////////////////////////////////////////////////
+
XTYPEPROVIDER_IMPL_10( BaseContent,
lang::XComponent,
@@ -306,9 +306,9 @@ XTYPEPROVIDER_IMPL_10( BaseContent,
beans::XPropertySetInfoChangeNotifier )
-//////////////////////////////////////////////////////////////////////////////////////////
+
// XCommandProcessor
-//////////////////////////////////////////////////////////////////////////////////////////
+
sal_Int32 SAL_CALL
BaseContent::createCommandIdentifier( void )
@@ -493,9 +493,9 @@ BaseContent::removePropertiesChangeListener( const Sequence< OUString >& Propert
}
-/////////////////////////////////////////////////////////////////////////////////////////
+
// XContent
-/////////////////////////////////////////////////////////////////////////////////////////
+
Reference< ucb::XContentIdentifier > SAL_CALL
BaseContent::getIdentifier()
@@ -584,9 +584,9 @@ BaseContent::removeContentEventListener(
-////////////////////////////////////////////////////////////////////////////////
+
// XPropertyContainer
-////////////////////////////////////////////////////////////////////////////////
+
void SAL_CALL
@@ -622,9 +622,9 @@ BaseContent::removeProperty(
m_pMyShell->deassociate( m_aUncPath, Name );
}
-////////////////////////////////////////////////////////////////////////////////
+
// XContentCreator
-////////////////////////////////////////////////////////////////////////////////
+
Sequence< ContentInfo > SAL_CALL
BaseContent::queryCreatableContentsInfo(
@@ -696,9 +696,9 @@ BaseContent::createNewContent(
}
-////////////////////////////////////////////////////////////////////////////////
+
// XPropertySetInfoChangeNotifier
-////////////////////////////////////////////////////////////////////////////////
+
void SAL_CALL
@@ -726,9 +726,9 @@ BaseContent::removePropertySetInfoChangeListener(
}
-////////////////////////////////////////////////////////////////////////////////
+
// XChild
-////////////////////////////////////////////////////////////////////////////////
+
Reference< XInterface > SAL_CALL
BaseContent::getParent(
@@ -767,9 +767,9 @@ BaseContent::setParent(
}
-//////////////////////////////////////////////////////////////////////////////////////////
+
// Private Methods
-//////////////////////////////////////////////////////////////////////////////////////////
+
Reference< XCommandInfo > SAL_CALL
diff --git a/ucb/source/ucp/file/filinpstr.cxx b/ucb/source/ucp/file/filinpstr.cxx
index 15e0edb3ed1a..568909a7d323 100644
--- a/ucb/source/ucp/file/filinpstr.cxx
+++ b/ucb/source/ucp/file/filinpstr.cxx
@@ -86,9 +86,9 @@ sal_Int32 SAL_CALL XInputStream_impl::getMinorError()
}
-//////////////////////////////////////////////////////////////////////////////////////////
+
// XTypeProvider
-//////////////////////////////////////////////////////////////////////////////////////////
+
XTYPEPROVIDER_IMPL_3( XInputStream_impl,
diff --git a/ucb/source/ucp/file/filinsreq.cxx b/ucb/source/ucp/file/filinsreq.cxx
index 49a7dac823d7..8809360d3e39 100644
--- a/ucb/source/ucp/file/filinsreq.cxx
+++ b/ucb/source/ucp/file/filinsreq.cxx
@@ -67,9 +67,9 @@ XInteractionSupplyNameImpl::queryInterface( const Type& rType )
}
-//////////////////////////////////////////////////////////////////////////////////////////
+
// XTypeProvider
-//////////////////////////////////////////////////////////////////////////////////////////
+
XTYPEPROVIDER_IMPL_2( XInteractionSupplyNameImpl,
XTypeProvider,
@@ -106,9 +106,9 @@ XInteractionAbortImpl::queryInterface( const Type& rType )
}
-//////////////////////////////////////////////////////////////////////////////////////////
+
// XTypeProvider
-//////////////////////////////////////////////////////////////////////////////////////////
+
XTYPEPROVIDER_IMPL_2( XInteractionAbortImpl,
XTypeProvider,
@@ -166,9 +166,9 @@ XInteractionRequestImpl::queryInterface( const Type& rType )
}
-//////////////////////////////////////////////////////////////////////////////////////////
+
// XTypeProvider
-//////////////////////////////////////////////////////////////////////////////////////////
+
XTYPEPROVIDER_IMPL_2( XInteractionRequestImpl,
XTypeProvider,
diff --git a/ucb/source/ucp/file/filrset.cxx b/ucb/source/ucp/file/filrset.cxx
index da370c4b617c..ae0878958279 100644
--- a/ucb/source/ucp/file/filrset.cxx
+++ b/ucb/source/ucp/file/filrset.cxx
@@ -661,7 +661,7 @@ XResultSet_impl::getStaticResultSet()
return uno::Reference< sdbc::XResultSet >( this );
}
-//=========================================================================
+
// virtual
void SAL_CALL
XResultSet_impl::setListener(
@@ -676,9 +676,9 @@ XResultSet_impl::setListener(
m_xListener = Listener;
- //////////////////////////////////////////////////////////////////////
+
// Create "welcome event" and send it to listener.
- //////////////////////////////////////////////////////////////////////
+
// Note: We only have the implementation for a static result set at the
// moment (src590). The dynamic result sets passed to the listener
@@ -701,7 +701,7 @@ XResultSet_impl::setListener(
static_cast< cppu::OWeakObject * >( this ), aActions ) );
}
-//=========================================================================
+
// virtual
void SAL_CALL
XResultSet_impl::connectToCache(
@@ -741,7 +741,7 @@ XResultSet_impl::connectToCache(
throw ucb::ServiceNotFoundException( OUString(THROW_WHERE), uno::Reference< uno::XInterface >() );
}
-//=========================================================================
+
// virtual
sal_Int16 SAL_CALL
XResultSet_impl::getCapabilities()
diff --git a/ucb/source/ucp/file/filstr.cxx b/ucb/source/ucp/file/filstr.cxx
index 4f731d5a7617..2fa7da6822bb 100644
--- a/ucb/source/ucp/file/filstr.cxx
+++ b/ucb/source/ucp/file/filstr.cxx
@@ -76,9 +76,9 @@ XStream_impl::release(
}
-//////////////////////////////////////////////////////////////////////////////////////////
+
// XTypeProvider
-//////////////////////////////////////////////////////////////////////////////////////////
+
XTYPEPROVIDER_IMPL_7( XStream_impl,
@@ -186,9 +186,9 @@ void SAL_CALL XStream_impl::truncate(void)
-//===========================================================================
+
// XStream_impl private non interface methods
-//===========================================================================
+
sal_Int32 SAL_CALL
XStream_impl::readBytes(
diff --git a/ucb/source/ucp/file/prov.cxx b/ucb/source/ucp/file/prov.cxx
index 1945b5e0a020..60b79bda9e5f 100644
--- a/ucb/source/ucp/file/prov.cxx
+++ b/ucb/source/ucp/file/prov.cxx
@@ -45,7 +45,7 @@ using namespace com::sun::star::container;
#define THROW_WHERE ""
#endif
-//=========================================================================
+
extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucpfile_component_getFactory(
const sal_Char * pImplName, void * pServiceManager, void * )
{
@@ -55,9 +55,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucpfile_component_getFactory(
reinterpret_cast< XMultiServiceFactory * >( pServiceManager ) );
Reference< XSingleServiceFactory > xFactory;
- //////////////////////////////////////////////////////////////////////
+
// File Content Provider.
- //////////////////////////////////////////////////////////////////////
+
if ( fileaccess::shell::getImplementationName_static().
equalsAscii( pImplName ) )
@@ -65,7 +65,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucpfile_component_getFactory(
xFactory = FileProvider::createServiceFactory( xSMgr );
}
- //////////////////////////////////////////////////////////////////////
+
if ( xFactory.is() )
{
@@ -100,9 +100,9 @@ FileProvider::~FileProvider()
}
-//////////////////////////////////////////////////////////////////////////
+
// XInterface
-//////////////////////////////////////////////////////////////////////////
+
void SAL_CALL
FileProvider::acquire(
@@ -139,7 +139,7 @@ FileProvider::queryInterface(
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
-///////////////////////////////////////////////////////////////////////////////
+
// XInitialization
void SAL_CALL FileProvider::init()
@@ -166,8 +166,8 @@ FileProvider::initialize(
}
-////////////////////////////////////////////////////////////////////////////////
-//
+
+
// XTypeProvider methods.
@@ -181,7 +181,7 @@ XTYPEPROVIDER_IMPL_7( FileProvider,
XContentProvider )
-////////////////////////////////////////////////////////////////////////////////
+
// XServiceInfo methods.
OUString SAL_CALL
@@ -256,9 +256,9 @@ FileProvider::CreateInstance(
-////////////////////////////////////////////////////////////////////////////////
+
// XContent
-////////////////////////////////////////////////////////////////////////////////
+
Reference< XContent > SAL_CALL
diff --git a/ucb/source/ucp/file/shell.cxx b/ucb/source/ucp/file/shell.cxx
index 12bd57abcf52..63fb3887d812 100644
--- a/ucb/source/ucp/file/shell.cxx
+++ b/ucb/source/ucp/file/shell.cxx
@@ -115,7 +115,7 @@ shell::UnqPathData::~UnqPathData()
-////////////////////////////////////////////////////////////////////////////////////////
+
@@ -413,10 +413,10 @@ shell::~shell()
/* */
/*********************************************************************************/
-//
+
// This two methods register and deregister a change listener for the content belonging
// to URL aUnqPath
-//
+
void SAL_CALL
shell::registerNotifier( const OUString& aUnqPath, Notifier* pNotifier )
@@ -464,11 +464,11 @@ shell::deregisterNotifier( const OUString& aUnqPath,Notifier* pNotifier )
/* de/associate-Implementation */
/* */
/*********************************************************************************/
-//
+
// Used to associate and deassociate a new property with
// the content belonging to URL UnqPath.
// The default value and the attributes are input
-//
+
void SAL_CALL
shell::associate( const OUString& aUnqPath,
@@ -568,10 +568,10 @@ shell::deassociate( const OUString& aUnqPath,
/* page-Implementation */
/* */
/*********************************************************************************/
-//
+
// Given an xOutputStream, this method writes the content of the file belonging to
// URL aUnqPath into the XOutputStream
-//
+
void SAL_CALL shell::page( sal_Int32 CommandId,
@@ -659,9 +659,9 @@ void SAL_CALL shell::page( sal_Int32 CommandId,
/* open-Implementation */
/* */
/*********************************************************************************/
-//
+
// Given a file URL aUnqPath, this methods returns a XInputStream which reads from the open file.
-//
+
uno::Reference< io::XInputStream > SAL_CALL
@@ -695,10 +695,10 @@ shell::open( sal_Int32 CommandId,
/* open for read/write access-Implementation */
/* */
/*********************************************************************************/
-//
+
// Given a file URL aUnqPath, this methods returns a XStream which can be used
// to read and write from/to the file.
-//
+
uno::Reference< io::XStream > SAL_CALL
@@ -730,10 +730,10 @@ shell::open_rw( sal_Int32 CommandId,
/* ls-Implementation */
/* */
/*********************************************************************************/
-//
+
// This method returns the result set containing the children of the directory belonging
// to file URL aUnqPath
-//
+
uno::Reference< XDynamicResultSet > SAL_CALL
@@ -806,9 +806,9 @@ shell::info_p( const OUString& aUnqPath )
/* setv-Implementation */
/* */
/*********************************************************************************/
-//
+
// Sets the values of the properties belonging to fileURL aUnqPath
-//
+
uno::Sequence< uno::Any > SAL_CALL
@@ -1041,10 +1041,10 @@ shell::setv( const OUString& aUnqPath,
/* getv-Implementation */
/* */
/*********************************************************************************/
-//
+
// Reads the values of the properties belonging to fileURL aUnqPath;
// Returns an XRow object containing the values in the requested order.
-//
+
uno::Reference< sdbc::XRow > SAL_CALL
@@ -1110,9 +1110,9 @@ shell::getv( sal_Int32 CommandId,
/* move-implementation */
/* */
/********************************************************************************/
-//
+
// Moves the content belonging to fileURL srcUnqPath to fileURL dstUnqPath.
-//
+
void SAL_CALL
shell::move( sal_Int32 CommandId,
@@ -1125,7 +1125,7 @@ shell::move( sal_Int32 CommandId,
// srcUnqPath and dstUnqPathIn are equal
if( srcUnqPath == dstUnqPathIn )
return;
- //
+
osl::FileBase::RC nError;
OUString dstUnqPath( dstUnqPathIn );
@@ -1296,9 +1296,9 @@ shell::move( sal_Int32 CommandId,
/* copy-implementation */
/* */
/********************************************************************************/
-//
+
// Copies the content belonging to fileURL srcUnqPath to fileURL dstUnqPath ( files and directories )
-//
+
namespace {
@@ -1493,10 +1493,10 @@ shell::copy(
/* remove-implementation */
/* */
/********************************************************************************/
-//
+
// Deletes the content belonging to fileURL aUnqPath( recursively in case of directory )
// Return: success of operation
-//
+
sal_Bool SAL_CALL
@@ -1658,10 +1658,10 @@ shell::remove( sal_Int32 CommandId,
/* mkdir-implementation */
/* */
/********************************************************************************/
-//
+
// Creates new directory with given URL, recursively if necessary
// Return:: success of operation
-//
+
sal_Bool SAL_CALL
shell::mkdir( sal_Int32 CommandId,
@@ -1718,11 +1718,11 @@ shell::mkdir( sal_Int32 CommandId,
/* mkfil-implementation */
/* */
/********************************************************************************/
-//
+
// Creates new file with given URL.
// The content of aInputStream becomes the content of the file
// Return:: success of operation
-//
+
sal_Bool SAL_CALL
shell::mkfil( sal_Int32 CommandId,
@@ -1750,11 +1750,11 @@ shell::mkfil( sal_Int32 CommandId,
/* write-implementation */
/* */
/********************************************************************************/
-//
+
// writes to the file with given URL.
// The content of aInputStream becomes the content of the file
// Return:: success of operation
-//
+
sal_Bool SAL_CALL
shell::write( sal_Int32 CommandId,
@@ -2149,11 +2149,11 @@ sal_Bool SAL_CALL shell::ensuredir( sal_Int32 CommandId,
-//
+
// Given a sequence of properties seq, this method determines the mask
// used to instantiate a osl::FileStatus, so that a call to
// osl::DirectoryItem::getFileStatus fills the required fields.
-//
+
void SAL_CALL
@@ -2195,10 +2195,10 @@ shell::getMaskFromProperties(
/* load-Implementation */
/* */
/*********************************************************************************/
-//
+
// Load the properties from configuration, if create == true create them.
// The Properties are stored under the url belonging to it->first.
-//
+
void SAL_CALL
shell::load( const ContentMap::iterator& it, sal_Bool create )
diff --git a/ucb/source/ucp/file/shell.hxx b/ucb/source/ucp/file/shell.hxx
index 7228fbba2d01..8fe5644728bb 100644
--- a/ucb/source/ucp/file/shell.hxx
+++ b/ucb/source/ucp/file/shell.hxx
@@ -197,10 +197,10 @@ namespace fileaccess {
- //
+
// Every method having a command id is not allowed to throw anything,
// but instead must install every error code in the task handler
- //
+
/**
diff --git a/ucb/source/ucp/ftp/ftpcontent.cxx b/ucb/source/ucp/ftp/ftpcontent.cxx
index 4f456d18799d..c798c41e0e59 100644
--- a/ucb/source/ucp/ftp/ftpcontent.cxx
+++ b/ucb/source/ucp/ftp/ftpcontent.cxx
@@ -81,13 +81,13 @@ using namespace com::sun::star::sdbc;
-//=========================================================================
-//=========================================================================
-//
+
+
+
// Content Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
FTPContent::FTPContent( const Reference< XComponentContext >& rxContext,
FTPContentProvider* pProvider,
@@ -119,18 +119,18 @@ FTPContent::FTPContent( const Reference< XComponentContext >& rxContext,
-//=========================================================================
+
FTPContent::~FTPContent()
{
}
-//=========================================================================
-//
+
+
// XInterface methods.
-//
-//=========================================================================
+
+
XINTERFACE_IMPL_6( FTPContent,
XTypeProvider,
@@ -140,11 +140,11 @@ XINTERFACE_IMPL_6( FTPContent,
XContentCreator,
XChild);
-//=========================================================================
-//
+
+
// XTypeProvider methods.
-//
-//=========================================================================
+
+
XTYPEPROVIDER_IMPL_6( FTPContent,
XTypeProvider,
@@ -154,11 +154,11 @@ XTYPEPROVIDER_IMPL_6( FTPContent,
XContentCreator,
XChild);
-//=========================================================================
-//
+
+
// XServiceInfo methods.
-//
-//=========================================================================
+
+
// needed, because the service shall not be creatable!!
#undef XSERVICEINFO_CREATE_INSTANCE_IMPL
@@ -170,11 +170,11 @@ XSERVICEINFO_IMPL_1( FTPContent,
-//=========================================================================
-//
+
+
// XContent methods.
-//
-//=========================================================================
+
+
// virtual
OUString SAL_CALL FTPContent::getContentType()
@@ -184,11 +184,11 @@ OUString SAL_CALL FTPContent::getContentType()
}
-//=========================================================================
-//
+
+
// XCommandProcessor methods.
-//
-//=========================================================================
+
+
//virtual
@@ -248,11 +248,11 @@ public:
-//=========================================================================
-//
+
+
// XCommandProcessor methods.
-//
-//=========================================================================
+
+
enum ACTION { NOACTION,
THROWAUTHENTICATIONREQUEST,
diff --git a/ucb/source/ucp/ftp/ftpcontent.hxx b/ucb/source/ucp/ftp/ftpcontent.hxx
index 4573c41b5779..1023c35c4bc2 100644
--- a/ucb/source/ucp/ftp/ftpcontent.hxx
+++ b/ucb/source/ucp/ftp/ftpcontent.hxx
@@ -39,11 +39,11 @@ namespace com { namespace sun { namespace star { namespace sdbc {
namespace ftp
{
-//=========================================================================
+
class FTPContentProvider;
-//=========================================================================
+
class FTPContent
: public ::ucbhelper::ContentImplHelper,
diff --git a/ucb/source/ucp/ftp/ftpcontentcaps.cxx b/ucb/source/ucp/ftp/ftpcontentcaps.cxx
index eb33079a6179..ce8bbc1b910a 100644
--- a/ucb/source/ucp/ftp/ftpcontentcaps.cxx
+++ b/ucb/source/ucp/ftp/ftpcontentcaps.cxx
@@ -103,26 +103,26 @@ uno::Sequence< beans::Property > FTPContent::getProperties(
return uno::Sequence< beans::Property >( aPropsInfoTable, PROPS_COUNT );
}
-//=========================================================================
+
// virtual
uno::Sequence< ucb::CommandInfo > FTPContent::getCommands(
const uno::Reference< ucb::XCommandEnvironment > & /*xEnv*/ )
{
// osl::MutexGuard aGuard( m_aMutex );
- //=================================================================
- //
+
+
// Supported commands
- //
- //=================================================================
+
+
#define COMMAND_COUNT 8
static const ucb::CommandInfo aCommandInfoTable[] =
{
- ///////////////////////////////////////////////////////////////
+
// Required commands
- ///////////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "getCommandInfo" ),
-1,
diff --git a/ucb/source/ucp/ftp/ftpcontentprovider.cxx b/ucb/source/ucp/ftp/ftpcontentprovider.cxx
index c31482409edc..982f1c39d331 100644
--- a/ucb/source/ucp/ftp/ftpcontentprovider.cxx
+++ b/ucb/source/ucp/ftp/ftpcontentprovider.cxx
@@ -41,13 +41,13 @@ using namespace com::sun::star::beans;
-//=========================================================================
-//=========================================================================
-//
+
+
+
// ContentProvider Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
FTPContentProvider::FTPContentProvider(
const Reference< XComponentContext >& rxContext)
@@ -57,7 +57,7 @@ FTPContentProvider::FTPContentProvider(
{
}
-//=========================================================================
+
// virtual
FTPContentProvider::~FTPContentProvider()
{
@@ -65,53 +65,53 @@ FTPContentProvider::~FTPContentProvider()
delete m_pProxyDecider;
}
-//=========================================================================
-//
+
+
// XInterface methods.
-//
-//=========================================================================
+
+
XINTERFACE_IMPL_3(FTPContentProvider,
XTypeProvider,
XServiceInfo,
XContentProvider)
-//=========================================================================
-//
+
+
// XTypeProvider methods.
-//
-//=========================================================================
+
+
XTYPEPROVIDER_IMPL_3(FTPContentProvider,
XTypeProvider,
XServiceInfo,
XContentProvider)
-//=========================================================================
-//
+
+
// XServiceInfo methods.
-//
-//=========================================================================
+
+
XSERVICEINFO_IMPL_1_CTX(
FTPContentProvider,
OUString("com.sun.star.comp.FTPContentProvider"),
OUString(FTP_CONTENT_PROVIDER_SERVICE_NAME));
-//=========================================================================
-//
+
+
// Service factory implementation.
-//
-//=========================================================================
+
+
ONE_INSTANCE_SERVICE_FACTORY_IMPL(FTPContentProvider);
-//=========================================================================
-//
+
+
// XContentProvider methods.
-//
-//=========================================================================
+
+
// virtual
Reference<XContent> SAL_CALL
diff --git a/ucb/source/ucp/ftp/ftpdynresultset.cxx b/ucb/source/ucp/ftp/ftpdynresultset.cxx
index 512178c2c4bf..b53fc90f18e5 100644
--- a/ucb/source/ucp/ftp/ftpdynresultset.cxx
+++ b/ucb/source/ucp/ftp/ftpdynresultset.cxx
@@ -29,13 +29,13 @@ using namespace com::sun::star::uno;
using namespace ftp;
-//=========================================================================
-//=========================================================================
-//
+
+
+
// DynamicResultSet Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
DynamicResultSet::DynamicResultSet(
const Reference< XComponentContext >& rxContext,
@@ -55,18 +55,18 @@ DynamicResultSet::~DynamicResultSet()
delete m_pFactory;
}
-//=========================================================================
-//
+
+
// Non-interface methods.
-//
-//=========================================================================
+
+
void DynamicResultSet::initStatic()
{
m_xResultSet1 = Reference< XResultSet >( m_pFactory->createResultSet() );
}
-//=========================================================================
+
void DynamicResultSet::initDynamic()
{
m_xResultSet1 = Reference< XResultSet >( m_pFactory->createResultSet() );
diff --git a/ucb/source/ucp/ftp/ftpintreq.cxx b/ucb/source/ucp/ftp/ftpintreq.cxx
index ec88b897c532..fff1d3d3ed39 100644
--- a/ucb/source/ucp/ftp/ftpintreq.cxx
+++ b/ucb/source/ucp/ftp/ftpintreq.cxx
@@ -66,9 +66,9 @@ XInteractionApproveImpl::queryInterface( const Type& rType )
}
-//////////////////////////////////////////////////////////////////////////////
+
// XTypeProvider
-//////////////////////////////////////////////////////////////////////////////
+
XTYPEPROVIDER_IMPL_2( XInteractionApproveImpl,
XTypeProvider,
@@ -125,9 +125,9 @@ XInteractionDisapproveImpl::queryInterface( const Type& rType )
}
-//////////////////////////////////////////////////////////////////////////////
+
// XTypeProvider
-//////////////////////////////////////////////////////////////////////////////
+
XTYPEPROVIDER_IMPL_2( XInteractionDisapproveImpl,
XTypeProvider,
@@ -185,9 +185,9 @@ XInteractionRequestImpl::queryInterface( const Type& rType )
}
-//////////////////////////////////////////////////////////////////////////////
+
// XTypeProvider
-/////////////////////////////////////////////////////////////////////////////
+
XTYPEPROVIDER_IMPL_2( XInteractionRequestImpl,
XTypeProvider,
diff --git a/ucb/source/ucp/ftp/ftpservices.cxx b/ucb/source/ucp/ftp/ftpservices.cxx
index 9f625a624cb9..7eed0e37c80d 100644
--- a/ucb/source/ucp/ftp/ftpservices.cxx
+++ b/ucb/source/ucp/ftp/ftpservices.cxx
@@ -25,7 +25,7 @@
using namespace com::sun::star;
using namespace ftp;
-//=========================================================================
+
extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucpftp1_component_getFactory(
const sal_Char * pImplName, void * pServiceManager, void * /*pRegistryKey*/ )
{
@@ -36,9 +36,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucpftp1_component_getFactory(
pServiceManager ) );
uno::Reference< lang::XSingleServiceFactory > xFactory;
- //////////////////////////////////////////////////////////////////////
+
// FTP Content Provider.
- //////////////////////////////////////////////////////////////////////
+
if ( FTPContentProvider::getImplementationName_Static().
equalsAscii( pImplName ) )
diff --git a/ucb/source/ucp/gvfs/gvfs_content.cxx b/ucb/source/ucp/gvfs/gvfs_content.cxx
index 26f6ba8dbc0b..3b481c8e46e4 100644
--- a/ucb/source/ucp/gvfs/gvfs_content.cxx
+++ b/ucb/source/ucp/gvfs/gvfs_content.cxx
@@ -148,9 +148,9 @@ Content::~Content()
gnome_vfs_file_info_clear( &m_info );
}
-//
+
// XInterface methods.
-//
+
void SAL_CALL Content::acquire()
throw( )
@@ -176,9 +176,9 @@ uno::Any SAL_CALL Content::queryInterface( const uno::Type & rType )
return aRet.hasValue() ? aRet : ContentImplHelper::queryInterface( rType );
}
-//
+
// XTypeProvider methods.
-//
+
XTYPEPROVIDER_COMMON_IMPL( Content );
@@ -231,9 +231,9 @@ uno::Sequence< uno::Type > SAL_CALL Content::getTypes()
return pFileCollection->getTypes();
}
-//
+
// XServiceInfo methods.
-//
+
OUString SAL_CALL Content::getImplementationName()
throw( uno::RuntimeException )
@@ -249,9 +249,9 @@ uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames()
return aSNS;
}
-//
+
// XContent methods.
-//
+
OUString SAL_CALL Content::getContentType()
throw( uno::RuntimeException )
@@ -262,9 +262,9 @@ OUString SAL_CALL Content::getContentType()
return OUString( GVFS_FILE_TYPE );
}
-//
+
// XCommandProcessor methods.
-//
+
uno::Any Content::getBadArgExcept()
{
@@ -428,9 +428,9 @@ void SAL_CALL Content::abort( sal_Int32 /*CommandId*/ )
// FIXME: we should use the GnomeVFSCancellation APIs here ...
}
-//
+
// XContentCreator methods.
-//
+
uno::Sequence< ucb::ContentInfo > Content::queryCreatableContentsInfo(
const uno::Reference< ucb::XCommandEnvironment >& xEnv)
diff --git a/ucb/source/ucp/gvfs/gvfs_content.hxx b/ucb/source/ucp/gvfs/gvfs_content.hxx
index 048ea8443636..495bbfa3c1de 100644
--- a/ucb/source/ucp/gvfs/gvfs_content.hxx
+++ b/ucb/source/ucp/gvfs/gvfs_content.hxx
@@ -69,9 +69,9 @@ public:
class Content : public ::ucbhelper::ContentImplHelper,
public com::sun::star::ucb::XContentCreator
{
-//=========================================================================
+
// Internals
-//=========================================================================
+
private:
typedef rtl::Reference< Content > ContentRef;
typedef std::list< ContentRef > ContentRefList;
@@ -179,9 +179,9 @@ public:
OString getOURI ();
OUString getOUURI ();
-//=========================================================================
+
// Externals
-//=========================================================================
+
public:
Content( const ::com::sun::star::uno::Reference<
@@ -230,9 +230,9 @@ public:
abort( sal_Int32 CommandId )
throw( com::sun::star::uno::RuntimeException );
- //////////////////////////////////////////////////////////////////////
+
// Additional interfaces
- //////////////////////////////////////////////////////////////////////
+
// XContentCreator
virtual com::sun::star::uno::Sequence<
diff --git a/ucb/source/ucp/gvfs/gvfs_directory.cxx b/ucb/source/ucp/gvfs/gvfs_directory.cxx
index 21612a090402..5f7c70ee50df 100644
--- a/ucb/source/ucp/gvfs/gvfs_directory.cxx
+++ b/ucb/source/ucp/gvfs/gvfs_directory.cxx
@@ -63,7 +63,7 @@ void DynamicResultSet::initDynamic()
m_xResultSet2 = m_xResultSet1;
}
-//=========================================================================
+
// DataSupplier Implementation.
@@ -89,19 +89,19 @@ struct ResultListEntry
}
};
-//=========================================================================
-//
+
+
// ResultList.
-//
-//=========================================================================
+
+
typedef std::vector< ResultListEntry* > ResultList;
-//=========================================================================
-//
+
+
// struct DataSupplier_Impl.
-//
-//=========================================================================
+
+
struct gvfs::DataSupplier_Impl
{
@@ -136,7 +136,7 @@ DataSupplier::DataSupplier(
{
}
-//=========================================================================
+
// virtual
DataSupplier::~DataSupplier()
{
diff --git a/ucb/source/ucp/gvfs/gvfs_provider.cxx b/ucb/source/ucp/gvfs/gvfs_provider.cxx
index 2b528edfad08..4b58dc61a0c6 100644
--- a/ucb/source/ucp/gvfs/gvfs_provider.cxx
+++ b/ucb/source/ucp/gvfs/gvfs_provider.cxx
@@ -27,13 +27,13 @@
using namespace com::sun::star;
using namespace gvfs;
-//=========================================================================
-//=========================================================================
-//
+
+
+
// ContentProvider Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
ContentProvider::ContentProvider(
const uno::Reference< uno::XComponentContext >& rxContext )
@@ -41,56 +41,56 @@ ContentProvider::ContentProvider(
{
}
// sdafas
-//=========================================================================
+
// virtual
ContentProvider::~ContentProvider()
{
}
-//=========================================================================
-//
+
+
// XInterface methods.
-//
-//=========================================================================
+
+
XINTERFACE_IMPL_3( ContentProvider,
lang::XTypeProvider,
lang::XServiceInfo,
com::sun::star::ucb::XContentProvider );
-//=========================================================================
-//
+
+
// XTypeProvider methods.
-//
-//=========================================================================
+
+
XTYPEPROVIDER_IMPL_3( ContentProvider,
lang::XTypeProvider,
lang::XServiceInfo,
com::sun::star::ucb::XContentProvider );
-//=========================================================================
-//
+
+
// XServiceInfo methods.
-//
-//=========================================================================
+
+
XSERVICEINFO_IMPL_1_CTX( ContentProvider,
OUString( "com.sun.star.comp.GnomeVFSContentProvider" ),
OUString( "com.sun.star.ucb.GnomeVFSContentProvider" ) );
-//=========================================================================
-//
+
+
// Service factory implementation.
-//
-//=========================================================================
+
+
ONE_INSTANCE_SERVICE_FACTORY_IMPL( ContentProvider );
-//=========================================================================
-//
+
+
// XContentProvider methods.
-//
-//=========================================================================
+
+
uno::Reference< com::sun::star::ucb::XContent > SAL_CALL
ContentProvider::queryContent(
diff --git a/ucb/source/ucp/hierarchy/dynamicresultset.cxx b/ucb/source/ucp/hierarchy/dynamicresultset.cxx
index 444886659e95..f29b7008f9bc 100644
--- a/ucb/source/ucp/hierarchy/dynamicresultset.cxx
+++ b/ucb/source/ucp/hierarchy/dynamicresultset.cxx
@@ -33,13 +33,13 @@
using namespace com::sun::star;
using namespace hierarchy_ucp;
-//=========================================================================
-//=========================================================================
-//
+
+
+
// DynamicResultSet Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
DynamicResultSet::DynamicResultSet(
const uno::Reference< uno::XComponentContext >& rxContext,
@@ -50,11 +50,11 @@ DynamicResultSet::DynamicResultSet(
{
}
-//=========================================================================
-//
+
+
// Non-interface methods.
-//
-//=========================================================================
+
+
void DynamicResultSet::initStatic()
{
@@ -67,7 +67,7 @@ void DynamicResultSet::initStatic()
m_aCommand.Mode ) );
}
-//=========================================================================
+
void DynamicResultSet::initDynamic()
{
m_xResultSet1
diff --git a/ucb/source/ucp/hierarchy/hierarchycontent.cxx b/ucb/source/ucp/hierarchy/hierarchycontent.cxx
index 9ca0820ddf18..31f9dbd785b3 100644
--- a/ucb/source/ucp/hierarchy/hierarchycontent.cxx
+++ b/ucb/source/ucp/hierarchy/hierarchycontent.cxx
@@ -73,13 +73,13 @@
using namespace com::sun::star;
using namespace hierarchy_ucp;
-//=========================================================================
-//=========================================================================
-//
+
+
+
// HierarchyContent Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
// static ( "virtual" ctor )
HierarchyContent* HierarchyContent::create(
@@ -95,7 +95,7 @@ HierarchyContent* HierarchyContent::create(
return new HierarchyContent( rxContext, pProvider, Identifier, aProps );
}
-//=========================================================================
+
// static ( "virtual" ctor )
HierarchyContent* HierarchyContent::create(
const uno::Reference< uno::XComponentContext >& rxContext,
@@ -112,7 +112,7 @@ HierarchyContent* HierarchyContent::create(
return new HierarchyContent( rxContext, pProvider, Identifier, Info );
}
-//=========================================================================
+
HierarchyContent::HierarchyContent(
const uno::Reference< uno::XComponentContext >& rxContext,
HierarchyContentProvider* pProvider,
@@ -128,7 +128,7 @@ HierarchyContent::HierarchyContent(
setKind( Identifier );
}
-//=========================================================================
+
HierarchyContent::HierarchyContent(
const uno::Reference< uno::XComponentContext >& rxContext,
HierarchyContentProvider* pProvider,
@@ -144,17 +144,17 @@ HierarchyContent::HierarchyContent(
setKind( Identifier );
}
-//=========================================================================
+
// virtual
HierarchyContent::~HierarchyContent()
{
}
-//=========================================================================
-//
+
+
// XInterface methods.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL HierarchyContent::acquire()
@@ -163,7 +163,7 @@ void SAL_CALL HierarchyContent::acquire()
ContentImplHelper::acquire();
}
-//=========================================================================
+
// virtual
void SAL_CALL HierarchyContent::release()
throw( )
@@ -171,7 +171,7 @@ void SAL_CALL HierarchyContent::release()
ContentImplHelper::release();
}
-//=========================================================================
+
// virtual
uno::Any SAL_CALL HierarchyContent::queryInterface( const uno::Type & rType )
throw ( uno::RuntimeException )
@@ -194,15 +194,15 @@ uno::Any SAL_CALL HierarchyContent::queryInterface( const uno::Type & rType )
return aRet;
}
-//=========================================================================
-//
+
+
// XTypeProvider methods.
-//
-//=========================================================================
+
+
XTYPEPROVIDER_COMMON_IMPL( HierarchyContent );
-//=========================================================================
+
// virtual
uno::Sequence< uno::Type > SAL_CALL HierarchyContent::getTypes()
throw( uno::RuntimeException )
@@ -278,11 +278,11 @@ uno::Sequence< uno::Type > SAL_CALL HierarchyContent::getTypes()
return (*pCollection).getTypes();
}
-//=========================================================================
-//
+
+
// XServiceInfo methods.
-//
-//=========================================================================
+
+
// virtual
OUString SAL_CALL HierarchyContent::getImplementationName()
@@ -291,7 +291,7 @@ OUString SAL_CALL HierarchyContent::getImplementationName()
return OUString( "com.sun.star.comp.ucb.HierarchyContent" );
}
-//=========================================================================
+
// virtual
uno::Sequence< OUString > SAL_CALL
HierarchyContent::getSupportedServiceNames()
@@ -309,11 +309,11 @@ HierarchyContent::getSupportedServiceNames()
return aSNS;
}
-//=========================================================================
-//
+
+
// XContent methods.
-//
-//=========================================================================
+
+
// virtual
OUString SAL_CALL HierarchyContent::getContentType()
@@ -322,7 +322,7 @@ OUString SAL_CALL HierarchyContent::getContentType()
return m_aProps.getContentType();
}
-//=========================================================================
+
// virtual
uno::Reference< ucb::XContentIdentifier > SAL_CALL
HierarchyContent::getIdentifier()
@@ -338,11 +338,11 @@ HierarchyContent::getIdentifier()
return ContentImplHelper::getIdentifier();
}
-//=========================================================================
-//
+
+
// XCommandProcessor methods.
-//
-//=========================================================================
+
+
// virtual
uno::Any SAL_CALL HierarchyContent::execute(
@@ -357,9 +357,9 @@ uno::Any SAL_CALL HierarchyContent::execute(
if ( aCommand.Name == "getPropertyValues" )
{
- //////////////////////////////////////////////////////////////////
+
// getPropertyValues
- //////////////////////////////////////////////////////////////////
+
uno::Sequence< beans::Property > Properties;
if ( !( aCommand.Argument >>= Properties ) )
@@ -377,9 +377,9 @@ uno::Any SAL_CALL HierarchyContent::execute(
}
else if ( aCommand.Name == "setPropertyValues" )
{
- //////////////////////////////////////////////////////////////////
+
// setPropertyValues
- //////////////////////////////////////////////////////////////////
+
uno::Sequence< beans::PropertyValue > aProperties;
if ( !( aCommand.Argument >>= aProperties ) )
@@ -408,25 +408,25 @@ uno::Any SAL_CALL HierarchyContent::execute(
}
else if ( aCommand.Name == "getPropertySetInfo" )
{
- //////////////////////////////////////////////////////////////////
+
// getPropertySetInfo
- //////////////////////////////////////////////////////////////////
+
aRet <<= getPropertySetInfo( Environment );
}
else if ( aCommand.Name == "getCommandInfo" )
{
- //////////////////////////////////////////////////////////////////
+
// getCommandInfo
- //////////////////////////////////////////////////////////////////
+
aRet <<= getCommandInfo( Environment );
}
else if ( aCommand.Name == "open" && isFolder() )
{
- //////////////////////////////////////////////////////////////////
+
// open command for a folder content
- //////////////////////////////////////////////////////////////////
+
ucb::OpenCommandArgument2 aOpenCommand;
if ( !( aCommand.Argument >>= aOpenCommand ) )
@@ -446,10 +446,10 @@ uno::Any SAL_CALL HierarchyContent::execute(
}
else if ( aCommand.Name == "insert" && ( m_eKind != ROOT ) && !isReadOnly() )
{
- //////////////////////////////////////////////////////////////////
+
// insert
// ( Not available at root folder )
- //////////////////////////////////////////////////////////////////
+
ucb::InsertCommandArgument aArg;
if ( !( aCommand.Argument >>= aArg ) )
@@ -470,10 +470,10 @@ uno::Any SAL_CALL HierarchyContent::execute(
}
else if ( aCommand.Name == "delete" && ( m_eKind != ROOT ) && !isReadOnly() )
{
- //////////////////////////////////////////////////////////////////
+
// delete
// ( Not available at root folder )
- //////////////////////////////////////////////////////////////////
+
sal_Bool bDeletePhysical = sal_False;
aCommand.Argument >>= bDeletePhysical;
@@ -504,10 +504,10 @@ uno::Any SAL_CALL HierarchyContent::execute(
}
else if ( aCommand.Name == "transfer" && isFolder() && !isReadOnly() )
{
- //////////////////////////////////////////////////////////////////
+
// transfer
// ( Not available at link objects )
- //////////////////////////////////////////////////////////////////
+
ucb::TransferInfo aInfo;
if ( !( aCommand.Argument >>= aInfo ) )
@@ -526,10 +526,10 @@ uno::Any SAL_CALL HierarchyContent::execute(
}
else if ( aCommand.Name == "createNewContent" && isFolder() && !isReadOnly() )
{
- //////////////////////////////////////////////////////////////////
+
// createNewContent
// ( Not available at link objects )
- //////////////////////////////////////////////////////////////////
+
ucb::ContentInfo aInfo;
if ( !( aCommand.Argument >>= aInfo ) )
@@ -548,9 +548,9 @@ uno::Any SAL_CALL HierarchyContent::execute(
}
else
{
- //////////////////////////////////////////////////////////////////
+
// Unsupported command
- //////////////////////////////////////////////////////////////////
+
ucbhelper::cancelCommandExecution(
uno::makeAny( ucb::UnsupportedCommandException(
@@ -563,7 +563,7 @@ uno::Any SAL_CALL HierarchyContent::execute(
return aRet;
}
-//=========================================================================
+
// virtual
void SAL_CALL HierarchyContent::abort( sal_Int32 /*CommandId*/ )
throw( uno::RuntimeException )
@@ -571,11 +571,11 @@ void SAL_CALL HierarchyContent::abort( sal_Int32 /*CommandId*/ )
// @@@ Generally, no action takes much time...
}
-//=========================================================================
-//
+
+
// XContentCreator methods.
-//
-//=========================================================================
+
+
// virtual
uno::Sequence< ucb::ContentInfo > SAL_CALL
@@ -585,7 +585,7 @@ HierarchyContent::queryCreatableContentsInfo()
return m_aProps.getCreatableContentsInfo();
}
-//=========================================================================
+
// virtual
uno::Reference< ucb::XContent > SAL_CALL
HierarchyContent::createNewContent( const ucb::ContentInfo& Info )
@@ -628,7 +628,7 @@ HierarchyContent::createNewContent( const ucb::ContentInfo& Info )
}
}
-//=========================================================================
+
// virtual
OUString HierarchyContent::getParentURL()
{
@@ -636,7 +636,7 @@ OUString HierarchyContent::getParentURL()
return aUri.getParentUri();
}
-//=========================================================================
+
//static
sal_Bool HierarchyContent::hasData(
const uno::Reference< uno::XComponentContext >& rxContext,
@@ -657,7 +657,7 @@ sal_Bool HierarchyContent::hasData(
return HierarchyEntry( rxContext, pProvider, aURL ).hasData();
}
-//=========================================================================
+
//static
sal_Bool HierarchyContent::loadData(
const uno::Reference< uno::XComponentContext >& rxContext,
@@ -685,7 +685,7 @@ sal_Bool HierarchyContent::loadData(
return sal_True;
}
-//=========================================================================
+
sal_Bool HierarchyContent::storeData()
{
HierarchyEntry aEntry(
@@ -693,7 +693,7 @@ sal_Bool HierarchyContent::storeData()
return aEntry.setData( m_aProps.getHierarchyEntryData(), sal_True );
}
-//=========================================================================
+
sal_Bool HierarchyContent::renameData(
const uno::Reference< ucb::XContentIdentifier >& xOldId,
const uno::Reference< ucb::XContentIdentifier >& xNewId )
@@ -704,7 +704,7 @@ sal_Bool HierarchyContent::renameData(
m_aProps.getHierarchyEntryData() );
}
-//=========================================================================
+
sal_Bool HierarchyContent::removeData()
{
HierarchyEntry aEntry(
@@ -712,7 +712,7 @@ sal_Bool HierarchyContent::removeData()
return aEntry.remove();
}
-//=========================================================================
+
void HierarchyContent::setKind(
const uno::Reference< ucb::XContentIdentifier >& Identifier )
{
@@ -729,7 +729,7 @@ void HierarchyContent::setKind(
m_eKind = LINK;
}
-//=========================================================================
+
bool HierarchyContent::isReadOnly()
{
if ( !m_bCheckedReadOnly )
@@ -763,7 +763,7 @@ bool HierarchyContent::isReadOnly()
return m_bIsReadOnly;
}
-//=========================================================================
+
uno::Reference< ucb::XContentIdentifier >
HierarchyContent::makeNewIdentifier( const OUString& rTitle )
{
@@ -779,7 +779,7 @@ HierarchyContent::makeNewIdentifier( const OUString& rTitle )
new ::ucbhelper::ContentIdentifier( aNewURL ) );
}
-//=========================================================================
+
void HierarchyContent::queryChildren( HierarchyContentRefList& rChildren )
{
if ( ( m_eKind != FOLDER ) && ( m_eKind != ROOT ) )
@@ -832,7 +832,7 @@ void HierarchyContent::queryChildren( HierarchyContentRefList& rChildren )
}
}
-//=========================================================================
+
sal_Bool HierarchyContent::exchangeIdentity(
const uno::Reference< ucb::XContentIdentifier >& xNewId )
{
@@ -910,7 +910,7 @@ sal_Bool HierarchyContent::exchangeIdentity(
return sal_False;
}
-//=========================================================================
+
// static
uno::Reference< sdbc::XRow > HierarchyContent::getPropertyValues(
const uno::Reference< uno::XComponentContext >& rxContext,
@@ -1061,7 +1061,7 @@ uno::Reference< sdbc::XRow > HierarchyContent::getPropertyValues(
return uno::Reference< sdbc::XRow >( xRow.get() );
}
-//=========================================================================
+
uno::Reference< sdbc::XRow > HierarchyContent::getPropertyValues(
const uno::Sequence< beans::Property >& rProperties )
{
@@ -1073,7 +1073,7 @@ uno::Reference< sdbc::XRow > HierarchyContent::getPropertyValues(
m_xIdentifier->getContentIdentifier() );
}
-//=========================================================================
+
uno::Sequence< uno::Any > HierarchyContent::setPropertyValues(
const uno::Sequence< beans::PropertyValue >& rValues,
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
@@ -1378,7 +1378,7 @@ uno::Sequence< uno::Any > HierarchyContent::setPropertyValues(
return aRet;
}
-//=========================================================================
+
void HierarchyContent::insert( sal_Int32 nNameClashResolve,
const uno::Reference<
ucb::XCommandEnvironment > & xEnv )
@@ -1525,7 +1525,7 @@ void HierarchyContent::insert( sal_Int32 nNameClashResolve,
}
}
-//=========================================================================
+
void HierarchyContent::destroy( sal_Bool bDeletePhysical,
const uno::Reference<
ucb::XCommandEnvironment > & xEnv )
@@ -1582,7 +1582,7 @@ void HierarchyContent::destroy( sal_Bool bDeletePhysical,
}
}
-//=========================================================================
+
void HierarchyContent::transfer(
const ucb::TransferInfo& rInfo,
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
@@ -1642,9 +1642,9 @@ void HierarchyContent::transfer(
}
}
- //////////////////////////////////////////////////////////////////////
+
// 0) Obtain content object for source.
- //////////////////////////////////////////////////////////////////////
+
uno::Reference< ucb::XContentIdentifier > xId
= new ::ucbhelper::ContentIdentifier( rInfo.SourceURL );
@@ -1680,9 +1680,9 @@ void HierarchyContent::transfer(
// Unreachable
}
- //////////////////////////////////////////////////////////////////////
+
// 1) Create new child content.
- //////////////////////////////////////////////////////////////////////
+
OUString aType = xSource->isFolder()
? OUString( HIERARCHY_FOLDER_CONTENT_TYPE )
@@ -1713,9 +1713,9 @@ void HierarchyContent::transfer(
// Unreachable
}
- //////////////////////////////////////////////////////////////////////
+
// 2) Copy data from source content to child content.
- //////////////////////////////////////////////////////////////////////
+
uno::Sequence< beans::Property > aSourceProps
= xSource->getPropertySetInfo( xEnv )->getProperties();
@@ -1779,15 +1779,15 @@ void HierarchyContent::transfer(
xTarget->setPropertyValues( aValues, xEnv );
}
- //////////////////////////////////////////////////////////////////////
+
// 3) Commit (insert) child.
- //////////////////////////////////////////////////////////////////////
+
xTarget->insert( rInfo.NameClash, xEnv );
- //////////////////////////////////////////////////////////////////////
+
// 4) Transfer (copy) children of source.
- //////////////////////////////////////////////////////////////////////
+
if ( xSource->isFolder() )
{
@@ -1816,9 +1816,9 @@ void HierarchyContent::transfer(
}
}
- //////////////////////////////////////////////////////////////////////
+
// 5) Destroy source ( when moving only ) .
- //////////////////////////////////////////////////////////////////////
+
if ( rInfo.MoveData )
{
@@ -1850,13 +1850,13 @@ void HierarchyContent::transfer(
}
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// HierarchyContentProperties Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
uno::Sequence< ucb::ContentInfo >
HierarchyContentProperties::getCreatableContentsInfo() const
diff --git a/ucb/source/ucp/hierarchy/hierarchycontent.hxx b/ucb/source/ucp/hierarchy/hierarchycontent.hxx
index 92091332a9cc..a91b9f59566a 100644
--- a/ucb/source/ucp/hierarchy/hierarchycontent.hxx
+++ b/ucb/source/ucp/hierarchy/hierarchycontent.hxx
@@ -43,7 +43,7 @@ namespace com { namespace sun { namespace star { namespace ucb {
namespace hierarchy_ucp
{
-//=========================================================================
+
#define HIERARCHY_ROOT_FOLDER_CONTENT_SERVICE_NAME \
"com.sun.star.ucb.HierarchyRootFolderContent"
@@ -52,7 +52,7 @@ namespace hierarchy_ucp
#define HIERARCHY_LINK_CONTENT_SERVICE_NAME \
"com.sun.star.ucb.HierarchyLinkContent"
-//=========================================================================
+
class HierarchyContentProperties
{
@@ -100,7 +100,7 @@ private:
OUString m_aContentType;
};
-//=========================================================================
+
class HierarchyContentProvider;
@@ -270,9 +270,9 @@ public:
abort( sal_Int32 CommandId )
throw( com::sun::star::uno::RuntimeException );
- //////////////////////////////////////////////////////////////////////
+
// Additional interfaces
- //////////////////////////////////////////////////////////////////////
+
// XContentCreator
virtual com::sun::star::uno::Sequence<
@@ -284,9 +284,9 @@ public:
createNewContent( const com::sun::star::ucb::ContentInfo& Info )
throw( com::sun::star::uno::RuntimeException );
- //////////////////////////////////////////////////////////////////////
+
// Non-interface methods.
- //////////////////////////////////////////////////////////////////////
+
static ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRow >
getPropertyValues( const ::com::sun::star::uno::Reference<
diff --git a/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx b/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
index 032c1079e9c7..b5365842b635 100644
--- a/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
+++ b/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
@@ -61,11 +61,11 @@
using namespace com::sun::star;
using namespace hierarchy_ucp;
-//=========================================================================
-//
+
+
// HierarchyContent implementation.
-//
-//=========================================================================
+
+
#define MAKEPROPSEQUENCE( a ) \
uno::Sequence< beans::Property >( a, sizeof( a ) / sizeof( a[ 0 ] ) )
@@ -73,12 +73,12 @@ using namespace hierarchy_ucp;
#define MAKECMDSEQUENCE( a ) \
uno::Sequence< ucb::CommandInfo >( a, sizeof( a ) / sizeof( a[ 0 ] ) )
-//=========================================================================
-//
+
+
// IMPORTANT: If any property data ( name / type / ... ) are changed, then
// HierarchyContent::getPropertyValues(...) must be adapted too!
-//
-//=========================================================================
+
+
// virtual
uno::Sequence< beans::Property > HierarchyContent::getProperties(
@@ -88,19 +88,19 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties(
if ( m_eKind == LINK )
{
- //=================================================================
- //
+
+
// Link: Supported properties
- //
- //=================================================================
+
+
if ( isReadOnly() )
{
static const beans::Property aLinkPropertyInfoTable[] =
{
- ///////////////////////////////////////////////////////////
+
// Required properties
- ///////////////////////////////////////////////////////////
+
beans::Property(
OUString( "ContentType" ),
-1,
@@ -129,9 +129,9 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties(
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
- ///////////////////////////////////////////////////////////
+
// Optional standard properties
- ///////////////////////////////////////////////////////////
+
beans::Property(
OUString( "TargetURL" ),
-1,
@@ -147,9 +147,9 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties(
const uno::Sequence< ucb::ContentInfo > * >( 0 ) ),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY )
- ///////////////////////////////////////////////////////////
+
// New properties
- ///////////////////////////////////////////////////////////
+
};
return MAKEPROPSEQUENCE( aLinkPropertyInfoTable );
}
@@ -157,9 +157,9 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties(
{
static const beans::Property aLinkPropertyInfoTable[] =
{
- ///////////////////////////////////////////////////////////
+
// Required properties
- ///////////////////////////////////////////////////////////
+
beans::Property(
OUString( "ContentType" ),
-1,
@@ -187,9 +187,9 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties(
getCppuType( static_cast< const OUString * >( 0 ) ),
beans::PropertyAttribute::BOUND
),
- ///////////////////////////////////////////////////////////
+
// Optional standard properties
- ///////////////////////////////////////////////////////////
+
beans::Property(
OUString( "TargetURL" ),
-1,
@@ -204,28 +204,28 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties(
const uno::Sequence< ucb::ContentInfo > * >( 0 ) ),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY )
- ///////////////////////////////////////////////////////////
+
// New properties
- ///////////////////////////////////////////////////////////
+
};
return MAKEPROPSEQUENCE( aLinkPropertyInfoTable );
}
}
else if ( m_eKind == FOLDER )
{
- //=================================================================
- //
+
+
// Folder: Supported properties
- //
- //=================================================================
+
+
if ( isReadOnly() )
{
static const beans::Property aFolderPropertyInfoTable[] =
{
- ///////////////////////////////////////////////////////////
+
// Required properties
- ///////////////////////////////////////////////////////////
+
beans::Property(
OUString( "ContentType" ),
-1,
@@ -254,9 +254,9 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties(
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
- ///////////////////////////////////////////////////////////
+
// Optional standard properties
- ///////////////////////////////////////////////////////////
+
beans::Property(
OUString(
"CreatableContentsInfo" ),
@@ -265,9 +265,9 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties(
const uno::Sequence< ucb::ContentInfo > * >( 0 ) ),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY )
- ///////////////////////////////////////////////////////////
+
// New properties
- ///////////////////////////////////////////////////////////
+
};
return MAKEPROPSEQUENCE( aFolderPropertyInfoTable );
}
@@ -275,9 +275,9 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties(
{
static const beans::Property aFolderPropertyInfoTable[] =
{
- ///////////////////////////////////////////////////////////
+
// Required properties
- ///////////////////////////////////////////////////////////
+
beans::Property(
OUString( "ContentType" ),
-1,
@@ -305,9 +305,9 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties(
getCppuType( static_cast< const OUString * >( 0 ) ),
beans::PropertyAttribute::BOUND
),
- ///////////////////////////////////////////////////////////
+
// Optional standard properties
- ///////////////////////////////////////////////////////////
+
beans::Property(
OUString(
"CreatableContentsInfo" ),
@@ -316,29 +316,29 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties(
const uno::Sequence< ucb::ContentInfo > * >( 0 ) ),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY )
- ///////////////////////////////////////////////////////////
+
// New properties
- ///////////////////////////////////////////////////////////
+
};
return MAKEPROPSEQUENCE( aFolderPropertyInfoTable );
}
}
else
{
- //=================================================================
- //
+
+
// Root Folder: Supported properties
- //
- //=================================================================
+
+
// Currently no difference between reonly /read-write
// -> all props ar read-only
static const beans::Property aRootFolderPropertyInfoTable[] =
{
- ///////////////////////////////////////////////////////////////
+
// Required properties
- ///////////////////////////////////////////////////////////////
+
beans::Property(
OUString( "ContentType" ),
-1,
@@ -367,9 +367,9 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties(
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
- ///////////////////////////////////////////////////////////////
+
// Optional standard properties
- ///////////////////////////////////////////////////////////////
+
beans::Property(
OUString(
"CreatableContentsInfo" ),
@@ -378,15 +378,15 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties(
const uno::Sequence< ucb::ContentInfo > * >( 0 ) ),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY )
- ///////////////////////////////////////////////////////////////
+
// New properties
- ///////////////////////////////////////////////////////////////
+
};
return MAKEPROPSEQUENCE( aRootFolderPropertyInfoTable );
}
}
-//=========================================================================
+
// virtual
uno::Sequence< ucb::CommandInfo > HierarchyContent::getCommands(
const uno::Reference< ucb::XCommandEnvironment > & /*xEnv*/ )
@@ -395,19 +395,19 @@ uno::Sequence< ucb::CommandInfo > HierarchyContent::getCommands(
if ( m_eKind == LINK )
{
- //=================================================================
- //
+
+
// Link: Supported commands
- //
- //=================================================================
+
+
if ( isReadOnly() )
{
static const ucb::CommandInfo aLinkCommandInfoTable[] =
{
- ///////////////////////////////////////////////////////////
+
// Required commands
- ///////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "getCommandInfo" ),
-1,
@@ -431,13 +431,13 @@ uno::Sequence< ucb::CommandInfo > HierarchyContent::getCommands(
static_cast<
uno::Sequence< beans::PropertyValue > * >( 0 ) )
)
- ///////////////////////////////////////////////////////////
+
// Optional standard commands
- ///////////////////////////////////////////////////////////
- ///////////////////////////////////////////////////////////
+
+
// New commands
- ///////////////////////////////////////////////////////////
+
};
return MAKECMDSEQUENCE( aLinkCommandInfoTable );
}
@@ -445,9 +445,9 @@ uno::Sequence< ucb::CommandInfo > HierarchyContent::getCommands(
{
static const ucb::CommandInfo aLinkCommandInfoTable[] =
{
- ///////////////////////////////////////////////////////////
+
// Required commands
- ///////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "getCommandInfo" ),
-1,
@@ -471,9 +471,9 @@ uno::Sequence< ucb::CommandInfo > HierarchyContent::getCommands(
static_cast<
uno::Sequence< beans::PropertyValue > * >( 0 ) )
),
- ///////////////////////////////////////////////////////////
+
// Optional standard commands
- ///////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "delete" ),
-1,
@@ -484,28 +484,28 @@ uno::Sequence< ucb::CommandInfo > HierarchyContent::getCommands(
-1,
getCppuVoidType()
)
- ///////////////////////////////////////////////////////////
+
// New commands
- ///////////////////////////////////////////////////////////
+
};
return MAKECMDSEQUENCE( aLinkCommandInfoTable );
}
}
else if ( m_eKind == FOLDER )
{
- //=================================================================
- //
+
+
// Folder: Supported commands
- //
- //=================================================================
+
+
if ( isReadOnly() )
{
static const ucb::CommandInfo aFolderCommandInfoTable[] =
{
- ///////////////////////////////////////////////////////////
+
// Required commands
- ///////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "getCommandInfo" ),
-1,
@@ -529,18 +529,18 @@ uno::Sequence< ucb::CommandInfo > HierarchyContent::getCommands(
static_cast<
uno::Sequence< beans::PropertyValue > * >( 0 ) )
),
- ///////////////////////////////////////////////////////////
+
// Optional standard commands
- ///////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "open" ),
-1,
getCppuType(
static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
)
- ///////////////////////////////////////////////////////////
+
// New commands
- ///////////////////////////////////////////////////////////
+
};
return MAKECMDSEQUENCE( aFolderCommandInfoTable );
}
@@ -548,9 +548,9 @@ uno::Sequence< ucb::CommandInfo > HierarchyContent::getCommands(
{
static const ucb::CommandInfo aFolderCommandInfoTable[] =
{
- ///////////////////////////////////////////////////////////
+
// Required commands
- ///////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "getCommandInfo" ),
-1,
@@ -574,9 +574,9 @@ uno::Sequence< ucb::CommandInfo > HierarchyContent::getCommands(
static_cast<
uno::Sequence< beans::PropertyValue > * >( 0 ) )
),
- ///////////////////////////////////////////////////////////
+
// Optional standard commands
- ///////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "delete" ),
-1,
@@ -603,28 +603,28 @@ uno::Sequence< ucb::CommandInfo > HierarchyContent::getCommands(
-1,
getCppuType( static_cast< ucb::ContentInfo * >( 0 ) )
)
- ///////////////////////////////////////////////////////////
+
// New commands
- ///////////////////////////////////////////////////////////
+
};
return MAKECMDSEQUENCE( aFolderCommandInfoTable );
}
}
else
{
- //=================================================================
- //
+
+
// Root Folder: Supported commands
- //
- //=================================================================
+
+
if ( isReadOnly() )
{
static const ucb::CommandInfo aRootFolderCommandInfoTable[] =
{
- ///////////////////////////////////////////////////////////
+
// Required commands
- ///////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "getCommandInfo" ),
-1,
@@ -648,18 +648,18 @@ uno::Sequence< ucb::CommandInfo > HierarchyContent::getCommands(
static_cast<
uno::Sequence< beans::PropertyValue > * >( 0 ) )
),
- ///////////////////////////////////////////////////////////
+
// Optional standard commands
- ///////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "open" ),
-1,
getCppuType(
static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
)
- ///////////////////////////////////////////////////////////
+
// New commands
- ///////////////////////////////////////////////////////////
+
};
return MAKECMDSEQUENCE( aRootFolderCommandInfoTable );
}
@@ -667,9 +667,9 @@ uno::Sequence< ucb::CommandInfo > HierarchyContent::getCommands(
{
static const ucb::CommandInfo aRootFolderCommandInfoTable[] =
{
- ///////////////////////////////////////////////////////////
+
// Required commands
- ///////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "getCommandInfo" ),
-1,
@@ -693,9 +693,9 @@ uno::Sequence< ucb::CommandInfo > HierarchyContent::getCommands(
static_cast<
uno::Sequence< beans::PropertyValue > * >( 0 ) )
),
- ///////////////////////////////////////////////////////////
+
// Optional standard commands
- ///////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "open" ),
-1,
@@ -712,9 +712,9 @@ uno::Sequence< ucb::CommandInfo > HierarchyContent::getCommands(
-1,
getCppuType( static_cast< ucb::ContentInfo * >( 0 ) )
)
- ///////////////////////////////////////////////////////////
+
// New commands
- ///////////////////////////////////////////////////////////
+
};
return MAKECMDSEQUENCE( aRootFolderCommandInfoTable );
}
diff --git a/ucb/source/ucp/hierarchy/hierarchydata.cxx b/ucb/source/ucp/hierarchy/hierarchydata.cxx
index d4d36662c8db..69f50726a6e7 100644
--- a/ucb/source/ucp/hierarchy/hierarchydata.cxx
+++ b/ucb/source/ucp/hierarchy/hierarchydata.cxx
@@ -45,7 +45,7 @@ using namespace com::sun::star;
namespace hierarchy_ucp
{
-//=========================================================================
+
struct HierarchyEntry::iterator_Impl
{
HierarchyEntryData entry;
@@ -57,7 +57,7 @@ struct HierarchyEntry::iterator_Impl
: officeDirs( 0 ), pos( -1 /* before first */ ) {};
};
-//=========================================================================
+
void makeXMLName( const OUString & rIn, OUStringBuffer & rBuffer )
{
sal_Int32 nCount = rIn.getLength();
@@ -93,13 +93,13 @@ void makeXMLName( const OUString & rIn, OUStringBuffer & rBuffer )
}
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// HierarchyEntry Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
#define READ_SERVICE_NAME "com.sun.star.ucb.HierarchyDataReadAccess"
#define READWRITE_SERVICE_NAME "com.sun.star.ucb.HierarchyDataReadWriteAccess"
@@ -107,7 +107,7 @@ void makeXMLName( const OUString & rIn, OUStringBuffer & rBuffer )
// describe path of cfg entry
#define CFGPROPERTY_NODEPATH "nodepath"
-//=========================================================================
+
HierarchyEntry::HierarchyEntry(
const uno::Reference< uno::XComponentContext >& rxContext,
HierarchyContentProvider* pProvider,
@@ -136,7 +136,7 @@ HierarchyEntry::HierarchyEntry(
OSL_FAIL( "HierarchyEntry - Invalid URL!" );
}
-//=========================================================================
+
sal_Bool HierarchyEntry::hasData()
{
osl::Guard< osl::Mutex > aGuard( m_aMutex );
@@ -151,7 +151,7 @@ sal_Bool HierarchyEntry::hasData()
return sal_False;
}
-//=========================================================================
+
sal_Bool HierarchyEntry::getData( HierarchyEntryData& rData )
{
try
@@ -256,7 +256,7 @@ sal_Bool HierarchyEntry::getData( HierarchyEntryData& rData )
return sal_False;
}
-//=========================================================================
+
sal_Bool HierarchyEntry::setData(
const HierarchyEntryData& rData, sal_Bool bCreate )
{
@@ -488,7 +488,7 @@ sal_Bool HierarchyEntry::setData(
return sal_False;
}
-//=========================================================================
+
sal_Bool HierarchyEntry::move(
const OUString& rNewURL, const HierarchyEntryData& rData )
{
@@ -609,9 +609,9 @@ sal_Bool HierarchyEntry::move(
return sal_False;
}
- //////////////////////////////////////////////////////////////////////
+
// (1) Get entry...
- //////////////////////////////////////////////////////////////////////
+
uno::Any aEntry;
uno::Reference< container::XNameAccess > xOldParentNameAccess;
@@ -658,9 +658,9 @@ sal_Bool HierarchyEntry::move(
return sal_False;
}
- //////////////////////////////////////////////////////////////////////
+
// (2) Remove entry... Note: Insert BEFORE remove does not work!
- //////////////////////////////////////////////////////////////////////
+
try
{
@@ -675,9 +675,9 @@ sal_Bool HierarchyEntry::move(
return sal_False;
}
- //////////////////////////////////////////////////////////////////////
+
// (3) Insert entry at new parent...
- //////////////////////////////////////////////////////////////////////
+
try
{
@@ -782,7 +782,7 @@ sal_Bool HierarchyEntry::move(
return sal_True;
}
-//=========================================================================
+
sal_Bool HierarchyEntry::remove()
{
try
@@ -897,7 +897,7 @@ sal_Bool HierarchyEntry::remove()
return sal_False;
}
-//=========================================================================
+
sal_Bool HierarchyEntry::first( iterator& it )
{
osl::Guard< osl::Mutex > aGuard( m_aMutex );
@@ -969,7 +969,7 @@ sal_Bool HierarchyEntry::first( iterator& it )
return sal_True;
}
-//=========================================================================
+
sal_Bool HierarchyEntry::next( iterator& it )
{
osl::Guard< osl::Mutex > aGuard( m_aMutex );
@@ -982,7 +982,7 @@ sal_Bool HierarchyEntry::next( iterator& it )
return ( it.m_pImpl->pos < it.m_pImpl->names.getLength() );
}
-//=========================================================================
+
OUString HierarchyEntry::createPathFromHierarchyURL(
const HierarchyUri& rURI )
{
@@ -1026,7 +1026,7 @@ OUString HierarchyEntry::createPathFromHierarchyURL(
return aPath;
}
-//=========================================================================
+
uno::Reference< container::XHierarchicalNameAccess >
HierarchyEntry::getRootReadAccess()
{
@@ -1087,26 +1087,26 @@ HierarchyEntry::getRootReadAccess()
return m_xRootReadAccess;
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// HierarchyEntry::iterator Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
HierarchyEntry::iterator::iterator()
{
m_pImpl = new iterator_Impl;
}
-//=========================================================================
+
HierarchyEntry::iterator::~iterator()
{
delete m_pImpl;
}
-//=========================================================================
+
const HierarchyEntryData& HierarchyEntry::iterator::operator*() const
{
if ( ( m_pImpl->pos != -1 )
diff --git a/ucb/source/ucp/hierarchy/hierarchydata.hxx b/ucb/source/ucp/hierarchy/hierarchydata.hxx
index e494c08a7b77..08f30cc959b7 100644
--- a/ucb/source/ucp/hierarchy/hierarchydata.hxx
+++ b/ucb/source/ucp/hierarchy/hierarchydata.hxx
@@ -37,7 +37,7 @@ namespace com { namespace sun { namespace star {
namespace hierarchy_ucp
{
-//=========================================================================
+
class HierarchyEntryData
{
@@ -70,7 +70,7 @@ private:
Type m_aType; // Type
};
-//=========================================================================
+
class HierarchyContentProvider;
class HierarchyUri;
diff --git a/ucb/source/ucp/hierarchy/hierarchydatasource.cxx b/ucb/source/ucp/hierarchy/hierarchydatasource.cxx
index 9bbba07ba555..856c826f1210 100644
--- a/ucb/source/ucp/hierarchy/hierarchydatasource.cxx
+++ b/ucb/source/ucp/hierarchy/hierarchydatasource.cxx
@@ -42,7 +42,7 @@
using namespace com::sun::star;
using namespace hierarchy_ucp;
-//=========================================================================
+
// describe path of cfg entry
#define CFGPROPERTY_NODEPATH "nodepath"
@@ -59,16 +59,16 @@ using namespace hierarchy_ucp;
#define CONFIG_DATA_ROOT_KEY \
"/org.openoffice.ucb.Hierarchy/Root"
-//=========================================================================
+
namespace hcp_impl
{
-//=========================================================================
-//
+
+
// HierarchyDataReadAccess Implementation.
-//
-//=========================================================================
+
+
class HierarchyDataAccess : public cppu::OWeakObject,
public lang::XServiceInfo,
@@ -204,13 +204,13 @@ public:
using namespace hcp_impl;
-//=========================================================================
-//=========================================================================
-//
+
+
+
// HierarchyDataSource Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
HierarchyDataSource::HierarchyDataSource(
const uno::Reference< uno::XComponentContext > & rxContext )
@@ -219,18 +219,18 @@ HierarchyDataSource::HierarchyDataSource(
{
}
-//=========================================================================
+
// virtual
HierarchyDataSource::~HierarchyDataSource()
{
delete m_pDisposeEventListeners;
}
-//=========================================================================
-//
+
+
// XInterface methods.
-//
-//=========================================================================
+
+
XINTERFACE_IMPL_4( HierarchyDataSource,
lang::XTypeProvider,
@@ -238,11 +238,11 @@ XINTERFACE_IMPL_4( HierarchyDataSource,
lang::XComponent,
lang::XMultiServiceFactory );
-//=========================================================================
-//
+
+
// XTypeProvider methods.
-//
-//=========================================================================
+
+
XTYPEPROVIDER_IMPL_4( HierarchyDataSource,
lang::XTypeProvider,
@@ -250,11 +250,11 @@ XTYPEPROVIDER_IMPL_4( HierarchyDataSource,
lang::XComponent,
lang::XMultiServiceFactory );
-//=========================================================================
-//
+
+
// XServiceInfo methods.
-//
-//=========================================================================
+
+
XSERVICEINFO_IMPL_0_CTX( HierarchyDataSource,
OUString( "com.sun.star.comp.ucb.HierarchyDataSource" ) )
@@ -267,11 +267,11 @@ XSERVICEINFO_IMPL_0_CTX( HierarchyDataSource,
ONE_INSTANCE_SERVICE_FACTORY_IMPL( HierarchyDataSource );
-//=========================================================================
-//
+
+
// XComponent methods.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL HierarchyDataSource::dispose()
@@ -287,7 +287,7 @@ void SAL_CALL HierarchyDataSource::dispose()
}
}
-//=========================================================================
+
// virtual
void SAL_CALL HierarchyDataSource::addEventListener(
const uno::Reference< lang::XEventListener > & Listener )
@@ -302,7 +302,7 @@ void SAL_CALL HierarchyDataSource::addEventListener(
m_pDisposeEventListeners->addInterface( Listener );
}
-//=========================================================================
+
// virtual
void SAL_CALL HierarchyDataSource::removeEventListener(
const uno::Reference< lang::XEventListener > & Listener )
@@ -314,11 +314,11 @@ void SAL_CALL HierarchyDataSource::removeEventListener(
m_pDisposeEventListeners->removeInterface( Listener );
}
-//=========================================================================
-//
+
+
// XMultiServiceFactory methods.
-//
-//=========================================================================
+
+
// virtual
uno::Reference< uno::XInterface > SAL_CALL
@@ -337,7 +337,7 @@ HierarchyDataSource::createInstance( const OUString & aServiceSpecifier )
return createInstanceWithArguments( aServiceSpecifier, aArguments, false );
}
-//=========================================================================
+
// virtual
uno::Reference< uno::XInterface > SAL_CALL
HierarchyDataSource::createInstanceWithArguments(
@@ -348,7 +348,7 @@ HierarchyDataSource::createInstanceWithArguments(
return createInstanceWithArguments( ServiceSpecifier, Arguments, true );
}
-//=========================================================================
+
// virtual
uno::Sequence< OUString > SAL_CALL
HierarchyDataSource::getAvailableServiceNames()
@@ -360,11 +360,11 @@ HierarchyDataSource::getAvailableServiceNames()
return aNames;
}
-//=========================================================================
-//
+
+
// Non-interface methods
-//
-//=========================================================================
+
+
uno::Reference< uno::XInterface > SAL_CALL
HierarchyDataSource::createInstanceWithArguments(
@@ -513,7 +513,7 @@ HierarchyDataSource::createInstanceWithArguments(
new HierarchyDataAccess( xConfigAccess, bReadOnly ) ) );
}
-//=========================================================================
+
uno::Reference< lang::XMultiServiceFactory >
HierarchyDataSource::getConfigProvider()
{
@@ -537,7 +537,7 @@ HierarchyDataSource::getConfigProvider()
return m_xConfigProvider;
}
-//=========================================================================
+
bool HierarchyDataSource::createConfigPath(
const OUString & rInPath, OUString & rOutPath )
{
@@ -567,13 +567,13 @@ bool HierarchyDataSource::createConfigPath(
return true;
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// HierarchyDataAccess Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
#define ENSURE_ORIG_INTERFACE( interface_name, member_name ) \
m_xCfg##member_name; \
@@ -587,7 +587,7 @@ bool HierarchyDataSource::createConfigPath(
xOrig = m_xCfg##member_name; \
}
-//=========================================================================
+
HierarchyDataAccess::HierarchyDataAccess( const uno::Reference<
uno::XInterface > & xConfigAccess,
bool bReadOnly )
@@ -596,21 +596,21 @@ HierarchyDataAccess::HierarchyDataAccess( const uno::Reference<
{
}
-//=========================================================================
+
// virtual
HierarchyDataAccess::~HierarchyDataAccess()
{
}
-//=========================================================================
-//
+
+
// XInterface methods.
-//
-//=========================================================================
+
+
XINTERFACE_COMMON_IMPL( HierarchyDataAccess );
-//=========================================================================
+
// virtual
uno::Any SAL_CALL HierarchyDataAccess::queryInterface( const uno::Type & aType )
throw ( uno::RuntimeException )
@@ -638,15 +638,15 @@ uno::Any SAL_CALL HierarchyDataAccess::queryInterface( const uno::Type & aType )
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( aType );
}
-//=========================================================================
-//
+
+
// XTypeProvider methods.
-//
-//=========================================================================
+
+
XTYPEPROVIDER_COMMON_IMPL( HierarchyDataAccess );
-//=========================================================================
+
// virtual
uno::Sequence< uno::Type > SAL_CALL HierarchyDataAccess::getTypes()
throw( uno::RuntimeException )
@@ -715,11 +715,11 @@ uno::Sequence< uno::Type > SAL_CALL HierarchyDataAccess::getTypes()
return (*pCollection).getTypes();
}
-//=========================================================================
-//
+
+
// XServiceInfo methods.
-//
-//=========================================================================
+
+
XSERVICEINFO_NOFACTORY_IMPL_0(
HierarchyDataAccess,
@@ -731,11 +731,11 @@ XSERVICEINFO_NOFACTORY_IMPL_0(
return aSNS;
}
-//=========================================================================
-//
+
+
// XComponent methods.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL HierarchyDataAccess::dispose()
@@ -749,7 +749,7 @@ void SAL_CALL HierarchyDataAccess::dispose()
xOrig->dispose();
}
-//=========================================================================
+
// virtual
void SAL_CALL HierarchyDataAccess::addEventListener(
const uno::Reference< lang::XEventListener > & xListener )
@@ -763,7 +763,7 @@ void SAL_CALL HierarchyDataAccess::addEventListener(
xOrig->addEventListener( xListener );
}
-//=========================================================================
+
// virtual
void SAL_CALL HierarchyDataAccess::removeEventListener(
const uno::Reference< lang::XEventListener > & aListener )
@@ -777,11 +777,11 @@ void SAL_CALL HierarchyDataAccess::removeEventListener(
xOrig->removeEventListener( aListener );
}
-//=========================================================================
-//
+
+
// XHierarchicalNameAccess methods.
-//
-//=========================================================================
+
+
// virtual
uno::Any SAL_CALL HierarchyDataAccess::getByHierarchicalName(
@@ -797,7 +797,7 @@ uno::Any SAL_CALL HierarchyDataAccess::getByHierarchicalName(
return xOrig->getByHierarchicalName( aName );
}
-//=========================================================================
+
// virtual
sal_Bool SAL_CALL HierarchyDataAccess::hasByHierarchicalName(
const OUString & aName )
@@ -812,11 +812,11 @@ sal_Bool SAL_CALL HierarchyDataAccess::hasByHierarchicalName(
return xOrig->hasByHierarchicalName( aName );
}
-//=========================================================================
-//
+
+
// XNameAccess methods.
-//
-//=========================================================================
+
+
// virtual
uno::Any SAL_CALL HierarchyDataAccess::getByName( const OUString & aName )
@@ -832,7 +832,7 @@ uno::Any SAL_CALL HierarchyDataAccess::getByName( const OUString & aName )
return xOrig->getByName( aName );
}
-//=========================================================================
+
// virtual
uno::Sequence< OUString > SAL_CALL HierarchyDataAccess::getElementNames()
throw ( uno::RuntimeException )
@@ -845,7 +845,7 @@ uno::Sequence< OUString > SAL_CALL HierarchyDataAccess::getElementNames()
return xOrig->getElementNames();
}
-//=========================================================================
+
// virtual
sal_Bool SAL_CALL HierarchyDataAccess::hasByName( const OUString & aName )
throw ( uno::RuntimeException )
@@ -858,11 +858,11 @@ sal_Bool SAL_CALL HierarchyDataAccess::hasByName( const OUString & aName )
return xOrig->hasByName( aName );
}
-//=========================================================================
-//
+
+
// XElementAccess methods.
-//
-//=========================================================================
+
+
// virtual
uno::Type SAL_CALL HierarchyDataAccess::getElementType()
@@ -876,7 +876,7 @@ uno::Type SAL_CALL HierarchyDataAccess::getElementType()
return xOrig->getElementType();
}
-//=========================================================================
+
// virtual
sal_Bool SAL_CALL HierarchyDataAccess::hasElements()
throw ( uno::RuntimeException )
@@ -889,11 +889,11 @@ sal_Bool SAL_CALL HierarchyDataAccess::hasElements()
return xOrig->hasElements();
}
-//=========================================================================
-//
+
+
// XChangesNotifier methods.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL HierarchyDataAccess::addChangesListener(
@@ -908,7 +908,7 @@ void SAL_CALL HierarchyDataAccess::addChangesListener(
xOrig->addChangesListener( aListener );
}
-//=========================================================================
+
// virtual
void SAL_CALL HierarchyDataAccess::removeChangesListener(
const uno::Reference< util::XChangesListener > & aListener )
@@ -922,11 +922,11 @@ void SAL_CALL HierarchyDataAccess::removeChangesListener(
xOrig->removeChangesListener( aListener );
}
-//=========================================================================
-//
+
+
// XSingleServiceFactory methods.
-//
-//=========================================================================
+
+
// virtual
uno::Reference< uno::XInterface > SAL_CALL HierarchyDataAccess::createInstance()
@@ -940,7 +940,7 @@ uno::Reference< uno::XInterface > SAL_CALL HierarchyDataAccess::createInstance()
return xOrig->createInstance();
}
-//=========================================================================
+
// virtual
uno::Reference< uno::XInterface > SAL_CALL
HierarchyDataAccess::createInstanceWithArguments(
@@ -955,11 +955,11 @@ HierarchyDataAccess::createInstanceWithArguments(
return xOrig->createInstanceWithArguments( aArguments );
}
-//=========================================================================
-//
+
+
// XNameContainer methods.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL
@@ -978,7 +978,7 @@ HierarchyDataAccess::insertByName( const OUString & aName,
xOrig->insertByName( aName, aElement );
}
-//=========================================================================
+
// virtual
void SAL_CALL
HierarchyDataAccess::removeByName( const OUString & Name )
@@ -994,11 +994,11 @@ HierarchyDataAccess::removeByName( const OUString & Name )
xOrig->removeByName( Name );
}
-//=========================================================================
-//
+
+
// XNameReplace methods.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL HierarchyDataAccess::replaceByName( const OUString & aName,
@@ -1016,11 +1016,11 @@ void SAL_CALL HierarchyDataAccess::replaceByName( const OUString & aName,
xOrig->replaceByName( aName, aElement );
}
-//=========================================================================
-//
+
+
// XChangesBatch methods.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL HierarchyDataAccess::commitChanges()
@@ -1034,7 +1034,7 @@ void SAL_CALL HierarchyDataAccess::commitChanges()
xOrig->commitChanges();
}
-//=========================================================================
+
// virtual
sal_Bool SAL_CALL HierarchyDataAccess::hasPendingChanges()
throw ( uno::RuntimeException )
@@ -1047,7 +1047,7 @@ sal_Bool SAL_CALL HierarchyDataAccess::hasPendingChanges()
return xOrig->hasPendingChanges();
}
-//=========================================================================
+
// virtual
uno::Sequence< util::ElementChange > SAL_CALL
HierarchyDataAccess::getPendingChanges()
diff --git a/ucb/source/ucp/hierarchy/hierarchydatasource.hxx b/ucb/source/ucp/hierarchy/hierarchydatasource.hxx
index 752e8a659aa0..deafa70c063c 100644
--- a/ucb/source/ucp/hierarchy/hierarchydatasource.hxx
+++ b/ucb/source/ucp/hierarchy/hierarchydatasource.hxx
@@ -33,7 +33,7 @@ namespace cppu { class OInterfaceContainerHelper; }
namespace hierarchy_ucp {
-//=========================================================================
+
class HierarchyDataSource : public cppu::OWeakObject,
public com::sun::star::lang::XServiceInfo,
diff --git a/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx b/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx
index b03b35684706..7be64d2c41f4 100644
--- a/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx
+++ b/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx
@@ -36,11 +36,11 @@ using namespace hierarchy_ucp;
namespace hierarchy_ucp
{
-//=========================================================================
-//
+
+
// struct ResultListEntry.
-//
-//=========================================================================
+
+
struct ResultListEntry
{
@@ -53,19 +53,19 @@ struct ResultListEntry
ResultListEntry( const HierarchyEntryData& rEntry ) : aData( rEntry ) {}
};
-//=========================================================================
-//
+
+
// ResultList.
-//
-//=========================================================================
+
+
typedef std::vector< ResultListEntry* > ResultList;
-//=========================================================================
-//
+
+
// struct DataSupplier_Impl.
-//
-//=========================================================================
+
+
struct DataSupplier_Impl
{
@@ -91,7 +91,7 @@ struct DataSupplier_Impl
~DataSupplier_Impl();
};
-//=========================================================================
+
DataSupplier_Impl::~DataSupplier_Impl()
{
ResultList::const_iterator it = m_aResults.begin();
@@ -106,13 +106,13 @@ DataSupplier_Impl::~DataSupplier_Impl()
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// HierarchyResultSetDataSupplier Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
HierarchyResultSetDataSupplier::HierarchyResultSetDataSupplier(
const uno::Reference< uno::XComponentContext >& rxContext,
@@ -122,14 +122,14 @@ HierarchyResultSetDataSupplier::HierarchyResultSetDataSupplier(
{
}
-//=========================================================================
+
// virtual
HierarchyResultSetDataSupplier::~HierarchyResultSetDataSupplier()
{
delete m_pImpl;
}
-//=========================================================================
+
// virtual
OUString HierarchyResultSetDataSupplier::queryContentIdentifierString(
sal_uInt32 nIndex )
@@ -162,7 +162,7 @@ OUString HierarchyResultSetDataSupplier::queryContentIdentifierString(
return OUString();
}
-//=========================================================================
+
// virtual
uno::Reference< ucb::XContentIdentifier >
HierarchyResultSetDataSupplier::queryContentIdentifier( sal_uInt32 nIndex )
@@ -191,7 +191,7 @@ HierarchyResultSetDataSupplier::queryContentIdentifier( sal_uInt32 nIndex )
return uno::Reference< ucb::XContentIdentifier >();
}
-//=========================================================================
+
// virtual
uno::Reference< ucb::XContent >
HierarchyResultSetDataSupplier::queryContent( sal_uInt32 nIndex )
@@ -228,7 +228,7 @@ HierarchyResultSetDataSupplier::queryContent( sal_uInt32 nIndex )
return uno::Reference< ucb::XContent >();
}
-//=========================================================================
+
// virtual
bool HierarchyResultSetDataSupplier::getResult( sal_uInt32 nIndex )
{
@@ -288,7 +288,7 @@ bool HierarchyResultSetDataSupplier::getResult( sal_uInt32 nIndex )
return bFound;
}
-//=========================================================================
+
// virtual
sal_uInt32 HierarchyResultSetDataSupplier::totalCount()
{
@@ -324,21 +324,21 @@ sal_uInt32 HierarchyResultSetDataSupplier::totalCount()
return m_pImpl->m_aResults.size();
}
-//=========================================================================
+
// virtual
sal_uInt32 HierarchyResultSetDataSupplier::currentCount()
{
return m_pImpl->m_aResults.size();
}
-//=========================================================================
+
// virtual
bool HierarchyResultSetDataSupplier::isCountFinal()
{
return m_pImpl->m_bCountFinal;
}
-//=========================================================================
+
// virtual
uno::Reference< sdbc::XRow >
HierarchyResultSetDataSupplier::queryPropertyValues( sal_uInt32 nIndex )
@@ -376,7 +376,7 @@ HierarchyResultSetDataSupplier::queryPropertyValues( sal_uInt32 nIndex )
return uno::Reference< sdbc::XRow >();
}
-//=========================================================================
+
// virtual
void HierarchyResultSetDataSupplier::releasePropertyValues( sal_uInt32 nIndex )
{
@@ -386,20 +386,20 @@ void HierarchyResultSetDataSupplier::releasePropertyValues( sal_uInt32 nIndex )
m_pImpl->m_aResults[ nIndex ]->xRow = uno::Reference< sdbc::XRow >();
}
-//=========================================================================
+
// virtual
void HierarchyResultSetDataSupplier::close()
{
}
-//=========================================================================
+
// virtual
void HierarchyResultSetDataSupplier::validate()
throw( ucb::ResultSetException )
{
}
-//=========================================================================
+
sal_Bool HierarchyResultSetDataSupplier::checkResult(
const HierarchyEntryData& rResult )
{
diff --git a/ucb/source/ucp/hierarchy/hierarchyprovider.cxx b/ucb/source/ucp/hierarchy/hierarchyprovider.cxx
index 721270380012..a16aff7b03c2 100644
--- a/ucb/source/ucp/hierarchy/hierarchyprovider.cxx
+++ b/ucb/source/ucp/hierarchy/hierarchyprovider.cxx
@@ -40,13 +40,13 @@
using namespace com::sun::star;
using namespace hierarchy_ucp;
-//=========================================================================
-//=========================================================================
-//
+
+
+
// HierarchyContentProvider Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
HierarchyContentProvider::HierarchyContentProvider(
const uno::Reference< uno::XComponentContext >& rxContext )
@@ -54,17 +54,17 @@ HierarchyContentProvider::HierarchyContentProvider(
{
}
-//=========================================================================
+
// virtual
HierarchyContentProvider::~HierarchyContentProvider()
{
}
-//=========================================================================
-//
+
+
// XInterface methods.
-//
-//=========================================================================
+
+
XINTERFACE_IMPL_4( HierarchyContentProvider,
lang::XTypeProvider,
@@ -72,11 +72,11 @@ XINTERFACE_IMPL_4( HierarchyContentProvider,
ucb::XContentProvider,
lang::XInitialization );
-//=========================================================================
-//
+
+
// XTypeProvider methods.
-//
-//=========================================================================
+
+
XTYPEPROVIDER_IMPL_4( HierarchyContentProvider,
lang::XTypeProvider,
@@ -84,29 +84,29 @@ XTYPEPROVIDER_IMPL_4( HierarchyContentProvider,
ucb::XContentProvider,
lang::XInitialization );
-//=========================================================================
-//
+
+
// XServiceInfo methods.
-//
-//=========================================================================
+
+
XSERVICEINFO_IMPL_1_CTX( HierarchyContentProvider,
OUString( "com.sun.star.comp.ucb.HierarchyContentProvider" ),
OUString( HIERARCHY_CONTENT_PROVIDER_SERVICE_NAME ) );
-//=========================================================================
-//
+
+
// Service factory implementation.
-//
-//=========================================================================
+
+
ONE_INSTANCE_SERVICE_FACTORY_IMPL( HierarchyContentProvider );
-//=========================================================================
-//
+
+
// XContentProvider methods.
-//
-//=========================================================================
+
+
// virtual
uno::Reference< ucb::XContent > SAL_CALL
@@ -139,11 +139,11 @@ HierarchyContentProvider::queryContent(
return xContent;
}
-//=========================================================================
-//
+
+
// XInitialization methods.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL HierarchyContentProvider::initialize(
@@ -154,11 +154,11 @@ void SAL_CALL HierarchyContentProvider::initialize(
OSL_FAIL( "HierarchyContentProvider::initialize : not supported!" );
}
-//=========================================================================
-//
+
+
// Non-interface methods.
-//
-//=========================================================================
+
+
uno::Reference< lang::XMultiServiceFactory >
HierarchyContentProvider::getConfigProvider(
@@ -198,7 +198,7 @@ HierarchyContentProvider::getConfigProvider(
return (*it).second.xConfigProvider;
}
-//=========================================================================
+
uno::Reference< container::XHierarchicalNameAccess >
HierarchyContentProvider::getRootConfigReadNameAccess(
const OUString & rServiceSpecifier )
@@ -257,7 +257,7 @@ HierarchyContentProvider::getRootConfigReadNameAccess(
return (*it).second.xRootReadAccess;
}
-//=========================================================================
+
uno::Reference< util::XOfficeInstallationDirectories >
HierarchyContentProvider::getOfficeInstallationDirectories()
{
diff --git a/ucb/source/ucp/hierarchy/hierarchyprovider.hxx b/ucb/source/ucp/hierarchy/hierarchyprovider.hxx
index 153651179de6..76206a2f062e 100644
--- a/ucb/source/ucp/hierarchy/hierarchyprovider.hxx
+++ b/ucb/source/ucp/hierarchy/hierarchyprovider.hxx
@@ -35,7 +35,7 @@ namespace com { namespace sun { namespace star {
namespace hierarchy_ucp {
-//=========================================================================
+
#define HIERARCHY_CONTENT_PROVIDER_SERVICE_NAME \
"com.sun.star.ucb.HierarchyContentProvider"
@@ -50,7 +50,7 @@ namespace hierarchy_ucp {
#define HIERARCHY_LINK_CONTENT_TYPE \
"application/" HIERARCHY_URL_SCHEME "-link"
-//=========================================================================
+
struct ConfigProviderMapEntry
{
@@ -89,7 +89,7 @@ typedef boost::unordered_map
>
ConfigProviderMap;
-//=========================================================================
+
class HierarchyContentProvider : public ::ucbhelper::ContentProviderImplHelper,
public com::sun::star::lang::XInitialization
diff --git a/ucb/source/ucp/hierarchy/hierarchyservices.cxx b/ucb/source/ucp/hierarchy/hierarchyservices.cxx
index c6f5194d3ca7..a3c60af4fec2 100644
--- a/ucb/source/ucp/hierarchy/hierarchyservices.cxx
+++ b/ucb/source/ucp/hierarchy/hierarchyservices.cxx
@@ -25,7 +25,7 @@
using namespace com::sun::star;
using namespace hierarchy_ucp;
-//=========================================================================
+
extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucphier1_component_getFactory(
const sal_Char * pImplName, void * pServiceManager, void * /*pRegistryKey*/ )
{
@@ -36,9 +36,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucphier1_component_getFactory(
pServiceManager ) );
uno::Reference< lang::XSingleServiceFactory > xFactory;
- //////////////////////////////////////////////////////////////////////
+
// Hierarchy Content Provider.
- //////////////////////////////////////////////////////////////////////
+
if ( HierarchyContentProvider::getImplementationName_Static().
equalsAscii( pImplName ) )
@@ -46,9 +46,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucphier1_component_getFactory(
xFactory = HierarchyContentProvider::createServiceFactory( xSMgr );
}
- //////////////////////////////////////////////////////////////////////
+
// Hierarchy Data Source.
- //////////////////////////////////////////////////////////////////////
+
else if ( HierarchyDataSource::getImplementationName_Static().
equalsAscii( pImplName ) )
@@ -56,7 +56,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucphier1_component_getFactory(
xFactory = HierarchyDataSource::createServiceFactory( xSMgr );
}
- //////////////////////////////////////////////////////////////////////
+
if ( xFactory.is() )
{
diff --git a/ucb/source/ucp/hierarchy/hierarchyuri.cxx b/ucb/source/ucp/hierarchy/hierarchyuri.cxx
index 9eb1f882ba83..b5964c722053 100644
--- a/ucb/source/ucp/hierarchy/hierarchyuri.cxx
+++ b/ucb/source/ucp/hierarchy/hierarchyuri.cxx
@@ -31,18 +31,18 @@
using namespace hierarchy_ucp;
-//=========================================================================
+
#define DEFAULT_DATA_SOURCE_SERVICE \
"com.sun.star.ucb.DefaultHierarchyDataSource"
-//=========================================================================
-//=========================================================================
-//
+
+
+
// HierarchyUri Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
void HierarchyUri::init() const
{
@@ -110,7 +110,7 @@ void HierarchyUri::init() const
sal_Int32 nStart = HIERARCHY_URL_SCHEME_LENGTH + 3;
// Here: - m_aUri has at least the form "<scheme>://"
- // - nStart points to char after <scheme>://
+ // - nStart points to char after <scheme>:
// Only <scheme>:// ?
if ( nStart == m_aUri.getLength() )
diff --git a/ucb/source/ucp/hierarchy/hierarchyuri.hxx b/ucb/source/ucp/hierarchy/hierarchyuri.hxx
index d07432c110b6..e13f9d9dddf6 100644
--- a/ucb/source/ucp/hierarchy/hierarchyuri.hxx
+++ b/ucb/source/ucp/hierarchy/hierarchyuri.hxx
@@ -24,12 +24,12 @@
namespace hierarchy_ucp {
-//=========================================================================
+
#define HIERARCHY_URL_SCHEME "vnd.sun.star.hier"
#define HIERARCHY_URL_SCHEME_LENGTH 17
-//=========================================================================
+
class HierarchyUri
{
diff --git a/ucb/source/ucp/inc/urihelper.hxx b/ucb/source/ucp/inc/urihelper.hxx
index 1bbe511be5f2..3ad45439c489 100644
--- a/ucb/source/ucp/inc/urihelper.hxx
+++ b/ucb/source/ucp/inc/urihelper.hxx
@@ -24,7 +24,7 @@
#include "rtl/ustrbuf.hxx"
#include "rtl/uri.hxx"
-//=========================================================================
+
namespace ucb_impl { namespace urihelper {
diff --git a/ucb/source/ucp/package/pkgcontent.cxx b/ucb/source/ucp/package/pkgcontent.cxx
index 2e05762e2dbb..a683d347469f 100644
--- a/ucb/source/ucp/package/pkgcontent.cxx
+++ b/ucb/source/ucp/package/pkgcontent.cxx
@@ -76,13 +76,13 @@ using namespace package_ucp;
#define ENCRYPTED_MODIFIED sal_uInt32( 0x04 )
#define ENCRYPTIONKEY_MODIFIED sal_uInt32( 0x08 )
-//=========================================================================
-//=========================================================================
-//
+
+
+
// ContentProperties Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
ContentProperties::ContentProperties( const OUString& rContentType )
: aContentType( rContentType ),
@@ -98,7 +98,7 @@ ContentProperties::ContentProperties( const OUString& rContentType )
"ContentProperties::ContentProperties - Unknown type!" );
}
-//=========================================================================
+
uno::Sequence< ucb::ContentInfo >
ContentProperties::getCreatableContentsInfo( PackageUri const & rUri ) const
@@ -137,13 +137,13 @@ ContentProperties::getCreatableContentsInfo( PackageUri const & rUri ) const
}
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// Content Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
// static ( "virtual" ctor )
Content* Content::create(
@@ -196,7 +196,7 @@ Content* Content::create(
}
}
-//=========================================================================
+
// static ( "virtual" ctor )
Content* Content::create(
const uno::Reference< uno::XComponentContext >& rxContext,
@@ -224,7 +224,7 @@ Content* Content::create(
return new Content( rxContext, pProvider, xId, xPackage, aURI, Info );
}
-//=========================================================================
+
// static
OUString Content::getContentType(
const OUString& aScheme, sal_Bool bFolder )
@@ -236,7 +236,7 @@ OUString Content::getContentType(
: OUString("-stream") ) );
}
-//=========================================================================
+
Content::Content(
const uno::Reference< uno::XComponentContext >& rxContext,
ContentProvider* pProvider,
@@ -254,7 +254,7 @@ Content::Content(
{
}
-//=========================================================================
+
Content::Content(
const uno::Reference< uno::XComponentContext >& rxContext,
ContentProvider* pProvider,
@@ -272,17 +272,17 @@ Content::Content(
{
}
-//=========================================================================
+
// virtual
Content::~Content()
{
}
-//=========================================================================
-//
+
+
// XInterface methods.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL Content::acquire()
@@ -291,7 +291,7 @@ void SAL_CALL Content::acquire()
ContentImplHelper::acquire();
}
-//=========================================================================
+
// virtual
void SAL_CALL Content::release()
throw( )
@@ -299,7 +299,7 @@ void SAL_CALL Content::release()
ContentImplHelper::release();
}
-//=========================================================================
+
// virtual
uno::Any SAL_CALL Content::queryInterface( const uno::Type & rType )
throw ( uno::RuntimeException )
@@ -313,15 +313,15 @@ uno::Any SAL_CALL Content::queryInterface( const uno::Type & rType )
return aRet.hasValue() ? aRet : ContentImplHelper::queryInterface( rType );
}
-//=========================================================================
-//
+
+
// XTypeProvider methods.
-//
-//=========================================================================
+
+
XTYPEPROVIDER_COMMON_IMPL( Content );
-//=========================================================================
+
// virtual
uno::Sequence< uno::Type > SAL_CALL Content::getTypes()
throw( uno::RuntimeException )
@@ -397,11 +397,11 @@ uno::Sequence< uno::Type > SAL_CALL Content::getTypes()
return (*pCollection).getTypes();
}
-//=========================================================================
-//
+
+
// XServiceInfo methods.
-//
-//=========================================================================
+
+
// virtual
OUString SAL_CALL Content::getImplementationName()
@@ -410,7 +410,7 @@ OUString SAL_CALL Content::getImplementationName()
return OUString( "com.sun.star.comp.ucb.PackageContent" );
}
-//=========================================================================
+
// virtual
uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames()
throw( uno::RuntimeException )
@@ -424,11 +424,11 @@ uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames()
return aSNS;
}
-//=========================================================================
-//
+
+
// XContent methods.
-//
-//=========================================================================
+
+
// virtual
OUString SAL_CALL Content::getContentType()
@@ -437,11 +437,11 @@ OUString SAL_CALL Content::getContentType()
return m_aProps.aContentType;
}
-//=========================================================================
-//
+
+
// XCommandProcessor methods.
-//
-//=========================================================================
+
+
// virtual
uno::Any SAL_CALL Content::execute(
@@ -456,9 +456,9 @@ uno::Any SAL_CALL Content::execute(
if ( aCommand.Name == "getPropertyValues" )
{
- //////////////////////////////////////////////////////////////////
+
// getPropertyValues
- //////////////////////////////////////////////////////////////////
+
uno::Sequence< beans::Property > Properties;
if ( !( aCommand.Argument >>= Properties ) )
@@ -476,9 +476,9 @@ uno::Any SAL_CALL Content::execute(
}
else if ( aCommand.Name == "setPropertyValues" )
{
- //////////////////////////////////////////////////////////////////
+
// setPropertyValues
- //////////////////////////////////////////////////////////////////
+
uno::Sequence< beans::PropertyValue > aProperties;
if ( !( aCommand.Argument >>= aProperties ) )
@@ -507,27 +507,27 @@ uno::Any SAL_CALL Content::execute(
}
else if ( aCommand.Name == "getPropertySetInfo" )
{
- //////////////////////////////////////////////////////////////////
+
// getPropertySetInfo
- //////////////////////////////////////////////////////////////////
+
// Note: Implemented by base class.
aRet <<= getPropertySetInfo( Environment );
}
else if ( aCommand.Name == "getCommandInfo" )
{
- //////////////////////////////////////////////////////////////////
+
// getCommandInfo
- //////////////////////////////////////////////////////////////////
+
// Note: Implemented by base class.
aRet <<= getCommandInfo( Environment );
}
else if ( aCommand.Name == "open" )
{
- //////////////////////////////////////////////////////////////////
+
// open
- //////////////////////////////////////////////////////////////////
+
ucb::OpenCommandArgument2 aOpenCommand;
if ( !( aCommand.Argument >>= aOpenCommand ) )
@@ -545,9 +545,9 @@ uno::Any SAL_CALL Content::execute(
}
else if ( !m_aUri.isRootFolder() && aCommand.Name == "insert" )
{
- //////////////////////////////////////////////////////////////////
+
// insert
- //////////////////////////////////////////////////////////////////
+
ucb::InsertCommandArgument aArg;
if ( !( aCommand.Argument >>= aArg ) )
@@ -568,9 +568,9 @@ uno::Any SAL_CALL Content::execute(
}
else if ( !m_aUri.isRootFolder() && aCommand.Name == "delete" )
{
- //////////////////////////////////////////////////////////////////
+
// delete
- //////////////////////////////////////////////////////////////////
+
sal_Bool bDeletePhysical = sal_False;
aCommand.Argument >>= bDeletePhysical;
@@ -601,10 +601,10 @@ uno::Any SAL_CALL Content::execute(
}
else if ( aCommand.Name == "transfer" )
{
- //////////////////////////////////////////////////////////////////
+
// transfer
// ( Not available at stream objects )
- //////////////////////////////////////////////////////////////////
+
ucb::TransferInfo aInfo;
if ( !( aCommand.Argument >>= aInfo ) )
@@ -622,10 +622,10 @@ uno::Any SAL_CALL Content::execute(
}
else if ( aCommand.Name == "createNewContent" && isFolder() )
{
- //////////////////////////////////////////////////////////////////
+
// createNewContent
// ( Not available at stream objects )
- //////////////////////////////////////////////////////////////////
+
ucb::ContentInfo aInfo;
if ( !( aCommand.Argument >>= aInfo ) )
@@ -644,10 +644,10 @@ uno::Any SAL_CALL Content::execute(
}
else if ( aCommand.Name == "flush" )
{
- //////////////////////////////////////////////////////////////////
+
// flush
// ( Not available at stream objects )
- //////////////////////////////////////////////////////////////////
+
if( !flushData() )
{
@@ -670,9 +670,9 @@ uno::Any SAL_CALL Content::execute(
}
else
{
- //////////////////////////////////////////////////////////////////
+
// Unsupported command
- //////////////////////////////////////////////////////////////////
+
ucbhelper::cancelCommandExecution(
uno::makeAny( ucb::UnsupportedCommandException(
@@ -685,7 +685,7 @@ uno::Any SAL_CALL Content::execute(
return aRet;
}
-//=========================================================================
+
// virtual
void SAL_CALL Content::abort( sal_Int32 /*CommandId*/ )
throw( uno::RuntimeException )
@@ -694,11 +694,11 @@ void SAL_CALL Content::abort( sal_Int32 /*CommandId*/ )
// sense for your content.
}
-//=========================================================================
-//
+
+
// XContentCreator methods.
-//
-//=========================================================================
+
+
// virtual
uno::Sequence< ucb::ContentInfo > SAL_CALL
@@ -708,7 +708,7 @@ Content::queryCreatableContentsInfo()
return m_aProps.getCreatableContentsInfo( m_aUri );
}
-//=========================================================================
+
// virtual
uno::Reference< ucb::XContent > SAL_CALL
Content::createNewContent( const ucb::ContentInfo& Info )
@@ -748,11 +748,11 @@ Content::createNewContent( const ucb::ContentInfo& Info )
}
}
-//=========================================================================
-//
+
+
// Non-interface methods.
-//
-//=========================================================================
+
+
// virtual
OUString Content::getParentURL()
@@ -760,7 +760,7 @@ OUString Content::getParentURL()
return m_aUri.getParentUri();
}
-//=========================================================================
+
// static
uno::Reference< sdbc::XRow > Content::getPropertyValues(
const uno::Reference< uno::XComponentContext >& rxContext,
@@ -797,7 +797,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
}
}
-//=========================================================================
+
// static
uno::Reference< sdbc::XRow > Content::getPropertyValues(
const uno::Reference< uno::XComponentContext >& rxContext,
@@ -1023,7 +1023,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
return uno::Reference< sdbc::XRow >( xRow.get() );
}
-//=========================================================================
+
uno::Reference< sdbc::XRow > Content::getPropertyValues(
const uno::Sequence< beans::Property >& rProperties )
{
@@ -1037,7 +1037,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
m_xIdentifier->getContentIdentifier() );
}
-//=========================================================================
+
uno::Sequence< uno::Any > Content::setPropertyValues(
const uno::Sequence< beans::PropertyValue >& rValues,
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
@@ -1447,7 +1447,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
return aRet;
}
-//=========================================================================
+
uno::Any Content::open(
const ucb::OpenCommandArgument2& rArg,
const uno::Reference< ucb::XCommandEnvironment >& xEnv )
@@ -1457,9 +1457,9 @@ uno::Any Content::open(
rArg.Mode == ucb::OpenMode::FOLDERS ||
rArg.Mode == ucb::OpenMode::DOCUMENTS )
{
- //////////////////////////////////////////////////////////////////
+
// open command for a folder content
- //////////////////////////////////////////////////////////////////
+
uno::Reference< ucb::XDynamicResultSet > xSet
= new DynamicResultSet( m_xContext, this, rArg, xEnv );
@@ -1467,9 +1467,9 @@ uno::Any Content::open(
}
else
{
- //////////////////////////////////////////////////////////////////
+
// open command for a document content
- //////////////////////////////////////////////////////////////////
+
if ( ( rArg.Mode == ucb::OpenMode::DOCUMENT_SHARE_DENY_NONE ) ||
( rArg.Mode == ucb::OpenMode::DOCUMENT_SHARE_DENY_WRITE ) )
@@ -1596,7 +1596,7 @@ uno::Any Content::open(
return uno::Any();
}
-//=========================================================================
+
void Content::insert(
const uno::Reference< io::XInputStream >& xStream,
sal_Int32 nNameClashResolve,
@@ -1755,7 +1755,7 @@ void Content::insert(
}
}
-//=========================================================================
+
void Content::destroy(
sal_Bool bDeletePhysical,
const uno::Reference< ucb::XCommandEnvironment >& xEnv )
@@ -1801,7 +1801,7 @@ void Content::destroy(
}
}
-//=========================================================================
+
void Content::transfer(
const ucb::TransferInfo& rInfo,
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
@@ -1858,9 +1858,9 @@ void Content::transfer(
}
}
- //////////////////////////////////////////////////////////////////////
+
// 0) Obtain content object for source.
- //////////////////////////////////////////////////////////////////////
+
uno::Reference< ucb::XContentIdentifier > xId
= new ::ucbhelper::ContentIdentifier( rInfo.SourceURL );
@@ -1896,9 +1896,9 @@ void Content::transfer(
// Unreachable
}
- //////////////////////////////////////////////////////////////////////
+
// 1) Create new child content.
- //////////////////////////////////////////////////////////////////////
+
OUString aType = xSource->isFolder()
? getContentType( m_aUri.getScheme(), sal_True )
@@ -1928,9 +1928,9 @@ void Content::transfer(
// Unreachable
}
- //////////////////////////////////////////////////////////////////////
+
// 2) Copy data from source content to child content.
- //////////////////////////////////////////////////////////////////////
+
uno::Sequence< beans::Property > aSourceProps
= xSource->getPropertySetInfo( xEnv )->getProperties();
@@ -1995,15 +1995,15 @@ void Content::transfer(
xTarget->setPropertyValues( aValues, xEnv );
}
- //////////////////////////////////////////////////////////////////////
+
// 3) Commit (insert) child.
- //////////////////////////////////////////////////////////////////////
+
xTarget->insert( xSource->getInputStream(), rInfo.NameClash, xEnv );
- //////////////////////////////////////////////////////////////////////
+
// 4) Transfer (copy) children of source.
- //////////////////////////////////////////////////////////////////////
+
if ( xSource->isFolder() )
{
@@ -2058,9 +2058,9 @@ void Content::transfer(
}
}
- //////////////////////////////////////////////////////////////////////
+
// 5) Destroy source ( when moving only ) .
- //////////////////////////////////////////////////////////////////////
+
if ( rInfo.MoveData )
{
@@ -2092,7 +2092,7 @@ void Content::transfer(
}
}
-//=========================================================================
+
sal_Bool Content::exchangeIdentity(
const uno::Reference< ucb::XContentIdentifier >& xNewId )
{
@@ -2163,7 +2163,7 @@ sal_Bool Content::exchangeIdentity(
return sal_False;
}
-//=========================================================================
+
void Content::queryChildren( ContentRefList& rChildren )
{
// Obtain a list with a snapshot of all currently instanciated contents
@@ -2207,7 +2207,7 @@ void Content::queryChildren( ContentRefList& rChildren )
}
}
-//=========================================================================
+
uno::Reference< container::XHierarchicalNameAccess > Content::getPackage(
const PackageUri& rURI )
{
@@ -2225,13 +2225,13 @@ uno::Reference< container::XHierarchicalNameAccess > Content::getPackage(
return m_pProvider->createPackage( rURI );
}
-//=========================================================================
+
uno::Reference< container::XHierarchicalNameAccess > Content::getPackage()
{
return getPackage( m_aUri );
}
-//=========================================================================
+
// static
sal_Bool Content::hasData(
ContentProvider* pProvider,
@@ -2242,7 +2242,7 @@ sal_Bool Content::hasData(
return rxPackage->hasByHierarchicalName( rURI.getPath() );
}
-//=========================================================================
+
sal_Bool Content::hasData( const PackageUri& rURI )
{
osl::Guard< osl::Mutex > aGuard( m_aMutex );
@@ -2257,7 +2257,7 @@ sal_Bool Content::hasData( const PackageUri& rURI )
return hasData( m_pProvider, rURI, xPackage );
}
-//=========================================================================
+
//static
sal_Bool Content::loadData(
ContentProvider* pProvider,
@@ -2451,7 +2451,7 @@ sal_Bool Content::loadData(
return sal_False;
}
-//=========================================================================
+
sal_Bool Content::renameData(
const uno::Reference< ucb::XContentIdentifier >& xOldId,
const uno::Reference< ucb::XContentIdentifier >& xNewId )
@@ -2492,7 +2492,7 @@ sal_Bool Content::renameData(
return sal_False;
}
-//=========================================================================
+
sal_Bool Content::storeData( const uno::Reference< io::XInputStream >& xStream )
{
osl::Guard< osl::Mutex > aGuard( m_aMutex );
@@ -2634,9 +2634,9 @@ sal_Bool Content::storeData( const uno::Reference< io::XInputStream >& xStream )
return sal_False;
}
- //////////////////////////////////////////////////////////////////
+
// Store property values...
- //////////////////////////////////////////////////////////////////
+
if ( m_nModifiedProps & MEDIATYPE_MODIFIED )
{
@@ -2676,9 +2676,9 @@ sal_Bool Content::storeData( const uno::Reference< io::XInputStream >& xStream )
m_nModifiedProps &= ~ENCRYPTIONKEY_MODIFIED;
}
- //////////////////////////////////////////////////////////////////
+
// Store data stream...
- //////////////////////////////////////////////////////////////////
+
if ( xStream.is() && !isFolder() )
{
@@ -2722,7 +2722,7 @@ sal_Bool Content::storeData( const uno::Reference< io::XInputStream >& xStream )
return sal_False;
}
-//=========================================================================
+
sal_Bool Content::removeData()
{
osl::Guard< osl::Mutex > aGuard( m_aMutex );
@@ -2762,7 +2762,7 @@ sal_Bool Content::removeData()
return sal_False;
}
-//=========================================================================
+
sal_Bool Content::flushData()
{
osl::Guard< osl::Mutex > aGuard( m_aMutex );
@@ -2792,7 +2792,7 @@ sal_Bool Content::flushData()
return sal_False;
}
-//=========================================================================
+
uno::Reference< io::XInputStream > Content::getInputStream()
{
osl::Guard< osl::Mutex > aGuard( m_aMutex );
@@ -2829,7 +2829,7 @@ uno::Reference< io::XInputStream > Content::getInputStream()
return xStream;
}
-//=========================================================================
+
uno::Reference< container::XEnumeration > Content::getIterator()
{
osl::Guard< osl::Mutex > aGuard( m_aMutex );
diff --git a/ucb/source/ucp/package/pkgcontent.hxx b/ucb/source/ucp/package/pkgcontent.hxx
index 1d10ae216588..77499bfb2b10 100644
--- a/ucb/source/ucp/package/pkgcontent.hxx
+++ b/ucb/source/ucp/package/pkgcontent.hxx
@@ -57,7 +57,7 @@ namespace com { namespace sun { namespace star {
namespace package_ucp
{
-//=========================================================================
+
// UNO service name for the content.
#define PACKAGE_FOLDER_CONTENT_SERVICE_NAME \
@@ -65,7 +65,7 @@ namespace package_ucp
#define PACKAGE_STREAM_CONTENT_SERVICE_NAME \
"com.sun.star.ucb.PackageStreamContent"
-//=========================================================================
+
struct ContentProperties
{
@@ -92,7 +92,7 @@ struct ContentProperties
getCreatableContentsInfo( PackageUri const & rUri ) const;
};
-//=========================================================================
+
class ContentProvider;
@@ -286,9 +286,9 @@ public:
abort( sal_Int32 CommandId )
throw( com::sun::star::uno::RuntimeException );
- //////////////////////////////////////////////////////////////////////
+
// Additional interfaces
- //////////////////////////////////////////////////////////////////////
+
// XContentCreator
virtual com::sun::star::uno::Sequence<
@@ -300,9 +300,9 @@ public:
createNewContent( const com::sun::star::ucb::ContentInfo& Info )
throw( com::sun::star::uno::RuntimeException );
- //////////////////////////////////////////////////////////////////////
+
// Non-interface methods.
- //////////////////////////////////////////////////////////////////////
+
// Called from resultset data supplier.
static ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRow >
diff --git a/ucb/source/ucp/package/pkgcontentcaps.cxx b/ucb/source/ucp/package/pkgcontentcaps.cxx
index 25ed29e6c2d8..a45e58073bb8 100644
--- a/ucb/source/ucp/package/pkgcontentcaps.cxx
+++ b/ucb/source/ucp/package/pkgcontentcaps.cxx
@@ -62,11 +62,11 @@
using namespace com::sun::star;
using namespace package_ucp;
-//=========================================================================
-//
+
+
// Content implementation.
-//
-//=========================================================================
+
+
#define MAKEPROPSEQUENCE( a ) \
uno::Sequence< beans::Property >( a, sizeof( a ) / sizeof( a[ 0 ] ) )
@@ -74,12 +74,12 @@ using namespace package_ucp;
#define MAKECMDSEQUENCE( a ) \
uno::Sequence< ucb::CommandInfo >( a, sizeof( a ) / sizeof( a[ 0 ] ) )
-//=========================================================================
-//
+
+
// IMPORTANT: If any property data ( name / type / ... ) are changed, then
// Content::getPropertyValues(...) must be adapted too!
-//
-//=========================================================================
+
+
// virtual
uno::Sequence< beans::Property > Content::getProperties(
@@ -91,17 +91,17 @@ uno::Sequence< beans::Property > Content::getProperties(
{
if ( m_aUri.isRootFolder() )
{
- //=================================================================
- //
+
+
// Root Folder: Supported properties
- //
- //=================================================================
+
+
static const beans::Property aRootFolderPropertyInfoTable[] =
{
- ///////////////////////////////////////////////////////////////
+
// Required properties
- ///////////////////////////////////////////////////////////////
+
beans::Property(
OUString( "ContentType" ),
-1,
@@ -130,9 +130,9 @@ uno::Sequence< beans::Property > Content::getProperties(
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
- ///////////////////////////////////////////////////////////////
+
// Optional standard properties
- ///////////////////////////////////////////////////////////////
+
beans::Property(
OUString( "MediaType" ),
-1,
@@ -148,9 +148,9 @@ uno::Sequence< beans::Property > Content::getProperties(
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
- ///////////////////////////////////////////////////////////////
+
// New properties
- ///////////////////////////////////////////////////////////////
+
beans::Property(
OUString( "HasEncryptedEntries" ),
-1,
@@ -163,17 +163,17 @@ uno::Sequence< beans::Property > Content::getProperties(
}
else
{
- //=================================================================
- //
+
+
// Folder: Supported properties
- //
- //=================================================================
+
+
static const beans::Property aFolderPropertyInfoTable[] =
{
- ///////////////////////////////////////////////////////////////
+
// Required properties
- ///////////////////////////////////////////////////////////////
+
beans::Property(
OUString( "ContentType" ),
-1,
@@ -201,9 +201,9 @@ uno::Sequence< beans::Property > Content::getProperties(
getCppuType( static_cast< const OUString * >( 0 ) ),
beans::PropertyAttribute::BOUND
),
- ///////////////////////////////////////////////////////////////
+
// Optional standard properties
- ///////////////////////////////////////////////////////////////
+
beans::Property(
OUString( "MediaType" ),
-1,
@@ -219,26 +219,26 @@ uno::Sequence< beans::Property > Content::getProperties(
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
)
- ///////////////////////////////////////////////////////////////
+
// New properties
- ///////////////////////////////////////////////////////////////
+
};
return MAKEPROPSEQUENCE( aFolderPropertyInfoTable );
}
}
else
{
- //=================================================================
- //
+
+
// Stream: Supported properties
- //
- //=================================================================
+
+
static const beans::Property aStreamPropertyInfoTable[] =
{
- ///////////////////////////////////////////////////////////////
+
// Required properties
- ///////////////////////////////////////////////////////////////
+
beans::Property(
OUString( "ContentType" ),
-1,
@@ -266,9 +266,9 @@ uno::Sequence< beans::Property > Content::getProperties(
getCppuType( static_cast< const OUString * >( 0 ) ),
beans::PropertyAttribute::BOUND
),
- ///////////////////////////////////////////////////////////////
+
// Optional standard properties
- ///////////////////////////////////////////////////////////////
+
beans::Property(
OUString( "MediaType" ),
-1,
@@ -291,9 +291,9 @@ uno::Sequence< beans::Property > Content::getProperties(
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
- ///////////////////////////////////////////////////////////////
+
// New properties
- ///////////////////////////////////////////////////////////////
+
beans::Property(
OUString( "Compressed" ),
-1,
@@ -311,7 +311,7 @@ uno::Sequence< beans::Property > Content::getProperties(
}
}
-//=========================================================================
+
// virtual
uno::Sequence< ucb::CommandInfo > Content::getCommands(
const uno::Reference< ucb::XCommandEnvironment > & /*xEnv*/ )
@@ -322,17 +322,17 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
{
if ( m_aUri.isRootFolder() )
{
- //=================================================================
- //
+
+
// Root Folder: Supported commands
- //
- //=================================================================
+
+
static const ucb::CommandInfo aRootFolderCommandInfoTable[] =
{
- ///////////////////////////////////////////////////////////
+
// Required commands
- ///////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "getCommandInfo" ),
-1,
@@ -357,9 +357,9 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
static_cast<
uno::Sequence< beans::PropertyValue > * >( 0 ) )
),
- ///////////////////////////////////////////////////////////
+
// Optional standard commands
- ///////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "open" ),
-1,
@@ -377,9 +377,9 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
-1,
getCppuType( static_cast< ucb::ContentInfo * >( 0 ) )
),
- ///////////////////////////////////////////////////////////
+
// New commands
- ///////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "flush" ),
-1,
@@ -391,17 +391,17 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
}
else
{
- //=================================================================
- //
+
+
// Folder: Supported commands
- //
- //=================================================================
+
+
static const ucb::CommandInfo aFolderCommandInfoTable[] =
{
- ///////////////////////////////////////////////////////////
+
// Required commands
- ///////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "getCommandInfo" ),
-1,
@@ -426,9 +426,9 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
static_cast<
uno::Sequence< beans::PropertyValue > * >( 0 ) )
),
- ///////////////////////////////////////////////////////////
+
// Optional standard commands
- ///////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "delete" ),
-1,
@@ -456,9 +456,9 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
-1,
getCppuType( static_cast< ucb::ContentInfo * >( 0 ) )
),
- ///////////////////////////////////////////////////////////
+
// New commands
- ///////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "flush" ),
-1,
@@ -471,17 +471,17 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
}
else
{
- //=================================================================
- //
+
+
// Stream: Supported commands
- //
- //=================================================================
+
+
static const ucb::CommandInfo aStreamCommandInfoTable[] =
{
- ///////////////////////////////////////////////////////////////
+
// Required commands
- ///////////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "getCommandInfo" ),
-1,
@@ -505,9 +505,9 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
static_cast<
uno::Sequence< beans::PropertyValue > * >( 0 ) )
),
- ///////////////////////////////////////////////////////////////
+
// Optional standard commands
- ///////////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "delete" ),
-1,
@@ -524,9 +524,9 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
getCppuType(
static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
)
- ///////////////////////////////////////////////////////////////
+
// New commands
- ///////////////////////////////////////////////////////////////
+
};
return MAKECMDSEQUENCE( aStreamCommandInfoTable );
diff --git a/ucb/source/ucp/package/pkgdatasupplier.cxx b/ucb/source/ucp/package/pkgdatasupplier.cxx
index e4a532941414..ef87c6a19369 100644
--- a/ucb/source/ucp/package/pkgdatasupplier.cxx
+++ b/ucb/source/ucp/package/pkgdatasupplier.cxx
@@ -42,11 +42,11 @@ using namespace package_ucp;
namespace package_ucp
{
-//=========================================================================
-//
+
+
// struct ResultListEntry.
-//
-//=========================================================================
+
+
struct ResultListEntry
{
@@ -58,19 +58,19 @@ struct ResultListEntry
ResultListEntry( const OUString& rURL ) : aURL( rURL ) {}
};
-//=========================================================================
-//
+
+
// ResultList.
-//
-//=========================================================================
+
+
typedef std::vector< ResultListEntry* > ResultList;
-//=========================================================================
-//
+
+
// struct DataSupplier_Impl.
-//
-//=========================================================================
+
+
struct DataSupplier_Impl
{
@@ -94,7 +94,7 @@ struct DataSupplier_Impl
~DataSupplier_Impl();
};
-//=========================================================================
+
DataSupplier_Impl::~DataSupplier_Impl()
{
ResultList::const_iterator it = m_aResults.begin();
@@ -109,13 +109,13 @@ DataSupplier_Impl::~DataSupplier_Impl()
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// DataSupplier Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
DataSupplier::DataSupplier(
const uno::Reference< uno::XComponentContext >& rxContext,
@@ -125,14 +125,14 @@ DataSupplier::DataSupplier(
{
}
-//=========================================================================
+
// virtual
DataSupplier::~DataSupplier()
{
delete m_pImpl;
}
-//=========================================================================
+
// virtual
OUString DataSupplier::queryContentIdentifierString( sal_uInt32 nIndex )
{
@@ -156,7 +156,7 @@ OUString DataSupplier::queryContentIdentifierString( sal_uInt32 nIndex )
return OUString();
}
-//=========================================================================
+
// virtual
uno::Reference< ucb::XContentIdentifier >
DataSupplier::queryContentIdentifier( sal_uInt32 nIndex )
@@ -185,7 +185,7 @@ DataSupplier::queryContentIdentifier( sal_uInt32 nIndex )
return uno::Reference< ucb::XContentIdentifier >();
}
-//=========================================================================
+
// virtual
uno::Reference< ucb::XContent > DataSupplier::queryContent(
sal_uInt32 nIndex )
@@ -222,7 +222,7 @@ uno::Reference< ucb::XContent > DataSupplier::queryContent(
return uno::Reference< ucb::XContent >();
}
-//=========================================================================
+
// virtual
bool DataSupplier::getResult( sal_uInt32 nIndex )
{
@@ -312,7 +312,7 @@ bool DataSupplier::getResult( sal_uInt32 nIndex )
return bFound;
}
-//=========================================================================
+
// virtual
sal_uInt32 DataSupplier::totalCount()
{
@@ -379,21 +379,21 @@ sal_uInt32 DataSupplier::totalCount()
return m_pImpl->m_aResults.size();
}
-//=========================================================================
+
// virtual
sal_uInt32 DataSupplier::currentCount()
{
return m_pImpl->m_aResults.size();
}
-//=========================================================================
+
// virtual
bool DataSupplier::isCountFinal()
{
return m_pImpl->m_bCountFinal;
}
-//=========================================================================
+
// virtual
uno::Reference< sdbc::XRow > DataSupplier::queryPropertyValues(
sal_uInt32 nIndex )
@@ -425,7 +425,7 @@ uno::Reference< sdbc::XRow > DataSupplier::queryPropertyValues(
return uno::Reference< sdbc::XRow >();
}
-//=========================================================================
+
// virtual
void DataSupplier::releasePropertyValues( sal_uInt32 nIndex )
{
@@ -435,13 +435,13 @@ void DataSupplier::releasePropertyValues( sal_uInt32 nIndex )
m_pImpl->m_aResults[ nIndex ]->xRow = uno::Reference< sdbc::XRow >();
}
-//=========================================================================
+
// virtual
void DataSupplier::close()
{
}
-//=========================================================================
+
// virtual
void DataSupplier::validate()
throw( ucb::ResultSetException )
@@ -450,7 +450,7 @@ void DataSupplier::validate()
throw ucb::ResultSetException();
}
-//=========================================================================
+
OUString DataSupplier::assembleChildURL( const OUString& aName )
{
OUString aURL;
diff --git a/ucb/source/ucp/package/pkgprovider.cxx b/ucb/source/ucp/package/pkgprovider.cxx
index 8fdb2aafaa00..3f65059e3e3d 100644
--- a/ucb/source/ucp/package/pkgprovider.cxx
+++ b/ucb/source/ucp/package/pkgprovider.cxx
@@ -40,11 +40,11 @@ using namespace com::sun::star;
namespace package_ucp
{
-//=========================================================================
-//
+
+
// class Package.
-//
-//=========================================================================
+
+
class Package : public cppu::OWeakObject,
public container::XHierarchicalNameAccess
@@ -85,11 +85,11 @@ public:
{ return m_xNA->hasByHierarchicalName( aName ); }
};
-//=========================================================================
-//
+
+
// Packages.
-//
-//=========================================================================
+
+
struct equalString
{
@@ -123,13 +123,13 @@ class Packages : public PackageMap {};
using namespace package_ucp;
-//=========================================================================
-//=========================================================================
-//
+
+
+
// ContentProvider Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
ContentProvider::ContentProvider(
const uno::Reference< uno::XComponentContext >& rxContext )
@@ -138,58 +138,58 @@ ContentProvider::ContentProvider(
{
}
-//=========================================================================
+
// virtual
ContentProvider::~ContentProvider()
{
delete m_pPackages;
}
-//=========================================================================
-//
+
+
// XInterface methods.
-//
-//=========================================================================
+
+
XINTERFACE_IMPL_3( ContentProvider,
lang::XTypeProvider,
lang::XServiceInfo,
ucb::XContentProvider );
-//=========================================================================
-//
+
+
// XTypeProvider methods.
-//
-//=========================================================================
+
+
XTYPEPROVIDER_IMPL_3( ContentProvider,
lang::XTypeProvider,
lang::XServiceInfo,
ucb::XContentProvider );
-//=========================================================================
-//
+
+
// XServiceInfo methods.
-//
-//=========================================================================
+
+
XSERVICEINFO_IMPL_1_CTX( ContentProvider,
OUString( "com.sun.star.comp.ucb.PackageContentProvider" ),
OUString( PACKAGE_CONTENT_PROVIDER_SERVICE_NAME ) );
-//=========================================================================
-//
+
+
// Service factory implementation.
-//
-//=========================================================================
+
+
ONE_INSTANCE_SERVICE_FACTORY_IMPL( ContentProvider );
-//=========================================================================
-//
+
+
// XContentProvider methods.
-//
-//=========================================================================
+
+
// virtual
uno::Reference< ucb::XContent > SAL_CALL ContentProvider::queryContent(
@@ -226,11 +226,11 @@ uno::Reference< ucb::XContent > SAL_CALL ContentProvider::queryContent(
return xContent;
}
-//=========================================================================
-//
+
+
// Other methods.
-//
-//=========================================================================
+
+
uno::Reference< container::XHierarchicalNameAccess >
ContentProvider::createPackage( const PackageUri & rURI )
@@ -278,7 +278,7 @@ ContentProvider::createPackage( const PackageUri & rURI )
return xPackage.get();
}
-//=========================================================================
+
sal_Bool ContentProvider::removePackage( const OUString & rName )
{
osl::MutexGuard aGuard( m_aMutex );
diff --git a/ucb/source/ucp/package/pkgprovider.hxx b/ucb/source/ucp/package/pkgprovider.hxx
index 4913442b16e8..4dcc06b37feb 100644
--- a/ucb/source/ucp/package/pkgprovider.hxx
+++ b/ucb/source/ucp/package/pkgprovider.hxx
@@ -29,7 +29,7 @@ namespace com { namespace sun { namespace star { namespace container {
namespace package_ucp {
-//=========================================================================
+
// UNO service name for the provider. This name will be used by the UCB to
// create instances of the provider.
@@ -47,7 +47,7 @@ namespace package_ucp {
#define PACKAGE_ZIP_STREAM_CONTENT_TYPE \
"application/" PACKAGE_ZIP_URL_SCHEME "-stream"
-//=========================================================================
+
class Packages;
@@ -77,13 +77,13 @@ public:
throw( ::com::sun::star::ucb::IllegalIdentifierException,
::com::sun::star::uno::RuntimeException );
- //////////////////////////////////////////////////////////////////////
+
// Additional interfaces
- //////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////////////////
+
+
// Non-interface methods.
- //////////////////////////////////////////////////////////////////////
+
::com::sun::star::uno::Reference<
::com::sun::star::container::XHierarchicalNameAccess >
diff --git a/ucb/source/ucp/package/pkgresultset.cxx b/ucb/source/ucp/package/pkgresultset.cxx
index e6f5b0e347d3..4537c6ca7fb3 100644
--- a/ucb/source/ucp/package/pkgresultset.cxx
+++ b/ucb/source/ucp/package/pkgresultset.cxx
@@ -34,13 +34,13 @@ using namespace com::sun::star;
using namespace package_ucp;
-//=========================================================================
-//=========================================================================
-//
+
+
+
// DynamicResultSet Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
DynamicResultSet::DynamicResultSet(
const uno::Reference< uno::XComponentContext >& rxContext,
@@ -53,11 +53,11 @@ DynamicResultSet::DynamicResultSet(
{
}
-//=========================================================================
-//
+
+
// Non-interface methods.
-//
-//=========================================================================
+
+
void DynamicResultSet::initStatic()
{
@@ -70,7 +70,7 @@ void DynamicResultSet::initStatic()
m_xEnv );
}
-//=========================================================================
+
void DynamicResultSet::initDynamic()
{
m_xResultSet1
diff --git a/ucb/source/ucp/package/pkgservices.cxx b/ucb/source/ucp/package/pkgservices.cxx
index e4508a9cb82a..1c15f424f8e9 100644
--- a/ucb/source/ucp/package/pkgservices.cxx
+++ b/ucb/source/ucp/package/pkgservices.cxx
@@ -24,7 +24,7 @@
using namespace com::sun::star;
-//=========================================================================
+
extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucppkg1_component_getFactory(
const sal_Char * pImplName, void * pServiceManager, void * /*pRegistryKey*/ )
{
@@ -34,9 +34,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucppkg1_component_getFactory(
reinterpret_cast< lang::XMultiServiceFactory * >( pServiceManager ) );
uno::Reference< lang::XSingleServiceFactory > xFactory;
- //////////////////////////////////////////////////////////////////////
+
// Create factory, if implementation name matches.
- //////////////////////////////////////////////////////////////////////
+
if ( ::package_ucp::ContentProvider::getImplementationName_Static().
equalsAscii( pImplName ) )
@@ -44,7 +44,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucppkg1_component_getFactory(
xFactory = ::package_ucp::ContentProvider::createServiceFactory( xSMgr );
}
- //////////////////////////////////////////////////////////////////////
+
if ( xFactory.is() )
{
diff --git a/ucb/source/ucp/package/pkguri.cxx b/ucb/source/ucp/package/pkguri.cxx
index 31d3c95de95e..59a983699991 100644
--- a/ucb/source/ucp/package/pkguri.cxx
+++ b/ucb/source/ucp/package/pkguri.cxx
@@ -35,13 +35,13 @@
using namespace package_ucp;
-//=========================================================================
-//=========================================================================
-//
+
+
+
// PackageUri Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
static void normalize( OUString& rURL )
{
@@ -62,7 +62,7 @@ static void normalize( OUString& rURL )
while ( nPos != -1 );
}
-//=========================================================================
+
void PackageUri::init() const
{
// Already inited?
@@ -134,7 +134,7 @@ void PackageUri::init() const
{
if ( aPureUri[ aPureUri.getLength() - 2 ] == '/' )
{
- // Only <scheme>://// or <scheme>://<something>//
+ // Only <scheme>://// or <scheme>://<something>
// error, but remember that we did a init().
m_aPath = "/";
diff --git a/ucb/source/ucp/package/pkguri.hxx b/ucb/source/ucp/package/pkguri.hxx
index 1b5506ab2b77..7a9f00870686 100644
--- a/ucb/source/ucp/package/pkguri.hxx
+++ b/ucb/source/ucp/package/pkguri.hxx
@@ -24,13 +24,13 @@
namespace package_ucp {
-//=========================================================================
+
#define PACKAGE_URL_SCHEME "vnd.sun.star.pkg"
#define PACKAGE_ZIP_URL_SCHEME "vnd.sun.star.zip"
#define PACKAGE_URL_SCHEME_LENGTH 16
-//=========================================================================
+
class PackageUri
{
diff --git a/ucb/source/ucp/tdoc/tdoc_content.cxx b/ucb/source/ucp/tdoc/tdoc_content.cxx
index 0caba865fb99..519e4ae5c143 100644
--- a/ucb/source/ucp/tdoc/tdoc_content.cxx
+++ b/ucb/source/ucp/tdoc/tdoc_content.cxx
@@ -70,7 +70,7 @@
using namespace com::sun::star;
using namespace tdoc_ucp;
-//=========================================================================
+
static ContentType lcl_getContentType( const OUString & rType )
{
if ( rType == TDOC_ROOT_CONTENT_TYPE )
@@ -88,13 +88,13 @@ static ContentType lcl_getContentType( const OUString & rType )
}
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// Content Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
// static ( "virtual" ctor )
Content* Content::create(
@@ -112,7 +112,7 @@ Content* Content::create(
return new Content( rxContext, pProvider, Identifier, aProps );
}
-//=========================================================================
+
// static ( "virtual" ctor )
Content* Content::create(
const uno::Reference< uno::XComponentContext >& rxContext,
@@ -132,7 +132,7 @@ Content* Content::create(
return new Content( rxContext, pProvider, Identifier, Info );
}
-//=========================================================================
+
Content::Content(
const uno::Reference< uno::XComponentContext > & rxContext,
ContentProvider * pProvider,
@@ -145,7 +145,7 @@ Content::Content(
{
}
-//=========================================================================
+
// ctor for a content just created via XContentCreator::createNewContent()
Content::Content(
const uno::Reference< uno::XComponentContext >& rxContext,
@@ -159,17 +159,17 @@ Content::Content(
{
}
-//=========================================================================
+
// virtual
Content::~Content()
{
}
-//=========================================================================
-//
+
+
// XInterface methods.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL Content::acquire()
@@ -178,7 +178,7 @@ void SAL_CALL Content::acquire()
ContentImplHelper::acquire();
}
-//=========================================================================
+
// virtual
void SAL_CALL Content::release()
throw( )
@@ -186,7 +186,7 @@ void SAL_CALL Content::release()
ContentImplHelper::release();
}
-//=========================================================================
+
// virtual
uno::Any SAL_CALL Content::queryInterface( const uno::Type & rType )
throw ( uno::RuntimeException )
@@ -207,15 +207,15 @@ uno::Any SAL_CALL Content::queryInterface( const uno::Type & rType )
return aRet;
}
-//=========================================================================
-//
+
+
// XTypeProvider methods.
-//
-//=========================================================================
+
+
XTYPEPROVIDER_COMMON_IMPL( Content );
-//=========================================================================
+
// virtual
uno::Sequence< uno::Type > SAL_CALL Content::getTypes()
throw( uno::RuntimeException )
@@ -291,11 +291,11 @@ uno::Sequence< uno::Type > SAL_CALL Content::getTypes()
return (*pCollection).getTypes();
}
-//=========================================================================
-//
+
+
// XServiceInfo methods.
-//
-//=========================================================================
+
+
// virtual
OUString SAL_CALL Content::getImplementationName()
@@ -304,7 +304,7 @@ OUString SAL_CALL Content::getImplementationName()
return OUString( "com.sun.star.comp.ucb.TransientDocumentsContent" );
}
-//=========================================================================
+
// virtual
uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames()
throw( uno::RuntimeException )
@@ -325,11 +325,11 @@ uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames()
return aSNS;
}
-//=========================================================================
-//
+
+
// XContent methods.
-//
-//=========================================================================
+
+
// virtual
OUString SAL_CALL Content::getContentType()
@@ -339,7 +339,7 @@ OUString SAL_CALL Content::getContentType()
return m_aProps.getContentType();
}
-//=========================================================================
+
// virtual
uno::Reference< ucb::XContentIdentifier > SAL_CALL
Content::getIdentifier()
@@ -358,11 +358,11 @@ Content::getIdentifier()
return ContentImplHelper::getIdentifier();
}
-//=========================================================================
-//
+
+
// XCommandProcessor methods.
-//
-//=========================================================================
+
+
// virtual
uno::Any SAL_CALL Content::execute(
@@ -377,9 +377,9 @@ uno::Any SAL_CALL Content::execute(
if ( aCommand.Name == "getPropertyValues" )
{
- //////////////////////////////////////////////////////////////////
+
// getPropertyValues
- //////////////////////////////////////////////////////////////////
+
uno::Sequence< beans::Property > Properties;
if ( !( aCommand.Argument >>= Properties ) )
@@ -397,9 +397,9 @@ uno::Any SAL_CALL Content::execute(
}
else if ( aCommand.Name == "setPropertyValues" )
{
- //////////////////////////////////////////////////////////////////
+
// setPropertyValues
- //////////////////////////////////////////////////////////////////
+
uno::Sequence< beans::PropertyValue > aProperties;
if ( !( aCommand.Argument >>= aProperties ) )
@@ -428,25 +428,25 @@ uno::Any SAL_CALL Content::execute(
}
else if ( aCommand.Name == "getPropertySetInfo" )
{
- //////////////////////////////////////////////////////////////////
+
// getPropertySetInfo
- //////////////////////////////////////////////////////////////////
+
aRet <<= getPropertySetInfo( Environment );
}
else if ( aCommand.Name == "getCommandInfo" )
{
- //////////////////////////////////////////////////////////////////
+
// getCommandInfo
- //////////////////////////////////////////////////////////////////
+
aRet <<= getCommandInfo( Environment );
}
else if ( aCommand.Name == "open" )
{
- //////////////////////////////////////////////////////////////////
+
// open
- //////////////////////////////////////////////////////////////////
+
ucb::OpenCommandArgument2 aOpenCommand;
if ( !( aCommand.Argument >>= aOpenCommand ) )
@@ -464,9 +464,9 @@ uno::Any SAL_CALL Content::execute(
}
else if ( aCommand.Name == "insert" )
{
- //////////////////////////////////////////////////////////////////
+
// insert ( Supported by folders and streams only )
- //////////////////////////////////////////////////////////////////
+
ContentType eType = m_aProps.getType();
if ( ( eType != FOLDER ) && ( eType != STREAM ) )
@@ -518,9 +518,9 @@ uno::Any SAL_CALL Content::execute(
}
else if ( aCommand.Name == "delete" )
{
- //////////////////////////////////////////////////////////////////
+
// delete ( Supported by folders and streams only )
- //////////////////////////////////////////////////////////////////
+
{
osl::MutexGuard aGuard( m_aMutex );
@@ -568,9 +568,9 @@ uno::Any SAL_CALL Content::execute(
}
else if ( aCommand.Name == "transfer" )
{
- //////////////////////////////////////////////////////////////////
+
// transfer ( Supported by document and folders only )
- //////////////////////////////////////////////////////////////////
+
{
osl::MutexGuard aGuard( m_aMutex );
@@ -606,9 +606,9 @@ uno::Any SAL_CALL Content::execute(
}
else if ( aCommand.Name == "createNewContent" )
{
- //////////////////////////////////////////////////////////////////
+
// createNewContent ( Supported by document and folders only )
- //////////////////////////////////////////////////////////////////
+
{
osl::MutexGuard aGuard( m_aMutex );
@@ -645,9 +645,9 @@ uno::Any SAL_CALL Content::execute(
}
else
{
- //////////////////////////////////////////////////////////////////
+
// Unsupported command
- //////////////////////////////////////////////////////////////////
+
ucbhelper::cancelCommandExecution(
uno::makeAny( ucb::UnsupportedCommandException(
@@ -660,18 +660,18 @@ uno::Any SAL_CALL Content::execute(
return aRet;
}
-//=========================================================================
+
// virtual
void SAL_CALL Content::abort( sal_Int32 /*CommandId*/ )
throw( uno::RuntimeException )
{
}
-//=========================================================================
-//
+
+
// XContentCreator methods.
-//
-//=========================================================================
+
+
// virtual
uno::Sequence< ucb::ContentInfo > SAL_CALL
@@ -681,7 +681,7 @@ Content::queryCreatableContentsInfo()
return m_aProps.getCreatableContentsInfo();
}
-//=========================================================================
+
// virtual
uno::Reference< ucb::XContent > SAL_CALL
Content::createNewContent( const ucb::ContentInfo& Info )
@@ -736,7 +736,7 @@ Content::createNewContent( const ucb::ContentInfo& Info )
}
}
-//=========================================================================
+
// virtual
OUString Content::getParentURL()
{
@@ -745,7 +745,7 @@ OUString Content::getParentURL()
return aUri.getParentUri();
}
-//=========================================================================
+
uno::Reference< ucb::XContentIdentifier >
Content::makeNewIdentifier( const OUString& rTitle )
{
@@ -761,7 +761,7 @@ Content::makeNewIdentifier( const OUString& rTitle )
new ::ucbhelper::ContentIdentifier( aNewURL.makeStringAndClear() ) );
}
-//=========================================================================
+
void Content::queryChildren( ContentRefList& rChildren )
{
osl::Guard< osl::Mutex > aGuard( m_aMutex );
@@ -817,7 +817,7 @@ void Content::queryChildren( ContentRefList& rChildren )
}
}
-//=========================================================================
+
sal_Bool Content::exchangeIdentity(
const uno::Reference< ucb::XContentIdentifier >& xNewId )
{
@@ -896,7 +896,7 @@ sal_Bool Content::exchangeIdentity(
return sal_False;
}
-//=========================================================================
+
// static
uno::Reference< sdbc::XRow > Content::getPropertyValues(
const uno::Reference< uno::XComponentContext >& rxContext,
@@ -927,7 +927,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
}
}
-//=========================================================================
+
// static
uno::Reference< sdbc::XRow > Content::getPropertyValues(
const uno::Reference< uno::XComponentContext >& rxContext,
@@ -1114,7 +1114,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
return uno::Reference< sdbc::XRow >( xRow.get() );
}
-//=========================================================================
+
uno::Reference< sdbc::XRow > Content::getPropertyValues(
const uno::Sequence< beans::Property >& rProperties )
{
@@ -1126,7 +1126,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
m_xIdentifier->getContentIdentifier() );
}
-//=========================================================================
+
uno::Sequence< uno::Any > Content::setPropertyValues(
const uno::Sequence< beans::PropertyValue >& rValues,
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
@@ -1403,7 +1403,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
return aRet;
}
-//=========================================================================
+
uno::Any Content::open(
const ucb::OpenCommandArgument2& rArg,
const uno::Reference< ucb::XCommandEnvironment >& xEnv )
@@ -1413,9 +1413,9 @@ uno::Any Content::open(
rArg.Mode == ucb::OpenMode::FOLDERS ||
rArg.Mode == ucb::OpenMode::DOCUMENTS )
{
- //////////////////////////////////////////////////////////////////
+
// open command for a folder content
- //////////////////////////////////////////////////////////////////
+
uno::Reference< ucb::XDynamicResultSet > xSet
= new DynamicResultSet( m_xContext, this, rArg );
@@ -1423,9 +1423,9 @@ uno::Any Content::open(
}
else
{
- //////////////////////////////////////////////////////////////////
+
// open command for a document content
- //////////////////////////////////////////////////////////////////
+
if ( ( rArg.Mode == ucb::OpenMode::DOCUMENT_SHARE_DENY_NONE ) ||
( rArg.Mode == ucb::OpenMode::DOCUMENT_SHARE_DENY_WRITE ) )
@@ -1586,7 +1586,7 @@ uno::Any Content::open(
return uno::Any();
}
-//=========================================================================
+
void Content::insert( const uno::Reference< io::XInputStream >& xData,
sal_Int32 nNameClashResolve,
const uno::Reference<
@@ -1759,7 +1759,7 @@ void Content::insert( const uno::Reference< io::XInputStream >& xData,
}
}
-//=========================================================================
+
void Content::destroy( sal_Bool bDeletePhysical,
const uno::Reference<
ucb::XCommandEnvironment > & xEnv )
@@ -1810,7 +1810,7 @@ void Content::destroy( sal_Bool bDeletePhysical,
}
}
-//=========================================================================
+
void Content::notifyDocumentClosed()
{
osl::ClearableGuard< osl::Mutex > aGuard( m_aMutex );
@@ -1827,7 +1827,7 @@ void Content::notifyDocumentClosed()
deleted();
}
-//=========================================================================
+
uno::Reference< ucb::XContent >
Content::queryChildContent( const OUString & rRelativeChildUri )
{
@@ -1860,7 +1860,7 @@ Content::queryChildContent( const OUString & rRelativeChildUri )
return xChild;
}
-//=========================================================================
+
void Content::notifyChildRemoved( const OUString & rRelativeChildUri )
{
osl::ClearableGuard< osl::Mutex > aGuard( m_aMutex );
@@ -1884,7 +1884,7 @@ void Content::notifyChildRemoved( const OUString & rRelativeChildUri )
}
}
-//=========================================================================
+
void Content::notifyChildInserted( const OUString & rRelativeChildUri )
{
osl::ClearableGuard< osl::Mutex > aGuard( m_aMutex );
@@ -1908,7 +1908,7 @@ void Content::notifyChildInserted( const OUString & rRelativeChildUri )
}
}
-//=========================================================================
+
void Content::transfer(
const ucb::TransferInfo& rInfo,
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
@@ -2064,9 +2064,9 @@ void Content::transfer(
}
#endif
- /////////////////////////////////////////////////////////////////////////
+
// Copy data.
- /////////////////////////////////////////////////////////////////////////
+
OUString aNewName( !rInfo.NewTitle.isEmpty()
? rInfo.NewTitle
@@ -2090,9 +2090,9 @@ void Content::transfer(
// Unreachable
}
- /////////////////////////////////////////////////////////////////////////
+
// Copy own and all children's Additional Core Properties.
- /////////////////////////////////////////////////////////////////////////
+
OUString aTargetUri = m_xIdentifier->getContentIdentifier();
if ( ( aTargetUri.lastIndexOf( '/' ) + 1 ) != aTargetUri.getLength() )
@@ -2122,9 +2122,9 @@ void Content::transfer(
// Unreachable
}
- /////////////////////////////////////////////////////////////////////////
+
// Propagate new content.
- /////////////////////////////////////////////////////////////////////////
+
rtl::Reference< Content > xTarget;
try
@@ -2163,9 +2163,9 @@ void Content::transfer(
// Announce transferred content in its new folder.
xTarget->inserted();
- /////////////////////////////////////////////////////////////////////////
+
// Remove source, if requested
- /////////////////////////////////////////////////////////////////////////
+
if ( rInfo.MoveData )
{
@@ -2246,7 +2246,7 @@ void Content::transfer(
} // rInfo.MoveData
}
-//=========================================================================
+
//static
bool Content::hasData( ContentProvider* pProvider, const Uri & rUri )
{
@@ -2282,7 +2282,7 @@ bool Content::hasData( ContentProvider* pProvider, const Uri & rUri )
}
}
-//=========================================================================
+
//static
bool Content::loadData( ContentProvider* pProvider,
const Uri & rUri,
@@ -2350,7 +2350,7 @@ bool Content::loadData( ContentProvider* pProvider,
return true;
}
-//=========================================================================
+
bool Content::storeData( const uno::Reference< io::XInputStream >& xData,
const uno::Reference<
ucb::XCommandEnvironment >& xEnv )
@@ -2493,7 +2493,7 @@ bool Content::storeData( const uno::Reference< io::XInputStream >& xData,
return true;
}
-//=========================================================================
+
bool Content::renameData(
const uno::Reference< ucb::XContentIdentifier >& xOldId,
const uno::Reference< ucb::XContentIdentifier >& xNewId )
@@ -2561,7 +2561,7 @@ bool Content::renameData(
return commitStorage( xStorage );
}
-//=========================================================================
+
bool Content::removeData()
{
osl::Guard< osl::Mutex > aGuard( m_aMutex );
@@ -2619,7 +2619,7 @@ bool Content::removeData()
return commitStorage( xStorage );
}
-//=========================================================================
+
bool Content::copyData( const Uri & rSourceUri, const OUString & rNewName )
{
osl::Guard< osl::Mutex > aGuard( m_aMutex );
@@ -2690,7 +2690,7 @@ bool Content::copyData( const Uri & rSourceUri, const OUString & rNewName )
return commitStorage( xDestStorage );
}
-//=========================================================================
+
// static
bool Content::commitStorage( const uno::Reference< embed::XStorage > & xStorage )
{
@@ -2717,7 +2717,7 @@ bool Content::commitStorage( const uno::Reference< embed::XStorage > & xStorage
return true;
}
-//=========================================================================
+
// static
bool Content::closeOutputStream(
const uno::Reference< io::XOutputStream > & xOut )
@@ -2745,7 +2745,7 @@ bool Content::closeOutputStream(
return false;
}
-//=========================================================================
+
static OUString obtainPassword(
const OUString & rName,
task::PasswordRequestMode eMode,
@@ -2802,7 +2802,7 @@ static OUString obtainPassword(
throw aRequest;
}
-//=========================================================================
+
uno::Reference< io::XInputStream > Content::getInputStream(
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
throw ( ucb::CommandFailedException,
@@ -2843,7 +2843,7 @@ uno::Reference< io::XInputStream > Content::getInputStream(
}
}
-//=========================================================================
+
static uno::Reference< io::XOutputStream > lcl_getTruncatedOutputStream(
const OUString & rUri,
ContentProvider * pProvider,
@@ -2875,7 +2875,7 @@ static uno::Reference< io::XOutputStream > lcl_getTruncatedOutputStream(
}
}
-//=========================================================================
+
uno::Reference< io::XOutputStream > Content::getTruncatedOutputStream(
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
throw ( ucb::CommandFailedException,
@@ -2890,7 +2890,7 @@ uno::Reference< io::XOutputStream > Content::getTruncatedOutputStream(
xEnv );
}
-//=========================================================================
+
uno::Reference< io::XStream > Content::getStream(
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
throw ( ucb::CommandFailedException,
@@ -2926,13 +2926,13 @@ uno::Reference< io::XStream > Content::getStream(
}
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// ContentProperties Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
uno::Sequence< ucb::ContentInfo >
ContentProperties::getCreatableContentsInfo() const
@@ -2991,7 +2991,7 @@ ContentProperties::getCreatableContentsInfo() const
}
}
-//=========================================================================
+
bool ContentProperties::isContentCreator() const
{
return ( getType() == FOLDER ) || ( getType() == DOCUMENT );
diff --git a/ucb/source/ucp/tdoc/tdoc_content.hxx b/ucb/source/ucp/tdoc/tdoc_content.hxx
index 640a9f4052cd..798abf522a35 100644
--- a/ucb/source/ucp/tdoc/tdoc_content.hxx
+++ b/ucb/source/ucp/tdoc/tdoc_content.hxx
@@ -39,7 +39,7 @@ namespace com { namespace sun { namespace star {
namespace tdoc_ucp
{
-//=========================================================================
+
#define TDOC_ROOT_CONTENT_SERVICE_NAME \
"com.sun.star.ucb.TransientDocumentsRootContent"
@@ -50,7 +50,7 @@ namespace tdoc_ucp
#define TDOC_STREAM_CONTENT_SERVICE_NAME \
"com.sun.star.ucb.TransientDocumentsStreamContent"
-//=========================================================================
+
enum ContentType { STREAM, FOLDER, DOCUMENT, ROOT };
@@ -96,7 +96,7 @@ private:
OUString m_aTitle;
};
-//=========================================================================
+
class Content : public ::ucbhelper::ContentImplHelper,
public com::sun::star::ucb::XContentCreator
@@ -296,9 +296,9 @@ public:
abort( sal_Int32 CommandId )
throw( com::sun::star::uno::RuntimeException );
- //////////////////////////////////////////////////////////////////////
+
// Additional interfaces
- //////////////////////////////////////////////////////////////////////
+
// XContentCreator
virtual com::sun::star::uno::Sequence<
@@ -310,9 +310,9 @@ public:
createNewContent( const com::sun::star::ucb::ContentInfo& Info )
throw( com::sun::star::uno::RuntimeException );
- //////////////////////////////////////////////////////////////////////
+
// Non-interface methods.
- //////////////////////////////////////////////////////////////////////
+
static ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRow >
getPropertyValues( const ::com::sun::star::uno::Reference<
diff --git a/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx b/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx
index c361a1cb11cd..f01458181026 100644
--- a/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx
+++ b/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx
@@ -71,11 +71,11 @@ namespace com { namespace sun { namespace star { namespace embed {
using namespace com::sun::star;
using namespace tdoc_ucp;
-//=========================================================================
-//
+
+
// Content implementation.
-//
-//=========================================================================
+
+
#define MAKEPROPSEQUENCE( a ) \
uno::Sequence< beans::Property >( a, (sizeof (a) / sizeof (a[0])) )
@@ -83,12 +83,12 @@ using namespace tdoc_ucp;
#define MAKECMDSEQUENCE( a ) \
uno::Sequence< ucb::CommandInfo >( a, (sizeof (a) / sizeof (a[0])) )
-//=========================================================================
-//
+
+
// IMPORTANT: If any property data ( name / type / ... ) are changed, then
// Content::getPropertyValues(...) must be adapted too!
-//
-//=========================================================================
+
+
// virtual
uno::Sequence< beans::Property > Content::getProperties(
@@ -98,17 +98,17 @@ uno::Sequence< beans::Property > Content::getProperties(
if ( m_aProps.getType() == STREAM )
{
- //=================================================================
- //
+
+
// Stream: Supported properties
- //
- //=================================================================
+
+
static const beans::Property aStreamPropertyInfoTable[] =
{
- ///////////////////////////////////////////////////////////
+
// Mandatory properties
- ///////////////////////////////////////////////////////////
+
beans::Property(
OUString( "ContentType" ),
-1,
@@ -136,9 +136,9 @@ uno::Sequence< beans::Property > Content::getProperties(
getCppuType( static_cast< const OUString * >( 0 ) ),
beans::PropertyAttribute::BOUND
),
- ///////////////////////////////////////////////////////////
+
// Optional standard properties
- ///////////////////////////////////////////////////////////
+
beans::Property(
OUString(
"CreatableContentsInfo" ),
@@ -148,25 +148,25 @@ uno::Sequence< beans::Property > Content::getProperties(
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
)
- ///////////////////////////////////////////////////////////
+
// New properties
- ///////////////////////////////////////////////////////////
+
};
return MAKEPROPSEQUENCE( aStreamPropertyInfoTable );
}
else if ( m_aProps.getType() == FOLDER )
{
- //=================================================================
- //
+
+
// Folder: Supported properties
- //
- //=================================================================
+
+
static const beans::Property aFolderPropertyInfoTable[] =
{
- ///////////////////////////////////////////////////////////
+
// Mandatory properties
- ///////////////////////////////////////////////////////////
+
beans::Property(
OUString( "ContentType" ),
-1,
@@ -194,9 +194,9 @@ uno::Sequence< beans::Property > Content::getProperties(
getCppuType( static_cast< const OUString * >( 0 ) ),
beans::PropertyAttribute::BOUND
),
- ///////////////////////////////////////////////////////////
+
// Optional standard properties
- ///////////////////////////////////////////////////////////
+
beans::Property(
OUString(
"CreatableContentsInfo" ),
@@ -206,9 +206,9 @@ uno::Sequence< beans::Property > Content::getProperties(
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
- ///////////////////////////////////////////////////////////
+
// New properties
- ///////////////////////////////////////////////////////////
+
beans::Property(
OUString( "Storage" ),
-1,
@@ -222,17 +222,17 @@ uno::Sequence< beans::Property > Content::getProperties(
}
else if ( m_aProps.getType() == DOCUMENT )
{
- //=================================================================
- //
+
+
// Document: Supported properties
- //
- //=================================================================
+
+
static const beans::Property aDocPropertyInfoTable[] =
{
- ///////////////////////////////////////////////////////////
+
// Mandatory properties
- ///////////////////////////////////////////////////////////
+
beans::Property(
OUString( "ContentType" ),
-1,
@@ -261,9 +261,9 @@ uno::Sequence< beans::Property > Content::getProperties(
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
- ///////////////////////////////////////////////////////////
+
// Optional standard properties
- ///////////////////////////////////////////////////////////
+
beans::Property(
OUString(
"CreatableContentsInfo" ),
@@ -273,9 +273,9 @@ uno::Sequence< beans::Property > Content::getProperties(
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
- ///////////////////////////////////////////////////////////
+
// New properties
- ///////////////////////////////////////////////////////////
+
beans::Property(
OUString( "DocumentModel" ),
-1,
@@ -289,19 +289,19 @@ uno::Sequence< beans::Property > Content::getProperties(
}
else
{
- //=================================================================
- //
+
+
// Root: Supported properties
- //
- //=================================================================
+
+
OSL_ENSURE( m_aProps.getType() == ROOT, "Wrong content type!" );
static const beans::Property aRootPropertyInfoTable[] =
{
- ///////////////////////////////////////////////////////////////
+
// Mandatory properties
- ///////////////////////////////////////////////////////////////
+
beans::Property(
OUString( "ContentType" ),
-1,
@@ -330,9 +330,9 @@ uno::Sequence< beans::Property > Content::getProperties(
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
- ///////////////////////////////////////////////////////////////
+
// Optional standard properties
- ///////////////////////////////////////////////////////////////
+
beans::Property(
OUString(
"CreatableContentsInfo" ),
@@ -342,15 +342,15 @@ uno::Sequence< beans::Property > Content::getProperties(
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
)
- ///////////////////////////////////////////////////////////////
+
// New properties
- ///////////////////////////////////////////////////////////////
+
};
return MAKEPROPSEQUENCE( aRootPropertyInfoTable );
}
}
-//=========================================================================
+
// virtual
uno::Sequence< ucb::CommandInfo > Content::getCommands(
const uno::Reference< ucb::XCommandEnvironment > & /*xEnv*/ )
@@ -365,17 +365,17 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
if ( aParentUri.isDocument() )
{
- //=================================================================
- //
+
+
// Stream, that is a child of a document: Supported commands
- //
- //=================================================================
+
+
static const ucb::CommandInfo aStreamCommandInfoTable1[] =
{
- ///////////////////////////////////////////////////////////
+
// Mandatory commands
- ///////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "getCommandInfo" ),
-1,
@@ -399,9 +399,9 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
static_cast<
uno::Sequence< beans::PropertyValue > * >( 0 ) )
),
- ///////////////////////////////////////////////////////////
+
// Optional standard commands
- ///////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "delete" ),
-1,
@@ -413,24 +413,24 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
getCppuType(
static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
)
- ///////////////////////////////////////////////////////////
+
// New commands
- ///////////////////////////////////////////////////////////
+
};
return MAKECMDSEQUENCE( aStreamCommandInfoTable1 );
}
#endif
- //=================================================================
- //
+
+
// Stream: Supported commands
- //
- //=================================================================
+
+
static const ucb::CommandInfo aStreamCommandInfoTable[] =
{
- ///////////////////////////////////////////////////////////
+
// Mandatory commands
- ///////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "getCommandInfo" ),
-1,
@@ -454,9 +454,9 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
static_cast<
uno::Sequence< beans::PropertyValue > * >( 0 ) )
),
- ///////////////////////////////////////////////////////////
+
// Optional standard commands
- ///////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "delete" ),
-1,
@@ -473,25 +473,25 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
getCppuType(
static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
)
- ///////////////////////////////////////////////////////////
+
// New commands
- ///////////////////////////////////////////////////////////
+
};
return MAKECMDSEQUENCE( aStreamCommandInfoTable );
}
else if ( m_aProps.getType() == FOLDER )
{
- //=================================================================
- //
+
+
// Folder: Supported commands
- //
- //=================================================================
+
+
static const ucb::CommandInfo aFolderCommandInfoTable[] =
{
- ///////////////////////////////////////////////////////////
+
// Mandatory commands
- ///////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "getCommandInfo" ),
-1,
@@ -515,9 +515,9 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
static_cast<
uno::Sequence< beans::PropertyValue > * >( 0 ) )
),
- ///////////////////////////////////////////////////////////
+
// Optional standard commands
- ///////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "delete" ),
-1,
@@ -544,25 +544,25 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
-1,
getCppuType( static_cast< ucb::ContentInfo * >( 0 ) )
)
- ///////////////////////////////////////////////////////////
+
// New commands
- ///////////////////////////////////////////////////////////
+
};
return MAKECMDSEQUENCE( aFolderCommandInfoTable );
}
else if ( m_aProps.getType() == DOCUMENT )
{
- //=================================================================
- //
+
+
// Document: Supported commands
- //
- //=================================================================
+
+
static const ucb::CommandInfo aDocCommandInfoTable[] =
{
- ///////////////////////////////////////////////////////////
+
// Mandatory commands
- ///////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "getCommandInfo" ),
-1,
@@ -586,9 +586,9 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
static_cast<
uno::Sequence< beans::PropertyValue > * >( 0 ) )
),
- ///////////////////////////////////////////////////////////
+
// Optional standard commands
- ///////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "open" ),
-1,
@@ -605,27 +605,27 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
-1,
getCppuType( static_cast< ucb::ContentInfo * >( 0 ) )
)
- ///////////////////////////////////////////////////////////
+
// New commands
- ///////////////////////////////////////////////////////////
+
};
return MAKECMDSEQUENCE( aDocCommandInfoTable );
}
else
{
- //=================================================================
- //
+
+
// Root: Supported commands
- //
- //=================================================================
+
+
OSL_ENSURE( m_aProps.getType() == ROOT, "Wrong content type!" );
static const ucb::CommandInfo aRootCommandInfoTable[] =
{
- ///////////////////////////////////////////////////////////
+
// Mandatory commands
- ///////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "getCommandInfo" ),
-1,
@@ -649,18 +649,18 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
static_cast<
uno::Sequence< beans::PropertyValue > * >( 0 ) )
),
- ///////////////////////////////////////////////////////////
+
// Optional standard commands
- ///////////////////////////////////////////////////////////
+
ucb::CommandInfo(
OUString( "open" ),
-1,
getCppuType(
static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
)
- ///////////////////////////////////////////////////////////
+
// New commands
- ///////////////////////////////////////////////////////////
+
};
return MAKECMDSEQUENCE( aRootCommandInfoTable );
}
diff --git a/ucb/source/ucp/tdoc/tdoc_datasupplier.cxx b/ucb/source/ucp/tdoc/tdoc_datasupplier.cxx
index f14cd677222c..2869de6c6e51 100644
--- a/ucb/source/ucp/tdoc/tdoc_datasupplier.cxx
+++ b/ucb/source/ucp/tdoc/tdoc_datasupplier.cxx
@@ -38,11 +38,11 @@ using namespace tdoc_ucp;
namespace tdoc_ucp
{
-//=========================================================================
-//
+
+
// struct ResultListEntry.
-//
-//=========================================================================
+
+
struct ResultListEntry
{
@@ -54,19 +54,19 @@ struct ResultListEntry
ResultListEntry( const OUString& rURL ) : aURL( rURL ) {}
};
-//=========================================================================
-//
+
+
// ResultList.
-//
-//=========================================================================
+
+
typedef std::vector< ResultListEntry* > ResultList;
-//=========================================================================
-//
+
+
// struct DataSupplier_Impl.
-//
-//=========================================================================
+
+
struct DataSupplier_Impl
{
@@ -90,7 +90,7 @@ struct DataSupplier_Impl
~DataSupplier_Impl();
};
-//=========================================================================
+
DataSupplier_Impl::~DataSupplier_Impl()
{
ResultList::const_iterator it = m_aResults.begin();
diff --git a/ucb/source/ucp/tdoc/tdoc_docmgr.cxx b/ucb/source/ucp/tdoc/tdoc_docmgr.cxx
index bda606ae3d4a..5bf5c326ba5f 100644
--- a/ucb/source/ucp/tdoc/tdoc_docmgr.cxx
+++ b/ucb/source/ucp/tdoc/tdoc_docmgr.cxx
@@ -47,19 +47,19 @@ using namespace com::sun::star;
using namespace tdoc_ucp;
using ::comphelper::DocumentInfo;
-//=========================================================================
-//=========================================================================
-//
+
+
+
// OfficeDocumentsCloseListener Implementation.
-//
-//=========================================================================
-//=========================================================================
-//=========================================================================
-//
+
+
+
+
+
// util::XCloseListener
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL OfficeDocumentsManager::OfficeDocumentsCloseListener::queryClosing(
@@ -69,7 +69,7 @@ void SAL_CALL OfficeDocumentsManager::OfficeDocumentsCloseListener::queryClosing
{
}
-//=========================================================================
+
void SAL_CALL OfficeDocumentsManager::OfficeDocumentsCloseListener::notifyClosing(
const lang::EventObject& Source )
throw ( uno::RuntimeException )
@@ -80,11 +80,11 @@ void SAL_CALL OfficeDocumentsManager::OfficeDocumentsCloseListener::notifyClosin
m_pManager->notifyEvent( aDocEvent );
}
-//=========================================================================
-//
+
+
// lang::XEventListener (base of util::XCloseListener)
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL OfficeDocumentsManager::OfficeDocumentsCloseListener::disposing(
@@ -93,13 +93,13 @@ void SAL_CALL OfficeDocumentsManager::OfficeDocumentsCloseListener::disposing(
{
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// OfficeDocumentsManager Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
OfficeDocumentsManager::OfficeDocumentsManager(
const uno::Reference< uno::XComponentContext > & rxContext,
@@ -115,7 +115,7 @@ OfficeDocumentsManager::OfficeDocumentsManager(
buildDocumentsList();
}
-//=========================================================================
+
// virtual
OfficeDocumentsManager::~OfficeDocumentsManager()
{
@@ -126,14 +126,14 @@ OfficeDocumentsManager::~OfficeDocumentsManager()
// upon shutdown.
}
-//=========================================================================
+
void OfficeDocumentsManager::destroy()
{
uno::Reference< document::XEventBroadcaster >(
m_xDocEvtNotifier, uno::UNO_QUERY_THROW )->removeEventListener( this );
}
-//=========================================================================
+
static OUString
getDocumentId( const uno::Reference< uno::XInterface > & xDoc )
{
@@ -174,11 +174,11 @@ getDocumentId( const uno::Reference< uno::XInterface > & xDoc )
return aId;
}
-//=========================================================================
-//
+
+
// document::XEventListener
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL OfficeDocumentsManager::notifyEvent(
@@ -425,11 +425,11 @@ void SAL_CALL OfficeDocumentsManager::notifyEvent(
}
}
-//=========================================================================
-//
+
+
// lang::XEventListener (base of document::XEventListener)
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL OfficeDocumentsManager::disposing(
@@ -438,11 +438,11 @@ void SAL_CALL OfficeDocumentsManager::disposing(
{
}
-//=========================================================================
-//
+
+
// Non-interface.
-//
-//=========================================================================
+
+
void OfficeDocumentsManager::buildDocumentsList()
{
@@ -514,7 +514,7 @@ void OfficeDocumentsManager::buildDocumentsList()
}
}
-//=========================================================================
+
uno::Reference< embed::XStorage >
OfficeDocumentsManager::queryStorage( const OUString & rDocId )
{
@@ -527,14 +527,14 @@ OfficeDocumentsManager::queryStorage( const OUString & rDocId )
return (*it).second.xStorage;
}
-//=========================================================================
+
OUString OfficeDocumentsManager::queryDocumentId(
const uno::Reference< frame::XModel > & xModel )
{
return getDocumentId( xModel );
}
-//=========================================================================
+
uno::Reference< frame::XModel >
OfficeDocumentsManager::queryDocumentModel( const OUString & rDocId )
{
@@ -547,7 +547,7 @@ OfficeDocumentsManager::queryDocumentModel( const OUString & rDocId )
return (*it).second.xModel;
}
-//=========================================================================
+
uno::Sequence< OUString > OfficeDocumentsManager::queryDocuments()
{
osl::MutexGuard aGuard( m_aMtx );
@@ -565,7 +565,7 @@ uno::Sequence< OUString > OfficeDocumentsManager::queryDocuments()
return aRet;
}
-//=========================================================================
+
OUString
OfficeDocumentsManager::queryStorageTitle( const OUString & rDocId )
{
@@ -578,7 +578,7 @@ OfficeDocumentsManager::queryStorageTitle( const OUString & rDocId )
return (*it).second.aTitle;
}
-//=========================================================================
+
bool OfficeDocumentsManager::isDocumentPreview(
const uno::Reference< frame::XModel > & xModel )
{
@@ -591,7 +591,7 @@ bool OfficeDocumentsManager::isDocumentPreview(
return bIsPreview;
}
-//=========================================================================
+
bool OfficeDocumentsManager::isHelpDocument(
const uno::Reference< frame::XModel > & xModel )
{
@@ -605,7 +605,7 @@ bool OfficeDocumentsManager::isHelpDocument(
return false;
}
-//=========================================================================
+
bool OfficeDocumentsManager::isWithoutOrInTopLevelFrame(
const uno::Reference< frame::XModel > & xModel )
{
@@ -632,7 +632,7 @@ bool OfficeDocumentsManager::isWithoutOrInTopLevelFrame(
return true;
}
-//=========================================================================
+
bool OfficeDocumentsManager::isBasicIDE(
const uno::Reference< frame::XModel > & xModel )
{
@@ -684,7 +684,7 @@ bool OfficeDocumentsManager::isBasicIDE(
return false;
}
-//=========================================================================
+
bool OfficeDocumentsManager::isOfficeDocument(
const uno::Reference< uno::XInterface > & xDoc )
{
diff --git a/ucb/source/ucp/tdoc/tdoc_docmgr.hxx b/ucb/source/ucp/tdoc/tdoc_docmgr.hxx
index 102f0984da68..8edd62a671d5 100644
--- a/ucb/source/ucp/tdoc/tdoc_docmgr.hxx
+++ b/ucb/source/ucp/tdoc/tdoc_docmgr.hxx
@@ -45,7 +45,7 @@ namespace tdoc_ucp {
~OfficeDocumentsEventListener() {}
};
- //=======================================================================
+
struct StorageInfo
{
@@ -66,7 +66,7 @@ namespace tdoc_ucp {
: aTitle( rTitle ), xStorage( rxStorage ), xModel( rxModel ) {}
};
- //=======================================================================
+
struct ltref
{
@@ -79,7 +79,7 @@ namespace tdoc_ucp {
typedef std::map< OUString, StorageInfo, ltref > DocumentList;
- //=======================================================================
+
class OfficeDocumentsManager :
public cppu::WeakImplHelper1< com::sun::star::document::XEventListener >
diff --git a/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx b/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx
index 8611380b006f..fe67948d25d3 100644
--- a/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx
+++ b/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx
@@ -32,13 +32,13 @@
using namespace com::sun::star;
using namespace tdoc_ucp;
-//=========================================================================
-//=========================================================================
-//
+
+
+
// DocumentContentFactory Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
DocumentContentFactory::DocumentContentFactory(
const uno::Reference< lang::XMultiServiceFactory >& xSMgr )
@@ -46,17 +46,17 @@ DocumentContentFactory::DocumentContentFactory(
{
}
-//=========================================================================
+
// virtual
DocumentContentFactory::~DocumentContentFactory()
{
}
-//=========================================================================
-//
+
+
// XServiceInfo methods.
-//
-//=========================================================================
+
+
// virtual
OUString SAL_CALL DocumentContentFactory::getImplementationName()
@@ -81,7 +81,7 @@ DocumentContentFactory::getSupportedServiceNames()
return getSupportedServiceNames_Static();
}
-//=========================================================================
+
// static
OUString DocumentContentFactory::getImplementationName_Static()
{
@@ -89,7 +89,7 @@ OUString DocumentContentFactory::getImplementationName_Static()
"com.sun.star.comp.ucb.TransientDocumentsDocumentContentFactory" );
}
-//=========================================================================
+
// static
uno::Sequence< OUString >
DocumentContentFactory::getSupportedServiceNames_Static()
@@ -101,11 +101,11 @@ DocumentContentFactory::getSupportedServiceNames_Static()
return aSNS;
}
-//=========================================================================
-//
+
+
// XTransientDocumentsDocumentContentFactory methods.
-//
-//=========================================================================
+
+
// virtual
uno::Reference< ucb::XContent > SAL_CALL
@@ -138,11 +138,11 @@ DocumentContentFactory::createDocumentContent(
static_cast< cppu::OWeakObject * >( this ) );
}
-//=========================================================================
-//
+
+
// Service factory implementation.
-//
-//=========================================================================
+
+
static uno::Reference< uno::XInterface > SAL_CALL
DocumentContentFactory_CreateInstance(
@@ -154,7 +154,7 @@ DocumentContentFactory_CreateInstance(
return uno::Reference< uno::XInterface >::query( pX );
}
-//=========================================================================
+
// static
uno::Reference< lang::XSingleServiceFactory >
DocumentContentFactory::createServiceFactory(
diff --git a/ucb/source/ucp/tdoc/tdoc_passwordrequest.cxx b/ucb/source/ucp/tdoc/tdoc_passwordrequest.cxx
index 62c68f0a9a85..5a3593719343 100644
--- a/ucb/source/ucp/tdoc/tdoc_passwordrequest.cxx
+++ b/ucb/source/ucp/tdoc/tdoc_passwordrequest.cxx
@@ -72,19 +72,19 @@ namespace tdoc_ucp
};
} // namespace tdoc_ucp
-//=========================================================================
-//=========================================================================
-//
+
+
+
// InteractionSupplyPassword Implementation.
-//
-//=========================================================================
-//=========================================================================
-//=========================================================================
-//
+
+
+
+
+
// XInterface methods.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL InteractionSupplyPassword::acquire()
@@ -93,7 +93,7 @@ void SAL_CALL InteractionSupplyPassword::acquire()
OWeakObject::acquire();
}
-//=========================================================================
+
// virtual
void SAL_CALL InteractionSupplyPassword::release()
throw()
@@ -101,7 +101,7 @@ void SAL_CALL InteractionSupplyPassword::release()
OWeakObject::release();
}
-//=========================================================================
+
// virtual
uno::Any SAL_CALL
InteractionSupplyPassword::queryInterface( const uno::Type & rType )
@@ -116,11 +116,11 @@ InteractionSupplyPassword::queryInterface( const uno::Type & rType )
? aRet : InteractionContinuation::queryInterface( rType );
}
-//=========================================================================
-//
+
+
// XTypeProvider methods.
-//
-//=========================================================================
+
+
// virtual
uno::Sequence< sal_Int8 > SAL_CALL
@@ -140,7 +140,7 @@ InteractionSupplyPassword::getImplementationId()
return (*pId).getImplementationId();
}
-//=========================================================================
+
// virtual
uno::Sequence< uno::Type > SAL_CALL InteractionSupplyPassword::getTypes()
throw( uno::RuntimeException )
@@ -162,11 +162,11 @@ uno::Sequence< uno::Type > SAL_CALL InteractionSupplyPassword::getTypes()
return (*pCollection).getTypes();
}
-//=========================================================================
-//
+
+
// XInteractionContinuation methods.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL InteractionSupplyPassword::select()
@@ -175,11 +175,11 @@ void SAL_CALL InteractionSupplyPassword::select()
recordSelection();
}
-//=========================================================================
-//
+
+
// XInteractionPassword methods.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL
@@ -198,13 +198,13 @@ OUString SAL_CALL InteractionSupplyPassword::getPassword()
return m_aPassword;
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// DocumentPasswordRequest Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
DocumentPasswordRequest::DocumentPasswordRequest(
task::PasswordRequestMode eMode,
diff --git a/ucb/source/ucp/tdoc/tdoc_provider.cxx b/ucb/source/ucp/tdoc/tdoc_provider.cxx
index 336d9beef6a7..87e360bdc122 100644
--- a/ucb/source/ucp/tdoc/tdoc_provider.cxx
+++ b/ucb/source/ucp/tdoc/tdoc_provider.cxx
@@ -41,13 +41,13 @@
using namespace com::sun::star;
using namespace tdoc_ucp;
-//=========================================================================
-//=========================================================================
-//
+
+
+
// ContentProvider Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
ContentProvider::ContentProvider(
const uno::Reference< uno::XComponentContext >& rxContext )
@@ -57,7 +57,7 @@ ContentProvider::ContentProvider(
{
}
-//=========================================================================
+
// virtual
ContentProvider::~ContentProvider()
{
@@ -65,11 +65,11 @@ ContentProvider::~ContentProvider()
m_xDocsMgr->destroy();
}
-//=========================================================================
-//
+
+
// XInterface methods.
-//
-//=========================================================================
+
+
XINTERFACE_IMPL_4( ContentProvider,
lang::XTypeProvider,
@@ -77,11 +77,11 @@ XINTERFACE_IMPL_4( ContentProvider,
ucb::XContentProvider,
frame::XTransientDocumentsDocumentContentFactory );
-//=========================================================================
-//
+
+
// XTypeProvider methods.
-//
-//=========================================================================
+
+
XTYPEPROVIDER_IMPL_4( ContentProvider,
lang::XTypeProvider,
@@ -89,30 +89,30 @@ XTYPEPROVIDER_IMPL_4( ContentProvider,
ucb::XContentProvider,
frame::XTransientDocumentsDocumentContentFactory );
-//=========================================================================
-//
+
+
// XServiceInfo methods.
-//
-//=========================================================================
+
+
XSERVICEINFO_IMPL_1_CTX(
ContentProvider,
OUString( "com.sun.star.comp.ucb.TransientDocumentsContentProvider" ),
OUString( TDOC_CONTENT_PROVIDER_SERVICE_NAME ) );
-//=========================================================================
-//
+
+
// Service factory implementation.
-//
-//=========================================================================
+
+
ONE_INSTANCE_SERVICE_FACTORY_IMPL( ContentProvider );
-//=========================================================================
-//
+
+
// XContentProvider methods.
-//
-//=========================================================================
+
+
// virtual
uno::Reference< ucb::XContent > SAL_CALL
@@ -146,11 +146,11 @@ ContentProvider::queryContent(
return xContent;
}
-//=========================================================================
-//
+
+
// XTransientDocumentsDocumentContentFactory methods.
-//
-//=========================================================================
+
+
// virtual
uno::Reference< ucb::XContent > SAL_CALL
@@ -212,11 +212,11 @@ ContentProvider::createDocumentContent(
}
}
-//=========================================================================
-//
+
+
// interface OfficeDocumentsEventListener
-//
-//=========================================================================
+
+
// virtual
void ContentProvider::notifyDocumentClosed( const OUString & rDocId )
@@ -280,7 +280,7 @@ void ContentProvider::notifyDocumentClosed( const OUString & rDocId )
}
}
-//=========================================================================
+
// virtual
void ContentProvider::notifyDocumentOpened( const OUString & rDocId )
{
@@ -314,11 +314,11 @@ void ContentProvider::notifyDocumentOpened( const OUString & rDocId )
}
}
-//=========================================================================
-//
+
+
// Non-UNO
-//
-//=========================================================================
+
+
uno::Reference< embed::XStorage >
ContentProvider::queryStorage( const OUString & rUri,
@@ -351,7 +351,7 @@ ContentProvider::queryStorage( const OUString & rUri,
return uno::Reference< embed::XStorage >();
}
-//=========================================================================
+
uno::Reference< embed::XStorage >
ContentProvider::queryStorageClone( const OUString & rUri ) const
{
@@ -391,7 +391,7 @@ ContentProvider::queryStorageClone( const OUString & rUri ) const
return uno::Reference< embed::XStorage >();
}
-//=========================================================================
+
uno::Reference< io::XInputStream >
ContentProvider::queryInputStream( const OUString & rUri,
const OUString & rPassword ) const
@@ -428,7 +428,7 @@ ContentProvider::queryInputStream( const OUString & rUri,
return uno::Reference< io::XInputStream >();
}
-//=========================================================================
+
uno::Reference< io::XOutputStream >
ContentProvider::queryOutputStream( const OUString & rUri,
const OUString & rPassword,
@@ -468,7 +468,7 @@ ContentProvider::queryOutputStream( const OUString & rUri,
return uno::Reference< io::XOutputStream >();
}
-//=========================================================================
+
uno::Reference< io::XStream >
ContentProvider::queryStream( const OUString & rUri,
const OUString & rPassword,
@@ -507,7 +507,7 @@ ContentProvider::queryStream( const OUString & rUri,
return uno::Reference< io::XStream >();
}
-//=========================================================================
+
bool ContentProvider::queryNamesOfChildren(
const OUString & rUri, uno::Sequence< OUString > & rNames ) const
{
@@ -567,7 +567,7 @@ bool ContentProvider::queryNamesOfChildren(
return false;
}
-//=========================================================================
+
OUString
ContentProvider::queryStorageTitle( const OUString & rUri ) const
{
@@ -597,7 +597,7 @@ ContentProvider::queryStorageTitle( const OUString & rUri ) const
return aTitle;
}
-//=========================================================================
+
uno::Reference< frame::XModel >
ContentProvider::queryDocumentModel( const OUString & rUri ) const
{
diff --git a/ucb/source/ucp/tdoc/tdoc_provider.hxx b/ucb/source/ucp/tdoc/tdoc_provider.hxx
index e2ef902d64b0..d9a54d421b8e 100644
--- a/ucb/source/ucp/tdoc/tdoc_provider.hxx
+++ b/ucb/source/ucp/tdoc/tdoc_provider.hxx
@@ -38,7 +38,7 @@ namespace com { namespace sun { namespace star { namespace frame {
namespace tdoc_ucp {
-//=========================================================================
+
#define TDOC_CONTENT_PROVIDER_SERVICE_NAME \
"com.sun.star.ucb.TransientDocumentsContentProvider"
@@ -53,7 +53,7 @@ namespace tdoc_ucp {
#define TDOC_STREAM_CONTENT_TYPE \
"application/" TDOC_URL_SCHEME "-stream"
-//=========================================================================
+
class StorageElementFactory;
diff --git a/ucb/source/ucp/tdoc/tdoc_resultset.cxx b/ucb/source/ucp/tdoc/tdoc_resultset.cxx
index d942e7c65cc6..58dc84886c79 100644
--- a/ucb/source/ucp/tdoc/tdoc_resultset.cxx
+++ b/ucb/source/ucp/tdoc/tdoc_resultset.cxx
@@ -37,13 +37,13 @@
using namespace com::sun::star;
using namespace tdoc_ucp;
-//=========================================================================
-//=========================================================================
-//
+
+
+
// DynamicResultSet Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
DynamicResultSet::DynamicResultSet(
const uno::Reference< uno::XComponentContext >& rxContext,
@@ -54,11 +54,11 @@ DynamicResultSet::DynamicResultSet(
{
}
-//=========================================================================
-//
+
+
// Non-interface methods.
-//
-//=========================================================================
+
+
void DynamicResultSet::initStatic()
{
@@ -71,7 +71,7 @@ void DynamicResultSet::initStatic()
m_aCommand.Mode ) );
}
-//=========================================================================
+
void DynamicResultSet::initDynamic()
{
m_xResultSet1
diff --git a/ucb/source/ucp/tdoc/tdoc_services.cxx b/ucb/source/ucp/tdoc/tdoc_services.cxx
index eade3f75e44a..f0a843550df2 100644
--- a/ucb/source/ucp/tdoc/tdoc_services.cxx
+++ b/ucb/source/ucp/tdoc/tdoc_services.cxx
@@ -28,7 +28,7 @@
using namespace com::sun::star;
using namespace tdoc_ucp;
-//=========================================================================
+
extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucptdoc1_component_getFactory(
const sal_Char * pImplName, void * pServiceManager, void * /*pRegistryKey*/ )
{
@@ -39,9 +39,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucptdoc1_component_getFactory(
pServiceManager ) );
uno::Reference< lang::XSingleServiceFactory > xFactory;
- //////////////////////////////////////////////////////////////////////
+
// Transient Documents Content Provider.
- //////////////////////////////////////////////////////////////////////
+
if ( ContentProvider::getImplementationName_Static().
equalsAscii( pImplName ) )
@@ -49,9 +49,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucptdoc1_component_getFactory(
xFactory = ContentProvider::createServiceFactory( xSMgr );
}
- //////////////////////////////////////////////////////////////////////
+
// Transient Documents Document Content Factory.
- //////////////////////////////////////////////////////////////////////
+
else if ( DocumentContentFactory::getImplementationName_Static().
equalsAscii( pImplName ) )
@@ -59,7 +59,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucptdoc1_component_getFactory(
xFactory = DocumentContentFactory::createServiceFactory( xSMgr );
}
- //////////////////////////////////////////////////////////////////////
+
if ( xFactory.is() )
{
diff --git a/ucb/source/ucp/tdoc/tdoc_stgelems.cxx b/ucb/source/ucp/tdoc/tdoc_stgelems.cxx
index cda68cffcb1c..89183e36f878 100644
--- a/ucb/source/ucp/tdoc/tdoc_stgelems.cxx
+++ b/ucb/source/ucp/tdoc/tdoc_stgelems.cxx
@@ -36,13 +36,13 @@
using namespace com::sun::star;
using namespace tdoc_ucp;
-//=========================================================================
-//=========================================================================
-//
+
+
+
// ParentStorageHolder Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
ParentStorageHolder::ParentStorageHolder(
const uno::Reference< embed::XStorage > & xParentStorage,
@@ -55,13 +55,13 @@ ParentStorageHolder::ParentStorageHolder(
m_bParentIsRootStorage = true;
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// Storage Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
Storage::Storage( const uno::Reference< uno::XComponentContext > & rxContext,
const rtl::Reference< StorageElementFactory > & xFactory,
@@ -117,7 +117,7 @@ Storage::Storage( const uno::Reference< uno::XComponentContext > & rxContext,
}
}
-//=========================================================================
+
// virtual
Storage::~Storage()
{
@@ -146,11 +146,11 @@ Storage::~Storage()
}
}
-//=========================================================================
-//
+
+
// uno::XInterface
-//
-//=========================================================================
+
+
// virtual
uno::Any SAL_CALL Storage::queryInterface( const uno::Type& aType )
@@ -166,7 +166,7 @@ uno::Any SAL_CALL Storage::queryInterface( const uno::Type& aType )
return m_xAggProxy->queryAggregation( aType );
}
-//=========================================================================
+
// virtual
void SAL_CALL Storage::acquire()
throw ()
@@ -174,7 +174,7 @@ void SAL_CALL Storage::acquire()
osl_atomic_increment( &m_refCount );
}
-//=========================================================================
+
// virtual
void SAL_CALL Storage::release()
throw ()
@@ -189,11 +189,11 @@ void SAL_CALL Storage::release()
OWeakObject::release();
}
-//=========================================================================
-//
+
+
// lang::XTypeProvider
-//
-//=========================================================================
+
+
// virtual
uno::Sequence< uno::Type > SAL_CALL Storage::getTypes()
@@ -202,7 +202,7 @@ uno::Sequence< uno::Type > SAL_CALL Storage::getTypes()
return m_xWrappedTypeProv->getTypes();
}
-//=========================================================================
+
// virtual
uno::Sequence< sal_Int8 > SAL_CALL Storage::getImplementationId()
throw ( uno::RuntimeException )
@@ -210,11 +210,11 @@ uno::Sequence< sal_Int8 > SAL_CALL Storage::getImplementationId()
return m_xWrappedTypeProv->getImplementationId();
}
-//=========================================================================
-//
+
+
// lang::XComponent (base of embed::XStorage)
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL Storage::dispose()
throw ( uno::RuntimeException )
@@ -222,7 +222,7 @@ void SAL_CALL Storage::dispose()
m_xWrappedStorage->dispose();
}
-//=========================================================================
+
// virtual
void SAL_CALL Storage::addEventListener(
const uno::Reference< lang::XEventListener >& xListener )
@@ -230,7 +230,7 @@ void SAL_CALL Storage::addEventListener(
{
m_xWrappedStorage->addEventListener( xListener );
}
-//=========================================================================
+
// virtual
void SAL_CALL Storage::removeEventListener(
const uno::Reference< lang::XEventListener >& aListener )
@@ -239,11 +239,11 @@ void SAL_CALL Storage::removeEventListener(
m_xWrappedStorage->removeEventListener( aListener );
}
-//=========================================================================
-//
+
+
// container::XElementAccess (base of container::XNameAccess)
-//
-//=========================================================================
+
+
// virtual
uno::Type SAL_CALL Storage::getElementType()
@@ -252,7 +252,7 @@ uno::Type SAL_CALL Storage::getElementType()
return m_xWrappedStorage->getElementType();
}
-//=========================================================================
+
// virtual
::sal_Bool SAL_CALL Storage::hasElements()
throw ( uno::RuntimeException )
@@ -260,11 +260,11 @@ uno::Type SAL_CALL Storage::getElementType()
return m_xWrappedStorage->hasElements();
}
-//=========================================================================
-//
+
+
// container::XNameAccess (base of embed::XStorage)
-//
-//=========================================================================
+
+
// virtual
uno::Any SAL_CALL Storage::getByName( const OUString& aName )
@@ -275,7 +275,7 @@ uno::Any SAL_CALL Storage::getByName( const OUString& aName )
return m_xWrappedStorage->getByName( aName );
}
-//=========================================================================
+
// virtual
uno::Sequence< OUString > SAL_CALL Storage::getElementNames()
throw ( uno::RuntimeException )
@@ -283,7 +283,7 @@ uno::Sequence< OUString > SAL_CALL Storage::getElementNames()
return m_xWrappedStorage->getElementNames();
}
-//=========================================================================
+
// virtual
::sal_Bool SAL_CALL Storage::hasByName( const OUString& aName )
throw ( uno::RuntimeException )
@@ -291,11 +291,11 @@ uno::Sequence< OUString > SAL_CALL Storage::getElementNames()
return m_xWrappedStorage->hasByName( aName );
}
-//=========================================================================
-//
+
+
// embed::XStorage
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL Storage::copyToStorage(
@@ -309,7 +309,7 @@ void SAL_CALL Storage::copyToStorage(
m_xWrappedStorage->copyToStorage( xDest );
}
-//=========================================================================
+
// virtual
uno::Reference< io::XStream > SAL_CALL Storage::openStreamElement(
const OUString& aStreamName, sal_Int32 nOpenMode )
@@ -323,7 +323,7 @@ uno::Reference< io::XStream > SAL_CALL Storage::openStreamElement(
return m_xWrappedStorage->openStreamElement( aStreamName, nOpenMode );
}
-//=========================================================================
+
// virtual
uno::Reference< io::XStream > SAL_CALL Storage::openEncryptedStreamElement(
const OUString& aStreamName,
@@ -341,7 +341,7 @@ uno::Reference< io::XStream > SAL_CALL Storage::openEncryptedStreamElement(
aStreamName, nOpenMode, aPassword );
}
-//=========================================================================
+
// virtual
uno::Reference< embed::XStorage > SAL_CALL Storage::openStorageElement(
const OUString& aStorName, sal_Int32 nOpenMode )
@@ -354,7 +354,7 @@ uno::Reference< embed::XStorage > SAL_CALL Storage::openStorageElement(
return m_xWrappedStorage->openStorageElement( aStorName, nOpenMode );
}
-//=========================================================================
+
// virtual
uno::Reference< io::XStream > SAL_CALL Storage::cloneStreamElement(
const OUString& aStreamName )
@@ -368,7 +368,7 @@ uno::Reference< io::XStream > SAL_CALL Storage::cloneStreamElement(
return m_xWrappedStorage->cloneStreamElement( aStreamName );
}
-//=========================================================================
+
// virtual
uno::Reference< io::XStream > SAL_CALL Storage::cloneEncryptedStreamElement(
const OUString& aStreamName,
@@ -385,7 +385,7 @@ uno::Reference< io::XStream > SAL_CALL Storage::cloneEncryptedStreamElement(
aPassword );
}
-//=========================================================================
+
// virtual
void SAL_CALL Storage::copyLastCommitTo(
const uno::Reference< embed::XStorage >& xTargetStorage )
@@ -398,7 +398,7 @@ void SAL_CALL Storage::copyLastCommitTo(
m_xWrappedStorage->copyLastCommitTo( xTargetStorage );
}
-//=========================================================================
+
// virtual
void SAL_CALL Storage::copyStorageElementLastCommitTo(
const OUString& aStorName,
@@ -412,7 +412,7 @@ void SAL_CALL Storage::copyStorageElementLastCommitTo(
m_xWrappedStorage->copyStorageElementLastCommitTo( aStorName, xTargetStorage );
}
-//=========================================================================
+
// virtual
sal_Bool SAL_CALL Storage::isStreamElement(
const OUString& aElementName )
@@ -424,7 +424,7 @@ sal_Bool SAL_CALL Storage::isStreamElement(
return m_xWrappedStorage->isStreamElement( aElementName );
}
-//=========================================================================
+
// virtual
sal_Bool SAL_CALL Storage::isStorageElement(
const OUString& aElementName )
@@ -436,7 +436,7 @@ sal_Bool SAL_CALL Storage::isStorageElement(
return m_xWrappedStorage->isStorageElement( aElementName );
}
-//=========================================================================
+
// virtual
void SAL_CALL Storage::removeElement( const OUString& aElementName )
throw ( embed::InvalidStorageException,
@@ -449,7 +449,7 @@ void SAL_CALL Storage::removeElement( const OUString& aElementName )
m_xWrappedStorage->removeElement( aElementName );
}
-//=========================================================================
+
// virtual
void SAL_CALL Storage::renameElement( const OUString& aEleName,
const OUString& aNewName )
@@ -464,7 +464,7 @@ void SAL_CALL Storage::renameElement( const OUString& aEleName,
m_xWrappedStorage->renameElement( aEleName, aNewName );
}
-//=========================================================================
+
// virtual
void SAL_CALL Storage::copyElementTo(
const OUString& aElementName,
@@ -481,7 +481,7 @@ void SAL_CALL Storage::copyElementTo(
m_xWrappedStorage->copyElementTo( aElementName, xDest, aNewName );
}
-//=========================================================================
+
// virtual
void SAL_CALL Storage::moveElementTo(
const OUString& aElementName,
@@ -498,11 +498,11 @@ void SAL_CALL Storage::moveElementTo(
m_xWrappedStorage->moveElementTo( aElementName, xDest, rNewName );
}
-//=========================================================================
-//
+
+
// embed::XTransactedObject
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL Storage::commit()
@@ -535,7 +535,7 @@ void SAL_CALL Storage::commit()
}
}
-//=========================================================================
+
// virtual
void SAL_CALL Storage::revert()
throw ( io::IOException,
@@ -564,13 +564,13 @@ void SAL_CALL Storage::revert()
}
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// OutputStream Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
OutputStream::OutputStream(
const uno::Reference< uno::XComponentContext > & rxContext,
@@ -623,7 +623,7 @@ OutputStream::OutputStream(
}
}
-//=========================================================================
+
// virtual
OutputStream::~OutputStream()
{
@@ -631,11 +631,11 @@ OutputStream::~OutputStream()
m_xAggProxy->setDelegator( uno::Reference< uno::XInterface >() );
}
-//=========================================================================
-//
+
+
// uno::XInterface
-//
-//=========================================================================
+
+
// virtual
uno::Any SAL_CALL OutputStream::queryInterface( const uno::Type& aType )
@@ -652,11 +652,11 @@ uno::Any SAL_CALL OutputStream::queryInterface( const uno::Type& aType )
return uno::Any();
}
-//=========================================================================
-//
+
+
// lang::XTypeProvider
-//
-//=========================================================================
+
+
// virtual
uno::Sequence< uno::Type > SAL_CALL OutputStream::getTypes()
@@ -665,7 +665,7 @@ uno::Sequence< uno::Type > SAL_CALL OutputStream::getTypes()
return m_xWrappedTypeProv->getTypes();
}
-//=========================================================================
+
// virtual
uno::Sequence< sal_Int8 > SAL_CALL OutputStream::getImplementationId()
throw ( uno::RuntimeException )
@@ -673,11 +673,11 @@ uno::Sequence< sal_Int8 > SAL_CALL OutputStream::getImplementationId()
return m_xWrappedTypeProv->getImplementationId();
}
-//=========================================================================
-//
+
+
// io::XOutputStream
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL
@@ -690,7 +690,7 @@ OutputStream::writeBytes( const uno::Sequence< sal_Int8 >& aData )
m_xWrappedStream->writeBytes( aData );
}
-//=========================================================================
+
// virtual
void SAL_CALL
OutputStream::flush()
@@ -702,7 +702,7 @@ OutputStream::flush()
m_xWrappedStream->flush();
}
-//=========================================================================
+
// virtual
void SAL_CALL
OutputStream::closeOutput( )
@@ -718,11 +718,11 @@ OutputStream::closeOutput( )
setParentStorage( uno::Reference< embed::XStorage >() );
}
-//=========================================================================
-//
+
+
// lang::XComponent
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL
@@ -736,7 +736,7 @@ OutputStream::dispose()
setParentStorage( uno::Reference< embed::XStorage >() );
}
-//=========================================================================
+
// virtual
void SAL_CALL
OutputStream::addEventListener(
@@ -746,7 +746,7 @@ OutputStream::addEventListener(
m_xWrappedComponent->addEventListener( xListener );
}
-//=========================================================================
+
// virtual
void SAL_CALL
OutputStream::removeEventListener(
@@ -756,13 +756,13 @@ OutputStream::removeEventListener(
m_xWrappedComponent->removeEventListener( aListener );
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// Stream Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
Stream::Stream(
const uno::Reference< uno::XComponentContext > & rxContext,
@@ -818,7 +818,7 @@ Stream::Stream(
}
}
-//=========================================================================
+
// virtual
Stream::~Stream()
{
@@ -826,11 +826,11 @@ Stream::~Stream()
m_xAggProxy->setDelegator( uno::Reference< uno::XInterface >() );
}
-//=========================================================================
-//
+
+
// uno::XInterface
-//
-//=========================================================================
+
+
// virtual
uno::Any SAL_CALL Stream::queryInterface( const uno::Type& aType )
@@ -847,11 +847,11 @@ uno::Any SAL_CALL Stream::queryInterface( const uno::Type& aType )
return uno::Any();
}
-//=========================================================================
-//
+
+
// lang::XTypeProvider
-//
-//=========================================================================
+
+
// virtual
uno::Sequence< uno::Type > SAL_CALL Stream::getTypes()
@@ -860,7 +860,7 @@ uno::Sequence< uno::Type > SAL_CALL Stream::getTypes()
return m_xWrappedTypeProv->getTypes();
}
-//=========================================================================
+
// virtual
uno::Sequence< sal_Int8 > SAL_CALL Stream::getImplementationId()
throw ( uno::RuntimeException )
@@ -868,11 +868,11 @@ uno::Sequence< sal_Int8 > SAL_CALL Stream::getImplementationId()
return m_xWrappedTypeProv->getImplementationId();
}
-//=========================================================================
-//
+
+
// io::XStream.
-//
-//=========================================================================
+
+
// virtual
uno::Reference< io::XInputStream > SAL_CALL Stream::getInputStream()
@@ -881,7 +881,7 @@ uno::Reference< io::XInputStream > SAL_CALL Stream::getInputStream()
return uno::Reference< io::XInputStream >( this );
}
-//=========================================================================
+
// virtual
uno::Reference< io::XOutputStream > SAL_CALL Stream::getOutputStream()
throw( uno::RuntimeException )
@@ -889,11 +889,11 @@ uno::Reference< io::XOutputStream > SAL_CALL Stream::getOutputStream()
return uno::Reference< io::XOutputStream >( this );
}
-//=========================================================================
-//
+
+
// io::XOutputStream.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL Stream::writeBytes( const uno::Sequence< sal_Int8 >& aData )
@@ -909,7 +909,7 @@ void SAL_CALL Stream::writeBytes( const uno::Sequence< sal_Int8 >& aData )
}
}
-//=========================================================================
+
// virtual
void SAL_CALL Stream::flush()
throw( io::NotConnectedException,
@@ -924,7 +924,7 @@ void SAL_CALL Stream::flush()
}
}
-//=========================================================================
+
// virtual
void SAL_CALL Stream::closeOutput()
throw( io::NotConnectedException,
@@ -942,11 +942,11 @@ void SAL_CALL Stream::closeOutput()
setParentStorage( uno::Reference< embed::XStorage >() );
}
-//=========================================================================
-//
+
+
// io::XTruncate.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL Stream::truncate()
@@ -960,11 +960,11 @@ void SAL_CALL Stream::truncate()
}
}
-//=========================================================================
-//
+
+
// io::XInputStream.
-//
-//=========================================================================
+
+
// virtual
sal_Int32 SAL_CALL Stream::readBytes( uno::Sequence< sal_Int8 >& aData,
@@ -977,7 +977,7 @@ sal_Int32 SAL_CALL Stream::readBytes( uno::Sequence< sal_Int8 >& aData,
return m_xWrappedInputStream->readBytes( aData, nBytesToRead );
}
-//=========================================================================
+
// virtual
sal_Int32 SAL_CALL Stream::readSomeBytes( uno::Sequence< sal_Int8 >& aData,
sal_Int32 nMaxBytesToRead )
@@ -989,7 +989,7 @@ sal_Int32 SAL_CALL Stream::readSomeBytes( uno::Sequence< sal_Int8 >& aData,
return m_xWrappedInputStream->readSomeBytes( aData, nMaxBytesToRead );
}
-//=========================================================================
+
// virtual
void SAL_CALL Stream::skipBytes( sal_Int32 nBytesToSkip )
throw( io::NotConnectedException,
@@ -1000,7 +1000,7 @@ void SAL_CALL Stream::skipBytes( sal_Int32 nBytesToSkip )
m_xWrappedInputStream->skipBytes( nBytesToSkip );
}
-//=========================================================================
+
// virtual
sal_Int32 SAL_CALL Stream::available()
throw( io::NotConnectedException,
@@ -1010,7 +1010,7 @@ sal_Int32 SAL_CALL Stream::available()
return m_xWrappedInputStream->available();
}
-//=========================================================================
+
// virtual
void SAL_CALL Stream::closeInput()
throw( io::NotConnectedException,
@@ -1020,11 +1020,11 @@ void SAL_CALL Stream::closeInput()
m_xWrappedInputStream->closeInput();
}
-//=========================================================================
-//
+
+
// lang::XComponent
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL Stream::dispose()
@@ -1037,7 +1037,7 @@ void SAL_CALL Stream::dispose()
setParentStorage( uno::Reference< embed::XStorage >() );
}
-//=========================================================================
+
// virtual
void SAL_CALL Stream::addEventListener(
const uno::Reference< lang::XEventListener >& xListener )
@@ -1046,7 +1046,7 @@ void SAL_CALL Stream::addEventListener(
m_xWrappedComponent->addEventListener( xListener );
}
-//=========================================================================
+
// virtual
void SAL_CALL Stream::removeEventListener(
const uno::Reference< lang::XEventListener >& aListener )
@@ -1055,11 +1055,11 @@ void SAL_CALL Stream::removeEventListener(
m_xWrappedComponent->removeEventListener( aListener );
}
-//=========================================================================
-//
+
+
// Non-UNO
-//
-//=========================================================================
+
+
void Stream::commitChanges()
throw( io::IOException )
diff --git a/ucb/source/ucp/tdoc/tdoc_stgelems.hxx b/ucb/source/ucp/tdoc/tdoc_stgelems.hxx
index 7ccd6445b195..f2087476ad8a 100644
--- a/ucb/source/ucp/tdoc/tdoc_stgelems.hxx
+++ b/ucb/source/ucp/tdoc/tdoc_stgelems.hxx
@@ -44,7 +44,7 @@ struct MutexHolder
osl::Mutex m_aMutex;
};
-//=======================================================================
+
class ParentStorageHolder : public MutexHolder
{
@@ -69,7 +69,7 @@ private:
bool m_bParentIsRootStorage;
};
-//=======================================================================
+
typedef
cppu::WeakImplHelper2<
@@ -304,7 +304,7 @@ private:
friend class std::auto_ptr< Storage >;
};
-//=======================================================================
+
typedef
cppu::WeakImplHelper2<
@@ -384,7 +384,7 @@ private:
com::sun::star::lang::XTypeProvider > m_xWrappedTypeProv;
};
-//=======================================================================
+
typedef cppu::WeakImplHelper5< com::sun::star::io::XStream,
com::sun::star::io::XOutputStream,
diff --git a/ucb/source/ucp/tdoc/tdoc_storage.cxx b/ucb/source/ucp/tdoc/tdoc_storage.cxx
index 916ccf81c8aa..ff7907eafce1 100644
--- a/ucb/source/ucp/tdoc/tdoc_storage.cxx
+++ b/ucb/source/ucp/tdoc/tdoc_storage.cxx
@@ -34,13 +34,13 @@ using namespace com::sun::star;
using namespace tdoc_ucp;
-//=========================================================================
-//=========================================================================
-//
+
+
+
// StorageElementFactory Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
StorageElementFactory::StorageElementFactory(
const uno::Reference< uno::XComponentContext > & rxContext,
@@ -50,14 +50,14 @@ StorageElementFactory::StorageElementFactory(
{
}
-//=========================================================================
+
StorageElementFactory::~StorageElementFactory()
{
OSL_ENSURE( m_aMap.empty(),
"StorageElementFactory::~StorageElementFactory - Dangling storages!" );
}
-//=========================================================================
+
uno::Reference< embed::XStorage >
StorageElementFactory::createTemporaryStorage()
throw ( uno::Exception,
@@ -82,7 +82,7 @@ StorageElementFactory::createTemporaryStorage()
return xStorage;
}
-//=========================================================================
+
uno::Reference< embed::XStorage >
StorageElementFactory::createStorage( const OUString & rUri,
StorageAccessMode eMode )
@@ -236,7 +236,7 @@ StorageElementFactory::createStorage( const OUString & rUri,
}
}
-//=========================================================================
+
uno::Reference< io::XInputStream >
StorageElementFactory::createInputStream( const OUString & rUri,
const OUString & rPassword )
@@ -265,7 +265,7 @@ StorageElementFactory::createInputStream( const OUString & rUri,
return xStream->getInputStream();
}
-//=========================================================================
+
uno::Reference< io::XOutputStream >
StorageElementFactory::createOutputStream( const OUString & rUri,
const OUString & rPassword,
@@ -310,7 +310,7 @@ StorageElementFactory::createOutputStream( const OUString & rUri,
new OutputStream( m_xContext, rUri, xParentStorage, xStream->getOutputStream() ) );
}
-//=========================================================================
+
uno::Reference< io::XStream >
StorageElementFactory::createStream( const OUString & rUri,
const OUString & rPassword,
@@ -350,7 +350,7 @@ StorageElementFactory::createStream( const OUString & rUri,
new Stream( m_xContext, rUri, xParentStorage, xStream ) );
}
-//=========================================================================
+
void StorageElementFactory::releaseElement( Storage * pElement ) SAL_THROW(())
{
OSL_ASSERT( pElement );
@@ -359,11 +359,11 @@ void StorageElementFactory::releaseElement( Storage * pElement ) SAL_THROW(())
m_aMap.erase( pElement->m_aContainerIt );
}
-//=========================================================================
-//
+
+
// Non-UNO interface
-//
-//=========================================================================
+
+
uno::Reference< embed::XStorage > StorageElementFactory::queryParentStorage(
const OUString & rUri, StorageAccessMode eMode )
@@ -388,7 +388,7 @@ uno::Reference< embed::XStorage > StorageElementFactory::queryParentStorage(
return xParentStorage;
}
-//=========================================================================
+
uno::Reference< embed::XStorage > StorageElementFactory::queryStorage(
const uno::Reference< embed::XStorage > & xParentStorage,
const OUString & rUri,
@@ -537,7 +537,7 @@ uno::Reference< embed::XStorage > StorageElementFactory::queryStorage(
return xStorage;
}
-//=========================================================================
+
uno::Reference< io::XStream >
StorageElementFactory::queryStream(
const uno::Reference< embed::XStorage > & xParentStorage,
diff --git a/ucb/source/ucp/tdoc/tdoc_uri.cxx b/ucb/source/ucp/tdoc/tdoc_uri.cxx
index f868a60d2891..8698141c5491 100644
--- a/ucb/source/ucp/tdoc/tdoc_uri.cxx
+++ b/ucb/source/ucp/tdoc/tdoc_uri.cxx
@@ -31,13 +31,13 @@
using namespace tdoc_ucp;
-//=========================================================================
-//=========================================================================
-//
+
+
+
// Uri Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
void Uri::init() const
{
diff --git a/ucb/source/ucp/tdoc/tdoc_uri.hxx b/ucb/source/ucp/tdoc/tdoc_uri.hxx
index a137b6881ec9..330e1df96249 100644
--- a/ucb/source/ucp/tdoc/tdoc_uri.hxx
+++ b/ucb/source/ucp/tdoc/tdoc_uri.hxx
@@ -24,12 +24,12 @@
namespace tdoc_ucp {
-//=========================================================================
+
#define TDOC_URL_SCHEME "vnd.sun.star.tdoc"
#define TDOC_URL_SCHEME_LENGTH 17
-//=========================================================================
+
class Uri
{
diff --git a/ucb/source/ucp/webdav-neon/ContentProperties.cxx b/ucb/source/ucp/webdav-neon/ContentProperties.cxx
index 69a1242fdf08..0c0c94595ee4 100644
--- a/ucb/source/ucp/webdav-neon/ContentProperties.cxx
+++ b/ucb/source/ucp/webdav-neon/ContentProperties.cxx
@@ -79,13 +79,13 @@ Important: HTTP headers will not be mapped to DAV properties; only to UCB
properties. (Content-Length,Content-Type,Last-Modified)
*/
-//=========================================================================
-//=========================================================================
-//
+
+
+
// ContentProperties Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
// static member!
uno::Any ContentProperties::m_aEmptyAny;
@@ -132,7 +132,7 @@ ContentProperties::ContentProperties( const DAVResource& rResource )
m_bTrailingSlash = true;
}
-//=========================================================================
+
ContentProperties::ContentProperties(
const OUString & rTitle, sal_Bool bFolder )
: m_xProps( new PropertyValueMap ),
@@ -146,7 +146,7 @@ ContentProperties::ContentProperties(
= PropertyValue( uno::makeAny( sal_Bool( !bFolder ) ), true );
}
-//=========================================================================
+
ContentProperties::ContentProperties( const OUString & rTitle )
: m_xProps( new PropertyValueMap ),
m_bTrailingSlash( false )
@@ -155,14 +155,14 @@ ContentProperties::ContentProperties( const OUString & rTitle )
= PropertyValue( uno::makeAny( rTitle ), true );
}
-//=========================================================================
+
ContentProperties::ContentProperties()
: m_xProps( new PropertyValueMap ),
m_bTrailingSlash( false )
{
}
-//=========================================================================
+
ContentProperties::ContentProperties( const ContentProperties & rOther )
: m_aEscapedTitle( rOther.m_aEscapedTitle ),
m_xProps( rOther.m_xProps.get()
@@ -172,7 +172,7 @@ ContentProperties::ContentProperties( const ContentProperties & rOther )
{
}
-//=========================================================================
+
bool ContentProperties::contains( const OUString & rName ) const
{
if ( get( rName ) )
@@ -181,7 +181,7 @@ bool ContentProperties::contains( const OUString & rName ) const
return false;
}
-//=========================================================================
+
const uno::Any & ContentProperties::getValue(
const OUString & rName ) const
{
@@ -192,7 +192,7 @@ const uno::Any & ContentProperties::getValue(
return m_aEmptyAny;
}
-//=========================================================================
+
const PropertyValue * ContentProperties::get(
const OUString & rName ) const
{
@@ -215,17 +215,17 @@ const PropertyValue * ContentProperties::get(
return &(*it).second;
}
-//=========================================================================
+
// static
void ContentProperties::UCBNamesToDAVNames(
const uno::Sequence< beans::Property > & rProps,
std::vector< OUString > & propertyNames,
bool bIncludeUnmatched /* = true */ )
{
- //////////////////////////////////////////////////////////////
+
// Assemble list of DAV properties to obtain from server.
// Append DAV properties needed to obtain requested UCB props.
- //////////////////////////////////////////////////////////////
+
// DAV UCB
// creationdate <- DateCreated
@@ -302,17 +302,17 @@ void ContentProperties::UCBNamesToDAVNames(
}
}
-//=========================================================================
+
// static
void ContentProperties::UCBNamesToHTTPNames(
const uno::Sequence< beans::Property > & rProps,
std::vector< OUString > & propertyNames,
bool bIncludeUnmatched /* = true */ )
{
- //////////////////////////////////////////////////////////////
+
// Assemble list of HTTP header names to obtain from server.
// Append HTTP headers needed to obtain requested UCB props.
- //////////////////////////////////////////////////////////////
+
// HTTP UCB
// Last-Modified <- DateModified
@@ -347,7 +347,7 @@ void ContentProperties::UCBNamesToHTTPNames(
}
}
-//=========================================================================
+
bool ContentProperties::containsAllNames(
const uno::Sequence< beans::Property >& rProps,
std::vector< OUString > & rNamesNotContained ) const
@@ -368,7 +368,7 @@ bool ContentProperties::containsAllNames(
return ( rNamesNotContained.empty() );
}
-//=========================================================================
+
void ContentProperties::addProperties(
const std::vector< OUString > & rProps,
const ContentProperties & rContentProps )
@@ -397,13 +397,13 @@ void ContentProperties::addProperties(
}
}
-//=========================================================================
+
void ContentProperties::addProperty( const DAVPropertyValue & rProp )
{
addProperty( rProp.Name, rProp.Value, rProp.IsCaseSensitive );
}
-//=========================================================================
+
void ContentProperties::addProperty( const OUString & rName,
const com::sun::star::uno::Any & rValue,
bool bIsCaseSensitive )
@@ -520,13 +520,13 @@ void ContentProperties::addProperty( const OUString & rName,
(*m_xProps)[ rName ] = PropertyValue( rValue, bIsCaseSensitive );
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// CachableContentProperties Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
namespace
{
@@ -570,14 +570,14 @@ namespace
} // namespace
-//=========================================================================
+
CachableContentProperties::CachableContentProperties(
const ContentProperties & rProps )
{
addProperties( rProps );
}
-//=========================================================================
+
void CachableContentProperties::addProperties(
const ContentProperties & rProps )
{
@@ -599,7 +599,7 @@ void CachableContentProperties::addProperties(
}
}
-//=========================================================================
+
void CachableContentProperties::addProperties(
const std::vector< DAVPropertyValue > & rProps )
{
diff --git a/ucb/source/ucp/webdav-neon/ContentProperties.hxx b/ucb/source/ucp/webdav-neon/ContentProperties.hxx
index 83ceafb9cdf8..97e90a03371b 100644
--- a/ucb/source/ucp/webdav-neon/ContentProperties.hxx
+++ b/ucb/source/ucp/webdav-neon/ContentProperties.hxx
@@ -46,7 +46,7 @@ namespace webdav_ucp
struct DAVResource;
-//=========================================================================
+
struct equalString
{
@@ -64,11 +64,11 @@ struct hashString
}
};
-//=========================================================================
-//
+
+
// PropertyValueMap.
-//
-//=========================================================================
+
+
class PropertyValue
{
diff --git a/ucb/source/ucp/webdav-neon/DAVAuthListenerImpl.hxx b/ucb/source/ucp/webdav-neon/DAVAuthListenerImpl.hxx
index a41b64fb1766..35c10835d480 100644
--- a/ucb/source/ucp/webdav-neon/DAVAuthListenerImpl.hxx
+++ b/ucb/source/ucp/webdav-neon/DAVAuthListenerImpl.hxx
@@ -36,15 +36,15 @@
namespace webdav_ucp
{
-//=========================================================================
-//=========================================================================
-//=========================================================================
-//
+
+
+
+
// class DAVAuthListenerImpl.
-//
-//=========================================================================
-//=========================================================================
+
+
+
class DAVAuthListener_Impl : public DAVAuthListener
diff --git a/ucb/source/ucp/webdav-neon/DAVException.hxx b/ucb/source/ucp/webdav-neon/DAVException.hxx
index 4f33de4a7db3..efdbbf6a2dac 100644
--- a/ucb/source/ucp/webdav-neon/DAVException.hxx
+++ b/ucb/source/ucp/webdav-neon/DAVException.hxx
@@ -35,9 +35,9 @@
namespace webdav_ucp
{
-/////////////////////////////////////////////////////////////////////////////
+
// HTTP/WebDAV status codes
-/////////////////////////////////////////////////////////////////////////////
+
const sal_uInt16 SC_NONE = 0;
@@ -101,7 +101,7 @@ const sal_uInt16 SC_HTTP_VERSION_NOT_SUPPORTED = 505;
// DAV extensions
const sal_uInt16 SC_INSUFFICIENT_STORAGE = 507;
-/////////////////////////////////////////////////////////////////////////////
+
class DAVException
{
diff --git a/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx b/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx
index cb2b90c65757..ff8bc305f1a5 100644
--- a/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx
+++ b/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx
@@ -42,15 +42,15 @@
using namespace webdav_ucp;
using namespace com::sun::star;
-//=========================================================================
-//=========================================================================
-//
+
+
+
// DAVAuthListener_Impl Implementation.
-//
-//=========================================================================
-//=========================================================================
-//=========================================================================
+
+
+
+
// virtual
int DAVAuthListener_Impl::authenticate(
const OUString & inRealm,
@@ -129,15 +129,15 @@ int DAVAuthListener_Impl::authenticate(
return -1;
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// DAVResourceAccess Implementation.
-//
-//=========================================================================
-//=========================================================================
-//=========================================================================
+
+
+
+
DAVResourceAccess::DAVResourceAccess(
const uno::Reference< uno::XComponentContext > & rxContext,
rtl::Reference< DAVSessionFactory > const & rSessionFactory,
@@ -148,7 +148,7 @@ DAVResourceAccess::DAVResourceAccess(
{
}
-//=========================================================================
+
DAVResourceAccess::DAVResourceAccess( const DAVResourceAccess & rOther )
: m_aURL( rOther.m_aURL ),
m_aPath( rOther.m_aPath ),
@@ -160,7 +160,7 @@ DAVResourceAccess::DAVResourceAccess( const DAVResourceAccess & rOther )
{
}
-//=========================================================================
+
DAVResourceAccess & DAVResourceAccess::operator=(
const DAVResourceAccess & rOther )
{
@@ -176,7 +176,7 @@ DAVResourceAccess & DAVResourceAccess::operator=(
}
#if 0 // currently not used, but please don't remove code
-//=========================================================================
+
void DAVResourceAccess::OPTIONS(
DAVCapabilities & rCapabilities,
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
@@ -216,7 +216,7 @@ void DAVResourceAccess::OPTIONS(
}
#endif
-//=========================================================================
+
void DAVResourceAccess::PROPFIND(
const Depth nDepth,
const std::vector< OUString > & rPropertyNames,
@@ -260,7 +260,7 @@ void DAVResourceAccess::PROPFIND(
while ( bRetry );
}
-//=========================================================================
+
void DAVResourceAccess::PROPFIND(
const Depth nDepth,
std::vector< DAVResourceInfo > & rResInfo,
@@ -301,7 +301,7 @@ void DAVResourceAccess::PROPFIND(
while ( bRetry );
}
-//=========================================================================
+
void DAVResourceAccess::PROPPATCH(
const std::vector< ProppatchValue >& rValues,
const uno::Reference< ucb::XCommandEnvironment >& xEnv )
@@ -340,7 +340,7 @@ void DAVResourceAccess::PROPPATCH(
while ( bRetry );
}
-//=========================================================================
+
void DAVResourceAccess::HEAD(
const std::vector< OUString > & rHeaderNames,
DAVResource & rResource,
@@ -381,7 +381,7 @@ void DAVResourceAccess::HEAD(
while ( bRetry );
}
-//=========================================================================
+
uno::Reference< io::XInputStream > DAVResourceAccess::GET(
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
throw( DAVException )
@@ -422,7 +422,7 @@ uno::Reference< io::XInputStream > DAVResourceAccess::GET(
return xStream;
}
-//=========================================================================
+
void DAVResourceAccess::GET(
uno::Reference< io::XOutputStream > & rStream,
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
@@ -461,7 +461,7 @@ void DAVResourceAccess::GET(
while ( bRetry );
}
-//=========================================================================
+
uno::Reference< io::XInputStream > DAVResourceAccess::GET(
const std::vector< OUString > & rHeaderNames,
DAVResource & rResource,
@@ -506,7 +506,7 @@ uno::Reference< io::XInputStream > DAVResourceAccess::GET(
return xStream;
}
-//=========================================================================
+
void DAVResourceAccess::GET(
uno::Reference< io::XOutputStream > & rStream,
const std::vector< OUString > & rHeaderNames,
@@ -549,7 +549,7 @@ void DAVResourceAccess::GET(
while ( bRetry );
}
-//=========================================================================
+
void DAVResourceAccess::abort()
throw( DAVException )
{
@@ -557,7 +557,7 @@ void DAVResourceAccess::abort()
m_xSession->abort();
}
-//=========================================================================
+
namespace {
void resetInputStream( const uno::Reference< io::XInputStream > & rStream )
@@ -585,7 +585,7 @@ namespace {
} // namespace
-//=========================================================================
+
void DAVResourceAccess::PUT(
const uno::Reference< io::XInputStream > & rStream,
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
@@ -632,7 +632,7 @@ void DAVResourceAccess::PUT(
while ( bRetry );
}
-//=========================================================================
+
uno::Reference< io::XInputStream > DAVResourceAccess::POST(
const OUString & rContentType,
const OUString & rReferer,
@@ -695,7 +695,7 @@ uno::Reference< io::XInputStream > DAVResourceAccess::POST(
return xStream;
}
-//=========================================================================
+
void DAVResourceAccess::POST(
const OUString & rContentType,
const OUString & rReferer,
@@ -757,7 +757,7 @@ void DAVResourceAccess::POST(
while ( bRetry );
}
-//=========================================================================
+
void DAVResourceAccess::MKCOL(
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
throw( DAVException )
@@ -794,7 +794,7 @@ void DAVResourceAccess::MKCOL(
while ( bRetry );
}
-//=========================================================================
+
void DAVResourceAccess::COPY(
const OUString & rSourcePath,
const OUString & rDestinationURI,
@@ -836,7 +836,7 @@ void DAVResourceAccess::COPY(
while ( bRetry );
}
-//=========================================================================
+
void DAVResourceAccess::MOVE(
const OUString & rSourcePath,
const OUString & rDestinationURI,
@@ -878,7 +878,7 @@ void DAVResourceAccess::MOVE(
while ( bRetry );
}
-//=========================================================================
+
void DAVResourceAccess::DESTROY(
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
throw( DAVException )
@@ -915,7 +915,7 @@ void DAVResourceAccess::DESTROY(
while ( bRetry );
}
-//=========================================================================
+
// set new lock.
void DAVResourceAccess::LOCK(
ucb::Lock & inLock,
@@ -956,7 +956,7 @@ void DAVResourceAccess::LOCK(
}
#if 0 // currently not used, but please don't remove code
-//=========================================================================
+
// refresh existing lock.
sal_Int64 DAVResourceAccess::LOCK(
sal_Int64 nTimeout,
@@ -1001,7 +1001,7 @@ sal_Int64 DAVResourceAccess::LOCK(
}
#endif
-//=========================================================================
+
void DAVResourceAccess::UNLOCK(
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
throw ( DAVException )
@@ -1038,7 +1038,7 @@ void DAVResourceAccess::UNLOCK(
while ( bRetry );
}
-//=========================================================================
+
void DAVResourceAccess::setFlags( const uno::Sequence< beans::NamedValue >& rFlags )
throw ( DAVException )
{
@@ -1046,7 +1046,7 @@ void DAVResourceAccess::setFlags( const uno::Sequence< beans::NamedValue >& rFla
m_aFlags = rFlags;
}
-//=========================================================================
+
void DAVResourceAccess::setURL( const OUString & rNewURL )
throw( DAVException )
{
@@ -1055,7 +1055,7 @@ void DAVResourceAccess::setURL( const OUString & rNewURL )
m_aPath = OUString(); // Next initialize() will create new session.
}
-//=========================================================================
+
// init dav session and path
void DAVResourceAccess::initialize()
throw ( DAVException )
@@ -1097,7 +1097,7 @@ void DAVResourceAccess::initialize()
}
}
-//=========================================================================
+
const OUString & DAVResourceAccess::getRequestURI() const
{
OSL_ENSURE( m_xSession.is(),
@@ -1110,7 +1110,7 @@ const OUString & DAVResourceAccess::getRequestURI() const
return m_aPath;
}
-//=========================================================================
+
// static
void DAVResourceAccess::getUserRequestHeaders(
const uno::Reference< ucb::XCommandEnvironment > & xEnv,
@@ -1154,7 +1154,7 @@ void DAVResourceAccess::getUserRequestHeaders(
DAVRequestHeader( "User-Agent", "LibreOffice" ) );
}
-//=========================================================================
+
sal_Bool DAVResourceAccess::detectRedirectCycle(
const OUString& rRedirectURL )
throw ( DAVException )
@@ -1177,7 +1177,7 @@ sal_Bool DAVResourceAccess::detectRedirectCycle(
return sal_False;
}
-//=========================================================================
+
void DAVResourceAccess::resetUri()
{
osl::Guard< osl::Mutex > aGuard( m_aMutex );
@@ -1192,7 +1192,7 @@ void DAVResourceAccess::resetUri()
}
}
-//=========================================================================
+
sal_Bool DAVResourceAccess::handleException( const DAVException & e, int errorCount )
throw ( DAVException )
{
diff --git a/ucb/source/ucp/webdav-neon/DAVResourceAccess.hxx b/ucb/source/ucp/webdav-neon/DAVResourceAccess.hxx
index 134d3e372e58..c6cc056232ac 100644
--- a/ucb/source/ucp/webdav-neon/DAVResourceAccess.hxx
+++ b/ucb/source/ucp/webdav-neon/DAVResourceAccess.hxx
@@ -89,7 +89,7 @@ public:
{ return m_xSessionFactory; }
// DAV methods
- //
+
#if 0 // currently not used, but please don't remove code
void
diff --git a/ucb/source/ucp/webdav-neon/DAVSession.hxx b/ucb/source/ucp/webdav-neon/DAVSession.hxx
index 4b384e869431..95ca28f5c42d 100644
--- a/ucb/source/ucp/webdav-neon/DAVSession.hxx
+++ b/ucb/source/ucp/webdav-neon/DAVSession.hxx
@@ -75,7 +75,7 @@ public:
virtual sal_Bool UsesProxy() = 0;
// DAV methods
- //
+
virtual void OPTIONS( const OUString & inPath,
DAVCapabilities & outCapabilities,
diff --git a/ucb/source/ucp/webdav-neon/LinkSequence.cxx b/ucb/source/ucp/webdav-neon/LinkSequence.cxx
index 337d662e6d86..a365e080be61 100644
--- a/ucb/source/ucp/webdav-neon/LinkSequence.cxx
+++ b/ucb/source/ucp/webdav-neon/LinkSequence.cxx
@@ -35,7 +35,7 @@
using namespace webdav_ucp;
using namespace com::sun::star;
-//////////////////////////////////////////////////////////////////////////
+
struct LinkSequenceParseContext
{
@@ -54,7 +54,7 @@ struct LinkSequenceParseContext
#define STATE_DST (STATE_TOP + 1)
#define STATE_SRC (STATE_TOP + 2)
-//////////////////////////////////////////////////////////////////////////
+
extern "C" int LinkSequence_startelement_callback(
void *,
int parent,
@@ -82,7 +82,7 @@ extern "C" int LinkSequence_startelement_callback(
return NE_XML_DECLINE;
}
-//////////////////////////////////////////////////////////////////////////
+
extern "C" int LinkSequence_chardata_callback(
void *userdata,
int state,
@@ -111,7 +111,7 @@ extern "C" int LinkSequence_chardata_callback(
return 0; // zero to continue, non-zero to abort parsing
}
-//////////////////////////////////////////////////////////////////////////
+
extern "C" int LinkSequence_endelement_callback(
void *userdata,
int state,
@@ -133,7 +133,7 @@ extern "C" int LinkSequence_endelement_callback(
return 0; // zero to continue, non-zero to abort parsing
}
-//////////////////////////////////////////////////////////////////////////
+
// static
bool LinkSequence::createFromXML( const OString & rInData,
uno::Sequence< ucb::Link > & rOutData )
@@ -188,7 +188,7 @@ bool LinkSequence::createFromXML( const OString & rInData,
return success;
}
-//////////////////////////////////////////////////////////////////////////
+
// static
bool LinkSequence::toXML( const uno::Sequence< ucb::Link > & rInData,
OUString & rOutData )
diff --git a/ucb/source/ucp/webdav-neon/LockEntrySequence.cxx b/ucb/source/ucp/webdav-neon/LockEntrySequence.cxx
index 5875913aae0a..22a2d5b07388 100644
--- a/ucb/source/ucp/webdav-neon/LockEntrySequence.cxx
+++ b/ucb/source/ucp/webdav-neon/LockEntrySequence.cxx
@@ -34,7 +34,7 @@
using namespace webdav_ucp;
using namespace com::sun::star;
-//////////////////////////////////////////////////////////////////////////
+
struct LockEntrySequenceParseContext
{
@@ -56,7 +56,7 @@ struct LockEntrySequenceParseContext
#define STATE_LOCKTYPE (STATE_TOP + 4)
#define STATE_WRITE (STATE_TOP + 5)
-//////////////////////////////////////////////////////////////////////////
+
extern "C" int LockEntrySequence_startelement_callback(
void *,
int parent,
@@ -121,7 +121,7 @@ extern "C" int LockEntrySequence_startelement_callback(
return NE_XML_DECLINE;
}
-//////////////////////////////////////////////////////////////////////////
+
extern "C" int LockEntrySequence_chardata_callback(
void *,
int,
@@ -131,7 +131,7 @@ extern "C" int LockEntrySequence_chardata_callback(
return 0; // zero to continue, non-zero to abort parsing
}
-//////////////////////////////////////////////////////////////////////////
+
extern "C" int LockEntrySequence_endelement_callback(
void *userdata,
int state,
@@ -181,7 +181,7 @@ extern "C" int LockEntrySequence_endelement_callback(
return 0; // zero to continue, non-zero to abort parsing
}
-//////////////////////////////////////////////////////////////////////////
+
// static
bool LockEntrySequence::createFromXML( const OString & rInData,
uno::Sequence<
diff --git a/ucb/source/ucp/webdav-neon/LockSequence.cxx b/ucb/source/ucp/webdav-neon/LockSequence.cxx
index 93c60fc613be..56309651298a 100644
--- a/ucb/source/ucp/webdav-neon/LockSequence.cxx
+++ b/ucb/source/ucp/webdav-neon/LockSequence.cxx
@@ -36,7 +36,7 @@ using namespace com::sun::star;
#define BEEHIVE_BUGS_WORKAROUND
-//////////////////////////////////////////////////////////////////////////
+
struct LockSequenceParseContext
{
@@ -68,7 +68,7 @@ struct LockSequenceParseContext
#define STATE_WRITE (STATE_TOP + 9)
#define STATE_HREF (STATE_TOP + 10)
-//////////////////////////////////////////////////////////////////////////
+
extern "C" int LockSequence_startelement_callback(
void *,
int parent,
@@ -125,7 +125,7 @@ extern "C" int LockSequence_startelement_callback(
return NE_XML_DECLINE;
}
-//////////////////////////////////////////////////////////////////////////
+
extern "C" int LockSequence_chardata_callback(
void *userdata,
int state,
@@ -186,9 +186,9 @@ extern "C" int LockSequence_chardata_callback(
}
case STATE_TIMEOUT:
- //
+
// RFC2518, RFC2616:
- //
+
// TimeType = ("Second-" DAVTimeOutVal | "Infinite" | Other)
// DAVTimeOutVal = 1*digit
// Other = "Extend" field-value
@@ -243,7 +243,7 @@ extern "C" int LockSequence_chardata_callback(
return 0; // zero to continue, non-zero to abort parsing
}
-//////////////////////////////////////////////////////////////////////////
+
extern "C" int LockSequence_endelement_callback(
void *userdata,
int state,
@@ -308,7 +308,7 @@ extern "C" int LockSequence_endelement_callback(
return 0; // zero to continue, non-zero to abort parsing
}
-//////////////////////////////////////////////////////////////////////////
+
// static
bool LockSequence::createFromXML( const OString & rInData,
uno::Sequence< ucb::Lock > & rOutData )
diff --git a/ucb/source/ucp/webdav-neon/PropertyMap.hxx b/ucb/source/ucp/webdav-neon/PropertyMap.hxx
index d2743732c04c..3389671c544b 100644
--- a/ucb/source/ucp/webdav-neon/PropertyMap.hxx
+++ b/ucb/source/ucp/webdav-neon/PropertyMap.hxx
@@ -35,7 +35,7 @@
namespace webdav_ucp {
-//=========================================================================
+
struct equalPropertyName
{
diff --git a/ucb/source/ucp/webdav-neon/UCBDeadPropertyValue.cxx b/ucb/source/ucp/webdav-neon/UCBDeadPropertyValue.cxx
index a3fe3c39af85..a4082b7b9229 100644
--- a/ucb/source/ucp/webdav-neon/UCBDeadPropertyValue.cxx
+++ b/ucb/source/ucp/webdav-neon/UCBDeadPropertyValue.cxx
@@ -36,7 +36,7 @@
using namespace webdav_ucp;
using namespace com::sun::star;
-//////////////////////////////////////////////////////////////////////////
+
struct UCBDeadPropertyValueParseContext
{
@@ -69,7 +69,7 @@ const OUString UCBDeadPropertyValue::aXMLEnd("</value></ucbprop>");
#define STATE_TYPE (STATE_TOP + 1)
#define STATE_VALUE (STATE_TOP + 2)
-//////////////////////////////////////////////////////////////////////////
+
extern "C" int UCBDeadPropertyValue_startelement_callback(
void *,
int parent,
@@ -97,7 +97,7 @@ extern "C" int UCBDeadPropertyValue_startelement_callback(
return NE_XML_DECLINE;
}
-//////////////////////////////////////////////////////////////////////////
+
extern "C" int UCBDeadPropertyValue_chardata_callback(
void *userdata,
int state,
@@ -128,7 +128,7 @@ extern "C" int UCBDeadPropertyValue_chardata_callback(
return 0; // zero to continue, non-zero to abort parsing
}
-//////////////////////////////////////////////////////////////////////////
+
extern "C" int UCBDeadPropertyValue_endelement_callback(
void *userdata,
int state,
@@ -158,13 +158,13 @@ extern "C" int UCBDeadPropertyValue_endelement_callback(
return 0; // zero to continue, non-zero to abort parsing
}
-//////////////////////////////////////////////////////////////////////////
+
static OUString encodeValue( const OUString & rValue )
{
// Note: I do not use the usual &amp; + &lt; + &gt; encoding, because
// I want to prevent any XML parser from trying to 'understand'
// the value. This caused problems:
- //
+
// Example:
// - Unencoded property value: x<z
// PROPPATCH:
@@ -194,7 +194,7 @@ static OUString encodeValue( const OUString & rValue )
return aResult.makeStringAndClear();
}
-//////////////////////////////////////////////////////////////////////////
+
static OUString decodeValue( const OUString & rValue )
{
OUStringBuffer aResult;
@@ -305,7 +305,7 @@ static OUString decodeValue( const OUString & rValue )
return aResult.makeStringAndClear();
}
-//////////////////////////////////////////////////////////////////////////
+
// static
bool UCBDeadPropertyValue::supportsType( const uno::Type & rType )
{
@@ -333,7 +333,7 @@ bool UCBDeadPropertyValue::supportsType( const uno::Type & rType )
return true;
}
-//////////////////////////////////////////////////////////////////////////
+
// static
bool UCBDeadPropertyValue::createFromXML( const OString & rInData,
uno::Any & rOutData )
@@ -417,7 +417,7 @@ bool UCBDeadPropertyValue::createFromXML( const OString & rInData,
return success;
}
-//////////////////////////////////////////////////////////////////////////
+
// static
bool UCBDeadPropertyValue::toXML( const uno::Any & rInData,
OUString & rOutData )
diff --git a/ucb/source/ucp/webdav-neon/webdavcontent.cxx b/ucb/source/ucp/webdav-neon/webdavcontent.cxx
index 0316facbeea2..db4e883ff4e4 100644
--- a/ucb/source/ucp/webdav-neon/webdavcontent.cxx
+++ b/ucb/source/ucp/webdav-neon/webdavcontent.cxx
@@ -92,15 +92,15 @@
using namespace com::sun::star;
using namespace webdav_ucp;
-//=========================================================================
-//=========================================================================
-//
+
+
+
// Content Implementation.
-//
-//=========================================================================
-//=========================================================================
-//=========================================================================
+
+
+
+
// ctr for content on an existing webdav resource
Content::Content(
const uno::Reference< uno::XComponentContext >& rxContext,
@@ -131,7 +131,7 @@ Content::Content(
}
}
-//=========================================================================
+
// ctr for content on an non-existing webdav resource
Content::Content(
const uno::Reference< uno::XComponentContext >& rxContext,
@@ -160,17 +160,17 @@ Content::Content(
// Do not set m_aEscapedTitle here! Content::insert relays on this!!!
}
-//=========================================================================
+
// virtual
Content::~Content()
{
}
-//=========================================================================
-//
+
+
// XInterface methods.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL Content::acquire()
@@ -179,7 +179,7 @@ void SAL_CALL Content::acquire()
ContentImplHelper::acquire();
}
-//=========================================================================
+
// virtual
void SAL_CALL Content::release()
throw( )
@@ -187,7 +187,7 @@ void SAL_CALL Content::release()
ContentImplHelper::release();
}
-//=========================================================================
+
// virtual
uno::Any SAL_CALL Content::queryInterface( const uno::Type & rType )
throw ( uno::RuntimeException )
@@ -228,15 +228,15 @@ uno::Any SAL_CALL Content::queryInterface( const uno::Type & rType )
return aRet.hasValue() ? aRet : ContentImplHelper::queryInterface( rType );
}
-//=========================================================================
-//
+
+
// XTypeProvider methods.
-//
-//=========================================================================
+
+
XTYPEPROVIDER_COMMON_IMPL( Content );
-//=========================================================================
+
// virtual
uno::Sequence< uno::Type > SAL_CALL Content::getTypes()
throw( uno::RuntimeException )
@@ -326,11 +326,11 @@ uno::Sequence< uno::Type > SAL_CALL Content::getTypes()
return (*pCollection).getTypes();
}
-//=========================================================================
-//
+
+
// XServiceInfo methods.
-//
-//=========================================================================
+
+
// virtual
OUString SAL_CALL Content::getImplementationName()
@@ -339,7 +339,7 @@ OUString SAL_CALL Content::getImplementationName()
return OUString( "com.sun.star.comp.ucb.WebDAVContent" );
}
-//=========================================================================
+
// virtual
uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames()
throw( uno::RuntimeException )
@@ -349,11 +349,11 @@ uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames()
return aSNS;
}
-//=========================================================================
-//
+
+
// XContent methods.
-//
-//=========================================================================
+
+
// virtual
OUString SAL_CALL Content::getContentType()
@@ -379,11 +379,11 @@ OUString SAL_CALL Content::getContentType()
return OUString( WEBDAV_CONTENT_TYPE );
}
-//=========================================================================
-//
+
+
// XCommandProcessor methods.
-//
-//=========================================================================
+
+
// virtual
uno::Any SAL_CALL Content::execute(
@@ -402,9 +402,9 @@ uno::Any SAL_CALL Content::execute(
if ( aCommand.Name == "getPropertyValues" )
{
- //////////////////////////////////////////////////////////////////
+
// getPropertyValues
- //////////////////////////////////////////////////////////////////
+
uno::Sequence< beans::Property > Properties;
if ( !( aCommand.Argument >>= Properties ) )
@@ -422,9 +422,9 @@ uno::Any SAL_CALL Content::execute(
}
else if ( aCommand.Name == "setPropertyValues" )
{
- //////////////////////////////////////////////////////////////////
+
// setPropertyValues
- //////////////////////////////////////////////////////////////////
+
uno::Sequence< beans::PropertyValue > aProperties;
if ( !( aCommand.Argument >>= aProperties ) )
@@ -453,9 +453,9 @@ uno::Any SAL_CALL Content::execute(
}
else if ( aCommand.Name == "getPropertySetInfo" )
{
- //////////////////////////////////////////////////////////////////
+
// getPropertySetInfo
- //////////////////////////////////////////////////////////////////
+
// Note: Implemented by base class.
aRet <<= getPropertySetInfo( Environment,
@@ -463,18 +463,18 @@ uno::Any SAL_CALL Content::execute(
}
else if ( aCommand.Name == "getCommandInfo" )
{
- //////////////////////////////////////////////////////////////////
+
// getCommandInfo
- //////////////////////////////////////////////////////////////////
+
// Note: Implemented by base class.
aRet <<= getCommandInfo( Environment, false );
}
else if ( aCommand.Name == "open" )
{
- //////////////////////////////////////////////////////////////////
+
// open
- //////////////////////////////////////////////////////////////////
+
ucb::OpenCommandArgument3 aOpenCommand;
ucb::OpenCommandArgument2 aTmp;
@@ -507,9 +507,9 @@ uno::Any SAL_CALL Content::execute(
}
else if ( aCommand.Name == "insert" )
{
- //////////////////////////////////////////////////////////////////
+
// insert
- //////////////////////////////////////////////////////////////////
+
ucb::InsertCommandArgument arg;
if ( !( aCommand.Argument >>= arg ) )
@@ -527,9 +527,9 @@ uno::Any SAL_CALL Content::execute(
}
else if ( aCommand.Name == "delete" )
{
- //////////////////////////////////////////////////////////////////
+
// delete
- //////////////////////////////////////////////////////////////////
+
sal_Bool bDeletePhysical = sal_False;
aCommand.Argument >>= bDeletePhysical;
@@ -569,10 +569,10 @@ uno::Any SAL_CALL Content::execute(
}
else if ( aCommand.Name == "transfer" && isFolder( Environment ) )
{
- //////////////////////////////////////////////////////////////////
+
// transfer
// ( Not available at documents )
- //////////////////////////////////////////////////////////////////
+
ucb::TransferInfo transferArgs;
if ( !( aCommand.Argument >>= transferArgs ) )
@@ -590,9 +590,9 @@ uno::Any SAL_CALL Content::execute(
}
else if ( aCommand.Name == "post" )
{
- //////////////////////////////////////////////////////////////////
+
// post
- //////////////////////////////////////////////////////////////////
+
ucb::PostCommandArgument2 aArg;
if ( !( aCommand.Argument >>= aArg ) )
@@ -610,25 +610,25 @@ uno::Any SAL_CALL Content::execute(
}
else if ( aCommand.Name == "lock" && supportsExclusiveWriteLock( Environment ) )
{
- //////////////////////////////////////////////////////////////////
+
// lock
- //////////////////////////////////////////////////////////////////
+
lock( Environment );
}
else if ( aCommand.Name == "unlock" && supportsExclusiveWriteLock( Environment ) )
{
- //////////////////////////////////////////////////////////////////
+
// unlock
- //////////////////////////////////////////////////////////////////
+
unlock( Environment );
}
else if ( aCommand.Name == "createNewContent" && isFolder( Environment ) )
{
- //////////////////////////////////////////////////////////////////
+
// createNewContent
- //////////////////////////////////////////////////////////////////
+
ucb::ContentInfo aArg;
if ( !( aCommand.Argument >>= aArg ) )
@@ -706,9 +706,9 @@ uno::Any SAL_CALL Content::execute(
}
else
{
- //////////////////////////////////////////////////////////////////
+
// Unsupported command
- //////////////////////////////////////////////////////////////////
+
ucbhelper::cancelCommandExecution(
uno::makeAny( ucb::UnsupportedCommandException(
@@ -725,7 +725,7 @@ uno::Any SAL_CALL Content::execute(
return aRet;
}
-//=========================================================================
+
// virtual
void SAL_CALL Content::abort( sal_Int32 /*CommandId*/ )
throw( uno::RuntimeException )
@@ -751,11 +751,11 @@ void SAL_CALL Content::abort( sal_Int32 /*CommandId*/ )
}
}
-//=========================================================================
-//
+
+
// XPropertyContainer methods.
-//
-//=========================================================================
+
+
void Content::addProperty( const ucb::PropertyCommandArgument& aCmdArg,
const uno::Reference< ucb::XCommandEnvironment >& xEnv )
@@ -789,10 +789,10 @@ void Content::addProperty( const ucb::PropertyCommandArgument& aCmdArg,
static_cast< ::cppu::OWeakObject * >( this ) );
}
- //////////////////////////////////////////////////////////////////////
+
// Make sure a property with the requested name does not already
// exist in dynamic and static(!) properties.
- //////////////////////////////////////////////////////////////////////
+
// Take into account special properties with custom namespace
// using <prop:the_propname xmlns:prop="the_namespace">
@@ -809,9 +809,9 @@ void Content::addProperty( const ucb::PropertyCommandArgument& aCmdArg,
throw beans::PropertyExistException();
}
- //////////////////////////////////////////////////////////////////////
+
// Add a new dynamic property.
- //////////////////////////////////////////////////////////////////////
+
ProppatchValue aValue(
PROPSET, aCmdArg.Property.Name, aCmdArg.DefaultValue );
@@ -902,9 +902,9 @@ void Content::removeProperty( const OUString& Name,
beans::NotRemoveableException,
uno::RuntimeException )
{
- //////////////////////////////////////////////////////////////////////
+
// Try to remove property from server.
- //////////////////////////////////////////////////////////////////////
+
try
{
@@ -1013,11 +1013,11 @@ void SAL_CALL Content::removeProperty( const OUString& Name )
uno::Reference< ucb::XCommandEnvironment >() );
}
-//=========================================================================
-//
+
+
// XContentCreator methods.
-//
-//=========================================================================
+
+
// virtual
uno::Sequence< ucb::ContentInfo > SAL_CALL
@@ -1053,7 +1053,7 @@ Content::queryCreatableContentsInfo()
return aSeq;
}
-//=========================================================================
+
// virtual
uno::Reference< ucb::XContent > SAL_CALL
Content::createNewContent( const ucb::ContentInfo& Info )
@@ -1105,7 +1105,7 @@ Content::createNewContent( const ucb::ContentInfo& Info )
}
}
-//=========================================================================
+
// virtual
OUString Content::getParentURL()
{
@@ -1135,11 +1135,11 @@ OUString Content::getParentURL()
return OUString( aURL.copy( 0, nPos + 1 ) );
}
-//=========================================================================
-//
+
+
// Non-interface methods.
-//
-//=========================================================================
+
+
// static
uno::Reference< sdbc::XRow > Content::getPropertyValues(
@@ -1226,7 +1226,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
return uno::Reference< sdbc::XRow >( xRow.get() );
}
-//=========================================================================
+
uno::Reference< sdbc::XRow > Content::getPropertyValues(
const uno::Sequence< beans::Property >& rProperties,
const uno::Reference< ucb::XCommandEnvironment >& xEnv )
@@ -1269,9 +1269,9 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
if ( !m_bTransient && !bHasAll )
{
- /////////////////////////////////////////////////////////////////////
+
// Obtain values from server...
- /////////////////////////////////////////////////////////////////////
+
// First, identify whether resource is DAV or not
bool bNetworkAccessAllowed = true;
@@ -1536,7 +1536,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
return xResultRow;
}
-//=========================================================================
+
uno::Sequence< uno::Any > Content::setPropertyValues(
const uno::Sequence< beans::PropertyValue >& rValues,
const uno::Reference< ucb::XCommandEnvironment >& xEnv )
@@ -1602,9 +1602,9 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
continue;
}
- //////////////////////////////////////////////////////////////////
+
// Mandatory props.
- //////////////////////////////////////////////////////////////////
+
if ( rName == "ContentType" )
{
@@ -1679,9 +1679,9 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
}
else
{
- //////////////////////////////////////////////////////////////
+
// Optional props.
- //////////////////////////////////////////////////////////////
+
OUString aSpecialName;
bool bIsSpecial = DAVProperties::isUCBSpecialProperty(
@@ -1933,7 +1933,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
return aRet;
}
-//=========================================================================
+
uno::Any Content::open(
const ucb::OpenCommandArgument3 & rArg,
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
@@ -2118,7 +2118,7 @@ uno::Any Content::open(
return aRet;
}
-//=========================================================================
+
void Content::post(
const ucb::PostCommandArgument2 & rArg,
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
@@ -2206,7 +2206,7 @@ void Content::post(
}
}
-//=========================================================================
+
void Content::queryChildren( ContentRefList& rChildren )
{
// Obtain a list with a snapshot of all currently instanciated contents
@@ -2257,7 +2257,7 @@ void Content::queryChildren( ContentRefList& rChildren )
}
}
-//=========================================================================
+
void Content::insert(
const uno::Reference< io::XInputStream > & xInputStream,
sal_Bool bReplaceExisting,
@@ -2501,7 +2501,7 @@ void Content::insert(
}
}
-//=========================================================================
+
void Content::transfer(
const ucb::TransferInfo & rArgs,
const uno::Reference< ucb::XCommandEnvironment >& Environment )
@@ -2529,7 +2529,7 @@ void Content::transfer(
aTargetURI = targetURI.GetPathBaseNameUnescaped();
// Check source's and target's URL scheme
- //
+
const OUString aScheme = sourceURI.GetScheme().toAsciiLowerCase();
if ( aScheme == WEBDAV_URL_SCHEME )
{
@@ -2572,7 +2572,7 @@ void Content::transfer(
// (Neon does not support cross-server copy/move)
// Check for same host
- //
+
if ( !sourceURI.GetHost().isEmpty() &&
( sourceURI.GetHost() != targetURI.GetHost() ) )
{
@@ -2737,7 +2737,7 @@ void Content::transfer(
}
}
-//=========================================================================
+
void Content::destroy( sal_Bool bDeletePhysical )
throw( uno::Exception )
{
@@ -2763,7 +2763,7 @@ void Content::destroy( sal_Bool bDeletePhysical )
}
}
-//=========================================================================
+
bool Content::supportsExclusiveWriteLock(
const uno::Reference< ucb::XCommandEnvironment >& Environment )
{
@@ -2789,7 +2789,7 @@ bool Content::supportsExclusiveWriteLock(
return false;
}
-//=========================================================================
+
void Content::lock(
const uno::Reference< ucb::XCommandEnvironment >& Environment )
throw( uno::Exception )
@@ -2831,7 +2831,7 @@ void Content::lock(
}
}
-//=========================================================================
+
void Content::unlock(
const uno::Reference< ucb::XCommandEnvironment >& Environment )
throw( uno::Exception )
@@ -2860,7 +2860,7 @@ void Content::unlock(
}
}
-//=========================================================================
+
sal_Bool Content::exchangeIdentity(
const uno::Reference< ucb::XContentIdentifier >& xNewId )
{
@@ -2927,7 +2927,7 @@ sal_Bool Content::exchangeIdentity(
return sal_False;
}
-//=========================================================================
+
sal_Bool Content::isFolder(
const uno::Reference< ucb::XCommandEnvironment >& xEnv )
throw( uno::Exception )
@@ -2957,7 +2957,7 @@ sal_Bool Content::isFolder(
return sal_False;
}
-//=========================================================================
+
uno::Any Content::MapDAVException( const DAVException & e, sal_Bool bWrite )
{
// Map DAVException...
@@ -3117,7 +3117,7 @@ uno::Any Content::MapDAVException( const DAVException & e, sal_Bool bWrite )
return aException;
}
-//=========================================================================
+
// static
bool Content::shouldAccessNetworkAfterException( const DAVException & e )
{
@@ -3131,7 +3131,7 @@ bool Content::shouldAccessNetworkAfterException( const DAVException & e )
return true;
}
-//=========================================================================
+
void Content::cancelCommandExecution(
const DAVException & e,
const uno::Reference< ucb::XCommandEnvironment > & xEnv,
@@ -3142,7 +3142,7 @@ void Content::cancelCommandExecution(
// Unreachable
}
-//=========================================================================
+
SAL_WNODEPRECATED_DECLARATIONS_PUSH
const OUString
Content::getBaseURI( const std::auto_ptr< DAVResourceAccess > & rResAccess )
@@ -3173,7 +3173,7 @@ Content::getBaseURI( const std::auto_ptr< DAVResourceAccess > & rResAccess )
return OUString( rResAccess->getURL() );
}
-//=========================================================================
+
Content::ResourceType Content::getResourceType(
const uno::Reference< ucb::XCommandEnvironment >& xEnv,
const std::auto_ptr< DAVResourceAccess > & rResAccess,
@@ -3259,7 +3259,7 @@ Content::ResourceType Content::getResourceType(
}
SAL_WNODEPRECATED_DECLARATIONS_POP
-//=========================================================================
+
Content::ResourceType Content::getResourceType(
const uno::Reference< ucb::XCommandEnvironment >& xEnv )
throw ( uno::Exception )
diff --git a/ucb/source/ucp/webdav-neon/webdavcontent.hxx b/ucb/source/ucp/webdav-neon/webdavcontent.hxx
index f2d378b657ab..421db5007953 100644
--- a/ucb/source/ucp/webdav-neon/webdavcontent.hxx
+++ b/ucb/source/ucp/webdav-neon/webdavcontent.hxx
@@ -62,12 +62,12 @@ namespace com { namespace sun { namespace star { namespace ucb {
namespace webdav_ucp
{
-//=========================================================================
+
// UNO service name for the content.
#define WEBDAV_CONTENT_SERVICE_NAME "com.sun.star.ucb.WebDAVContent"
-//=========================================================================
+
class ContentProvider;
class ContentProperties;
@@ -287,9 +287,9 @@ public:
com::sun::star::beans::NotRemoveableException,
com::sun::star::uno::RuntimeException );
- //////////////////////////////////////////////////////////////////////
+
// Additional interfaces
- //////////////////////////////////////////////////////////////////////
+
// XContentCreator
virtual com::sun::star::uno::Sequence<
@@ -301,9 +301,9 @@ public:
createNewContent( const com::sun::star::ucb::ContentInfo& Info )
throw( com::sun::star::uno::RuntimeException );
- //////////////////////////////////////////////////////////////////////
+
// Non-interface methods.
- //////////////////////////////////////////////////////////////////////
+
DAVResourceAccess & getResourceAccess() { return *m_xResAccess; }
diff --git a/ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx b/ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx
index bae5cb6c44e0..6ce9a7ad9a00 100644
--- a/ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx
+++ b/ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx
@@ -56,11 +56,11 @@
using namespace com::sun::star;
using namespace webdav_ucp;
-//=========================================================================
-//
+
+
// ContentProvider implementation.
-//
-//=========================================================================
+
+
bool ContentProvider::getProperty(
const OUString & rPropName, beans::Property & rProp, bool bStrict )
@@ -72,9 +72,9 @@ bool ContentProvider::getProperty(
{
m_pProps = new PropertyMap;
- //////////////////////////////////////////////////////////////
+
// Fill map of known properties...
- //////////////////////////////////////////////////////////////
+
// Mandatory UCB properties.
m_pProps->insert(
@@ -261,9 +261,9 @@ bool ContentProvider::getProperty(
}
}
- //////////////////////////////////////////////////////////////
+
// Lookup property.
- //////////////////////////////////////////////////////////////
+
beans::Property aProp;
aProp.Name = rPropName;
@@ -288,11 +288,11 @@ bool ContentProvider::getProperty(
return true;
}
-//=========================================================================
-//
+
+
// Content implementation.
-//
-//=========================================================================
+
+
// virtual
uno::Sequence< beans::Property > Content::getProperties(
@@ -514,7 +514,7 @@ uno::Sequence< beans::Property > Content::getProperties(
return aProperties;
}
-//=========================================================================
+
// virtual
uno::Sequence< ucb::CommandInfo > Content::getCommands(
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
@@ -523,9 +523,9 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
uno::Sequence< ucb::CommandInfo > aCmdInfo( 10 );
- ///////////////////////////////////////////////////////////////
+
// Mandatory commands
- ///////////////////////////////////////////////////////////////
+
aCmdInfo[ 0 ] =
ucb::CommandInfo(
@@ -550,9 +550,9 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
getCppuType( static_cast<
uno::Sequence< beans::PropertyValue > * >( 0 ) ) );
- ///////////////////////////////////////////////////////////////
+
// Optional standard commands
- ///////////////////////////////////////////////////////////////
+
aCmdInfo[ 4 ] =
ucb::CommandInfo(
@@ -572,9 +572,9 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
getCppuType( static_cast<
ucb::OpenCommandArgument2 * >( 0 ) ) );
- ///////////////////////////////////////////////////////////////
+
// New commands
- ///////////////////////////////////////////////////////////////
+
aCmdInfo[ 7 ] =
ucb::CommandInfo(
@@ -617,9 +617,9 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
if ( bFolder )
{
- ///////////////////////////////////////////////////////////////
+
// Optional standard commands
- ///////////////////////////////////////////////////////////////
+
aCmdInfo[ nPos ] =
ucb::CommandInfo(
diff --git a/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx b/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx
index f27bb81924d0..f6217bf2f642 100644
--- a/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx
+++ b/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx
@@ -50,11 +50,11 @@ using namespace webdav_ucp;
namespace webdav_ucp
{
-//=========================================================================
-//
+
+
// struct ResultListEntry.
-//
-//=========================================================================
+
+
struct ResultListEntry
{
@@ -69,19 +69,19 @@ struct ResultListEntry
{}
};
-//=========================================================================
-//
+
+
// ResultList.
-//
-//=========================================================================
+
+
typedef boost::ptr_vector<ResultListEntry> ResultList;
-//=========================================================================
-//
+
+
// struct DataSupplier_Impl.
-//
-//=========================================================================
+
+
struct DataSupplier_Impl
{
@@ -103,13 +103,13 @@ struct DataSupplier_Impl
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// DataSupplier Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
DataSupplier::DataSupplier(
const uno::Reference< uno::XComponentContext >& rxContext,
@@ -119,13 +119,13 @@ DataSupplier::DataSupplier(
{
}
-//=========================================================================
+
// virtual
DataSupplier::~DataSupplier()
{
}
-//=========================================================================
+
// virtual
OUString DataSupplier::queryContentIdentifierString( sal_uInt32 nIndex )
{
@@ -162,7 +162,7 @@ OUString DataSupplier::queryContentIdentifierString( sal_uInt32 nIndex )
return OUString();
}
-//=========================================================================
+
// virtual
uno::Reference< ucb::XContentIdentifier >
DataSupplier::queryContentIdentifier( sal_uInt32 nIndex )
@@ -191,7 +191,7 @@ DataSupplier::queryContentIdentifier( sal_uInt32 nIndex )
return uno::Reference< ucb::XContentIdentifier >();
}
-//=========================================================================
+
// virtual
uno::Reference< ucb::XContent >
DataSupplier::queryContent( sal_uInt32 nIndex )
@@ -228,7 +228,7 @@ DataSupplier::queryContent( sal_uInt32 nIndex )
return uno::Reference< ucb::XContent >();
}
-//=========================================================================
+
// virtual
bool DataSupplier::getResult( sal_uInt32 nIndex )
{
@@ -253,7 +253,7 @@ bool DataSupplier::getResult( sal_uInt32 nIndex )
return false;
}
-//=========================================================================
+
// virtual
sal_uInt32 DataSupplier::totalCount()
{
@@ -263,21 +263,21 @@ sal_uInt32 DataSupplier::totalCount()
return m_pImpl->m_aResults.size();
}
-//=========================================================================
+
// virtual
sal_uInt32 DataSupplier::currentCount()
{
return m_pImpl->m_aResults.size();
}
-//=========================================================================
+
// virtual
bool DataSupplier::isCountFinal()
{
return m_pImpl->m_bCountFinal;
}
-//=========================================================================
+
// virtual
uno::Reference< sdbc::XRow > DataSupplier::queryPropertyValues(
sal_uInt32 nIndex )
@@ -311,7 +311,7 @@ uno::Reference< sdbc::XRow > DataSupplier::queryPropertyValues(
return uno::Reference< sdbc::XRow >();
}
-//=========================================================================
+
// virtual
void DataSupplier::releasePropertyValues( sal_uInt32 nIndex )
{
@@ -321,13 +321,13 @@ void DataSupplier::releasePropertyValues( sal_uInt32 nIndex )
m_pImpl->m_aResults[ nIndex ].xRow = uno::Reference< sdbc::XRow >();
}
-//=========================================================================
+
// virtual
void DataSupplier::close()
{
}
-//=========================================================================
+
// virtual
void DataSupplier::validate()
throw( ucb::ResultSetException )
@@ -336,7 +336,7 @@ void DataSupplier::validate()
throw ucb::ResultSetException();
}
-//=========================================================================
+
sal_Bool DataSupplier::getData()
{
osl::ClearableGuard< osl::Mutex > aGuard( m_pImpl->m_aMutex );
diff --git a/ucb/source/ucp/webdav-neon/webdavprovider.cxx b/ucb/source/ucp/webdav-neon/webdavprovider.cxx
index 690d4da747db..39de9eacf218 100644
--- a/ucb/source/ucp/webdav-neon/webdavprovider.cxx
+++ b/ucb/source/ucp/webdav-neon/webdavprovider.cxx
@@ -42,13 +42,13 @@
using namespace com::sun::star;
using namespace webdav_ucp;
-//=========================================================================
-//=========================================================================
-//
+
+
+
// ContentProvider Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
ContentProvider::ContentProvider(
const uno::Reference< uno::XComponentContext >& rxContext )
@@ -58,58 +58,58 @@ ContentProvider::ContentProvider(
{
}
-//=========================================================================
+
// virtual
ContentProvider::~ContentProvider()
{
delete m_pProps;
}
-//=========================================================================
-//
+
+
// XInterface methods.
-//
-//=========================================================================
+
+
XINTERFACE_IMPL_3( ContentProvider,
lang::XTypeProvider,
lang::XServiceInfo,
ucb::XContentProvider );
-//=========================================================================
-//
+
+
// XTypeProvider methods.
-//
-//=========================================================================
+
+
XTYPEPROVIDER_IMPL_3( ContentProvider,
lang::XTypeProvider,
lang::XServiceInfo,
ucb::XContentProvider );
-//=========================================================================
-//
+
+
// XServiceInfo methods.
-//
-//=========================================================================
+
+
XSERVICEINFO_IMPL_1_CTX( ContentProvider,
OUString( "com.sun.star.comp.WebDAVContentProvider" ),
OUString( WEBDAV_CONTENT_PROVIDER_SERVICE_NAME ) );
-//=========================================================================
-//
+
+
// Service factory implementation.
-//
-//=========================================================================
+
+
ONE_INSTANCE_SERVICE_FACTORY_IMPL( ContentProvider );
-//=========================================================================
-//
+
+
// XContentProvider methods.
-//
-//=========================================================================
+
+
// virtual
uno::Reference< ucb::XContent > SAL_CALL
diff --git a/ucb/source/ucp/webdav-neon/webdavprovider.hxx b/ucb/source/ucp/webdav-neon/webdavprovider.hxx
index afd8ee78df4d..4e446f608618 100644
--- a/ucb/source/ucp/webdav-neon/webdavprovider.hxx
+++ b/ucb/source/ucp/webdav-neon/webdavprovider.hxx
@@ -38,7 +38,7 @@
namespace webdav_ucp {
-//=========================================================================
+
// UNO service name for the provider. This name will be used by the UCB to
// create instances of the provider.
@@ -76,7 +76,7 @@ namespace webdav_ucp {
#define WEBDAV_COLLECTION_TYPE \
"application/" WEBDAV_URL_SCHEME "-collection"
-//=========================================================================
+
class ContentProvider : public ::ucbhelper::ContentProviderImplHelper
{
@@ -105,13 +105,13 @@ public:
throw( ::com::sun::star::ucb::IllegalIdentifierException,
::com::sun::star::uno::RuntimeException );
- //////////////////////////////////////////////////////////////////////
+
// Additional interfaces
- //////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////////////////
+
+
// Non-interface methods.
- //////////////////////////////////////////////////////////////////////
+
rtl::Reference< DAVSessionFactory > getDAVSessionFactory()
{ return m_xDAVSessionFactory; }
diff --git a/ucb/source/ucp/webdav-neon/webdavresultset.cxx b/ucb/source/ucp/webdav-neon/webdavresultset.cxx
index 332071614fc0..53a7bbd7af55 100644
--- a/ucb/source/ucp/webdav-neon/webdavresultset.cxx
+++ b/ucb/source/ucp/webdav-neon/webdavresultset.cxx
@@ -42,13 +42,13 @@
using namespace com::sun::star;
using namespace webdav_ucp;
-//=========================================================================
-//=========================================================================
-//
+
+
+
// DynamicResultSet Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
DynamicResultSet::DynamicResultSet(
const uno::Reference< uno::XComponentContext >& rxContext,
@@ -61,11 +61,11 @@ DynamicResultSet::DynamicResultSet(
{
}
-//=========================================================================
-//
+
+
// Non-interface methods.
-//
-//=========================================================================
+
+
void DynamicResultSet::initStatic()
{
@@ -78,7 +78,7 @@ void DynamicResultSet::initStatic()
m_xEnv );
}
-//=========================================================================
+
void DynamicResultSet::initDynamic()
{
m_xResultSet1
diff --git a/ucb/source/ucp/webdav-neon/webdavservices.cxx b/ucb/source/ucp/webdav-neon/webdavservices.cxx
index 0d9cbdb8f159..e0c2cbf9eb94 100644
--- a/ucb/source/ucp/webdav-neon/webdavservices.cxx
+++ b/ucb/source/ucp/webdav-neon/webdavservices.cxx
@@ -33,7 +33,7 @@
using namespace com::sun::star;
-//=========================================================================
+
extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucpdav1_component_getFactory(
const sal_Char * pImplName, void * pServiceManager, void * /*pRegistryKey*/ )
{
@@ -44,9 +44,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucpdav1_component_getFactory(
pServiceManager ) );
uno::Reference< lang::XSingleServiceFactory > xFactory;
- //////////////////////////////////////////////////////////////////////
+
// WebDAV Content Provider.
- //////////////////////////////////////////////////////////////////////
+
if ( ::webdav_ucp::ContentProvider::getImplementationName_Static().
equalsAscii( pImplName ) )
@@ -54,7 +54,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucpdav1_component_getFactory(
xFactory = ::webdav_ucp::ContentProvider::createServiceFactory( xSMgr );
}
- //////////////////////////////////////////////////////////////////////
+
if ( xFactory.is() )
{
diff --git a/ucb/source/ucp/webdav/ContentProperties.cxx b/ucb/source/ucp/webdav/ContentProperties.cxx
index 64106e14694e..5766fcb17df5 100644
--- a/ucb/source/ucp/webdav/ContentProperties.cxx
+++ b/ucb/source/ucp/webdav/ContentProperties.cxx
@@ -64,13 +64,13 @@ Important: HTTP headers will not be mapped to DAV properties; only to UCB
properties. (Content-Length,Content-Type,Last-Modified)
*/
-//=========================================================================
-//=========================================================================
-//
+
+
+
// ContentProperties Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
// static member!
uno::Any ContentProperties::m_aEmptyAny;
@@ -116,7 +116,7 @@ ContentProperties::ContentProperties( const DAVResource& rResource )
m_bTrailingSlash = sal_True;
}
-//=========================================================================
+
ContentProperties::ContentProperties(
const OUString & rTitle, sal_Bool bFolder )
: m_xProps( new PropertyValueMap ),
@@ -130,7 +130,7 @@ ContentProperties::ContentProperties(
= PropertyValue( uno::makeAny( sal_Bool( !bFolder ) ), true );
}
-//=========================================================================
+
ContentProperties::ContentProperties( const OUString & rTitle )
: m_xProps( new PropertyValueMap ),
m_bTrailingSlash( sal_False )
@@ -139,14 +139,14 @@ ContentProperties::ContentProperties( const OUString & rTitle )
= PropertyValue( uno::makeAny( rTitle ), true );
}
-//=========================================================================
+
ContentProperties::ContentProperties()
: m_xProps( new PropertyValueMap ),
m_bTrailingSlash( sal_False )
{
}
-//=========================================================================
+
ContentProperties::ContentProperties( const ContentProperties & rOther )
: m_aEscapedTitle( rOther.m_aEscapedTitle ),
m_xProps( rOther.m_xProps.get()
@@ -156,7 +156,7 @@ ContentProperties::ContentProperties( const ContentProperties & rOther )
{
}
-//=========================================================================
+
bool ContentProperties::contains( const OUString & rName ) const
{
if ( get( rName ) )
@@ -165,7 +165,7 @@ bool ContentProperties::contains( const OUString & rName ) const
return false;
}
-//=========================================================================
+
const uno::Any & ContentProperties::getValue(
const OUString & rName ) const
{
@@ -176,7 +176,7 @@ const uno::Any & ContentProperties::getValue(
return m_aEmptyAny;
}
-//=========================================================================
+
const PropertyValue * ContentProperties::get(
const OUString & rName ) const
{
@@ -199,17 +199,17 @@ const PropertyValue * ContentProperties::get(
return &(*it).second;
}
-//=========================================================================
+
// static
void ContentProperties::UCBNamesToDAVNames(
const uno::Sequence< beans::Property > & rProps,
std::vector< OUString > & propertyNames,
bool bIncludeUnmatched /* = true */ )
{
- //////////////////////////////////////////////////////////////
+
// Assemble list of DAV properties to obtain from server.
// Append DAV properties needed to obtain requested UCB props.
- //////////////////////////////////////////////////////////////
+
// DAV UCB
// creationdate <- DateCreated
@@ -293,17 +293,17 @@ void ContentProperties::UCBNamesToDAVNames(
}
}
-//=========================================================================
+
// static
void ContentProperties::UCBNamesToHTTPNames(
const uno::Sequence< beans::Property > & rProps,
std::vector< OUString > & propertyNames,
bool bIncludeUnmatched /* = true */ )
{
- //////////////////////////////////////////////////////////////
+
// Assemble list of HTTP header names to obtain from server.
// Append HTTP headers needed to obtain requested UCB props.
- //////////////////////////////////////////////////////////////
+
// HTTP UCB
// Last-Modified <- DateModified
@@ -335,7 +335,7 @@ void ContentProperties::UCBNamesToHTTPNames(
}
}
-//=========================================================================
+
bool ContentProperties::containsAllNames(
const uno::Sequence< beans::Property >& rProps,
std::vector< OUString > & rNamesNotContained ) const
@@ -356,7 +356,7 @@ bool ContentProperties::containsAllNames(
return ( rNamesNotContained.size() == 0 );
}
-//=========================================================================
+
void ContentProperties::addProperties(
const std::vector< OUString > & rProps,
const ContentProperties & rContentProps )
@@ -385,7 +385,7 @@ void ContentProperties::addProperties(
}
}
-//=========================================================================
+
void ContentProperties::addProperties( const ContentProperties & rProps )
{
PropertyValueMap::const_iterator it = rProps.m_xProps->begin();
@@ -399,7 +399,7 @@ void ContentProperties::addProperties( const ContentProperties & rProps )
}
}
-//=========================================================================
+
void ContentProperties::addProperties(
const std::vector< DAVPropertyValue > & rProps )
{
@@ -413,13 +413,13 @@ void ContentProperties::addProperties(
}
}
-//=========================================================================
+
void ContentProperties::addProperty( const DAVPropertyValue & rProp )
{
addProperty( rProp.Name, rProp.Value, rProp.IsCaseSensitive );
}
-//=========================================================================
+
void ContentProperties::addProperty( const OUString & rName,
const com::sun::star::uno::Any & rValue,
bool bIsCaseSensitive )
@@ -534,13 +534,13 @@ void ContentProperties::addProperty( const OUString & rName,
(*m_xProps)[ rName ] = PropertyValue( rValue, bIsCaseSensitive );
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// CachableContentProperties Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
namespace
{
@@ -584,14 +584,14 @@ namespace
} // namespace
-//=========================================================================
+
CachableContentProperties::CachableContentProperties(
const ContentProperties & rProps )
{
addProperties( rProps );
}
-//=========================================================================
+
void CachableContentProperties::addProperties(
const ContentProperties & rProps )
{
@@ -611,7 +611,7 @@ void CachableContentProperties::addProperties(
}
}
-//=========================================================================
+
void CachableContentProperties::addProperties(
const std::vector< DAVPropertyValue > & rProps )
{
diff --git a/ucb/source/ucp/webdav/ContentProperties.hxx b/ucb/source/ucp/webdav/ContentProperties.hxx
index 2e7054be0646..286a699d9fc3 100644
--- a/ucb/source/ucp/webdav/ContentProperties.hxx
+++ b/ucb/source/ucp/webdav/ContentProperties.hxx
@@ -38,7 +38,7 @@ namespace http_dav_ucp
struct DAVResource;
-//=========================================================================
+
struct equalString
{
@@ -56,11 +56,11 @@ struct hashString
}
};
-//=========================================================================
-//
+
+
// PropertyValueMap.
-//
-//=========================================================================
+
+
class PropertyValue
{
diff --git a/ucb/source/ucp/webdav/DAVAuthListenerImpl.hxx b/ucb/source/ucp/webdav/DAVAuthListenerImpl.hxx
index 82822239da40..1f7ff038f18a 100644
--- a/ucb/source/ucp/webdav/DAVAuthListenerImpl.hxx
+++ b/ucb/source/ucp/webdav/DAVAuthListenerImpl.hxx
@@ -28,15 +28,15 @@
namespace http_dav_ucp
{
-//=========================================================================
-//=========================================================================
-//=========================================================================
-//
+
+
+
+
// class DAVAuthListenerImpl.
-//
-//=========================================================================
-//=========================================================================
+
+
+
class DAVAuthListener_Impl : public DAVAuthListener
diff --git a/ucb/source/ucp/webdav/DAVException.hxx b/ucb/source/ucp/webdav/DAVException.hxx
index 54b85003c82e..56ed531d9a28 100644
--- a/ucb/source/ucp/webdav/DAVException.hxx
+++ b/ucb/source/ucp/webdav/DAVException.hxx
@@ -27,9 +27,9 @@
namespace http_dav_ucp
{
-/////////////////////////////////////////////////////////////////////////////
+
// HTTP/WebDAV status codes
-/////////////////////////////////////////////////////////////////////////////
+
const sal_uInt16 SC_NONE = 0;
@@ -93,7 +93,7 @@ const sal_uInt16 SC_HTTP_VERSION_NOT_SUPPORTED = 505;
// DAV extensions
const sal_uInt16 SC_INSUFFICIENT_STORAGE = 507;
-/////////////////////////////////////////////////////////////////////////////
+
class DAVException
{
diff --git a/ucb/source/ucp/webdav/DAVResourceAccess.cxx b/ucb/source/ucp/webdav/DAVResourceAccess.cxx
index c997a4a03c9d..47219113a2f1 100644
--- a/ucb/source/ucp/webdav/DAVResourceAccess.cxx
+++ b/ucb/source/ucp/webdav/DAVResourceAccess.cxx
@@ -31,15 +31,15 @@
using namespace http_dav_ucp;
using namespace com::sun::star;
-//=========================================================================
-//=========================================================================
-//
+
+
+
// DAVAuthListener_Impl Implementation.
-//
-//=========================================================================
-//=========================================================================
-//=========================================================================
+
+
+
+
// virtual
int DAVAuthListener_Impl::authenticate(
const OUString & inRealm,
@@ -121,15 +121,15 @@ int DAVAuthListener_Impl::authenticate(
return -1;
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// DAVResourceAccess Implementation.
-//
-//=========================================================================
-//=========================================================================
-//=========================================================================
+
+
+
+
DAVResourceAccess::DAVResourceAccess(
const uno::Reference< uno::XComponentContext > & rContext,
rtl::Reference< DAVSessionFactory > const & rSessionFactory,
@@ -140,7 +140,7 @@ DAVResourceAccess::DAVResourceAccess(
{
}
-//=========================================================================
+
DAVResourceAccess::DAVResourceAccess( const DAVResourceAccess & rOther )
: m_aURL( rOther.m_aURL ),
m_aPath( rOther.m_aPath ),
@@ -151,7 +151,7 @@ DAVResourceAccess::DAVResourceAccess( const DAVResourceAccess & rOther )
{
}
-//=========================================================================
+
DAVResourceAccess & DAVResourceAccess::operator=(
const DAVResourceAccess & rOther )
{
@@ -165,7 +165,7 @@ DAVResourceAccess & DAVResourceAccess::operator=(
return *this;
}
-//=========================================================================
+
void DAVResourceAccess::PROPFIND(
const Depth nDepth,
const std::vector< OUString > & rPropertyNames,
@@ -209,7 +209,7 @@ void DAVResourceAccess::PROPFIND(
while ( bRetry );
}
-//=========================================================================
+
void DAVResourceAccess::PROPFIND(
const Depth nDepth,
std::vector< DAVResourceInfo > & rResInfo,
@@ -250,7 +250,7 @@ void DAVResourceAccess::PROPFIND(
while ( bRetry );
}
-//=========================================================================
+
void DAVResourceAccess::PROPPATCH(
const std::vector< ProppatchValue >& rValues,
const uno::Reference< ucb::XCommandEnvironment >& xEnv )
@@ -289,7 +289,7 @@ void DAVResourceAccess::PROPPATCH(
while ( bRetry );
}
-//=========================================================================
+
void DAVResourceAccess::HEAD(
const std::vector< OUString > & rHeaderNames,
DAVResource & rResource,
@@ -330,7 +330,7 @@ void DAVResourceAccess::HEAD(
while ( bRetry );
}
-//=========================================================================
+
uno::Reference< io::XInputStream > DAVResourceAccess::GET(
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
throw( DAVException )
@@ -371,7 +371,7 @@ uno::Reference< io::XInputStream > DAVResourceAccess::GET(
return xStream;
}
-//=========================================================================
+
void DAVResourceAccess::GET(
uno::Reference< io::XOutputStream > & rStream,
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
@@ -410,7 +410,7 @@ void DAVResourceAccess::GET(
while ( bRetry );
}
-//=========================================================================
+
uno::Reference< io::XInputStream > DAVResourceAccess::GET(
const std::vector< OUString > & rHeaderNames,
DAVResource & rResource,
@@ -455,7 +455,7 @@ uno::Reference< io::XInputStream > DAVResourceAccess::GET(
return xStream;
}
-//=========================================================================
+
uno::Reference< io::XInputStream > DAVResourceAccess::GET(
DAVRequestHeaders &rRequestHeaders,
const std::vector< OUString > & rHeaderNames,
@@ -500,7 +500,7 @@ uno::Reference< io::XInputStream > DAVResourceAccess::GET(
return xStream;
}
-//=========================================================================
+
void DAVResourceAccess::GET(
uno::Reference< io::XOutputStream > & rStream,
const std::vector< OUString > & rHeaderNames,
@@ -543,7 +543,7 @@ void DAVResourceAccess::GET(
while ( bRetry );
}
-//=========================================================================
+
void DAVResourceAccess::abort()
throw( DAVException )
{
@@ -553,7 +553,7 @@ void DAVResourceAccess::abort()
OSL_TRACE( "Not implemented. -> #i106766#" );
}
-//=========================================================================
+
namespace {
void resetInputStream( const uno::Reference< io::XInputStream > & rStream )
@@ -581,7 +581,7 @@ namespace {
} // namespace
-//=========================================================================
+
void DAVResourceAccess::PUT(
const uno::Reference< io::XInputStream > & rStream,
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
@@ -628,7 +628,7 @@ void DAVResourceAccess::PUT(
while ( bRetry );
}
-//=========================================================================
+
uno::Reference< io::XInputStream > DAVResourceAccess::POST(
const OUString & rContentType,
const OUString & rReferer,
@@ -691,7 +691,7 @@ uno::Reference< io::XInputStream > DAVResourceAccess::POST(
return xStream;
}
-//=========================================================================
+
void DAVResourceAccess::POST(
const OUString & rContentType,
const OUString & rReferer,
@@ -753,7 +753,7 @@ void DAVResourceAccess::POST(
while ( bRetry );
}
-//=========================================================================
+
void DAVResourceAccess::MKCOL(
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
throw( DAVException )
@@ -790,7 +790,7 @@ void DAVResourceAccess::MKCOL(
while ( bRetry );
}
-//=========================================================================
+
void DAVResourceAccess::COPY(
const OUString & rSourcePath,
const OUString & rDestinationURI,
@@ -832,7 +832,7 @@ void DAVResourceAccess::COPY(
while ( bRetry );
}
-//=========================================================================
+
void DAVResourceAccess::MOVE(
const OUString & rSourcePath,
const OUString & rDestinationURI,
@@ -874,7 +874,7 @@ void DAVResourceAccess::MOVE(
while ( bRetry );
}
-//=========================================================================
+
void DAVResourceAccess::DESTROY(
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
throw( DAVException )
@@ -911,7 +911,7 @@ void DAVResourceAccess::DESTROY(
while ( bRetry );
}
-//=========================================================================
+
// set new lock.
void DAVResourceAccess::LOCK(
ucb::Lock & inLock,
@@ -952,7 +952,7 @@ void DAVResourceAccess::LOCK(
}
#if 0 // currently not used, but please don't remove code
-//=========================================================================
+
// refresh existing lock.
sal_Int64 DAVResourceAccess::LOCK(
sal_Int64 nTimeout,
@@ -997,7 +997,7 @@ sal_Int64 DAVResourceAccess::LOCK(
}
#endif
-//=========================================================================
+
void DAVResourceAccess::UNLOCK(
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
throw ( DAVException )
@@ -1034,7 +1034,7 @@ void DAVResourceAccess::UNLOCK(
while ( bRetry );
}
-//=========================================================================
+
void DAVResourceAccess::setURL( const OUString & rNewURL )
throw( DAVException )
{
@@ -1043,7 +1043,7 @@ void DAVResourceAccess::setURL( const OUString & rNewURL )
m_aPath = OUString(); // Next initialize() will create new session.
}
-//=========================================================================
+
// init dav session and path
void DAVResourceAccess::initialize()
throw ( DAVException )
@@ -1085,7 +1085,7 @@ void DAVResourceAccess::initialize()
}
}
-//=========================================================================
+
const OUString & DAVResourceAccess::getRequestURI() const
{
OSL_ENSURE( m_xSession.is(),
@@ -1098,7 +1098,7 @@ const OUString & DAVResourceAccess::getRequestURI() const
return m_aPath;
}
-//=========================================================================
+
// static
void DAVResourceAccess::getUserRequestHeaders(
const uno::Reference< ucb::XCommandEnvironment > & xEnv,
@@ -1126,7 +1126,7 @@ void DAVResourceAccess::getUserRequestHeaders(
}
}
-//=========================================================================
+
sal_Bool DAVResourceAccess::detectRedirectCycle(
const OUString& rRedirectURL )
throw ( DAVException )
@@ -1149,7 +1149,7 @@ sal_Bool DAVResourceAccess::detectRedirectCycle(
return sal_False;
}
-//=========================================================================
+
void DAVResourceAccess::resetUri()
{
osl::Guard< osl::Mutex > aGuard( m_aMutex );
@@ -1164,7 +1164,7 @@ void DAVResourceAccess::resetUri()
}
}
-//=========================================================================
+
sal_Bool DAVResourceAccess::handleException( DAVException & e, int errorCount )
throw ( DAVException )
{
diff --git a/ucb/source/ucp/webdav/DAVResourceAccess.hxx b/ucb/source/ucp/webdav/DAVResourceAccess.hxx
index 4c142705c008..7dcecc473656 100644
--- a/ucb/source/ucp/webdav/DAVResourceAccess.hxx
+++ b/ucb/source/ucp/webdav/DAVResourceAccess.hxx
@@ -76,7 +76,7 @@ public:
{ return m_xSessionFactory; }
// DAV methods
- //
+
// allprop & named
void
diff --git a/ucb/source/ucp/webdav/DAVSession.hxx b/ucb/source/ucp/webdav/DAVSession.hxx
index e02ff46a1e77..9708fa0aa91a 100644
--- a/ucb/source/ucp/webdav/DAVSession.hxx
+++ b/ucb/source/ucp/webdav/DAVSession.hxx
@@ -64,7 +64,7 @@ public:
virtual sal_Bool UsesProxy() = 0;
// DAV methods
- //
+
// NOT USED
/*
diff --git a/ucb/source/ucp/webdav/PropertyMap.hxx b/ucb/source/ucp/webdav/PropertyMap.hxx
index 1729e07caeef..c1ec9828eeec 100644
--- a/ucb/source/ucp/webdav/PropertyMap.hxx
+++ b/ucb/source/ucp/webdav/PropertyMap.hxx
@@ -27,7 +27,7 @@
namespace http_dav_ucp {
-//=========================================================================
+
struct equalPropertyName
{
diff --git a/ucb/source/ucp/webdav/SerfInputStream.hxx b/ucb/source/ucp/webdav/SerfInputStream.hxx
index 2045df6913c4..03e2a373e9a9 100644
--- a/ucb/source/ucp/webdav/SerfInputStream.hxx
+++ b/ucb/source/ucp/webdav/SerfInputStream.hxx
@@ -31,11 +31,11 @@
namespace http_dav_ucp
{
-// -------------------------------------------------------------------
+
// SerfInputStream
// A simple XInputStream implementation provided specifically for use
// by the DAVSession::GET method.
-// -------------------------------------------------------------------
+
class SerfInputStream : public ::com::sun::star::io::XInputStream,
public ::com::sun::star::io::XSeekable,
public ::cppu::OWeakObject
diff --git a/ucb/source/ucp/webdav/SerfSession.hxx b/ucb/source/ucp/webdav/SerfSession.hxx
index 291c1858e6bf..b6cc98f6db44 100644
--- a/ucb/source/ucp/webdav/SerfSession.hxx
+++ b/ucb/source/ucp/webdav/SerfSession.hxx
@@ -37,10 +37,10 @@ namespace http_dav_ucp
class SerfRequestProcessor;
-// -------------------------------------------------------------------
+
// SerfSession
// A DAVSession implementation using the neon/expat library
-// -------------------------------------------------------------------
+
class SerfSession : public DAVSession
{
diff --git a/ucb/source/ucp/webdav/SerfUri.hxx b/ucb/source/ucp/webdav/SerfUri.hxx
index 2a05790baf14..5c069865dad6 100644
--- a/ucb/source/ucp/webdav/SerfUri.hxx
+++ b/ucb/source/ucp/webdav/SerfUri.hxx
@@ -31,10 +31,10 @@ namespace http_dav_ucp
#define DEFAULT_HTTP_PORT 80
#define DEFAULT_HTTPS_PORT 443
-// -------------------------------------------------------------------
+
// SerfUri
// A URI implementation for use with the neon/expat library
-// -------------------------------------------------------------------
+
class SerfUri
{
private:
diff --git a/ucb/source/ucp/webdav/UCBDeadPropertyValue.cxx b/ucb/source/ucp/webdav/UCBDeadPropertyValue.cxx
index ca48a107249a..b5938f7c5299 100644
--- a/ucb/source/ucp/webdav/UCBDeadPropertyValue.cxx
+++ b/ucb/source/ucp/webdav/UCBDeadPropertyValue.cxx
@@ -25,7 +25,7 @@
using namespace http_dav_ucp;
using namespace ::com::sun::star;
-//////////////////////////////////////////////////////////////////////////
+
struct UCBDeadPropertyValueParseContext
{
@@ -71,7 +71,7 @@ const OUString UCBDeadPropertyValue::aXMLEnd
#define STATE_VALUE (STATE_TOP + 2)
/*
-//////////////////////////////////////////////////////////////////////////
+
extern "C" int UCBDeadPropertyValue_startelement_callback(
void *,
int parent,
@@ -99,7 +99,7 @@ extern "C" int UCBDeadPropertyValue_startelement_callback(
return NE_XML_DECLINE;
}
-//////////////////////////////////////////////////////////////////////////
+
extern "C" int UCBDeadPropertyValue_chardata_callback(
void *userdata,
int state,
@@ -130,7 +130,7 @@ extern "C" int UCBDeadPropertyValue_chardata_callback(
return 0; // zero to continue, non-zero to abort parsing
}
-//////////////////////////////////////////////////////////////////////////
+
extern "C" int UCBDeadPropertyValue_endelement_callback(
void *userdata,
int state,
@@ -161,13 +161,13 @@ extern "C" int UCBDeadPropertyValue_endelement_callback(
}
*/
-//////////////////////////////////////////////////////////////////////////
+
static OUString encodeValue( const OUString & rValue )
{
// Note: I do not use the usual &amp; + &lt; + &gt; encoding, because
// I want to prevent any XML parser from trying to 'understand'
// the value. This caused problems:
- //
+
// Example:
// - Unencoded property value: x<z
// PROPPATCH:
@@ -198,7 +198,7 @@ static OUString encodeValue( const OUString & rValue )
}
/*
-//////////////////////////////////////////////////////////////////////////
+
static OUString decodeValue( const OUString & rValue )
{
OUStringBuffer aResult;
@@ -318,7 +318,7 @@ static OUString decodeValue( const OUString & rValue )
}
*/
-//////////////////////////////////////////////////////////////////////////
+
// static
bool UCBDeadPropertyValue::supportsType( const uno::Type & rType )
{
@@ -346,7 +346,7 @@ bool UCBDeadPropertyValue::supportsType( const uno::Type & rType )
return true;
}
-//////////////////////////////////////////////////////////////////////////
+
// static
bool UCBDeadPropertyValue::createFromXML( const OString & /*rInData*/,
uno::Any & /*rOutData*/ )
@@ -432,7 +432,7 @@ bool UCBDeadPropertyValue::createFromXML( const OString & /*rInData*/,
return success;
}
-//////////////////////////////////////////////////////////////////////////
+
// static
bool UCBDeadPropertyValue::toXML( const uno::Any & rInData,
OUString & rOutData )
diff --git a/ucb/source/ucp/webdav/webdavcontent.cxx b/ucb/source/ucp/webdav/webdavcontent.cxx
index 44a1d2c663bb..8c1b5269ab7b 100644
--- a/ucb/source/ucp/webdav/webdavcontent.cxx
+++ b/ucb/source/ucp/webdav/webdavcontent.cxx
@@ -187,15 +187,15 @@ static void lcl_sendPartialGETRequest( bool &bError,
}
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// Content Implementation.
-//
-//=========================================================================
-//=========================================================================
-//=========================================================================
+
+
+
+
// ctr for content on an existing webdav resource
Content::Content(
const uno::Reference< uno::XComponentContext >& rxContext,
@@ -226,7 +226,7 @@ Content::Content(
}
}
-//=========================================================================
+
// ctr for content on an non-existing webdav resource
Content::Content(
const uno::Reference< uno::XComponentContext >& rxContext,
@@ -255,17 +255,17 @@ Content::Content(
// Do not set m_aEscapedTitle here! Content::insert relays on this!!!
}
-//=========================================================================
+
// virtual
Content::~Content()
{
}
-//=========================================================================
-//
+
+
// XInterface methods.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL Content::acquire()
@@ -274,7 +274,7 @@ void SAL_CALL Content::acquire()
ContentImplHelper::acquire();
}
-//=========================================================================
+
// virtual
void SAL_CALL Content::release()
throw( )
@@ -282,7 +282,7 @@ void SAL_CALL Content::release()
ContentImplHelper::release();
}
-//=========================================================================
+
// virtual
uno::Any SAL_CALL Content::queryInterface( const uno::Type & rType )
throw ( uno::RuntimeException )
@@ -330,15 +330,15 @@ uno::Any SAL_CALL Content::queryInterface( const uno::Type & rType )
return aRet.hasValue() ? aRet : ContentImplHelper::queryInterface( rType );
}
-//=========================================================================
-//
+
+
// XTypeProvider methods.
-//
-//=========================================================================
+
+
XTYPEPROVIDER_COMMON_IMPL( Content );
-//=========================================================================
+
// virtual
uno::Sequence< uno::Type > SAL_CALL Content::getTypes()
throw( uno::RuntimeException )
@@ -428,11 +428,11 @@ uno::Sequence< uno::Type > SAL_CALL Content::getTypes()
return (*pCollection).getTypes();
}
-//=========================================================================
-//
+
+
// XServiceInfo methods.
-//
-//=========================================================================
+
+
// virtual
OUString SAL_CALL Content::getImplementationName()
@@ -441,7 +441,7 @@ OUString SAL_CALL Content::getImplementationName()
return OUString( "com.sun.star.comp.ucb.WebDAVContent" );
}
-//=========================================================================
+
// virtual
uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames()
throw( uno::RuntimeException )
@@ -451,11 +451,11 @@ uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames()
return aSNS;
}
-//=========================================================================
-//
+
+
// XContent methods.
-//
-//=========================================================================
+
+
// virtual
OUString SAL_CALL Content::getContentType()
@@ -481,11 +481,11 @@ OUString SAL_CALL Content::getContentType()
return OUString( WEBDAV_CONTENT_TYPE );
}
-//=========================================================================
-//
+
+
// XCommandProcessor methods.
-//
-//=========================================================================
+
+
// virtual
uno::Any SAL_CALL Content::execute(
@@ -505,9 +505,9 @@ uno::Any SAL_CALL Content::execute(
if ( aCommand.Name == "getPropertyValues" )
{
- //////////////////////////////////////////////////////////////////
+
// getPropertyValues
- //////////////////////////////////////////////////////////////////
+
uno::Sequence< beans::Property > Properties;
if ( !( aCommand.Argument >>= Properties ) )
@@ -525,9 +525,9 @@ uno::Any SAL_CALL Content::execute(
}
else if ( aCommand.Name == "setPropertyValues" )
{
- //////////////////////////////////////////////////////////////////
+
// setPropertyValues
- //////////////////////////////////////////////////////////////////
+
uno::Sequence< beans::PropertyValue > aProperties;
if ( !( aCommand.Argument >>= aProperties ) )
@@ -556,9 +556,9 @@ uno::Any SAL_CALL Content::execute(
}
else if ( aCommand.Name == "getPropertySetInfo" )
{
- //////////////////////////////////////////////////////////////////
+
// getPropertySetInfo
- //////////////////////////////////////////////////////////////////
+
// Note: Implemented by base class.
aRet <<= getPropertySetInfo( Environment,
@@ -566,18 +566,18 @@ uno::Any SAL_CALL Content::execute(
}
else if ( aCommand.Name == "getCommandInfo" )
{
- //////////////////////////////////////////////////////////////////
+
// getCommandInfo
- //////////////////////////////////////////////////////////////////
+
// Note: Implemented by base class.
aRet <<= getCommandInfo( Environment, sal_False );
}
else if ( aCommand.Name == "open" )
{
- //////////////////////////////////////////////////////////////////
+
// open
- //////////////////////////////////////////////////////////////////
+
ucb::OpenCommandArgument2 aOpenCommand;
if ( !( aCommand.Argument >>= aOpenCommand ) )
@@ -595,9 +595,9 @@ uno::Any SAL_CALL Content::execute(
}
else if ( aCommand.Name == "insert" )
{
- //////////////////////////////////////////////////////////////////
+
// insert
- //////////////////////////////////////////////////////////////////
+
ucb::InsertCommandArgument arg;
if ( !( aCommand.Argument >>= arg ) )
@@ -615,9 +615,9 @@ uno::Any SAL_CALL Content::execute(
}
else if ( aCommand.Name == "delete" )
{
- //////////////////////////////////////////////////////////////////
+
// delete
- //////////////////////////////////////////////////////////////////
+
sal_Bool bDeletePhysical = sal_False;
aCommand.Argument >>= bDeletePhysical;
@@ -655,10 +655,10 @@ uno::Any SAL_CALL Content::execute(
}
else if ( aCommand.Name == "transfer" && isFolder( Environment ) )
{
- //////////////////////////////////////////////////////////////////
+
// transfer
// ( Not available at documents )
- //////////////////////////////////////////////////////////////////
+
ucb::TransferInfo transferArgs;
if ( !( aCommand.Argument >>= transferArgs ) )
@@ -676,9 +676,9 @@ uno::Any SAL_CALL Content::execute(
}
else if ( aCommand.Name == "post" )
{
- //////////////////////////////////////////////////////////////////
+
// post
- //////////////////////////////////////////////////////////////////
+
ucb::PostCommandArgument2 aArg;
if ( !( aCommand.Argument >>= aArg ) )
@@ -697,27 +697,27 @@ uno::Any SAL_CALL Content::execute(
else if ( aCommand.Name == "lock" &&
supportsExclusiveWriteLock( Environment ) )
{
- //////////////////////////////////////////////////////////////////
+
// lock
- //////////////////////////////////////////////////////////////////
+
lock( Environment );
}
else if ( aCommand.Name == "unlock" &&
supportsExclusiveWriteLock( Environment ) )
{
- //////////////////////////////////////////////////////////////////
+
// unlock
- //////////////////////////////////////////////////////////////////
+
unlock( Environment );
}
else if ( aCommand.Name == "createNewContent" &&
isFolder( Environment ) )
{
- //////////////////////////////////////////////////////////////////
+
// createNewContent
- //////////////////////////////////////////////////////////////////
+
ucb::ContentInfo aArg;
if ( !( aCommand.Argument >>= aArg ) )
@@ -795,9 +795,9 @@ uno::Any SAL_CALL Content::execute(
}
else
{
- //////////////////////////////////////////////////////////////////
+
// Unsupported command
- //////////////////////////////////////////////////////////////////
+
ucbhelper::cancelCommandExecution(
uno::makeAny( ucb::UnsupportedCommandException(
@@ -814,7 +814,7 @@ uno::Any SAL_CALL Content::execute(
return aRet;
}
-//=========================================================================
+
// virtual
void SAL_CALL Content::abort( sal_Int32 /*CommandId*/ )
throw( uno::RuntimeException )
@@ -838,11 +838,11 @@ void SAL_CALL Content::abort( sal_Int32 /*CommandId*/ )
}
}
-//=========================================================================
-//
+
+
// XPropertyContainer methods.
-//
-//=========================================================================
+
+
void Content::addProperty( const com::sun::star::ucb::PropertyCommandArgument &aCmdArg,
const uno::Reference< ucb::XCommandEnvironment >& xEnv )
@@ -875,10 +875,10 @@ throw( beans::PropertyExistException,
OUString( "\"addProperty\" DefaultValue does not match Property.Type"),
static_cast< ::cppu::OWeakObject * >( this ) );
- //////////////////////////////////////////////////////////////////////
+
// Make sure a property with the requested name does not already
// exist in dynamic and static(!) properties.
- //////////////////////////////////////////////////////////////////////
+
// Take into account special properties with custom namespace
// using <prop:the_propname xmlns:prop="the_namespace">
@@ -893,9 +893,9 @@ throw( beans::PropertyExistException,
throw beans::PropertyExistException();
}
- //////////////////////////////////////////////////////////////////////
+
// Add a new dynamic property.
- //////////////////////////////////////////////////////////////////////
+
ProppatchValue aValue( PROPSET, aProperty.Name, aDefaultValue );
@@ -1006,9 +1006,9 @@ throw( beans::UnknownPropertyException,
}
#endif
- //////////////////////////////////////////////////////////////////////
+
// Try to remove property from server.
- //////////////////////////////////////////////////////////////////////
+
try
{
@@ -1117,11 +1117,11 @@ void SAL_CALL Content::removeProperty( const rtl::OUString& Name )
uno::Reference< ucb::XCommandEnvironment >() );
}
-//=========================================================================
-//
+
+
// XContentCreator methods.
-//
-//=========================================================================
+
+
// virtual
uno::Sequence< ucb::ContentInfo > SAL_CALL
@@ -1157,7 +1157,7 @@ Content::queryCreatableContentsInfo()
return aSeq;
}
-//=========================================================================
+
// virtual
uno::Reference< ucb::XContent > SAL_CALL
Content::createNewContent( const ucb::ContentInfo& Info )
@@ -1211,7 +1211,7 @@ Content::createNewContent( const ucb::ContentInfo& Info )
}
}
-//=========================================================================
+
// virtual
OUString Content::getParentURL()
{
@@ -1241,11 +1241,11 @@ OUString Content::getParentURL()
return OUString( aURL.copy( 0, nPos + 1 ) );
}
-//=========================================================================
-//
+
+
// Non-interface methods.
-//
-//=========================================================================
+
+
// static
uno::Reference< sdbc::XRow > Content::getPropertyValues(
@@ -1331,7 +1331,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
return uno::Reference< sdbc::XRow >( xRow.get() );
}
-//=========================================================================
+
uno::Reference< sdbc::XRow > Content::getPropertyValues(
const uno::Sequence< beans::Property >& rProperties,
const uno::Reference< ucb::XCommandEnvironment >& xEnv )
@@ -1374,9 +1374,9 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
if ( !m_bTransient && !bHasAll )
{
- /////////////////////////////////////////////////////////////////////
+
// Obtain values from server...
- /////////////////////////////////////////////////////////////////////
+
// First, identify whether resource is DAV or not
const ResourceType & rType = getResourceType( xEnv, xResAccess );
@@ -1675,7 +1675,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
return xResultRow;
}
-//=========================================================================
+
uno::Sequence< uno::Any > Content::setPropertyValues(
const uno::Sequence< beans::PropertyValue >& rValues,
const uno::Reference< ucb::XCommandEnvironment >& xEnv )
@@ -1739,9 +1739,9 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
continue;
}
- //////////////////////////////////////////////////////////////////
+
// Mandatory props.
- //////////////////////////////////////////////////////////////////
+
if ( rName == "ContentType" )
{
@@ -1816,9 +1816,9 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
}
else
{
- //////////////////////////////////////////////////////////////
+
// Optional props.
- //////////////////////////////////////////////////////////////
+
rtl::OUString aSpecialName;
bool bIsSpecial = DAVProperties::isUCBSpecialProperty( rName, aSpecialName );
@@ -2085,7 +2085,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
return aRet;
}
-//=========================================================================
+
uno::Any Content::open(
const ucb::OpenCommandArgument2 & rArg,
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
@@ -2255,7 +2255,7 @@ uno::Any Content::open(
return aRet;
}
-//=========================================================================
+
void Content::post(
const ucb::PostCommandArgument2 & rArg,
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
@@ -2339,7 +2339,7 @@ void Content::post(
}
}
-//=========================================================================
+
void Content::queryChildren( ContentRefList& rChildren )
{
// Obtain a list with a snapshot of all currently instanciated contents
@@ -2390,7 +2390,7 @@ void Content::queryChildren( ContentRefList& rChildren )
}
}
-//=========================================================================
+
void Content::insert(
const uno::Reference< io::XInputStream > & xInputStream,
sal_Bool bReplaceExisting,
@@ -2635,7 +2635,7 @@ void Content::insert(
}
}
-//=========================================================================
+
void Content::transfer(
const ucb::TransferInfo & rArgs,
const uno::Reference< ucb::XCommandEnvironment >& Environment )
@@ -2663,7 +2663,7 @@ void Content::transfer(
aTargetURI = targetURI.GetPathBaseNameUnescaped();
// Check source's and target's URL scheme
- //
+
const OUString aScheme = sourceURI.GetScheme().toAsciiLowerCase();
if ( aScheme == WEBDAV_URL_SCHEME )
{
@@ -2706,7 +2706,7 @@ void Content::transfer(
// (Neon does not support cross-server copy/move)
// Check for same host
- //
+
if ( sourceURI.GetHost().getLength() &&
( sourceURI.GetHost() != targetURI.GetHost() ) )
{
@@ -2871,7 +2871,7 @@ void Content::transfer(
}
}
-//=========================================================================
+
void Content::destroy( sal_Bool bDeletePhysical )
throw( uno::Exception )
{
@@ -2899,7 +2899,7 @@ void Content::destroy( sal_Bool bDeletePhysical )
}
}
-//=========================================================================
+
bool Content::supportsExclusiveWriteLock(
const uno::Reference< ucb::XCommandEnvironment >& Environment )
{
@@ -2925,7 +2925,7 @@ bool Content::supportsExclusiveWriteLock(
return false;
}
-//=========================================================================
+
void Content::lock(
const uno::Reference< ucb::XCommandEnvironment >& Environment )
throw( uno::Exception )
@@ -2964,7 +2964,7 @@ void Content::lock(
}
}
-//=========================================================================
+
void Content::unlock(
const uno::Reference< ucb::XCommandEnvironment >& Environment )
throw( uno::Exception )
@@ -2991,7 +2991,7 @@ void Content::unlock(
}
}
-//=========================================================================
+
sal_Bool Content::exchangeIdentity(
const uno::Reference< ucb::XContentIdentifier >& xNewId )
{
@@ -3059,7 +3059,7 @@ sal_Bool Content::exchangeIdentity(
return sal_False;
}
-//=========================================================================
+
sal_Bool Content::isFolder(
const uno::Reference< ucb::XCommandEnvironment >& xEnv )
throw( uno::Exception )
@@ -3089,7 +3089,7 @@ sal_Bool Content::isFolder(
return sal_False;
}
-//=========================================================================
+
uno::Any Content::MapDAVException( const DAVException & e, sal_Bool bWrite )
{
// Map DAVException...
@@ -3267,7 +3267,7 @@ uno::Any Content::MapDAVException( const DAVException & e, sal_Bool bWrite )
return aException;
}
-//=========================================================================
+
// static
bool Content::shouldAccessNetworkAfterException( const DAVException & e )
{
@@ -3281,7 +3281,7 @@ bool Content::shouldAccessNetworkAfterException( const DAVException & e )
return true;
}
-//=========================================================================
+
void Content::cancelCommandExecution(
const DAVException & e,
const uno::Reference< ucb::XCommandEnvironment > & xEnv,
@@ -3292,7 +3292,7 @@ void Content::cancelCommandExecution(
// Unreachable
}
-//=========================================================================
+
const OUString
Content::getBaseURI( const std::auto_ptr< DAVResourceAccess > & rResAccess )
{
@@ -3323,7 +3323,7 @@ Content::getBaseURI( const std::auto_ptr< DAVResourceAccess > & rResAccess )
return OUString( rResAccess->getURL() );
}
-//=========================================================================
+
const Content::ResourceType & Content::getResourceType(
const uno::Reference< ucb::XCommandEnvironment >& xEnv,
const std::auto_ptr< DAVResourceAccess > & rResAccess )
@@ -3392,7 +3392,7 @@ const Content::ResourceType & Content::getResourceType(
return m_eResourceType;
}
-//=========================================================================
+
const Content::ResourceType & Content::getResourceType(
const uno::Reference< ucb::XCommandEnvironment >& xEnv )
throw ( uno::Exception )
diff --git a/ucb/source/ucp/webdav/webdavcontent.hxx b/ucb/source/ucp/webdav/webdavcontent.hxx
index 52f14c840c30..1438f9396a6d 100644
--- a/ucb/source/ucp/webdav/webdavcontent.hxx
+++ b/ucb/source/ucp/webdav/webdavcontent.hxx
@@ -54,12 +54,12 @@ namespace com { namespace sun { namespace star { namespace ucb {
namespace http_dav_ucp
{
-//=========================================================================
+
// UNO service name for the content.
#define WEBDAV_CONTENT_SERVICE_NAME "com.sun.star.ucb.WebDAVContent"
-//=========================================================================
+
class ContentProvider;
class ContentProperties;
@@ -273,9 +273,9 @@ public:
com::sun::star::beans::NotRemoveableException,
com::sun::star::uno::RuntimeException );
- //////////////////////////////////////////////////////////////////////
+
// Additional interfaces
- //////////////////////////////////////////////////////////////////////
+
// XContentCreator
virtual com::sun::star::uno::Sequence<
@@ -287,9 +287,9 @@ public:
createNewContent( const com::sun::star::ucb::ContentInfo& Info )
throw( com::sun::star::uno::RuntimeException );
- //////////////////////////////////////////////////////////////////////
+
// Non-interface methods.
- //////////////////////////////////////////////////////////////////////
+
DAVResourceAccess & getResourceAccess() { return *m_xResAccess; }
diff --git a/ucb/source/ucp/webdav/webdavcontentcaps.cxx b/ucb/source/ucp/webdav/webdavcontentcaps.cxx
index 921d8e79378f..bbc984e85e80 100644
--- a/ucb/source/ucp/webdav/webdavcontentcaps.cxx
+++ b/ucb/source/ucp/webdav/webdavcontentcaps.cxx
@@ -40,11 +40,11 @@
using namespace com::sun::star;
using namespace http_dav_ucp;
-//=========================================================================
-//
+
+
// ContentProvider implementation.
-//
-//=========================================================================
+
+
bool ContentProvider::getProperty(
const OUString & rPropName, beans::Property & rProp, bool bStrict )
@@ -56,9 +56,9 @@ bool ContentProvider::getProperty(
{
m_pProps = new PropertyMap;
- //////////////////////////////////////////////////////////////
+
// Fill map of known properties...
- //////////////////////////////////////////////////////////////
+
// Mandatory UCB properties.
m_pProps->insert(
@@ -237,9 +237,9 @@ bool ContentProvider::getProperty(
}
}
- //////////////////////////////////////////////////////////////
+
// Lookup property.
- //////////////////////////////////////////////////////////////
+
beans::Property aProp;
aProp.Name = rPropName;
@@ -264,11 +264,11 @@ bool ContentProvider::getProperty(
return true;
}
-//=========================================================================
-//
+
+
// Content implementation.
-//
-//=========================================================================
+
+
// virtual
uno::Sequence< beans::Property > Content::getProperties(
@@ -486,7 +486,7 @@ uno::Sequence< beans::Property > Content::getProperties(
return aProperties;
}
-//=========================================================================
+
// virtual
uno::Sequence< ucb::CommandInfo > Content::getCommands(
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
@@ -495,9 +495,9 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
uno::Sequence< ucb::CommandInfo > aCmdInfo( 10 );
- ///////////////////////////////////////////////////////////////
+
// Mandatory commands
- ///////////////////////////////////////////////////////////////
+
aCmdInfo[ 0 ] =
ucb::CommandInfo(
@@ -522,9 +522,9 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
getCppuType( static_cast<
uno::Sequence< beans::PropertyValue > * >( 0 ) ) );
- ///////////////////////////////////////////////////////////////
+
// Optional standard commands
- ///////////////////////////////////////////////////////////////
+
aCmdInfo[ 4 ] =
ucb::CommandInfo(
@@ -544,9 +544,9 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
getCppuType( static_cast<
ucb::OpenCommandArgument2 * >( 0 ) ) );
- ///////////////////////////////////////////////////////////////
+
// New commands
- ///////////////////////////////////////////////////////////////
+
aCmdInfo[ 7 ] =
ucb::CommandInfo(
@@ -589,9 +589,9 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
if ( bFolder )
{
- ///////////////////////////////////////////////////////////////
+
// Optional standard commands
- ///////////////////////////////////////////////////////////////
+
aCmdInfo[ nPos ] =
ucb::CommandInfo(
diff --git a/ucb/source/ucp/webdav/webdavdatasupplier.cxx b/ucb/source/ucp/webdav/webdavdatasupplier.cxx
index d70b1619be96..c06176a40c03 100644
--- a/ucb/source/ucp/webdav/webdavdatasupplier.cxx
+++ b/ucb/source/ucp/webdav/webdavdatasupplier.cxx
@@ -35,11 +35,11 @@ using namespace http_dav_ucp;
namespace http_dav_ucp
{
-//=========================================================================
-//
+
+
// struct ResultListEntry.
-//
-//=========================================================================
+
+
struct ResultListEntry
{
@@ -53,19 +53,19 @@ struct ResultListEntry
~ResultListEntry() { delete pData; }
};
-//=========================================================================
-//
+
+
// ResultList.
-//
-//=========================================================================
+
+
typedef std::vector< ResultListEntry* > ResultList;
-//=========================================================================
-//
+
+
// struct DataSupplier_Impl.
-//
-//=========================================================================
+
+
struct DataSupplier_Impl
{
@@ -86,7 +86,7 @@ struct DataSupplier_Impl
~DataSupplier_Impl();
};
-//=========================================================================
+
DataSupplier_Impl::~DataSupplier_Impl()
{
ResultList::const_iterator it = m_aResults.begin();
@@ -101,13 +101,13 @@ DataSupplier_Impl::~DataSupplier_Impl()
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// DataSupplier Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
DataSupplier::DataSupplier(
const uno::Reference< uno::XComponentContext >& rxContext,
@@ -117,14 +117,14 @@ DataSupplier::DataSupplier(
{
}
-//=========================================================================
+
// virtual
DataSupplier::~DataSupplier()
{
delete m_pImpl;
}
-//=========================================================================
+
// virtual
OUString DataSupplier::queryContentIdentifierString( sal_uInt32 nIndex )
{
@@ -161,7 +161,7 @@ OUString DataSupplier::queryContentIdentifierString( sal_uInt32 nIndex )
return OUString();
}
-//=========================================================================
+
// virtual
uno::Reference< ucb::XContentIdentifier >
DataSupplier::queryContentIdentifier( sal_uInt32 nIndex )
@@ -190,7 +190,7 @@ DataSupplier::queryContentIdentifier( sal_uInt32 nIndex )
return uno::Reference< ucb::XContentIdentifier >();
}
-//=========================================================================
+
// virtual
uno::Reference< ucb::XContent >
DataSupplier::queryContent( sal_uInt32 nIndex )
@@ -227,7 +227,7 @@ DataSupplier::queryContent( sal_uInt32 nIndex )
return uno::Reference< ucb::XContent >();
}
-//=========================================================================
+
// virtual
bool DataSupplier::getResult( sal_uInt32 nIndex )
{
@@ -252,7 +252,7 @@ bool DataSupplier::getResult( sal_uInt32 nIndex )
return false;
}
-//=========================================================================
+
// virtual
sal_uInt32 DataSupplier::totalCount()
{
@@ -262,21 +262,21 @@ sal_uInt32 DataSupplier::totalCount()
return m_pImpl->m_aResults.size();
}
-//=========================================================================
+
// virtual
sal_uInt32 DataSupplier::currentCount()
{
return m_pImpl->m_aResults.size();
}
-//=========================================================================
+
// virtual
bool DataSupplier::isCountFinal()
{
return m_pImpl->m_bCountFinal;
}
-//=========================================================================
+
// virtual
uno::Reference< sdbc::XRow > DataSupplier::queryPropertyValues(
sal_uInt32 nIndex )
@@ -310,7 +310,7 @@ uno::Reference< sdbc::XRow > DataSupplier::queryPropertyValues(
return uno::Reference< sdbc::XRow >();
}
-//=========================================================================
+
// virtual
void DataSupplier::releasePropertyValues( sal_uInt32 nIndex )
{
@@ -320,13 +320,13 @@ void DataSupplier::releasePropertyValues( sal_uInt32 nIndex )
m_pImpl->m_aResults[ nIndex ]->xRow = uno::Reference< sdbc::XRow >();
}
-//=========================================================================
+
// virtual
void DataSupplier::close()
{
}
-//=========================================================================
+
// virtual
void DataSupplier::validate()
throw( ucb::ResultSetException )
@@ -335,7 +335,6 @@ void DataSupplier::validate()
throw ucb::ResultSetException();
}
-//=========================================================================
bool DataSupplier::getData()
{
osl::ClearableGuard< osl::Mutex > aGuard( m_pImpl->m_aMutex );
diff --git a/ucb/source/ucp/webdav/webdavprovider.cxx b/ucb/source/ucp/webdav/webdavprovider.cxx
index b30069d644f3..9cb0c4ced9c6 100644
--- a/ucb/source/ucp/webdav/webdavprovider.cxx
+++ b/ucb/source/ucp/webdav/webdavprovider.cxx
@@ -53,13 +53,13 @@ OUString &WebDAVUserAgent::operator()() const
return aUserAgent;
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// ContentProvider Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
ContentProvider::ContentProvider(
const uno::Reference< uno::XComponentContext >& rContext )
@@ -114,58 +114,58 @@ ContentProvider::ContentProvider(
}
}
-//=========================================================================
+
// virtual
ContentProvider::~ContentProvider()
{
delete m_pProps;
}
-//=========================================================================
-//
+
+
// XInterface methods.
-//
-//=========================================================================
+
+
XINTERFACE_IMPL_3( ContentProvider,
lang::XTypeProvider,
lang::XServiceInfo,
ucb::XContentProvider );
-//=========================================================================
-//
+
+
// XTypeProvider methods.
-//
-//=========================================================================
+
+
XTYPEPROVIDER_IMPL_3( ContentProvider,
lang::XTypeProvider,
lang::XServiceInfo,
ucb::XContentProvider );
-//=========================================================================
-//
+
+
// XServiceInfo methods.
-//
-//=========================================================================
+
+
XSERVICEINFO_IMPL_1_CTX( ContentProvider,
OUString( "com.sun.star.comp.WebDAVContentProvider" ),
OUString( WEBDAV_CONTENT_PROVIDER_SERVICE_NAME ) );
-//=========================================================================
-//
+
+
// Service factory implementation.
-//
-//=========================================================================
+
+
ONE_INSTANCE_SERVICE_FACTORY_IMPL( ContentProvider );
-//=========================================================================
-//
+
+
// XContentProvider methods.
-//
-//=========================================================================
+
+
// virtual
uno::Reference< ucb::XContent > SAL_CALL
diff --git a/ucb/source/ucp/webdav/webdavprovider.hxx b/ucb/source/ucp/webdav/webdavprovider.hxx
index 142c88e9759e..52148ec09b49 100644
--- a/ucb/source/ucp/webdav/webdavprovider.hxx
+++ b/ucb/source/ucp/webdav/webdavprovider.hxx
@@ -30,7 +30,7 @@
namespace http_dav_ucp {
-//=========================================================================
+
// UNO service name for the provider. This name will be used by the UCB to
// create instances of the provider.
@@ -64,7 +64,7 @@ namespace http_dav_ucp {
#define WEBDAV_COLLECTION_TYPE \
"application/" WEBDAV_URL_SCHEME "-collection"
-//=========================================================================
+
class ContentProvider : public ::ucbhelper::ContentProviderImplHelper
{
@@ -93,13 +93,13 @@ public:
throw( ::com::sun::star::ucb::IllegalIdentifierException,
::com::sun::star::uno::RuntimeException );
- //////////////////////////////////////////////////////////////////////
+
// Additional interfaces
- //////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////////////////
+
+
// Non-interface methods.
- //////////////////////////////////////////////////////////////////////
+
rtl::Reference< DAVSessionFactory > getDAVSessionFactory()
{ return m_xDAVSessionFactory; }
diff --git a/ucb/source/ucp/webdav/webdavresponseparser.cxx b/ucb/source/ucp/webdav/webdavresponseparser.cxx
index dc1ffb6de750..8be333a1be34 100644
--- a/ucb/source/ucp/webdav/webdavresponseparser.cxx
+++ b/ucb/source/ucp/webdav/webdavresponseparser.cxx
@@ -30,11 +30,11 @@
#include <map>
#include <unordered_map>
-//////////////////////////////////////////////////////////////////////////////
+
using namespace com::sun::star;
-//////////////////////////////////////////////////////////////////////////////
+
// WebDAVNamespace enum and StringToEnum converter
namespace
@@ -63,9 +63,7 @@ namespace
}
} // end of anonymous namespace
-//////////////////////////////////////////////////////////////////////////////
// WebDAVName enum and StringToEnum converter using unordered_map
-
namespace
{
enum WebDAVName
@@ -136,7 +134,7 @@ namespace
}
} // end of anonymous namespace
-//////////////////////////////////////////////////////////////////////////////
+
// WebDAVContext, holding information for each start/endElement pair
namespace
@@ -271,7 +269,7 @@ namespace
}
} // end of anonymous namespace
-//////////////////////////////////////////////////////////////////////////////
+
// the Xml parser itself
namespace
@@ -786,7 +784,7 @@ namespace
}
} // end of anonymous namespace
-//////////////////////////////////////////////////////////////////////////////
+
// wrapper for various calls to the parser
namespace
@@ -840,7 +838,7 @@ namespace
}
} // end of anonymous namespace
-//////////////////////////////////////////////////////////////////////////////
+
// helper to parse a XML WebDAV response
namespace http_dav_ucp
diff --git a/ucb/source/ucp/webdav/webdavresponseparser.hxx b/ucb/source/ucp/webdav/webdavresponseparser.hxx
index f385895a06b7..ceadd8a705ba 100644
--- a/ucb/source/ucp/webdav/webdavresponseparser.hxx
+++ b/ucb/source/ucp/webdav/webdavresponseparser.hxx
@@ -25,7 +25,7 @@
#include "DAVResource.hxx"
#include <vector>
-//////////////////////////////////////////////////////////////////////////////
+
namespace http_dav_ucp
{
@@ -33,11 +33,11 @@ namespace http_dav_ucp
std::vector< DAVResourceInfo > parseWebDAVPropNameResponse(const com::sun::star::uno::Reference< com::sun::star::io::XInputStream >& xInputStream);
} // namespace http_dav_ucp
-//////////////////////////////////////////////////////////////////////////////
+
#endif // _WEBDAVRESPONSEPARSER_HXX_
-//////////////////////////////////////////////////////////////////////////////
+
// eof
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/ucb/source/ucp/webdav/webdavresultset.cxx b/ucb/source/ucp/webdav/webdavresultset.cxx
index ca6b56b1f9ff..fc1418031091 100644
--- a/ucb/source/ucp/webdav/webdavresultset.cxx
+++ b/ucb/source/ucp/webdav/webdavresultset.cxx
@@ -35,13 +35,13 @@
using namespace com::sun::star;
using namespace http_dav_ucp;
-//=========================================================================
-//=========================================================================
-//
+
+
+
// DynamicResultSet Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
DynamicResultSet::DynamicResultSet(
const uno::Reference< uno::XComponentContext >& rxContext,
@@ -54,11 +54,11 @@ DynamicResultSet::DynamicResultSet(
{
}
-//=========================================================================
-//
+
+
// Non-interface methods.
-//
-//=========================================================================
+
+
void DynamicResultSet::initStatic()
{
@@ -71,7 +71,7 @@ void DynamicResultSet::initStatic()
m_xEnv );
}
-//=========================================================================
+
void DynamicResultSet::initDynamic()
{
m_xResultSet1
diff --git a/ucb/source/ucp/webdav/webdavservices.cxx b/ucb/source/ucp/webdav/webdavservices.cxx
index 2aaaea128ef4..4b85a977d73f 100644
--- a/ucb/source/ucp/webdav/webdavservices.cxx
+++ b/ucb/source/ucp/webdav/webdavservices.cxx
@@ -25,14 +25,14 @@
using namespace com::sun::star;
-//=========================================================================
+
extern "C" void SAL_CALL component_getImplementationEnvironment(
const sal_Char ** ppEnvTypeName, uno_Environment ** /*ppEnv*/ )
{
*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}
-//=========================================================================
+
extern "C" void * SAL_CALL component_getFactory(
const sal_Char * pImplName, void * pServiceManager, void * /*pRegistryKey*/ )
{
@@ -43,9 +43,9 @@ extern "C" void * SAL_CALL component_getFactory(
pServiceManager ) );
uno::Reference< lang::XSingleServiceFactory > xFactory;
- //////////////////////////////////////////////////////////////////////
+
// WebDAV Content Provider.
- //////////////////////////////////////////////////////////////////////
+
if ( ::http_dav_ucp::ContentProvider::getImplementationName_Static().
equalsAscii( pImplName ) )
@@ -53,7 +53,7 @@ extern "C" void * SAL_CALL component_getFactory(
xFactory = ::http_dav_ucp::ContentProvider::createServiceFactory( xSMgr );
}
- //////////////////////////////////////////////////////////////////////
+
if ( xFactory.is() )
{
diff --git a/ucb/workben/cachemap/cachemaptest.cxx b/ucb/workben/cachemap/cachemaptest.cxx
index 660276d67dff..dce04341c4d3 100644
--- a/ucb/workben/cachemap/cachemaptest.cxx
+++ b/ucb/workben/cachemap/cachemaptest.cxx
@@ -151,7 +151,7 @@ int main()
// unxsols3.pro: Version 1: 9137 ms.
// Version 2: 8634 ms.
// Version 3: 3166 ms.
-//
+
// wntmsci7.pro: Version 1: 3846 ms.
// Version 2: 5598 ms.
// Version 3: 2704 ms.
diff --git a/ucb/workben/ucb/srcharg.cxx b/ucb/workben/ucb/srcharg.cxx
index 67836dc43807..f63587bd6a18 100644
--- a/ucb/workben/ucb/srcharg.cxx
+++ b/ucb/workben/ucb/srcharg.cxx
@@ -33,11 +33,11 @@ using namespace unnamed_chaos_ucbdemo_srcharg;
using namespace com::sun::star;
-//============================================================================
-//
+
+
// skipWhiteSpace
-//
-//============================================================================
+
+
namespace unnamed_chaos_ucbdemo_srcharg {
@@ -48,11 +48,11 @@ void skipWhiteSpace(sal_Unicode const *& rBegin, sal_Unicode const * pEnd)
++rBegin;
}
-//============================================================================
-//
+
+
// scanAtom
-//
-//============================================================================
+
+
String scanAtom(sal_Unicode const *& rBegin, sal_Unicode const * pEnd)
{
@@ -62,11 +62,11 @@ String scanAtom(sal_Unicode const *& rBegin, sal_Unicode const * pEnd)
return String(pTheBegin, rBegin - pTheBegin);
}
-//============================================================================
-//
+
+
// scanProperty
-//
-//============================================================================
+
+
String scanProperty(sal_Unicode const *& rBegin, sal_Unicode const * pEnd)
{
@@ -77,11 +77,11 @@ String scanProperty(sal_Unicode const *& rBegin, sal_Unicode const * pEnd)
return String(pTheBegin, rBegin - pTheBegin);
}
-//============================================================================
-//
+
+
// scanOperator
-//
-//============================================================================
+
+
String scanOperator(sal_Unicode const *& rBegin, sal_Unicode const * pEnd)
{
@@ -95,11 +95,11 @@ String scanOperator(sal_Unicode const *& rBegin, sal_Unicode const * pEnd)
}
-//============================================================================
-//
+
+
// parseSearchArgument
-//
-//============================================================================
+
+
bool parseSearchArgument(String const & rInput, ucb::SearchInfo & rInfo)
{
diff --git a/ucb/workben/ucb/srcharg.hxx b/ucb/workben/ucb/srcharg.hxx
index 04bdcdb95202..da485ee6f987 100644
--- a/ucb/workben/ucb/srcharg.hxx
+++ b/ucb/workben/ucb/srcharg.hxx
@@ -25,7 +25,7 @@ namespace com { namespace sun { namespace star { namespace ucb {
struct SearchInfo;
} } } }
-//============================================================================
+
bool parseSearchArgument(String const & rInput,
com::sun::star::ucb::SearchInfo & rInfo);
diff --git a/ucb/workben/ucb/ucbdemo.cxx b/ucb/workben/ucb/ucbdemo.cxx
index f9dbb1c72a33..d4cf14c72c54 100644
--- a/ucb/workben/ucb/ucbdemo.cxx
+++ b/ucb/workben/ucb/ucbdemo.cxx
@@ -156,11 +156,11 @@ void MessagePrinter::print( const OUString& rText )
}
}
-//============================================================================
-//
+
+
// TestOutputStream
-//
-//============================================================================
+
+
class TestOutputStream:
public cppu::OWeakObject,
@@ -190,7 +190,7 @@ public:
OUString getStart() const;
};
-//============================================================================
+
// virtual
uno::Any SAL_CALL
TestOutputStream::queryInterface(const uno::Type & rType)
@@ -201,7 +201,7 @@ TestOutputStream::queryInterface(const uno::Type & rType)
return aRet.hasValue() ? aRet : OWeakObject::queryInterface(rType);
}
-//============================================================================
+
// virtual
void SAL_CALL TestOutputStream::writeBytes(
const uno::Sequence< sal_Int8 > & rData)
@@ -218,7 +218,7 @@ void SAL_CALL TestOutputStream::writeBytes(
nLen, RTL_TEXTENCODING_ISO_8859_1);
}
-//============================================================================
+
OUString TestOutputStream::getStart() const
{
OUString sResult = m_sStart;
@@ -295,7 +295,7 @@ OUString ProgressHandler::toString(const uno::Any & rStatus)
return OUString("(Unknown object)");
}
-//============================================================================
+
// virtual
uno::Any SAL_CALL
ProgressHandler::queryInterface( const uno::Type & rType )
@@ -307,7 +307,7 @@ ProgressHandler::queryInterface( const uno::Type & rType )
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
-//============================================================================
+
// virtual
void SAL_CALL ProgressHandler::push(const uno::Any & rStatus)
throw (uno::RuntimeException)
@@ -317,7 +317,7 @@ void SAL_CALL ProgressHandler::push(const uno::Any & rStatus)
m_rPrinter.print(sMessage);
}
-//============================================================================
+
// virtual
void SAL_CALL ProgressHandler::update(const uno::Any & rStatus)
throw (uno::RuntimeException)
@@ -327,7 +327,7 @@ void SAL_CALL ProgressHandler::update(const uno::Any & rStatus)
m_rPrinter.print(sMessage);
}
-//============================================================================
+
// virtual
void SAL_CALL ProgressHandler::pop() throw (uno::RuntimeException)
{
@@ -535,9 +535,9 @@ UcbTaskEnvironment::~UcbTaskEnvironment()
}
-//
+
// XInterface methods
-//
+
// virtual
@@ -809,10 +809,10 @@ UcbContent* UcbContent::create(
if ( !rURL.Len() )
return NULL;
- //////////////////////////////////////////////////////////////////////
+
// Get XContentIdentifier interface from UCB and let it create an
// identifer for the given URL.
- //////////////////////////////////////////////////////////////////////
+
uno::Reference< ucb::XContentIdentifierFactory > xIdFac =
rUCB.getContentIdentifierFactory();
@@ -824,10 +824,10 @@ UcbContent* UcbContent::create(
if ( !xId.is() )
return NULL;
- //////////////////////////////////////////////////////////////////////
+
// Get XContentProvider interface from UCB and let it create a
// content for the given identifier.
- //////////////////////////////////////////////////////////////////////
+
uno::Reference< ucb::XContentProvider > xProv
= rUCB.getContentProvider();
@@ -1502,9 +1502,9 @@ void UcbContent::removeProperty( const OUString& rName )
}
-//
+
// XInterface methods
-//
+
// virtual
@@ -1537,9 +1537,9 @@ void SAL_CALL UcbContent::release()
}
-//
+
// XEventListener methods.
-//
+
// virtual
@@ -1550,9 +1550,9 @@ void SAL_CALL UcbContent::disposing( const lang::EventObject& /*Source*/ )
}
-//
+
// XContentEventListener methods,
-//
+
// virtual
@@ -1612,9 +1612,9 @@ void SAL_CALL UcbContent::contentEvent( const ucb::ContentEvent& evt )
}
-//
+
// XPropertiesChangeListener methods.
-//
+
// virtual
@@ -2244,9 +2244,9 @@ MyApp aMyApp;
// virtual
void MyApp::Main()
{
- //////////////////////////////////////////////////////////////////////
+
// Read command line params.
- //////////////////////////////////////////////////////////////////////
+
OUString aConfigurationKey1( UCB_CONFIGURATION_KEY1_LOCAL);
OUString aConfigurationKey2( UCB_CONFIGURATION_KEY2_OFFICE);
@@ -2277,9 +2277,9 @@ void MyApp::Main()
}
}
- //////////////////////////////////////////////////////////////////////
+
// Initialize local Service Manager and basic services.
- //////////////////////////////////////////////////////////////////////
+
uno::Reference< lang::XMultiServiceFactory > xFac;
try
@@ -2311,9 +2311,9 @@ void MyApp::Main()
uno::Reference< lang::XComponent > xComponent( xFac, uno::UNO_QUERY );
- //////////////////////////////////////////////////////////////////////
+
// Create Application Window...
- //////////////////////////////////////////////////////////////////////
+
Help::EnableBalloonHelp();
@@ -2326,21 +2326,21 @@ void MyApp::Main()
pMyWin->Show();
- //////////////////////////////////////////////////////////////////////
+
// Go...
- //////////////////////////////////////////////////////////////////////
+
Execute();
- //////////////////////////////////////////////////////////////////////
+
// Destroy Application Window...
- //////////////////////////////////////////////////////////////////////
+
delete pMyWin;
- //////////////////////////////////////////////////////////////////////
+
// Cleanup.
- //////////////////////////////////////////////////////////////////////
+
::ucbhelper::ContentBroker::deinitialize();