merge the formfield patch from ooo-build
[ooovba.git] / dbaccess / source / ui / dlg / admincontrols.hxx
blob58d054deffeb2668705380ebbc0868ffdc14cd73
1 /*************************************************************************
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3 *
4 * Copyright 2009 by Sun Microsystems, Inc.
6 * OpenOffice.org - a multi-platform office productivity suite
8 * This file is part of OpenOffice.org.
10 * OpenOffice.org is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU Lesser General Public License version 3
12 * only, as published by the Free Software Foundation.
14 * OpenOffice.org is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU Lesser General Public License version 3 for more details
18 * (a copy is included in the LICENSE file that accompanied this code).
20 * You should have received a copy of the GNU Lesser General Public License
21 * version 3 along with OpenOffice.org. If not, see
22 * <http://www.openoffice.org/license.html>
23 * for a copy of the LGPLv3 License.
24 ************************************************************************/
26 #ifndef DBACCESS_ADMINCONTROLS_HXX
27 #define DBACCESS_ADMINCONTROLS_HXX
29 #include "adminpages.hxx"
31 #include <vcl/edit.hxx>
32 #include <vcl/field.hxx>
33 #include <vcl/fixed.hxx>
35 #include <svtools/dialogcontrolling.hxx>
37 //........................................................................
38 namespace dbaui
40 //........................................................................
42 //====================================================================
43 //= MySQLNativeSettings
44 //====================================================================
45 class MySQLNativeSettings : public Control
47 private:
48 FixedText m_aDatabaseNameLabel;
49 Edit m_aDatabaseName;
50 RadioButton m_aHostPortRadio;
51 RadioButton m_aSocketRadio;
52 RadioButton m_aNamedPipeRadio;
53 FixedText m_aHostNameLabel;
54 Edit m_aHostName;
55 FixedText m_aPortLabel;
56 NumericField m_aPort;
57 FixedText m_aDefaultPort;
58 Edit m_aSocket;
59 Edit m_aNamedPipe;
61 ::svt::ControlDependencyManager
62 m_aControlDependencies;
64 public:
65 MySQLNativeSettings( Window& _rParent, const Link& _rControlModificationLink );
66 ~MySQLNativeSettings();
68 void fillControls( ::std::vector< ISaveValueWrapper* >& _rControlList );
69 void fillWindows( ::std::vector< ISaveValueWrapper* >& _rControlList );
71 BOOL FillItemSet( SfxItemSet& _rCoreAttrs );
72 void implInitControls( const SfxItemSet& _rSet );
74 bool canAdvance() const;
77 //........................................................................
78 } // namespace dbaui
79 //........................................................................
81 #endif // DBACCESS_ADMINCONTROLS_HXX