LibreOffice Module connectivity (master) 1
View.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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#pragma once
10
12
13#include <com/sun/star/sdbcx/XAlterView.hpp>
14#include <com/sun/star/sdbc/XConnection.hpp>
15
18
20{
22typedef ::cppu::ImplHelper1<css::sdbcx::XAlterView> View_IBASE;
23
24class View : public View_Base, public View_IBASE
25{
26public:
27 View(const css::uno::Reference<css::sdbc::XConnection>& _rxConnection, bool _bCaseSensitive,
28 const OUString& _rSchemaName, const OUString& _rName);
29
30 // UNO
31 virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type& aType) override;
32 virtual void SAL_CALL acquire() noexcept override;
33 virtual void SAL_CALL release() noexcept override;
34
35 virtual css::uno::Sequence<css::uno::Type> SAL_CALL getTypes() override;
36 virtual css::uno::Sequence<sal_Int8> SAL_CALL getImplementationId() override;
37
38 // XAlterView
39 virtual void SAL_CALL alterCommand(const OUString& NewCommand) override;
40
41protected:
42 virtual ~View() override;
43
44protected:
45 // OPropertyContainer
46 virtual void SAL_CALL getFastPropertyValue(css::uno::Any& _rValue,
47 sal_Int32 _nHandle) const override;
48
49private:
51 OUString impl_getCommand() const;
52
53private:
54 css::uno::Reference<css::sdbc::XConnection> m_xConnection;
55
57};
58
59} // namespace connectivity::firebird
60/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &rValue, sal_Int32 nHandle) const override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
Definition: View.cxx:42
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &_rValue, sal_Int32 _nHandle) const override
Definition: View.cxx:53
View(const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, bool _bCaseSensitive, const OUString &_rSchemaName, const OUString &_rName)
Definition: View.cxx:17
virtual void SAL_CALL alterCommand(const OUString &NewCommand) override
Definition: View.cxx:47
virtual ~View() override
Definition: View.cxx:25
css::uno::Reference< css::sdbc::XConnection > m_xConnection
Definition: View.hxx:54
OUString impl_getCommand() const
retrieves the current command of the View
Definition: View.cxx:66
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
Definition: View.cxx:37
virtual void SAL_CALL acquire() noexcept override
Definition: View.cxx:27
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &aType) override
Definition: View.cxx:29
virtual void SAL_CALL release() noexcept override
Definition: View.cxx:28
::cppu::ImplHelper1< css::sdbcx::XAlterView > View_IBASE
Definition: View.hxx:22
::connectivity::sdbcx::OView View_Base
Definition: View.hxx:21