merge the formfield patch from ooo-build
[ooovba.git] / svx / source / cui / connpooloptions.hxx
blob9bba07f61470bf1587b5719f9c3a03add0d31162
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: connpooloptions.hxx,v $
10 * $Revision: 1.6 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _OFFAPP_CONNPOOLOPTIONS_HXX_
32 #define _OFFAPP_CONNPOOLOPTIONS_HXX_
34 #include <svtools/solar.hrc>
35 #include <sfx2/tabdlg.hxx>
36 #include <vcl/fixed.hxx>
37 #include <vcl/button.hxx>
38 #include <vcl/field.hxx>
39 #include <databaseregistrationui.hxx>
41 //........................................................................
42 namespace offapp
44 //........................................................................
46 //====================================================================
47 //= ConnectionPoolOptionsPage
48 //====================================================================
49 class DriverListControl;
50 class ConnectionPoolOptionsPage : public SfxTabPage
52 using TabPage::ActivatePage;
54 protected:
55 FixedLine m_aFrame;
56 CheckBox m_aEnablePooling;
57 FixedText m_aDriversLabel;
58 DriverListControl* m_pDriverList;
59 FixedText m_aDriverLabel;
60 FixedText m_aDriver;
61 CheckBox m_aDriverPoolingEnabled;
62 FixedText m_aTimeoutLabel;
63 NumericField m_aTimeout;
65 protected:
66 ConnectionPoolOptionsPage(Window* _pParent, const SfxItemSet& _rAttrSet);
68 public:
69 static SfxTabPage* Create(Window* _pParent, const SfxItemSet& _rAttrSet);
71 ~ConnectionPoolOptionsPage();
73 protected:
74 virtual long Notify( NotifyEvent& _rNEvt );
76 virtual BOOL FillItemSet(SfxItemSet& _rSet);
77 virtual void Reset(const SfxItemSet& _rSet);
78 virtual void ActivatePage( const SfxItemSet& _rSet);
80 protected:
81 DECL_LINK( OnEnabledDisabled, const CheckBox* );
82 DECL_LINK( OnDriverRowChanged, const void* );
84 void implInitControls(const SfxItemSet& _rSet, sal_Bool _bFromReset);
86 void commitTimeoutField();
89 //........................................................................
90 } // namespace offapp
91 //........................................................................
93 #endif // _OFFAPP_CONNPOOLOPTIONS_HXX_