calc: on editing invalidation of view with different zoom is wrong
[LibreOffice.git] / dbaccess / source / core / inc / datasettings.hxx
blob8e24ebb714de26e04a25375e29526e04d5c05b3c
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 <com/sun/star/awt/FontDescriptor.hpp>
23 #include <rtl/ustring.hxx>
24 #include <comphelper/propertystatecontainer.hxx>
26 namespace dbaccess
29 // ODataSettings_Base - a base class which implements the property member
30 // for an object implementing the sdb::DataSettings
31 // service
32 // the properties have to be registered when used
33 class ODataSettings_Base
35 public:
36 // <properties>
37 OUString m_sFilter;
38 OUString m_sHavingClause;
39 OUString m_sGroupBy;
40 OUString m_sOrder;
41 bool m_bApplyFilter; // no BitField ! the base class needs a pointer to this member !
42 bool m_bAutoGrow;
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;
49 // </properties>
51 protected:
52 ODataSettings_Base();
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
58 // service
60 class ODataSettings : public ::comphelper::OPropertyStateContainer
61 , public ODataSettings_Base
63 bool m_bQuery;
64 protected:
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.
69 @param _pItem
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: */