Tag: cws_src680_qiq User: fs Date: 06/05/24 07:57:36 Modified: /dba/dbaccess/source/core/dataaccess/ commandcontainer.cxx, commandcontainer.hxx
Log: #i51143# File Changes: Directory: /dba/dbaccess/source/core/dataaccess/ ================================================ File [changed]: commandcontainer.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/commandcontainer.cxx?r1=1.11&r2=1.11.124.1 Delta lines: +6 -3 ------------------- --- commandcontainer.cxx 8 Sep 2005 10:43:21 -0000 1.11 +++ commandcontainer.cxx 24 May 2006 14:57:33 -0000 1.11.124.1 @@ -4,9 +4,9 @@ * * $RCSfile: commandcontainer.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.11.124.1 $ * - * last change: $Author: rt $ $Date: 2005/09/08 10:43:21 $ + * last change: $Author: fs $ $Date: 2006/05/24 14:57:33 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -93,16 +93,19 @@ return new OComponentDefinition(*this, _rName,m_xORB,pItem->m_aDocumentMap.find(_rName)->second,m_bTables); return new OCommandDefinition(*this, _rName,m_xORB,pItem->m_aDocumentMap.find(_rName)->second); } + // ----------------------------------------------------------------------------- Reference< XInterface > SAL_CALL OCommandContainer::createInstanceWithArguments(const Sequence< Any >& aArguments ) throw (Exception, RuntimeException) { return createInstance( ); } + // ----------------------------------------------------------------------------- Reference< XInterface > SAL_CALL OCommandContainer::createInstance( ) throw (Exception, RuntimeException) { return m_xORB->createInstance(m_bTables ? SERVICE_SDB_TABLEDEFINITION : SERVICE_SDB_COMMAND_DEFINITION); } + //........................................................................ } // namespace dbaccess //........................................................................ File [changed]: commandcontainer.hxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/commandcontainer.hxx?r1=1.7.124.1&r2=1.7.124.2 Delta lines: +12 -9 -------------------- --- commandcontainer.hxx 24 May 2006 09:12:35 -0000 1.7.124.1 +++ commandcontainer.hxx 24 May 2006 14:57:33 -0000 1.7.124.2 @@ -4,9 +4,9 @@ * * $RCSfile: commandcontainer.hxx,v $ * - * $Revision: 1.7.124.1 $ + * $Revision: 1.7.124.2 $ * - * last change: $Author: fs $ $Date: 2006/05/24 09:12:35 $ + * last change: $Author: fs $ $Date: 2006/05/24 14:57:33 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -39,9 +39,11 @@ #ifndef _DBA_CORE_DEFINITIONCONTAINER_HXX_ #include "definitioncontainer.hxx" #endif + #ifndef _COM_SUN_STAR_LANG_XSINGLESERVICEFACTORY_HPP_ #include <com/sun/star/lang/XSingleServiceFactory.hpp> #endif + #ifndef _CPPUHELPER_IMPLBASE1_HXX_ #include <cppuhelper/implbase1.hxx> #endif @@ -50,15 +52,18 @@ namespace dbaccess { //........................................................................ -typedef ::cppu::ImplHelper1< ::com::sun::star::lang::XSingleServiceFactory > OCommandContainer_BASE; //========================================================================== -//= OCommandContainer - collection of command descriptions +//= OCommandContainer //========================================================================== +typedef ::cppu::ImplHelper1 < ::com::sun::star::lang::XSingleServiceFactory + > OCommandContainer_BASE; + class OCommandContainer : public ODefinitionContainer ,public OCommandContainer_BASE { sal_Bool m_bTables; + public: /** constructs the container.<BR> */ @@ -69,19 +74,17 @@ ,sal_Bool _bTables ); - // ::com::sun::star::uno::XInterface DECLARE_XINTERFACE( ) -// com::sun::star::lang::XTypeProvider DECLARE_TYPEPROVIDER( ); - // ::com::sun::star::lang::XSingleServiceFactory + // XSingleServiceFactory virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL createInstance( ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL createInstanceWithArguments( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException); + protected: virtual ~OCommandContainer(); - -// ODefinitionContainer + // ODefinitionContainer virtual ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent > createObject(const ::rtl::OUString& _rName); }; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
