LCOV - code coverage report
Current view: top level - dbaccess/source/ui/uno - UserSettingsDlg.cxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 10 33 30.3 %
Date: 2014-11-03 Functions: 5 14 35.7 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.10