LCOV - code coverage report
Current view: top level - dbaccess/source/ui/uno - TableFilterDlg.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 9 33 27.3 %
Date: 2012-08-25 Functions: 3 12 25.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 5 32 15.6 %

           Branch data     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 "TableFilterDlg.hxx"
      23                 :            : #include "TablesSingleDlg.hxx"
      24                 :            : 
      25                 :            : 
      26                 :            : using namespace dbaui;
      27                 :            : 
      28                 :          8 : extern "C" void SAL_CALL createRegistryInfo_OTableFilterDialog()
      29                 :            : {
      30 [ +  - ][ +  - ]:          8 :     static OMultiInstanceAutoRegistration< OTableFilterDialog > aAutoRegistration;
         [ +  - ][ #  # ]
      31                 :          8 : }
      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 : OTableFilterDialog::OTableFilterDialog(const Reference< XMultiServiceFactory >& _rxORB)
      45         [ #  # ]:          0 :     :ODatabaseAdministrationDialog(_rxORB)
      46                 :            : {
      47                 :          0 : }
      48                 :            : //-------------------------------------------------------------------------
      49                 :          0 : Sequence<sal_Int8> SAL_CALL OTableFilterDialog::getImplementationId(  ) throw(RuntimeException)
      50                 :            : {
      51 [ #  # ][ #  # ]:          0 :     static ::cppu::OImplementationId aId;
      52                 :          0 :     return aId.getImplementationId();
      53                 :            : }
      54                 :            : 
      55                 :            : //-------------------------------------------------------------------------
      56                 :          0 : Reference< XInterface > SAL_CALL OTableFilterDialog::Create(const Reference< XMultiServiceFactory >& _rxFactory)
      57                 :            : {
      58         [ #  # ]:          0 :     return *(new OTableFilterDialog(_rxFactory));
      59                 :            : }
      60                 :            : 
      61                 :            : //-------------------------------------------------------------------------
      62                 :          0 : ::rtl::OUString SAL_CALL OTableFilterDialog::getImplementationName() throw(RuntimeException)
      63                 :            : {
      64                 :          0 :     return getImplementationName_Static();
      65                 :            : }
      66                 :            : 
      67                 :            : //-------------------------------------------------------------------------
      68                 :         16 : ::rtl::OUString OTableFilterDialog::getImplementationName_Static() throw(RuntimeException)
      69                 :            : {
      70                 :         16 :     return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("org.openoffice.comp.dbu.OTableFilterDialog"));
      71                 :            : }
      72                 :            : 
      73                 :            : //-------------------------------------------------------------------------
      74                 :          0 : ::comphelper::StringSequence SAL_CALL OTableFilterDialog::getSupportedServiceNames() throw(RuntimeException)
      75                 :            : {
      76                 :          0 :     return getSupportedServiceNames_Static();
      77                 :            : }
      78                 :            : 
      79                 :            : //-------------------------------------------------------------------------
      80                 :          8 : ::comphelper::StringSequence OTableFilterDialog::getSupportedServiceNames_Static() throw(RuntimeException)
      81                 :            : {
      82                 :          8 :     ::comphelper::StringSequence aSupported(1);
      83 [ +  - ][ +  - ]:          8 :     aSupported.getArray()[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdb.TableFilterDialog"));
      84                 :          8 :     return aSupported;
      85                 :            : }
      86                 :            : 
      87                 :            : //-------------------------------------------------------------------------
      88                 :          0 : Reference<XPropertySetInfo>  SAL_CALL OTableFilterDialog::getPropertySetInfo() throw(RuntimeException)
      89                 :            : {
      90                 :          0 :     Reference<XPropertySetInfo>  xInfo( createPropertySetInfo( getInfoHelper() ) );
      91                 :          0 :     return xInfo;
      92                 :            : }
      93                 :            : 
      94                 :            : //-------------------------------------------------------------------------
      95                 :          0 : ::cppu::IPropertyArrayHelper& OTableFilterDialog::getInfoHelper()
      96                 :            : {
      97                 :          0 :     return *const_cast<OTableFilterDialog*>(this)->getArrayHelper();
      98                 :            : }
      99                 :            : 
     100                 :            : //------------------------------------------------------------------------------
     101                 :          0 : ::cppu::IPropertyArrayHelper* OTableFilterDialog::createArrayHelper( ) const
     102                 :            : {
     103         [ #  # ]:          0 :     Sequence< Property > aProps;
     104         [ #  # ]:          0 :     describeProperties(aProps);
     105 [ #  # ][ #  # ]:          0 :     return new ::cppu::OPropertyArrayHelper(aProps);
     106                 :            : }
     107                 :            : //------------------------------------------------------------------------------
     108                 :          0 : Dialog* OTableFilterDialog::createDialog(Window* _pParent)
     109                 :            : {
     110 [ #  # ][ #  # ]:          0 :     OTableSubscriptionDialog* pDlg = new OTableSubscriptionDialog(_pParent, m_pDatasourceItems, m_aContext.getLegacyServiceFactory(),m_aInitialSelection);
     111                 :          0 :     return pDlg;
     112                 :            : }
     113                 :            : 
     114                 :            : //.........................................................................
     115                 :            : }   // namespace dbaui
     116                 :            : //.........................................................................
     117                 :            : 
     118                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10