LibreOffice Module dbaccess (master) 1
commandcontainer.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
23
24#include <com/sun/star/lang/XSingleServiceFactory.hpp>
25
27
28namespace dbaccess
29{
30// OCommandContainer
31
32typedef ::cppu::ImplHelper1 < css::lang::XSingleServiceFactory
34
37{
39
40public:
44 const css::uno::Reference< css::uno::XComponentContext >& _xORB
45 ,const css::uno::Reference< css::uno::XInterface >& _xParentContainer
46 ,const TContentPtr& _pImpl
47 ,bool _bTables
48 );
49
51
52 virtual css::uno::Sequence<css::uno::Type> SAL_CALL getTypes() override;
53 virtual css::uno::Sequence<sal_Int8> SAL_CALL getImplementationId() override;
54
55 // XSingleServiceFactory
56 virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance( ) override;
57 virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments( const css::uno::Sequence< css::uno::Any >& aArguments ) override;
58
59protected:
60 virtual ~OCommandContainer() override;
61
62 // ODefinitionContainer
63 virtual css::uno::Reference< css::ucb::XContent > createObject(const OUString& _rName) override;
64
65protected:
66 // OContentHelper overridables
67 virtual OUString determineContentType() const override;
68};
69
70} // namespace dbaccess
71
72/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance() override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
OCommandContainer(const css::uno::Reference< css::uno::XComponentContext > &_xORB, const css::uno::Reference< css::uno::XInterface > &_xParentContainer, const TContentPtr &_pImpl, bool _bTables)
constructs the container.
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments(const css::uno::Sequence< css::uno::Any > &aArguments) override
virtual css::uno::Reference< css::ucb::XContent > createObject(const OUString &_rName) override
create an object from its persistent data within the configuration.
virtual OUString determineContentType() const override
Sequence< PropertyValue > aArguments
Definition: intercept.cxx:88
Type
std::shared_ptr< OContentHelper_Impl > TContentPtr
::cppu::ImplHelper1< css::lang::XSingleServiceFactory > OCommandContainer_BASE
signed char sal_Int8
#define DECLARE_XINTERFACE()