bump product version to 5.0.4.1
[LibreOffice.git] / cui / source / options / connpooloptions.hxx
blobd06ec8893afd93f6d458de60be2d7e753be59c58
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 #ifndef INCLUDED_CUI_SOURCE_OPTIONS_CONNPOOLOPTIONS_HXX
21 #define INCLUDED_CUI_SOURCE_OPTIONS_CONNPOOLOPTIONS_HXX
23 #include <svl/solar.hrc>
24 #include <sfx2/tabdlg.hxx>
25 #include <vcl/fixed.hxx>
26 #include <vcl/button.hxx>
27 #include <vcl/field.hxx>
28 #include <svx/databaseregistrationui.hxx>
30 namespace offapp
33 class DriverListControl;
34 class ConnectionPoolOptionsPage : public SfxTabPage
36 using TabPage::ActivatePage;
38 protected:
39 VclPtr<CheckBox> m_pEnablePooling;
40 VclPtr<FixedText> m_pDriversLabel;
41 VclPtr<DriverListControl> m_pDriverList;
42 VclPtr<FixedText> m_pDriverLabel;
43 VclPtr<FixedText> m_pDriver;
44 VclPtr<CheckBox> m_pDriverPoolingEnabled;
45 VclPtr<FixedText> m_pTimeoutLabel;
46 VclPtr<NumericField> m_pTimeout;
48 public:
49 ConnectionPoolOptionsPage(vcl::Window* _pParent, const SfxItemSet& _rAttrSet);
50 virtual ~ConnectionPoolOptionsPage();
51 virtual void dispose() SAL_OVERRIDE;
52 static VclPtr<SfxTabPage> Create(vcl::Window* _pParent, const SfxItemSet* _rAttrSet);
54 protected:
55 virtual bool Notify( NotifyEvent& _rNEvt ) SAL_OVERRIDE;
57 virtual bool FillItemSet(SfxItemSet* _rSet) SAL_OVERRIDE;
58 virtual void Reset(const SfxItemSet* _rSet) SAL_OVERRIDE;
59 virtual void ActivatePage( const SfxItemSet& _rSet) SAL_OVERRIDE;
61 protected:
62 DECL_LINK( OnEnabledDisabled, const CheckBox* );
63 DECL_LINK( OnDriverRowChanged, const void* );
65 void implInitControls(const SfxItemSet& _rSet, bool _bFromReset);
67 void commitTimeoutField();
70 } // namespace offapp
72 #endif // INCLUDED_CUI_SOURCE_OPTIONS_CONNPOOLOPTIONS_HXX
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */