masterfix DEV300: #i10000# build fix
[LibreOffice.git] / cui / source / options / connpooloptions.hxx
blobc2458cc084507d24589968823ec27eea5a4aabf5
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #ifndef _OFFAPP_CONNPOOLOPTIONS_HXX_
29 #define _OFFAPP_CONNPOOLOPTIONS_HXX_
31 #include <svl/solar.hrc>
32 #include <sfx2/tabdlg.hxx>
33 #include <vcl/fixed.hxx>
34 #include <vcl/button.hxx>
35 #include <vcl/field.hxx>
36 #include <svx/databaseregistrationui.hxx>
38 //........................................................................
39 namespace offapp
41 //........................................................................
43 //====================================================================
44 //= ConnectionPoolOptionsPage
45 //====================================================================
46 class DriverListControl;
47 class ConnectionPoolOptionsPage : public SfxTabPage
49 using TabPage::ActivatePage;
51 protected:
52 FixedLine m_aFrame;
53 CheckBox m_aEnablePooling;
54 FixedText m_aDriversLabel;
55 DriverListControl* m_pDriverList;
56 FixedText m_aDriverLabel;
57 FixedText m_aDriver;
58 CheckBox m_aDriverPoolingEnabled;
59 FixedText m_aTimeoutLabel;
60 NumericField m_aTimeout;
62 protected:
63 ConnectionPoolOptionsPage(Window* _pParent, const SfxItemSet& _rAttrSet);
65 public:
66 static SfxTabPage* Create(Window* _pParent, const SfxItemSet& _rAttrSet);
68 ~ConnectionPoolOptionsPage();
70 protected:
71 virtual long Notify( NotifyEvent& _rNEvt );
73 virtual sal_Bool FillItemSet(SfxItemSet& _rSet);
74 virtual void Reset(const SfxItemSet& _rSet);
75 virtual void ActivatePage( const SfxItemSet& _rSet);
77 protected:
78 DECL_LINK( OnEnabledDisabled, const CheckBox* );
79 DECL_LINK( OnDriverRowChanged, const void* );
81 void implInitControls(const SfxItemSet& _rSet, sal_Bool _bFromReset);
83 void commitTimeoutField();
86 //........................................................................
87 } // namespace offapp
88 //........................................................................
90 #endif // _OFFAPP_CONNPOOLOPTIONS_HXX_