tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / include / connectivity / sdbcx / VView.hxx
blobe441812a99991438ac8865c3630637a444b9ddf3
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 #ifndef INCLUDED_CONNECTIVITY_SDBCX_VVIEW_HXX
21 #define INCLUDED_CONNECTIVITY_SDBCX_VVIEW_HXX
23 #include <com/sun/star/lang/XServiceInfo.hpp>
24 #include <comphelper/broadcasthelper.hxx>
25 #include <connectivity/CommonTools.hxx>
26 #include <com/sun/star/container/XNamed.hpp>
27 #include <connectivity/sdbcx/VDescriptor.hxx>
28 #include <connectivity/dbtoolsdllapi.hxx>
29 #include <comphelper/IdPropArrayHelper.hxx>
30 #include <cppuhelper/implbase.hxx>
32 namespace com::sun::star::sdbc { class XDatabaseMetaData; }
34 namespace connectivity::sdbcx
37 typedef ::cppu::WeakImplHelper< css::lang::XServiceInfo,
38 css::container::XNamed> OView_BASE;
41 class OOO_DLLPUBLIC_DBTOOLS OView :
42 public ::comphelper::OMutexAndBroadcastHelper,
43 public OView_BASE,
44 public ::comphelper::OIdPropertyArrayUsageHelper<OView>,
45 public ODescriptor
47 protected:
48 OUString m_CatalogName;
49 OUString m_SchemaName;
50 OUString m_Command;
51 sal_Int32 m_CheckOption;
52 // need for the getName method
53 css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xMetaData;
55 // OPropertyArrayUsageHelper
56 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( sal_Int32 _nId) const override;
57 // OPropertySetHelper
58 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
60 public:
61 DECLARE_SERVICE_INFO();
63 OView(bool _bCase, css::uno::Reference< css::sdbc::XDatabaseMetaData > _xMetaData);
64 OView( bool _bCase,
65 const OUString& _rName,
66 css::uno::Reference< css::sdbc::XDatabaseMetaData > _xMetaData,
67 OUString _sCommand = OUString(),
68 OUString _sSchemaName = OUString(),
69 OUString _sCatalogName = OUString());
70 virtual ~OView() override;
72 // ODescriptor
73 virtual void construct() override;
75 // XInterface
76 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
77 virtual void SAL_CALL acquire() noexcept override;
78 virtual void SAL_CALL release() noexcept override;
79 //XTypeProvider
80 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
81 // XPropertySet
82 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
83 // XNamed
84 virtual OUString SAL_CALL getName( ) override;
85 virtual void SAL_CALL setName( const OUString& ) override;
90 #endif // INCLUDED_CONNECTIVITY_SDBCX_VVIEW_HXX
92 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */