1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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_VDESCRIPTOR_HXX
21 #define INCLUDED_CONNECTIVITY_SDBCX_VDESCRIPTOR_HXX
23 #include <comphelper/propertycontainer.hxx>
24 #include <comphelper/stl_types.hxx>
25 #include <connectivity/dbtoolsdllapi.hxx>
27 namespace connectivity::sdbcx
32 typedef ::comphelper::OPropertyContainer ODescriptor_PBASE
;
33 class OOO_DLLPUBLIC_DBTOOLS ODescriptor
34 :public ODescriptor_PBASE
39 /** helper for derived classes to implement OPropertyArrayUsageHelper::createArrayHelper
41 This method just calls describeProperties, and flags all properties as READONLY if and
42 only if we do *not* act as descriptor, but as final object.
46 ::cppu::IPropertyArrayHelper
* doCreateArrayHelper() const;
49 comphelper::UStringMixEqual m_aCase
;
53 ODescriptor(::cppu::OBroadcastHelper
& _rBHelper
, bool _bCase
, bool _bNew
= false);
55 virtual ~ODescriptor() override
;
57 bool isNew() const { return m_bNew
; }
58 void setNew(bool _bNew
);
60 bool isCaseSensitive() const { return m_aCase
.isCaseSensitive(); }
62 virtual void construct();
64 /// @throws css::uno::RuntimeException
65 virtual css::uno::Sequence
< css::uno::Type
> SAL_CALL
getTypes( );
67 // retrieves the ODescriptor implementation of a given UNO component, and returns its ->isNew flag
68 static bool isNew( const css::uno::Reference
< css::uno::XInterface
>& _rxDescriptor
);
73 #endif // INCLUDED_CONNECTIVITY_SDBCX_VDESCRIPTOR_HXX
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */