LibreOffice Module dbaccess (master) 1
datasettings.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
22#include <com/sun/star/awt/FontDescriptor.hpp>
23#include <rtl/ustring.hxx>
25
26namespace dbaccess
27{
28
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
34{
35public:
36// <properties>
37 OUString m_sFilter;
39 OUString m_sGroupBy;
40 OUString m_sOrder;
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;
49// </properties>
50
51protected:
53 ODataSettings_Base(const ODataSettings_Base& _rSource) = delete;
55};
56// ODataSettings - a base class which implements the property handling
57// for an object implementing the sdb::DataSettings
58// service
59
61 , public ODataSettings_Base
62{
64protected:
65 ODataSettings(::cppu::OBroadcastHelper& _rBHelper,bool _bQuery = false);
66 virtual void getPropertyDefaultByHandle( sal_Int32 _nHandle, css::uno::Any& _rDefault ) const override;
67
73};
74
75} // namespace dbaccess
76
77/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ODataSettings_Base(const ODataSettings_Base &_rSource)=delete
css::awt::FontDescriptor m_aFont
ODataSettings(::cppu::OBroadcastHelper &_rBHelper, bool _bQuery=false)
void registerPropertiesFor(ODataSettings_Base *_pItem)
register the properties from the param given.
virtual void getPropertyDefaultByHandle(sal_Int32 _nHandle, css::uno::Any &_rDefault) const override