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 .
20 #ifndef _OFFAPP_CONNPOOLOPTIONS_HXX_
21 #define _OFFAPP_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 //........................................................................
33 //........................................................................
35 //====================================================================
36 //= ConnectionPoolOptionsPage
37 //====================================================================
38 class DriverListControl
;
39 class ConnectionPoolOptionsPage
: public SfxTabPage
41 using TabPage::ActivatePage
;
45 CheckBox m_aEnablePooling
;
46 FixedText m_aDriversLabel
;
47 DriverListControl
* m_pDriverList
;
48 FixedText m_aDriverLabel
;
50 CheckBox m_aDriverPoolingEnabled
;
51 FixedText m_aTimeoutLabel
;
52 NumericField m_aTimeout
;
55 ConnectionPoolOptionsPage(Window
* _pParent
, const SfxItemSet
& _rAttrSet
);
58 static SfxTabPage
* Create(Window
* _pParent
, const SfxItemSet
& _rAttrSet
);
60 ~ConnectionPoolOptionsPage();
63 virtual long Notify( NotifyEvent
& _rNEvt
);
65 virtual sal_Bool
FillItemSet(SfxItemSet
& _rSet
);
66 virtual void Reset(const SfxItemSet
& _rSet
);
67 virtual void ActivatePage( const SfxItemSet
& _rSet
);
70 DECL_LINK( OnEnabledDisabled
, const CheckBox
* );
71 DECL_LINK( OnDriverRowChanged
, const void* );
73 void implInitControls(const SfxItemSet
& _rSet
, sal_Bool _bFromReset
);
75 void commitTimeoutField();
78 //........................................................................
80 //........................................................................
82 #endif // _OFFAPP_CONNPOOLOPTIONS_HXX_
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */