LibreOffice Module xmlhelp (master) 1
content.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 "urlparameter.hxx"
25
26namespace com::sun::star::beans {
27 struct Property;
28 struct PropertyValue;
29}
30namespace com::sun::star::sdbc {
31 class XRow;
32}
33
34namespace chelp
35{
36
37 class Databases;
38
40 {
41 public:
42
43 Content( const css::uno::Reference< css::uno::XComponentContext >& rxContext,
45 const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier,
46 Databases* pDatabases );
47
48 virtual ~Content() override;
49
50 // XInterface
51 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
52
53 // XTypeProvider
54 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
55 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
56
57 // XServiceInfo
58 virtual OUString SAL_CALL
59 getImplementationName() override;
60
61 virtual css::uno::Sequence< OUString > SAL_CALL
62 getSupportedServiceNames() override;
63
64 // XContent
65 virtual OUString SAL_CALL
66 getContentType() override;
67
68 // XCommandProcessor
69 virtual css::uno::Any SAL_CALL
70 execute( const css::ucb::Command& aCommand,
71 sal_Int32 CommandId,
72 const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) override;
73
74 virtual void SAL_CALL
75 abort( sal_Int32 CommandId ) override;
76
77 private:
78
79 // private members;
80
83
84 // private methods
85
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;
90
91 virtual OUString getParentURL() override { return OUString(); }
92
93 css::uno::Reference< css::sdbc::XRow >
94 getPropertyValues( const css::uno::Sequence< css::beans::Property >& rProperties );
95 };
96
97}
98
99/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual OUString getParentURL() override
Definition: content.hxx:91
Databases * m_pDatabases
Definition: content.hxx:82
virtual css::uno::Any SAL_CALL execute(const css::ucb::Command &aCommand, sal_Int32 CommandId, const css::uno::Reference< css::ucb::XCommandEnvironment > &Environment) override
virtual css::uno::Sequence< css::ucb::CommandInfo > getCommands(const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) override
virtual css::uno::Sequence< css::beans::Property > getProperties(const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) override
URLParameter m_aURLParameter
Definition: content.hxx:81
Content(const css::uno::Reference< css::uno::XComponentContext > &rxContext, ::ucbhelper::ContentProviderImplHelper *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier, Databases *pDatabases)
virtual OUString SAL_CALL getImplementationName() override
Definition: content.cxx:101
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: content.cxx:107
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
Definition: content.cxx:81
virtual OUString SAL_CALL getContentType() override
Definition: content.cxx:115
virtual void SAL_CALL abort(sal_Int32 CommandId) override
Definition: content.cxx:123
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
css::uno::Reference< css::sdbc::XRow > getPropertyValues(const css::uno::Sequence< css::beans::Property > &rProperties)
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
virtual ~Content() override
Definition: content.cxx:65