calc: on editing invalidation of view with different zoom is wrong
[LibreOffice.git] / dbaccess / source / sdbtools / connection / tablename.hxx
blob3a7ece21a1820c7ed5648b285e4d7fd3112c8dc9
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 struct TableName_Impl;
37 /** default implementation for XTableName
39 class TableName :public TableName_Base
40 ,public ConnectionDependentComponent
42 private:
43 std::unique_ptr< TableName_Impl > m_pImpl;
45 public:
46 /** constructs the instance
48 @param _rContext
49 the component's context
50 @param _rxConnection
51 the connection to work with. Will be held weak. Must not be <NULL/>.
53 @throws css::lang::NullPointerException
54 if _rxConnection is <NULL/>
56 TableName(
57 const css::uno::Reference< css::uno::XComponentContext >& _rContext,
58 const css::uno::Reference< css::sdbc::XConnection >& _rxConnection
61 // XTableName
62 virtual OUString SAL_CALL getCatalogName() override;
63 virtual void SAL_CALL setCatalogName( const OUString& _catalogname ) override;
64 virtual OUString SAL_CALL getSchemaName() override;
65 virtual void SAL_CALL setSchemaName( const OUString& _schemaname ) override;
66 virtual OUString SAL_CALL getTableName() override;
67 virtual void SAL_CALL setTableName( const OUString& _tablename ) override;
68 virtual OUString SAL_CALL getNameForSelect() override;
69 virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL getTable() override;
70 virtual void SAL_CALL setTable( const css::uno::Reference< css::beans::XPropertySet >& _table ) override;
71 virtual OUString SAL_CALL getComposedName( ::sal_Int32 Type, sal_Bool Quote ) override;
72 virtual void SAL_CALL setComposedName( const OUString& ComposedName, ::sal_Int32 Type ) override;
74 protected:
75 virtual ~TableName() override;
77 private:
78 TableName( const TableName& ) = delete;
79 TableName& operator=( const TableName& ) = delete;
82 } // namespace sdbtools
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */