1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef _DBA_COREDATAACCESS_COMMANDCONTAINER_HXX_ 25 #define _DBA_COREDATAACCESS_COMMANDCONTAINER_HXX_ 26 27 #ifndef _DBA_CORE_DEFINITIONCONTAINER_HXX_ 28 #include "definitioncontainer.hxx" 29 #endif 30 31 #ifndef _COM_SUN_STAR_LANG_XSINGLESERVICEFACTORY_HPP_ 32 #include <com/sun/star/lang/XSingleServiceFactory.hpp> 33 #endif 34 35 #ifndef _CPPUHELPER_IMPLBASE1_HXX_ 36 #include <cppuhelper/implbase1.hxx> 37 #endif 38 39 //........................................................................ 40 namespace dbaccess 41 { 42 //........................................................................ 43 //========================================================================== 44 //= OCommandContainer 45 //========================================================================== 46 47 typedef ::cppu::ImplHelper1 < ::com::sun::star::lang::XSingleServiceFactory 48 > OCommandContainer_BASE; 49 50 class OCommandContainer : public ODefinitionContainer 51 ,public OCommandContainer_BASE 52 { 53 sal_Bool m_bTables; 54 55 public: 56 /** constructs the container.<BR> 57 */ 58 OCommandContainer( 59 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _xORB 60 ,const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _xParentContainer 61 ,const TContentPtr& _pImpl 62 ,sal_Bool _bTables 63 ); 64 65 DECLARE_XINTERFACE( ) 66 DECLARE_TYPEPROVIDER( ); 67 68 // XSingleServiceFactory 69 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); 70 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); 71 72 protected: 73 virtual ~OCommandContainer(); 74 75 // ODefinitionContainer 76 virtual ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent > createObject(const ::rtl::OUString& _rName); 77 78 protected: 79 // OContentHelper overridables 80 virtual ::rtl::OUString determineContentType() const; 81 }; 82 83 //........................................................................ 84 } // namespace dbaccess 85 //........................................................................ 86 87 #endif // _DBA_COREDATAACCESS_COMMANDCONTAINER_HXX_ 88 89 90