LCOV - code coverage report
Current view: top level - libreoffice/dbaccess/source/ui/uno - admindlg.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 36 0.0 %
Date: 2012-12-27 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             : 
      21             : #include "dbu_reghelper.hxx"
      22             : #include "admindlg.hxx"
      23             : #include "dbadmin.hxx"
      24             : 
      25             : 
      26             : using namespace dbaui;
      27             : 
      28           0 : extern "C" void SAL_CALL createRegistryInfo_ODataSourcePropertyDialog()
      29             : {
      30           0 :     static OMultiInstanceAutoRegistration< ODataSourcePropertyDialog > aAutoRegistration;
      31           0 : }
      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 : ODataSourcePropertyDialog::ODataSourcePropertyDialog(const Reference< XMultiServiceFactory >& _rxORB)
      45           0 :     :ODatabaseAdministrationDialog(_rxORB)
      46             : {
      47           0 : }
      48             : //-------------------------------------------------------------------------
      49           0 : Sequence<sal_Int8> SAL_CALL ODataSourcePropertyDialog::getImplementationId(  ) throw(RuntimeException)
      50             : {
      51           0 :     static ::cppu::OImplementationId aId;
      52           0 :     return aId.getImplementationId();
      53             : }
      54             : 
      55             : //-------------------------------------------------------------------------
      56           0 : Reference< XInterface > SAL_CALL ODataSourcePropertyDialog::Create(const Reference< XMultiServiceFactory >& _rxFactory)
      57             : {
      58           0 :     return *(new ODataSourcePropertyDialog(_rxFactory));
      59             : }
      60             : 
      61             : //-------------------------------------------------------------------------
      62           0 : ::rtl::OUString SAL_CALL ODataSourcePropertyDialog::getImplementationName() throw(RuntimeException)
      63             : {
      64           0 :     return getImplementationName_Static();
      65             : }
      66             : 
      67             : //-------------------------------------------------------------------------
      68           0 : ::rtl::OUString ODataSourcePropertyDialog::getImplementationName_Static() throw(RuntimeException)
      69             : {
      70           0 :     return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("org.openoffice.comp.dbu.ODatasourceAdministrationDialog"));
      71             : }
      72             : 
      73             : //-------------------------------------------------------------------------
      74           0 : ::comphelper::StringSequence SAL_CALL ODataSourcePropertyDialog::getSupportedServiceNames() throw(RuntimeException)
      75             : {
      76           0 :     return getSupportedServiceNames_Static();
      77             : }
      78             : 
      79             : //-------------------------------------------------------------------------
      80           0 : ::comphelper::StringSequence ODataSourcePropertyDialog::getSupportedServiceNames_Static() throw(RuntimeException)
      81             : {
      82           0 :     ::comphelper::StringSequence aSupported(1);
      83           0 :     aSupported.getArray()[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdb.DatasourceAdministrationDialog"));
      84           0 :     return aSupported;
      85             : }
      86             : 
      87             : //-------------------------------------------------------------------------
      88           0 : Reference<XPropertySetInfo>  SAL_CALL ODataSourcePropertyDialog::getPropertySetInfo() throw(RuntimeException)
      89             : {
      90           0 :     Reference<XPropertySetInfo>  xInfo( createPropertySetInfo( getInfoHelper() ) );
      91           0 :     return xInfo;
      92             : }
      93             : 
      94             : //-------------------------------------------------------------------------
      95           0 : ::cppu::IPropertyArrayHelper& ODataSourcePropertyDialog::getInfoHelper()
      96             : {
      97           0 :     return *const_cast<ODataSourcePropertyDialog*>(this)->getArrayHelper();
      98             : }
      99             : 
     100             : //------------------------------------------------------------------------------
     101           0 : ::cppu::IPropertyArrayHelper* ODataSourcePropertyDialog::createArrayHelper( ) const
     102             : {
     103           0 :     Sequence< Property > aProps;
     104           0 :     describeProperties(aProps);
     105           0 :     return new ::cppu::OPropertyArrayHelper(aProps);
     106             : }
     107             : //------------------------------------------------------------------------------
     108           0 : Dialog* ODataSourcePropertyDialog::createDialog(Window* _pParent)
     109             : {
     110             : 
     111           0 :     ODbAdminDialog* pDialog = new ODbAdminDialog(_pParent, m_pDatasourceItems, m_aContext.getLegacyServiceFactory());
     112             : 
     113             :     // the initial selection
     114           0 :     if ( m_aInitialSelection.hasValue() )
     115           0 :         pDialog->selectDataSource(m_aInitialSelection);
     116             : 
     117           0 :     return pDialog;
     118             : }
     119             : 
     120             : //.........................................................................
     121           0 : }   // namespace dbaui
     122             : //.........................................................................
     123             : 
     124             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10