tdf#130857 qt weld: Support "Java Start Parameters" dialog
[LibreOffice.git] / xmlhelp / source / cxxhelp / provider / content.hxx
blob362797a419eaf19ed43e19db0f248845d0de7263
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 #pragma once
22 #include <ucbhelper/contenthelper.hxx>
24 #include "urlparameter.hxx"
26 namespace com::sun::star::beans {
27 struct Property;
28 struct PropertyValue;
30 namespace com::sun::star::sdbc {
31 class XRow;
34 namespace chelp
37 class Databases;
39 class Content : public ::ucbhelper::ContentImplHelper
41 public:
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;
50 // XInterface
51 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
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;
57 // XServiceInfo
58 virtual OUString SAL_CALL
59 getImplementationName() override;
61 virtual css::uno::Sequence< OUString > SAL_CALL
62 getSupportedServiceNames() override;
64 // XContent
65 virtual OUString SAL_CALL
66 getContentType() override;
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;
74 virtual void SAL_CALL
75 abort( sal_Int32 CommandId ) override;
77 private:
79 // private members;
81 URLParameter m_aURLParameter;
82 Databases* m_pDatabases;
84 // private methods
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: */