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 .
22 #include <com/sun/star/awt/FontDescriptor.hpp>
23 #include <rtl/ustring.hxx>
24 #include <comphelper/propertystatecontainer.hxx>
29 // ODataSettings_Base - a base class which implements the property member
30 // for an object implementing the sdb::DataSettings
32 // the properties have to be registered when used
33 class ODataSettings_Base
38 OUString m_sHavingClause
;
41 bool m_bApplyFilter
; // no BitField ! the base class needs a pointer to this member !
43 css::awt::FontDescriptor m_aFont
;
44 css::uno::Any m_aRowHeight
;
45 css::uno::Any m_aTextColor
;
46 css::uno::Any m_aTextLineColor
;
47 sal_Int16 m_nFontEmphasis
;
48 sal_Int16 m_nFontRelief
;
53 ODataSettings_Base(const ODataSettings_Base
& _rSource
) = delete;
54 ~ODataSettings_Base();
56 // ODataSettings - a base class which implements the property handling
57 // for an object implementing the sdb::DataSettings
60 class ODataSettings
: public ::comphelper::OPropertyStateContainer
61 , public ODataSettings_Base
65 ODataSettings(::cppu::OBroadcastHelper
& _rBHelper
,bool _bQuery
= false);
66 virtual void getPropertyDefaultByHandle( sal_Int32 _nHandle
, css::uno::Any
& _rDefault
) const override
;
68 /** register the properties from the param given. The parameter instance must be alive as long as its object lives.
70 The database settings, can be <br>this</br>
72 void registerPropertiesFor(ODataSettings_Base
* _pItem
);
75 } // namespace dbaccess
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */