diff options
author | Alexander Wilms <f.alexander.wilms@gmail.com> | 2014-02-25 22:38:20 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-26 07:31:08 -0600 |
commit | 060ab521fa0d5d6b9fcb97eab4718c04e8aec944 (patch) | |
tree | 398b92af90dbe2130f45969d2fd86a0922c0e2b9 /ucb/source/ucp/tdoc | |
parent | 482ab0d09620f92eb3618125930dc7c4c8335b5e (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/source/ucp/tdoc')
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_content.cxx | 220 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_content.hxx | 14 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_contentcaps.cxx | 198 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_datasupplier.cxx | 26 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_docmgr.cxx | 92 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_docmgr.hxx | 6 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx | 44 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_passwordrequest.cxx | 62 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_provider.cxx | 94 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_provider.hxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_resultset.cxx | 22 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_services.cxx | 12 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_stgelems.cxx | 280 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_stgelems.hxx | 8 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_storage.cxx | 38 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_uri.cxx | 12 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_uri.hxx | 4 |
17 files changed, 568 insertions, 568 deletions
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 { |