calc: on editing invalidation of view with different zoom is wrong
[LibreOffice.git] / dbaccess / source / sdbtools / connection / objectnames.hxx
blob439db0967101fb7e044f35ecdbc85c847a698248
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/XObjectNames.hpp>
26 #include <cppuhelper/implbase.hxx>
28 #include <memory>
30 namespace sdbtools
33 // ObjectNames
34 typedef ::cppu::WeakImplHelper< css::sdb::tools::XObjectNames
35 > ObjectNames_Base;
36 /** default implementation for XObjectNames
38 class ObjectNames :public ObjectNames_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 ObjectNames(
53 const css::uno::Reference< css::uno::XComponentContext >& _rContext,
54 const css::uno::Reference< css::sdbc::XConnection >& _rxConnection
57 // XObjectNames
58 virtual OUString SAL_CALL suggestName( ::sal_Int32 CommandType, const OUString& BaseName ) override;
59 virtual OUString SAL_CALL convertToSQLName( const OUString& Name ) override;
60 virtual sal_Bool SAL_CALL isNameUsed( ::sal_Int32 CommandType, const OUString& Name ) override;
61 virtual sal_Bool SAL_CALL isNameValid( ::sal_Int32 CommandType, const OUString& Name ) override;
62 virtual void SAL_CALL checkNameForCreate( ::sal_Int32 CommandType, const OUString& Name ) override;
64 protected:
65 virtual ~ObjectNames() override;
67 private:
68 ObjectNames( const ObjectNames& ) = delete;
69 ObjectNames& operator=( const ObjectNames& ) = delete;
72 } // namespace sdbtools
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */