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 "UserSettingsDlg.hxx"
23 : : #include "UserAdminDlg.hxx"
24 : :
25 : :
26 : : using namespace dbaui;
27 : :
28 : 8 : extern "C" void SAL_CALL createRegistryInfo_OUserSettingsDialog()
29 : : {
30 [ + - ][ + - ]: 8 : static OMultiInstanceAutoRegistration< OUserSettingsDialog > aAutoRegistration;
[ + - ][ # # ]
31 : 8 : }
32 : :
33 : : //.........................................................................
34 : : namespace dbaui
35 : : {
36 : : //.........................................................................
37 : :
38 : : using namespace ::com::sun::star::uno;
39 : : using namespace ::com::sun::star::lang;
40 : : using namespace ::com::sun::star::beans;
41 : :
42 : : //=========================================================================
43 : : //-------------------------------------------------------------------------
44 : 0 : OUserSettingsDialog::OUserSettingsDialog(const Reference< XMultiServiceFactory >& _rxORB)
45 [ # # ]: 0 : :ODatabaseAdministrationDialog(_rxORB)
46 : : {
47 : 0 : }
48 : : //-------------------------------------------------------------------------
49 : 0 : Sequence<sal_Int8> SAL_CALL OUserSettingsDialog::getImplementationId( ) throw(RuntimeException)
50 : : {
51 [ # # ][ # # ]: 0 : static ::cppu::OImplementationId aId;
52 : 0 : return aId.getImplementationId();
53 : : }
54 : :
55 : : //-------------------------------------------------------------------------
56 : 0 : Reference< XInterface > SAL_CALL OUserSettingsDialog::Create(const Reference< XMultiServiceFactory >& _rxFactory)
57 : : {
58 [ # # ]: 0 : return *(new OUserSettingsDialog(_rxFactory));
59 : : }
60 : :
61 : : //-------------------------------------------------------------------------
62 : 0 : ::rtl::OUString SAL_CALL OUserSettingsDialog::getImplementationName() throw(RuntimeException)
63 : : {
64 : 0 : return getImplementationName_Static();
65 : : }
66 : :
67 : : //-------------------------------------------------------------------------
68 : 16 : ::rtl::OUString OUserSettingsDialog::getImplementationName_Static() throw(RuntimeException)
69 : : {
70 : 16 : return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("org.openoffice.comp.dbu.OUserSettingsDialog"));
71 : : }
72 : :
73 : : //-------------------------------------------------------------------------
74 : 0 : ::comphelper::StringSequence SAL_CALL OUserSettingsDialog::getSupportedServiceNames() throw(RuntimeException)
75 : : {
76 : 0 : return getSupportedServiceNames_Static();
77 : : }
78 : :
79 : : //-------------------------------------------------------------------------
80 : 8 : ::comphelper::StringSequence OUserSettingsDialog::getSupportedServiceNames_Static() throw(RuntimeException)
81 : : {
82 : 8 : ::comphelper::StringSequence aSupported(1);
83 [ + - ][ + - ]: 8 : aSupported.getArray()[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdb.UserAdministrationDialog"));
84 : 8 : return aSupported;
85 : : }
86 : :
87 : : //-------------------------------------------------------------------------
88 : 0 : Reference<XPropertySetInfo> SAL_CALL OUserSettingsDialog::getPropertySetInfo() throw(RuntimeException)
89 : : {
90 : 0 : Reference<XPropertySetInfo> xInfo( createPropertySetInfo( getInfoHelper() ) );
91 : 0 : return xInfo;
92 : : }
93 : :
94 : : //-------------------------------------------------------------------------
95 : 0 : ::cppu::IPropertyArrayHelper& OUserSettingsDialog::getInfoHelper()
96 : : {
97 : 0 : return *const_cast<OUserSettingsDialog*>(this)->getArrayHelper();
98 : : }
99 : :
100 : : //------------------------------------------------------------------------------
101 : 0 : ::cppu::IPropertyArrayHelper* OUserSettingsDialog::createArrayHelper( ) const
102 : : {
103 [ # # ]: 0 : Sequence< Property > aProps;
104 [ # # ]: 0 : describeProperties(aProps);
105 [ # # ][ # # ]: 0 : return new ::cppu::OPropertyArrayHelper(aProps);
106 : : }
107 : : //------------------------------------------------------------------------------
108 : 0 : Dialog* OUserSettingsDialog::createDialog(Window* _pParent)
109 : : {
110 [ # # ][ # # ]: 0 : OUserAdminDlg* pDlg = new OUserAdminDlg(_pParent, m_pDatasourceItems, m_aContext.getLegacyServiceFactory(),m_aInitialSelection,m_xActiveConnection);
111 : 0 : return pDlg;
112 : : }
113 : :
114 : : //.........................................................................
115 : : } // namespace dbaui
116 : : //.........................................................................
117 : :
118 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|