LCOV - code coverage report
Current view: top level - extensions/source/propctrlr - pcrunodialogs.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 40 0.0 %
Date: 2012-08-25 Functions: 0 14 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : #include "pcrunodialogs.hxx"
      30                 :            : #include "formstrings.hxx"
      31                 :            : #include "pcrstrings.hxx"
      32                 :            : #include "taborder.hxx"
      33                 :            : #include "pcrcommon.hxx"
      34                 :            : 
      35                 :          0 : extern "C" void SAL_CALL createRegistryInfo_OTabOrderDialog()
      36                 :            : {
      37                 :          0 :     ::pcr::OAutoRegistration< ::pcr::OTabOrderDialog > aAutoRegistration;
      38                 :          0 : }
      39                 :            : 
      40                 :            : //........................................................................
      41                 :            : namespace pcr
      42                 :            : {
      43                 :            : //........................................................................
      44                 :            : 
      45                 :            :     using namespace ::com::sun::star::uno;
      46                 :            :     using namespace ::com::sun::star::lang;
      47                 :            :     using namespace ::com::sun::star::beans;
      48                 :            : 
      49                 :            :     //====================================================================
      50                 :            :     //= OTabOrderDialog
      51                 :            :     //====================================================================
      52                 :            :     //---------------------------------------------------------------------
      53                 :          0 :     OTabOrderDialog::OTabOrderDialog( const Reference< XComponentContext >& _rxContext )
      54                 :          0 :         :OGenericUnoDialog( _rxContext )
      55                 :            :     {
      56                 :            :         registerProperty( PROPERTY_CONTROLCONTEXT, OWN_PROPERTY_ID_CONTROLCONTEXT,
      57                 :            :             PropertyAttribute::BOUND | PropertyAttribute::TRANSIENT,
      58                 :          0 :             &m_xControlContext, ::getCppuType( &m_xControlContext ) );
      59                 :            : 
      60                 :            :         registerProperty( PROPERTY_TABBINGMODEL, OWN_PROPERTY_ID_TABBINGMODEL,
      61                 :            :             PropertyAttribute::BOUND | PropertyAttribute::TRANSIENT,
      62                 :          0 :             &m_xTabbingModel, ::getCppuType( &m_xTabbingModel ) );
      63                 :          0 :     }
      64                 :            : 
      65                 :            :     //---------------------------------------------------------------------
      66                 :          0 :     OTabOrderDialog::~OTabOrderDialog()
      67                 :            :     {
      68                 :          0 :         if ( m_pDialog )
      69                 :            :         {
      70                 :          0 :             ::osl::MutexGuard aGuard( m_aMutex );
      71                 :          0 :             if ( m_pDialog )
      72                 :          0 :                 destroyDialog();
      73                 :            :         }
      74                 :          0 :     }
      75                 :            : 
      76                 :            :     //---------------------------------------------------------------------
      77                 :          0 :     Sequence<sal_Int8> SAL_CALL OTabOrderDialog::getImplementationId(  ) throw(RuntimeException)
      78                 :            :     {
      79                 :          0 :         static ::cppu::OImplementationId aId;
      80                 :          0 :         return aId.getImplementationId();
      81                 :            :     }
      82                 :            : 
      83                 :            :     //---------------------------------------------------------------------
      84                 :          0 :     Reference< XInterface > SAL_CALL OTabOrderDialog::Create( const Reference< XComponentContext >& _rxContext )
      85                 :            :     {
      86                 :          0 :         return *( new OTabOrderDialog( _rxContext ) );
      87                 :            :     }
      88                 :            : 
      89                 :            :     //---------------------------------------------------------------------
      90                 :          0 :     ::rtl::OUString SAL_CALL OTabOrderDialog::getImplementationName() throw(RuntimeException)
      91                 :            :     {
      92                 :          0 :         return getImplementationName_static();
      93                 :            :     }
      94                 :            : 
      95                 :            :     //---------------------------------------------------------------------
      96                 :          0 :     ::rtl::OUString OTabOrderDialog::getImplementationName_static() throw(RuntimeException)
      97                 :            :     {
      98                 :          0 :         return ::rtl::OUString("org.openoffice.comp.form.ui.OTabOrderDialog");
      99                 :            :     }
     100                 :            : 
     101                 :            :     //---------------------------------------------------------------------
     102                 :          0 :     ::comphelper::StringSequence SAL_CALL OTabOrderDialog::getSupportedServiceNames() throw(RuntimeException)
     103                 :            :     {
     104                 :          0 :         return getSupportedServiceNames_static();
     105                 :            :     }
     106                 :            : 
     107                 :            :     //---------------------------------------------------------------------
     108                 :          0 :     ::comphelper::StringSequence OTabOrderDialog::getSupportedServiceNames_static() throw(RuntimeException)
     109                 :            :     {
     110                 :          0 :         ::comphelper::StringSequence aSupported(1);
     111                 :          0 :         aSupported.getArray()[0] = ::rtl::OUString(  "com.sun.star.form.ui.TabOrderDialog"  );
     112                 :          0 :         return aSupported;
     113                 :            :     }
     114                 :            : 
     115                 :            :     //---------------------------------------------------------------------
     116                 :          0 :     Reference<XPropertySetInfo>  SAL_CALL OTabOrderDialog::getPropertySetInfo() throw(RuntimeException)
     117                 :            :     {
     118                 :          0 :         Reference<XPropertySetInfo>  xInfo( createPropertySetInfo( getInfoHelper() ) );
     119                 :          0 :         return xInfo;
     120                 :            :     }
     121                 :            : 
     122                 :            :     //---------------------------------------------------------------------
     123                 :          0 :     ::cppu::IPropertyArrayHelper& OTabOrderDialog::getInfoHelper()
     124                 :            :     {
     125                 :          0 :         return *const_cast< OTabOrderDialog* >( this )->getArrayHelper();
     126                 :            :     }
     127                 :            : 
     128                 :            :     //--------------------------------------------------------------------------
     129                 :          0 :     ::cppu::IPropertyArrayHelper* OTabOrderDialog::createArrayHelper( ) const
     130                 :            :     {
     131                 :          0 :         Sequence< Property > aProps;
     132                 :          0 :         describeProperties( aProps );
     133                 :          0 :         return new ::cppu::OPropertyArrayHelper( aProps );
     134                 :            :     }
     135                 :            : 
     136                 :            :     //--------------------------------------------------------------------------
     137                 :          0 :     Dialog* OTabOrderDialog::createDialog( Window* _pParent )
     138                 :            :     {
     139                 :          0 :         return new TabOrderDialog( _pParent, m_xTabbingModel, m_xControlContext, m_aContext.getLegacyServiceFactory() );
     140                 :            :     }
     141                 :            : 
     142                 :            : //........................................................................
     143                 :            : }   // namespace pcr
     144                 :            : //........................................................................
     145                 :            : 
     146                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10