tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / dbaccess / source / sdbtools / connection / tablename.hxx
blob74abc3025f49233879acdc0d877b18a8a34af9f7
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 #pragma once
22 #include <connectiondependent.hxx>
24 #include <com/sun/star/sdb/tools/XTableName.hpp>
26 #include <cppuhelper/implbase.hxx>
28 #include <memory>
30 namespace sdbtools
33 // TableName
34 typedef ::cppu::WeakImplHelper< css::sdb::tools::XTableName
35 > TableName_Base;
36 /** default implementation for XTableName
38 class TableName :public TableName_Base
39 ,public ConnectionDependentComponent
41 public:
42 /** constructs the instance
44 @param _rContext
45 the component's context
46 @param _rxConnection
47 the connection to work with. Will be held weak. Must not be <NULL/>.
49 @throws css::lang::NullPointerException
50 if _rxConnection is <NULL/>
52 TableName(
53 const css::uno::Reference< css::uno::XComponentContext >& _rContext,
54 const css::uno::Reference< css::sdbc::XConnection >& _rxConnection
57 // XTableName
58 virtual OUString SAL_CALL getCatalogName() override;
59 virtual void SAL_CALL setCatalogName( const OUString& _catalogname ) override;
60 virtual OUString SAL_CALL getSchemaName() override;
61 virtual void SAL_CALL setSchemaName( const OUString& _schemaname ) override;
62 virtual OUString SAL_CALL getTableName() override;
63 virtual void SAL_CALL setTableName( const OUString& _tablename ) override;
64 virtual OUString SAL_CALL getNameForSelect() override;
65 virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL getTable() override;
66 virtual void SAL_CALL setTable( const css::uno::Reference< css::beans::XPropertySet >& _table ) override;
67 virtual OUString SAL_CALL getComposedName( ::sal_Int32 Type, sal_Bool Quote ) override;
68 virtual void SAL_CALL setComposedName( const OUString& ComposedName, ::sal_Int32 Type ) override;
70 protected:
71 virtual ~TableName() override;
73 private:
74 TableName( const TableName& ) = delete;
75 TableName& operator=( const TableName& ) = delete;
77 OUString msCatalog;
78 OUString msSchema;
79 OUString msName;
82 } // namespace sdbtools
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */