Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / cui / source / options / connpooloptions.hxx
blobd2677a5e7c374a6c214a920fe4f559e64a8670b3
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 _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 //........................................................................
31 namespace offapp
33 //........................................................................
35 //====================================================================
36 //= ConnectionPoolOptionsPage
37 //====================================================================
38 class DriverListControl;
39 class ConnectionPoolOptionsPage : public SfxTabPage
41 using TabPage::ActivatePage;
43 protected:
44 FixedLine m_aFrame;
45 CheckBox m_aEnablePooling;
46 FixedText m_aDriversLabel;
47 DriverListControl* m_pDriverList;
48 FixedText m_aDriverLabel;
49 FixedText m_aDriver;
50 CheckBox m_aDriverPoolingEnabled;
51 FixedText m_aTimeoutLabel;
52 NumericField m_aTimeout;
54 protected:
55 ConnectionPoolOptionsPage(Window* _pParent, const SfxItemSet& _rAttrSet);
57 public:
58 static SfxTabPage* Create(Window* _pParent, const SfxItemSet& _rAttrSet);
60 ~ConnectionPoolOptionsPage();
62 protected:
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);
69 protected:
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 //........................................................................
79 } // namespace offapp
80 //........................................................................
82 #endif // _OFFAPP_CONNPOOLOPTIONS_HXX_
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */