LibreOffice Module connectivity (master) 1
mysqlc_view.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/sdbcx/XAlterView.hpp>
25#include <com/sun/star/sdbc/XConnection.hpp>
26
29
31{
33typedef ::cppu::ImplHelper1<css::sdbcx::XAlterView> View_IBASE;
34
35class View : public View_Base, public View_IBASE
36{
37public:
38 View(const css::uno::Reference<css::sdbc::XConnection>& _rxConnection, bool _bCaseSensitive,
39 const OUString& _rSchemaName, const OUString& _rName);
40
41 // UNO
42 virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type& aType) override;
43 virtual void SAL_CALL acquire() noexcept override;
44 virtual void SAL_CALL release() noexcept override;
45
46 virtual css::uno::Sequence<css::uno::Type> SAL_CALL getTypes() override;
47 virtual css::uno::Sequence<sal_Int8> SAL_CALL getImplementationId() override;
48
49 // XAlterView
50 virtual void SAL_CALL alterCommand(const OUString& NewCommand) override;
51
52protected:
53 virtual ~View() override;
54
55protected:
56 // OPropertyContainer
57 virtual void SAL_CALL getFastPropertyValue(css::uno::Any& _rValue,
58 sal_Int32 _nHandle) const override;
59
60private:
62 OUString impl_getCommand() const;
63
64private:
65 css::uno::Reference<css::sdbc::XConnection> m_xConnection;
66
68};
69
70} // namespace connectivity::mysqlc
71
72/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &rValue, sal_Int32 nHandle) const override
virtual ~View() override
Definition: mysqlc_view.cxx:36
virtual void SAL_CALL release() noexcept override
Definition: mysqlc_view.cxx:39
View(const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, bool _bCaseSensitive, const OUString &_rSchemaName, const OUString &_rName)
Definition: mysqlc_view.cxx:28
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
Definition: mysqlc_view.cxx:53
css::uno::Reference< css::sdbc::XConnection > m_xConnection
Definition: mysqlc_view.hxx:65
virtual void SAL_CALL alterCommand(const OUString &NewCommand) override
Definition: mysqlc_view.cxx:58
virtual void SAL_CALL acquire() noexcept override
Definition: mysqlc_view.cxx:38
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
Definition: mysqlc_view.cxx:48
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &_rValue, sal_Int32 _nHandle) const override
Definition: mysqlc_view.cxx:64
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &aType) override
Definition: mysqlc_view.cxx:40
OUString impl_getCommand() const
retrieves the current command of the View
Definition: mysqlc_view.cxx:77
::connectivity::sdbcx::OView View_Base
Definition: mysqlc_view.hxx:32
::cppu::ImplHelper1< css::sdbcx::XAlterView > View_IBASE
Definition: mysqlc_view.hxx:33