LibreOffice Module connectivity (master) 1
VView.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#ifndef INCLUDED_CONNECTIVITY_SDBCX_VVIEW_HXX
21#define INCLUDED_CONNECTIVITY_SDBCX_VVIEW_HXX
22
23#include <com/sun/star/sdbcx/XDataDescriptorFactory.hpp>
24#include <com/sun/star/lang/XServiceInfo.hpp>
27#include <com/sun/star/container/XNamed.hpp>
32
33namespace com::sun::star::sdbc { class XDatabaseMetaData; }
34
35namespace connectivity::sdbcx
36 {
37
38 typedef ::cppu::WeakImplHelper< css::lang::XServiceInfo,
39 css::container::XNamed> OView_BASE;
40
41
44 public OView_BASE,
46 public ODescriptor
47 {
48 protected:
49 OUString m_CatalogName;
50 OUString m_SchemaName;
51 OUString m_Command;
52 sal_Int32 m_CheckOption;
53 // need for the getName method
54 css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xMetaData;
55
56 // OPropertyArrayUsageHelper
57 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( sal_Int32 _nId) const override;
58 // OPropertySetHelper
59 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
60
61 public:
63
64 OView(bool _bCase, css::uno::Reference< css::sdbc::XDatabaseMetaData > _xMetaData);
65 OView( bool _bCase,
66 const OUString& _rName,
67 css::uno::Reference< css::sdbc::XDatabaseMetaData > _xMetaData,
68 OUString _sCommand = OUString(),
69 OUString _sSchemaName = OUString(),
70 OUString _sCatalogName = OUString());
71 virtual ~OView() override;
72
73 // ODescriptor
74 virtual void construct() override;
75
76 // XInterface
77 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
78 virtual void SAL_CALL acquire() noexcept override;
79 virtual void SAL_CALL release() noexcept override;
80 //XTypeProvider
81 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
82 // XPropertySet
83 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
84 // XNamed
85 virtual OUString SAL_CALL getName( ) override;
86 virtual void SAL_CALL setName( const OUString& ) override;
87 };
88
89}
90
91#endif // INCLUDED_CONNECTIVITY_SDBCX_VVIEW_HXX
92
93/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xMetaData
Definition: VView.hxx:54
#define OOO_DLLPUBLIC_DBTOOLS
Type
::cppu::WeakImplHelper< css::lang::XServiceInfo, css::container::XNamed > OView_BASE
Definition: VView.hxx:39
css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType, Interface1 *p1)