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

Generated by: LCOV version 1.10