Bump version to 5.0-14
[LibreOffice.git] / dbaccess / source / core / dataaccess / commandcontainer.hxx
blob38984af8c51906c8659de90a99d66e58c7b785f3
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_DBACCESS_SOURCE_CORE_DATAACCESS_COMMANDCONTAINER_HXX
21 #define INCLUDED_DBACCESS_SOURCE_CORE_DATAACCESS_COMMANDCONTAINER_HXX
23 #include "definitioncontainer.hxx"
25 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
27 #include <cppuhelper/implbase1.hxx>
29 namespace dbaccess
31 // OCommandContainer
33 typedef ::cppu::ImplHelper1 < ::com::sun::star::lang::XSingleServiceFactory
34 > OCommandContainer_BASE;
36 class OCommandContainer : public ODefinitionContainer
37 ,public OCommandContainer_BASE
39 bool m_bTables;
41 public:
42 /** constructs the container.<BR>
44 OCommandContainer(
45 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _xORB
46 ,const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _xParentContainer
47 ,const TContentPtr& _pImpl
48 ,bool _bTables
51 DECLARE_XINTERFACE( )
53 virtual css::uno::Sequence<css::uno::Type> SAL_CALL getTypes()
54 throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
55 virtual css::uno::Sequence<sal_Int8> SAL_CALL getImplementationId()
56 throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
58 // XSingleServiceFactory
59 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, std::exception) SAL_OVERRIDE;
60 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, std::exception) SAL_OVERRIDE;
62 protected:
63 virtual ~OCommandContainer();
65 // ODefinitionContainer
66 virtual ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent > createObject(const OUString& _rName) SAL_OVERRIDE;
68 protected:
69 // OContentHelper overridables
70 virtual OUString determineContentType() const SAL_OVERRIDE;
73 } // namespace dbaccess
75 #endif // INCLUDED_DBACCESS_SOURCE_CORE_DATAACCESS_COMMANDCONTAINER_HXX
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */