xref: /AOO41X/main/extensions/source/dbpilots/wizardservices.cxx (revision 2a97ec55f1442d65917e8c8b82a55ab76c9ff676)
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 // MARKER(update_precomp.py): autogen include statement, do not remove
25 #include "precompiled_extensions.hxx"
26 
27 #ifndef _EXTENSIONS_DBP_WIZARDSERVICES_HXX_
28 #include "wizardservices.hxx"
29 #endif
30 #include "unoautopilot.hxx"
31 #include "groupboxwiz.hxx"
32 #include "listcombowizard.hxx"
33 #include "gridwizard.hxx"
34 
35 // the registration methods
createRegistryInfo_OGroupBoxWizard()36 extern "C" void SAL_CALL createRegistryInfo_OGroupBoxWizard()
37 {
38     static ::dbp::OMultiInstanceAutoRegistration<
39         ::dbp::OUnoAutoPilot< ::dbp::OGroupBoxWizard, ::dbp::OGroupBoxSI >
40     > aAutoRegistration;
41 }
42 
createRegistryInfo_OListComboWizard()43 extern "C" void SAL_CALL createRegistryInfo_OListComboWizard()
44 {
45     static ::dbp::OMultiInstanceAutoRegistration<
46         ::dbp::OUnoAutoPilot< ::dbp::OListComboWizard, ::dbp::OListComboSI >
47     > aAutoRegistration;
48 }
49 
createRegistryInfo_OGridWizard()50 extern "C" void SAL_CALL createRegistryInfo_OGridWizard()
51 {
52     static ::dbp::OMultiInstanceAutoRegistration<
53         ::dbp::OUnoAutoPilot< ::dbp::OGridWizard, ::dbp::OGridSI >
54     > aAutoRegistration;
55 }
56 
57 //.........................................................................
58 namespace dbp
59 {
60 //.........................................................................
61 
62     using namespace ::com::sun::star::uno;
63 
64     //=====================================================================
65     //= OGroupBoxSI
66     //=====================================================================
67     //---------------------------------------------------------------------
getImplementationName() const68     ::rtl::OUString OGroupBoxSI::getImplementationName() const
69     {
70         return ::rtl::OUString::createFromAscii("org.openoffice.comp.dbp.OGroupBoxWizard");
71     }
72 
73     //---------------------------------------------------------------------
getServiceNames() const74     Sequence< ::rtl::OUString > OGroupBoxSI::getServiceNames() const
75     {
76         Sequence< ::rtl::OUString > aReturn(1);
77         aReturn[0] = ::rtl::OUString::createFromAscii("com.sun.star.sdb.GroupBoxAutoPilot");
78         return aReturn;
79     }
80 
81     //=====================================================================
82     //= OListComboSI
83     //=====================================================================
84     //---------------------------------------------------------------------
getImplementationName() const85     ::rtl::OUString OListComboSI::getImplementationName() const
86     {
87         return ::rtl::OUString::createFromAscii("org.openoffice.comp.dbp.OListComboWizard");
88     }
89 
90     //---------------------------------------------------------------------
getServiceNames() const91     Sequence< ::rtl::OUString > OListComboSI::getServiceNames() const
92     {
93         Sequence< ::rtl::OUString > aReturn(1);
94         aReturn[0] = ::rtl::OUString::createFromAscii("com.sun.star.sdb.ListComboBoxAutoPilot");
95         return aReturn;
96     }
97 
98     //=====================================================================
99     //= OGridSI
100     //=====================================================================
101     //---------------------------------------------------------------------
getImplementationName() const102     ::rtl::OUString OGridSI::getImplementationName() const
103     {
104         return ::rtl::OUString::createFromAscii("org.openoffice.comp.dbp.OGridWizard");
105     }
106 
107     //---------------------------------------------------------------------
getServiceNames() const108     Sequence< ::rtl::OUString > OGridSI::getServiceNames() const
109     {
110         Sequence< ::rtl::OUString > aReturn(1);
111         aReturn[0] = ::rtl::OUString::createFromAscii("com.sun.star.sdb.GridControlAutoPilot");
112         return aReturn;
113     }
114 
115 //.........................................................................
116 }   // namespace dbp
117 //.........................................................................
118 
119