sc: copy cache values when clone color conditional format
[LibreOffice.git] / connectivity / source / inc / mysql / YTables.hxx
blob11d76812399c2ccce277dfd495543d74172f7d15
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 .
19 #pragma once
21 #include <connectivity/sdbcx/VCollection.hxx>
22 #include <SQLStatementHelper.hxx>
23 #include <com/sun/star/sdbc/XDatabaseMetaData.hpp>
24 namespace connectivity::mysql
26 class OTables final : public sdbcx::OCollection,
27 public ::dbtools::ISQLStatementHelper
29 css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xMetaData;
31 virtual sdbcx::ObjectType createObject(const OUString& _rName) override;
32 virtual void impl_refresh() override;
33 virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override;
34 virtual sdbcx::ObjectType appendObject( const OUString& _rForName, const css::uno::Reference< css::beans::XPropertySet >& descriptor ) override;
35 virtual void dropObject(sal_Int32 _nPos, const OUString& _sElementName) override;
37 void createTable( const css::uno::Reference< css::beans::XPropertySet >& descriptor );
38 virtual OUString getNameForObject(const sdbcx::ObjectType& _xObject) override;
39 public:
40 OTables(const css::uno::Reference< css::sdbc::XDatabaseMetaData >& _rMetaData,::cppu::OWeakObject& _rParent, ::osl::Mutex& _rMutex,
41 const ::std::vector< OUString> &_rVector) : sdbcx::OCollection(_rParent, true, _rMutex, _rVector)
42 ,m_xMetaData(_rMetaData)
45 // only the name is identical to ::cppu::OComponentHelper
46 virtual void disposing() override;
48 // XDrop
49 void appendNew(const OUString& _rsNewTable);
51 /** convert the sql statement to fit MySQL notation
52 @param _sSql in/out
54 static OUString adjustSQL(const OUString& _sSql);
56 // ISQLStatementHelper
57 virtual void addComment(const css::uno::Reference< css::beans::XPropertySet >& descriptor,OUStringBuffer& _rOut) override;
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */