LCOV - code coverage report
Current view: top level - dbaccess/source/ui/uno - admindlg.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 28 35 80.0 %
Date: 2015-06-13 12:38:46 Functions: 12 14 85.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 "admindlg.hxx"
      23             : #include "dbadmin.hxx"
      24             : #include <comphelper/processfactory.hxx>
      25             : 
      26             : using namespace dbaui;
      27             : 
      28          12 : extern "C" void SAL_CALL createRegistryInfo_ODataSourcePropertyDialog()
      29             : {
      30          12 :     static OMultiInstanceAutoRegistration< ODataSourcePropertyDialog > aAutoRegistration;
      31          12 : }
      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           3 : ODataSourcePropertyDialog::ODataSourcePropertyDialog(const Reference< XComponentContext >& _rxORB)
      41           3 :     :ODatabaseAdministrationDialog(_rxORB)
      42             : {
      43           3 : }
      44             : 
      45           0 : Sequence<sal_Int8> SAL_CALL ODataSourcePropertyDialog::getImplementationId(  ) throw(RuntimeException, std::exception)
      46             : {
      47           0 :     return css::uno::Sequence<sal_Int8>();
      48             : }
      49             : 
      50           3 : Reference< XInterface > SAL_CALL ODataSourcePropertyDialog::Create(const Reference< XMultiServiceFactory >& _rxFactory)
      51             : {
      52           3 :     return *(new ODataSourcePropertyDialog( comphelper::getComponentContext(_rxFactory) ));
      53             : }
      54             : 
      55           1 : OUString SAL_CALL ODataSourcePropertyDialog::getImplementationName() throw(RuntimeException, std::exception)
      56             : {
      57           1 :     return getImplementationName_Static();
      58             : }
      59             : 
      60          25 : OUString ODataSourcePropertyDialog::getImplementationName_Static() throw(RuntimeException)
      61             : {
      62          25 :     return OUString("org.openoffice.comp.dbu.ODatasourceAdministrationDialog");
      63             : }
      64             : 
      65           1 : ::comphelper::StringSequence SAL_CALL ODataSourcePropertyDialog::getSupportedServiceNames() throw(RuntimeException, std::exception)
      66             : {
      67           1 :     return getSupportedServiceNames_Static();
      68             : }
      69             : 
      70          13 : ::comphelper::StringSequence ODataSourcePropertyDialog::getSupportedServiceNames_Static() throw(RuntimeException)
      71             : {
      72          13 :     ::comphelper::StringSequence aSupported(1);
      73          13 :     aSupported[0] = "com.sun.star.sdb.DatasourceAdministrationDialog";
      74          13 :     return aSupported;
      75             : }
      76             : 
      77           1 : Reference<XPropertySetInfo>  SAL_CALL ODataSourcePropertyDialog::getPropertySetInfo() throw(RuntimeException, std::exception)
      78             : {
      79           1 :     Reference<XPropertySetInfo>  xInfo( createPropertySetInfo( getInfoHelper() ) );
      80           1 :     return xInfo;
      81             : }
      82             : 
      83          22 : ::cppu::IPropertyArrayHelper& ODataSourcePropertyDialog::getInfoHelper()
      84             : {
      85          22 :     return *getArrayHelper();
      86             : }
      87             : 
      88           1 : ::cppu::IPropertyArrayHelper* ODataSourcePropertyDialog::createArrayHelper( ) const
      89             : {
      90           1 :     Sequence< Property > aProps;
      91           1 :     describeProperties(aProps);
      92           1 :     return new ::cppu::OPropertyArrayHelper(aProps);
      93             : }
      94             : 
      95           0 : VclPtr<Dialog> ODataSourcePropertyDialog::createDialog(vcl::Window* _pParent)
      96             : {
      97           0 :     VclPtrInstance<ODbAdminDialog> pDialog(_pParent, m_pDatasourceItems, m_aContext);
      98             : 
      99             :     // the initial selection
     100           0 :     if ( m_aInitialSelection.hasValue() )
     101           0 :         pDialog->selectDataSource(m_aInitialSelection);
     102             : 
     103           0 :     return pDialog;
     104             : }
     105             : 
     106          36 : }   // namespace dbaui
     107             : 
     108             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11