LCOV - code coverage report
Current view: top level - libreoffice/dbaccess/source/ui/uno - AdvancedSettingsDlg.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 34 0.0 %
Date: 2012-12-27 Functions: 0 16 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 "unoadmin.hxx"
      22             : #include "dbu_reghelper.hxx"
      23             : #include "advancedsettingsdlg.hxx"
      24             : 
      25             : //.........................................................................
      26             : namespace dbaui
      27             : {
      28             : //.........................................................................
      29             : 
      30             :     using namespace ::com::sun::star::uno;
      31             :     using namespace ::com::sun::star::lang;
      32             :     using namespace ::com::sun::star::beans;
      33             : 
      34             :     //=========================================================================
      35             :     //= OAdvancedSettingsDialog
      36             :     //=========================================================================
      37           0 :     class OAdvancedSettingsDialog
      38             :             :public ODatabaseAdministrationDialog
      39             :             ,public ::comphelper::OPropertyArrayUsageHelper< OAdvancedSettingsDialog >
      40             :     {
      41             : 
      42             :     protected:
      43             :         OAdvancedSettingsDialog(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB);
      44             : 
      45             :     public:
      46             :         // XTypeProvider
      47             :         virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId(  ) throw(::com::sun::star::uno::RuntimeException);
      48             : 
      49             :         // XServiceInfo
      50             :         virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
      51             :         virtual ::comphelper::StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
      52             : 
      53             :         // XServiceInfo - static methods
      54             :         static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static(void) throw( ::com::sun::star::uno::RuntimeException );
      55             :         static ::rtl::OUString getImplementationName_Static(void) throw( ::com::sun::star::uno::RuntimeException );
      56             :         static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
      57             :                 SAL_CALL Create(const ::com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >&);
      58             : 
      59             :         // XPropertySet
      60             :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo>  SAL_CALL getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException);
      61             :         virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
      62             : 
      63             :         // OPropertyArrayUsageHelper
      64             :         virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const;
      65             :     protected:
      66             :     // OGenericUnoDialog overridables
      67             :         virtual Dialog* createDialog(Window* _pParent);
      68             :     };
      69             : 
      70             :     //=========================================================================
      71             :     //-------------------------------------------------------------------------
      72           0 :     OAdvancedSettingsDialog::OAdvancedSettingsDialog(const Reference< XMultiServiceFactory >& _rxORB)
      73           0 :         :ODatabaseAdministrationDialog(_rxORB)
      74             :     {
      75           0 :     }
      76             :     //-------------------------------------------------------------------------
      77           0 :     Sequence<sal_Int8> SAL_CALL OAdvancedSettingsDialog::getImplementationId(  ) throw(RuntimeException)
      78             :     {
      79           0 :         static ::cppu::OImplementationId aId;
      80           0 :         return aId.getImplementationId();
      81             :     }
      82             : 
      83             :     //-------------------------------------------------------------------------
      84           0 :     Reference< XInterface > SAL_CALL OAdvancedSettingsDialog::Create(const Reference< XMultiServiceFactory >& _rxFactory)
      85             :     {
      86           0 :         return *(new OAdvancedSettingsDialog(_rxFactory));
      87             :     }
      88             : 
      89             :     //-------------------------------------------------------------------------
      90           0 :     ::rtl::OUString SAL_CALL OAdvancedSettingsDialog::getImplementationName() throw(RuntimeException)
      91             :     {
      92           0 :         return getImplementationName_Static();
      93             :     }
      94             : 
      95             :     //-------------------------------------------------------------------------
      96           0 :     ::rtl::OUString OAdvancedSettingsDialog::getImplementationName_Static() throw(RuntimeException)
      97             :     {
      98           0 :         return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("org.openoffice.comp.dbu.OAdvancedSettingsDialog"));
      99             :     }
     100             : 
     101             :     //-------------------------------------------------------------------------
     102           0 :     ::comphelper::StringSequence SAL_CALL OAdvancedSettingsDialog::getSupportedServiceNames() throw(RuntimeException)
     103             :     {
     104           0 :         return getSupportedServiceNames_Static();
     105             :     }
     106             : 
     107             :     //-------------------------------------------------------------------------
     108           0 :     ::comphelper::StringSequence OAdvancedSettingsDialog::getSupportedServiceNames_Static() throw(RuntimeException)
     109             :     {
     110           0 :         ::comphelper::StringSequence aSupported(1);
     111           0 :         aSupported.getArray()[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdb.AdvancedDatabaseSettingsDialog"));
     112           0 :         return aSupported;
     113             :     }
     114             : 
     115             :     //-------------------------------------------------------------------------
     116           0 :     Reference<XPropertySetInfo>  SAL_CALL OAdvancedSettingsDialog::getPropertySetInfo() throw(RuntimeException)
     117             :     {
     118           0 :         Reference<XPropertySetInfo>  xInfo( createPropertySetInfo( getInfoHelper() ) );
     119           0 :         return xInfo;
     120             :     }
     121             : 
     122             :     //-------------------------------------------------------------------------
     123           0 :     ::cppu::IPropertyArrayHelper& OAdvancedSettingsDialog::getInfoHelper()
     124             :     {
     125           0 :         return *const_cast<OAdvancedSettingsDialog*>(this)->getArrayHelper();
     126             :     }
     127             : 
     128             :     //------------------------------------------------------------------------------
     129           0 :     ::cppu::IPropertyArrayHelper* OAdvancedSettingsDialog::createArrayHelper( ) const
     130             :     {
     131           0 :         Sequence< Property > aProps;
     132           0 :         describeProperties(aProps);
     133           0 :         return new ::cppu::OPropertyArrayHelper(aProps);
     134             :     }
     135             :     //------------------------------------------------------------------------------
     136           0 :     Dialog* OAdvancedSettingsDialog::createDialog(Window* _pParent)
     137             :     {
     138           0 :         AdvancedSettingsDialog* pDlg = new AdvancedSettingsDialog(_pParent, m_pDatasourceItems, m_aContext.getLegacyServiceFactory(),m_aInitialSelection);
     139           0 :         return pDlg;
     140             :     }
     141             : 
     142             : //.........................................................................
     143             : }   // namespace dbaui
     144             : //.........................................................................
     145             : 
     146           0 : extern "C" void SAL_CALL createRegistryInfo_OAdvancedSettingsDialog()
     147             : {
     148           0 :     static ::dbaui::OMultiInstanceAutoRegistration< ::dbaui::OAdvancedSettingsDialog > aAutoRegistration;
     149           0 : }
     150             : 
     151             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10