Line data Source code
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 : #ifndef INCLUDED_CUI_SOURCE_OPTIONS_CONNPOOLOPTIONS_HXX
21 : #define INCLUDED_CUI_SOURCE_OPTIONS_CONNPOOLOPTIONS_HXX
22 :
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>
29 :
30 : namespace offapp
31 : {
32 :
33 : //= ConnectionPoolOptionsPage
34 :
35 : class DriverListControl;
36 0 : class ConnectionPoolOptionsPage : public SfxTabPage
37 : {
38 : using TabPage::ActivatePage;
39 :
40 : protected:
41 : CheckBox* m_pEnablePooling;
42 : FixedText* m_pDriversLabel;
43 : DriverListControl* m_pDriverList;
44 : FixedText* m_pDriverLabel;
45 : FixedText* m_pDriver;
46 : CheckBox* m_pDriverPoolingEnabled;
47 : FixedText* m_pTimeoutLabel;
48 : NumericField* m_pTimeout;
49 :
50 : protected:
51 : ConnectionPoolOptionsPage(vcl::Window* _pParent, const SfxItemSet& _rAttrSet);
52 :
53 : public:
54 : static SfxTabPage* Create(vcl::Window* _pParent, const SfxItemSet* _rAttrSet);
55 :
56 : protected:
57 : virtual bool Notify( NotifyEvent& _rNEvt ) SAL_OVERRIDE;
58 :
59 : virtual bool FillItemSet(SfxItemSet* _rSet) SAL_OVERRIDE;
60 : virtual void Reset(const SfxItemSet* _rSet) SAL_OVERRIDE;
61 : virtual void ActivatePage( const SfxItemSet& _rSet) SAL_OVERRIDE;
62 :
63 : protected:
64 : DECL_LINK( OnEnabledDisabled, const CheckBox* );
65 : DECL_LINK( OnDriverRowChanged, const void* );
66 :
67 : void implInitControls(const SfxItemSet& _rSet, bool _bFromReset);
68 :
69 : void commitTimeoutField();
70 : };
71 :
72 : } // namespace offapp
73 :
74 : #endif // INCLUDED_CUI_SOURCE_OPTIONS_CONNPOOLOPTIONS_HXX
75 :
76 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|