LibreOffice Module connectivity (master) 1
Views.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#include <com/sun/star/sdbc/XDatabaseMetaData.hpp>
14{
16{
17 css::uno::Reference<css::sdbc::XConnection> m_xConnection;
18 css::uno::Reference<css::sdbc::XDatabaseMetaData> m_xMetaData;
20
21 // OCollection
22 virtual connectivity::sdbcx::ObjectType createObject(const OUString& _rName) override;
23 virtual void impl_refresh() override;
24 virtual css::uno::Reference<css::beans::XPropertySet> createDescriptor() override;
25 virtual sdbcx::ObjectType
26 appendObject(const OUString& _rForName,
27 const css::uno::Reference<css::beans::XPropertySet>& descriptor) override;
28
29 void createView(const css::uno::Reference<css::beans::XPropertySet>& descriptor);
30
31public:
32 Views(const css::uno::Reference<css::sdbc::XConnection>& _rxConnection,
33 ::cppu::OWeakObject& _rParent, ::osl::Mutex& _rMutex,
34 const ::std::vector<OUString>& _rVector);
35
36 // XDrop
37 virtual void dropObject(sal_Int32 _nPos, const OUString& _sElementName) override;
38
39 void dropByNameImpl(const OUString& elementName);
40};
41}
42/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
void dropByNameImpl(const OUString &elementName)
Definition: Views.cxx:76
css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xMetaData
Definition: Views.hxx:18
Views(const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, ::cppu::OWeakObject &_rParent, ::osl::Mutex &_rMutex, const ::std::vector< OUString > &_rVector)
Definition: Views.cxx:17
virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override
Definition: Views.cxx:40
virtual void impl_refresh() override
Definition: Views.cxx:35
css::uno::Reference< css::sdbc::XConnection > m_xConnection
Definition: Views.hxx:17
virtual sdbcx::ObjectType appendObject(const OUString &_rForName, const css::uno::Reference< css::beans::XPropertySet > &descriptor) override
appends an object described by a descriptor, under a given name
Definition: Views.cxx:46
void createView(const css::uno::Reference< css::beans::XPropertySet > &descriptor)
Definition: Views.cxx:83
virtual connectivity::sdbcx::ObjectType createObject(const OUString &_rName) override
Definition: Views.cxx:27
virtual void dropObject(sal_Int32 _nPos, const OUString &_sElementName) override
Definition: Views.cxx:54
css::uno::Reference< css::beans::XPropertySet > ObjectType
Definition: VCollection.hxx:59