xref: /AOO41X/main/dbaccess/source/ui/dlg/DriverSettings.hxx (revision 2e2212a7c22e96cf6f6fab0dd042c34a45a64bd6)
1*2e2212a7SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*2e2212a7SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*2e2212a7SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*2e2212a7SAndrew Rist  * distributed with this work for additional information
6*2e2212a7SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*2e2212a7SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*2e2212a7SAndrew Rist  * "License"); you may not use this file except in compliance
9*2e2212a7SAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*2e2212a7SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*2e2212a7SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*2e2212a7SAndrew Rist  * software distributed under the License is distributed on an
15*2e2212a7SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*2e2212a7SAndrew Rist  * KIND, either express or implied.  See the License for the
17*2e2212a7SAndrew Rist  * specific language governing permissions and limitations
18*2e2212a7SAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*2e2212a7SAndrew Rist  *************************************************************/
21*2e2212a7SAndrew Rist 
22*2e2212a7SAndrew Rist 
23cdf0e10cSrcweir #ifndef DBAUI_DRIVERSETTINGS_HXX
24cdf0e10cSrcweir #define DBAUI_DRIVERSETTINGS_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir #ifndef _DBAUI_DSNTYPES_HXX_
27cdf0e10cSrcweir #include "dsntypes.hxx"
28cdf0e10cSrcweir #endif
29cdf0e10cSrcweir #include <svl/poolitem.hxx>
30cdf0e10cSrcweir #include <vector>
31cdf0e10cSrcweir 
32cdf0e10cSrcweir class SfxTabPage;
33cdf0e10cSrcweir class Window;
34cdf0e10cSrcweir namespace dbaui
35cdf0e10cSrcweir {
36cdf0e10cSrcweir     /// a collection class for all details a driver needs
37cdf0e10cSrcweir     class ODriversSettings
38cdf0e10cSrcweir     {
39cdf0e10cSrcweir     public:
40cdf0e10cSrcweir 
41cdf0e10cSrcweir         /** filles the IDs of the settings which are reflected in indirect data source properties
42cdf0e10cSrcweir             (aka properties in the css.sdb.DataSource.Info sequence)
43cdf0e10cSrcweir 
44cdf0e10cSrcweir             @param  _eType
45cdf0e10cSrcweir                 The Type of the data source.
46cdf0e10cSrcweir             @param  _out_rDetailsIds
47cdf0e10cSrcweir                 Will be filled.
48cdf0e10cSrcweir         */
49cdf0e10cSrcweir         static void getSupportedIndirectSettings( const ::rtl::OUString& _sURLPrefix,const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _xFactory,::std::vector< sal_Int32>& _out_rDetailsIds );
50cdf0e10cSrcweir 
51cdf0e10cSrcweir         /** Creates the detail page for Dbase
52cdf0e10cSrcweir         */
53cdf0e10cSrcweir         static  SfxTabPage* CreateDbase2( Window* _pParent, const SfxItemSet& _rAttrSet );
54cdf0e10cSrcweir 
55cdf0e10cSrcweir         /** Creates the detail page for ado
56cdf0e10cSrcweir         */
57cdf0e10cSrcweir         static  SfxTabPage* CreateDbase( Window* _pParent, const SfxItemSet& _rAttrSet );
58cdf0e10cSrcweir 
59cdf0e10cSrcweir         /** Creates the detail page for ado
60cdf0e10cSrcweir         */
61cdf0e10cSrcweir         static  SfxTabPage* CreateAdo( Window* _pParent, const SfxItemSet& _rAttrSet );
62cdf0e10cSrcweir 
63cdf0e10cSrcweir         /** Creates the detail page for ODBC
64cdf0e10cSrcweir         */
65cdf0e10cSrcweir         static  SfxTabPage* CreateODBC( Window* _pParent, const SfxItemSet& _rAttrSet );
66cdf0e10cSrcweir 
67cdf0e10cSrcweir         /** Creates the detail page for user
68cdf0e10cSrcweir         */
69cdf0e10cSrcweir         static  SfxTabPage* CreateUser( Window* _pParent, const SfxItemSet& _rAttrSet );
70cdf0e10cSrcweir 
71cdf0e10cSrcweir         /** Creates the detail page for MySQLODBC
72cdf0e10cSrcweir         */
73cdf0e10cSrcweir         static  SfxTabPage* CreateMySQLODBC( Window* _pParent, const SfxItemSet& _rAttrSet );
74cdf0e10cSrcweir 
75cdf0e10cSrcweir         /** Creates the detail page for MySQLJDBC
76cdf0e10cSrcweir         */
77cdf0e10cSrcweir         static  SfxTabPage* CreateMySQLJDBC( Window* _pParent, const SfxItemSet& _rAttrSet );
78cdf0e10cSrcweir 
79cdf0e10cSrcweir         /** Creates the detail page for MySQLNATIVE
80cdf0e10cSrcweir         */
81cdf0e10cSrcweir         static  SfxTabPage* CreateMySQLNATIVE( Window* _pParent, const SfxItemSet& _rAttrSet );
82cdf0e10cSrcweir 
83cdf0e10cSrcweir         /** Creates the detail page for Oracle JDBC
84cdf0e10cSrcweir         */
85cdf0e10cSrcweir         static SfxTabPage*  CreateOracleJDBC( Window* pParent, const SfxItemSet& _rAttrSet );
86cdf0e10cSrcweir 
87cdf0e10cSrcweir         /** Creates the detail page for Adabas
88cdf0e10cSrcweir         */
89cdf0e10cSrcweir         static  SfxTabPage* CreateAdabas( Window* _pParent, const SfxItemSet& _rAttrSet );
90cdf0e10cSrcweir 
91cdf0e10cSrcweir         /** Creates the detail page for LDAP
92cdf0e10cSrcweir         */
93cdf0e10cSrcweir         static  SfxTabPage* CreateLDAP( Window* _pParent, const SfxItemSet& _rAttrSet );
94cdf0e10cSrcweir 
95cdf0e10cSrcweir         /// Creates the detail page for Text
96cdf0e10cSrcweir         static  SfxTabPage* CreateText( Window* _pParent, const SfxItemSet& _rAttrSet );
97cdf0e10cSrcweir 
98cdf0e10cSrcweir 
99cdf0e10cSrcweir         /// creates the GeneratedValues page
100cdf0e10cSrcweir         static  SfxTabPage* CreateGeneratedValuesPage( Window* _pParent, const SfxItemSet& _rAttrSet );
101cdf0e10cSrcweir 
102cdf0e10cSrcweir         /// creates the "Special Settings" page of the "Advanced Settings" dialog
103cdf0e10cSrcweir         static  SfxTabPage* CreateSpecialSettingsPage( Window* _pParent, const SfxItemSet& _rAttrSet );
104cdf0e10cSrcweir     };
105cdf0e10cSrcweir }
106cdf0e10cSrcweir 
107cdf0e10cSrcweir #endif // DBAUI_DRIVERSETTINGS_HXX
108cdf0e10cSrcweir 
109