Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*
3 : : * This file is part of the LibreOffice project.
4 : : *
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/.
8 : : *
9 : : * This file incorporates work covered by the following license notice:
10 : : *
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 .
18 : : */
19 : :
20 : :
21 : : #include "dbu_reghelper.hxx"
22 : : #include "DBTypeWizDlg.hxx"
23 : : #include "dbwiz.hxx"
24 : :
25 : : using namespace dbaui;
26 : :
27 : 8 : extern "C" void SAL_CALL createRegistryInfo_ODBTypeWizDialog()
28 : : {
29 [ + - ][ + - ]: 8 : static OMultiInstanceAutoRegistration< ODBTypeWizDialog > aAutoRegistration;
[ + - ][ # # ]
30 : 8 : }
31 : :
32 : : //.........................................................................
33 : : namespace dbaui
34 : : {
35 : : //.........................................................................
36 : :
37 : : using namespace ::com::sun::star::uno;
38 : : using namespace ::com::sun::star::lang;
39 : : using namespace ::com::sun::star::beans;
40 : :
41 : : //=========================================================================
42 : : //-------------------------------------------------------------------------
43 : 0 : ODBTypeWizDialog::ODBTypeWizDialog(const Reference< XMultiServiceFactory >& _rxORB)
44 [ # # ]: 0 : :ODatabaseAdministrationDialog(_rxORB)
45 : : {
46 : 0 : }
47 : : //-------------------------------------------------------------------------
48 : 0 : Sequence<sal_Int8> SAL_CALL ODBTypeWizDialog::getImplementationId( ) throw(RuntimeException)
49 : : {
50 [ # # ][ # # ]: 0 : static ::cppu::OImplementationId aId;
51 : 0 : return aId.getImplementationId();
52 : : }
53 : :
54 : : //-------------------------------------------------------------------------
55 : 0 : Reference< XInterface > SAL_CALL ODBTypeWizDialog::Create(const Reference< XMultiServiceFactory >& _rxFactory)
56 : : {
57 [ # # ]: 0 : return *(new ODBTypeWizDialog(_rxFactory));
58 : : }
59 : :
60 : : //-------------------------------------------------------------------------
61 : 0 : ::rtl::OUString SAL_CALL ODBTypeWizDialog::getImplementationName() throw(RuntimeException)
62 : : {
63 : 0 : return getImplementationName_Static();
64 : : }
65 : :
66 : : //-------------------------------------------------------------------------
67 : 16 : ::rtl::OUString ODBTypeWizDialog::getImplementationName_Static() throw(RuntimeException)
68 : : {
69 : 16 : return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("org.openoffice.comp.dbu.ODBTypeWizDialog"));
70 : : }
71 : :
72 : : //-------------------------------------------------------------------------
73 : 0 : ::comphelper::StringSequence SAL_CALL ODBTypeWizDialog::getSupportedServiceNames() throw(RuntimeException)
74 : : {
75 : 0 : return getSupportedServiceNames_Static();
76 : : }
77 : :
78 : : //-------------------------------------------------------------------------
79 : 8 : ::comphelper::StringSequence ODBTypeWizDialog::getSupportedServiceNames_Static() throw(RuntimeException)
80 : : {
81 : 8 : ::comphelper::StringSequence aSupported(1);
82 [ + - ][ + - ]: 8 : aSupported.getArray()[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdb.DataSourceTypeChangeDialog"));
83 : 8 : return aSupported;
84 : : }
85 : :
86 : : //-------------------------------------------------------------------------
87 : 0 : Reference<XPropertySetInfo> SAL_CALL ODBTypeWizDialog::getPropertySetInfo() throw(RuntimeException)
88 : : {
89 : 0 : Reference<XPropertySetInfo> xInfo( createPropertySetInfo( getInfoHelper() ) );
90 : 0 : return xInfo;
91 : : }
92 : :
93 : : //-------------------------------------------------------------------------
94 : 0 : ::cppu::IPropertyArrayHelper& ODBTypeWizDialog::getInfoHelper()
95 : : {
96 : 0 : return *const_cast<ODBTypeWizDialog*>(this)->getArrayHelper();
97 : : }
98 : :
99 : : //------------------------------------------------------------------------------
100 : 0 : ::cppu::IPropertyArrayHelper* ODBTypeWizDialog::createArrayHelper( ) const
101 : : {
102 [ # # ]: 0 : Sequence< Property > aProps;
103 [ # # ]: 0 : describeProperties(aProps);
104 [ # # ][ # # ]: 0 : return new ::cppu::OPropertyArrayHelper(aProps);
105 : : }
106 : : //------------------------------------------------------------------------------
107 : 0 : Dialog* ODBTypeWizDialog::createDialog(Window* _pParent)
108 : : {
109 [ # # ][ # # ]: 0 : ODbTypeWizDialog* pDlg = new ODbTypeWizDialog(_pParent, m_pDatasourceItems, m_aContext.getLegacyServiceFactory(),m_aInitialSelection);
110 : 0 : return pDlg;
111 : : }
112 : :
113 : : //.........................................................................
114 : : } // namespace dbaui
115 : : //.........................................................................
116 : :
117 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|