1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
22 #include <ucbhelper/contenthelper.hxx>
24 #include "urlparameter.hxx"
26 namespace com::sun::star::beans
{
30 namespace com::sun::star::sdbc
{
39 class Content
: public ::ucbhelper::ContentImplHelper
43 Content( const css::uno::Reference
< css::uno::XComponentContext
>& rxContext
,
44 ::ucbhelper::ContentProviderImplHelper
* pProvider
,
45 const css::uno::Reference
< css::ucb::XContentIdentifier
>& Identifier
,
46 Databases
* pDatabases
);
48 virtual ~Content() override
;
51 virtual css::uno::Any SAL_CALL
queryInterface( const css::uno::Type
& rType
) override
;
54 virtual css::uno::Sequence
< sal_Int8
> SAL_CALL
getImplementationId() override
;
55 virtual css::uno::Sequence
< css::uno::Type
> SAL_CALL
getTypes() override
;
58 virtual OUString SAL_CALL
59 getImplementationName() override
;
61 virtual css::uno::Sequence
< OUString
> SAL_CALL
62 getSupportedServiceNames() override
;
65 virtual OUString SAL_CALL
66 getContentType() override
;
69 virtual css::uno::Any SAL_CALL
70 execute( const css::ucb::Command
& aCommand
,
72 const css::uno::Reference
< css::ucb::XCommandEnvironment
>& Environment
) override
;
75 abort( sal_Int32 CommandId
) override
;
81 URLParameter m_aURLParameter
;
82 Databases
* m_pDatabases
;
86 virtual css::uno::Sequence
< css::beans::Property
>
87 getProperties( const css::uno::Reference
< css::ucb::XCommandEnvironment
> & xEnv
) override
;
88 virtual css::uno::Sequence
< css::ucb::CommandInfo
>
89 getCommands( const css::uno::Reference
< css::ucb::XCommandEnvironment
> & xEnv
) override
;
91 virtual OUString
getParentURL() override
{ return OUString(); }
93 css::uno::Reference
< css::sdbc::XRow
>
94 getPropertyValues( const css::uno::Sequence
< css::beans::Property
>& rProperties
);
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */