1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef DBACCESS_ADMINCONTROLS_HXX
25 #define DBACCESS_ADMINCONTROLS_HXX
26 
27 #include "adminpages.hxx"
28 
29 #include <vcl/edit.hxx>
30 #include <vcl/field.hxx>
31 #include <vcl/fixed.hxx>
32 
33 #include <svtools/dialogcontrolling.hxx>
34 
35 //........................................................................
36 namespace dbaui
37 {
38 //........................................................................
39 
40     //====================================================================
41     //= MySQLNativeSettings
42     //====================================================================
43     class MySQLNativeSettings : public Control
44     {
45     private:
46         FixedText           m_aDatabaseNameLabel;
47         Edit                m_aDatabaseName;
48         RadioButton         m_aHostPortRadio;
49         RadioButton         m_aSocketRadio;
50         RadioButton         m_aNamedPipeRadio;
51         FixedText           m_aHostNameLabel;
52         Edit                m_aHostName;
53         FixedText           m_aPortLabel;
54         NumericField		m_aPort;
55         FixedText			m_aDefaultPort;
56         Edit				m_aSocket;
57         Edit				m_aNamedPipe;
58 
59         ::svt::ControlDependencyManager
60                             m_aControlDependencies;
61 
62     public:
63         MySQLNativeSettings( Window& _rParent, const Link& _rControlModificationLink );
64         ~MySQLNativeSettings();
65 
66         void fillControls( ::std::vector< ISaveValueWrapper* >& _rControlList );
67         void fillWindows( ::std::vector< ISaveValueWrapper* >& _rControlList );
68 
69         sal_Bool FillItemSet( SfxItemSet& _rCoreAttrs );
70         void implInitControls( const SfxItemSet& _rSet );
71 
72         bool canAdvance() const;
73     };
74 
75 //........................................................................
76 } // namespace dbaui
77 //........................................................................
78 
79 #endif // DBACCESS_ADMINCONTROLS_HXX
80