LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/extensions/source/propctrlr - pcrunodialogs.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 11 57 19.3 %
Date: 2013-07-09 Functions: 5 17 29.4 %
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 "pcrunodialogs.hxx"
      21             : #include "formstrings.hxx"
      22             : #include "pcrstrings.hxx"
      23             : #include "taborder.hxx"
      24             : #include "pcrcommon.hxx"
      25             : 
      26           1 : extern "C" void SAL_CALL createRegistryInfo_OTabOrderDialog()
      27             : {
      28           1 :     ::pcr::OAutoRegistration< ::pcr::OTabOrderDialog > aAutoRegistration;
      29           1 : }
      30             : 
      31             : //........................................................................
      32             : namespace pcr
      33             : {
      34             : //........................................................................
      35             : 
      36             :     using namespace ::com::sun::star::uno;
      37             :     using namespace ::com::sun::star::lang;
      38             :     using namespace ::com::sun::star::beans;
      39             : 
      40             :     //====================================================================
      41             :     //= OTabOrderDialog
      42             :     //====================================================================
      43             :     //---------------------------------------------------------------------
      44           0 :     OTabOrderDialog::OTabOrderDialog( const Reference< XComponentContext >& _rxContext )
      45           0 :         :OGenericUnoDialog( _rxContext )
      46             :     {
      47             :         registerProperty( PROPERTY_CONTROLCONTEXT, OWN_PROPERTY_ID_CONTROLCONTEXT,
      48             :             PropertyAttribute::BOUND | PropertyAttribute::TRANSIENT,
      49           0 :             &m_xControlContext, ::getCppuType( &m_xControlContext ) );
      50             : 
      51             :         registerProperty( PROPERTY_TABBINGMODEL, OWN_PROPERTY_ID_TABBINGMODEL,
      52             :             PropertyAttribute::BOUND | PropertyAttribute::TRANSIENT,
      53           0 :             &m_xTabbingModel, ::getCppuType( &m_xTabbingModel ) );
      54           0 :     }
      55             : 
      56             :     //---------------------------------------------------------------------
      57           0 :     OTabOrderDialog::~OTabOrderDialog()
      58             :     {
      59           0 :         if ( m_pDialog )
      60             :         {
      61           0 :             ::osl::MutexGuard aGuard( m_aMutex );
      62           0 :             if ( m_pDialog )
      63           0 :                 destroyDialog();
      64             :         }
      65           0 :     }
      66             : 
      67             :     //---------------------------------------------------------------------
      68           0 :     Sequence<sal_Int8> SAL_CALL OTabOrderDialog::getImplementationId(  ) throw(RuntimeException)
      69             :     {
      70           0 :         static ::cppu::OImplementationId aId;
      71           0 :         return aId.getImplementationId();
      72             :     }
      73             : 
      74             :     //---------------------------------------------------------------------
      75           0 :     Reference< XInterface > SAL_CALL OTabOrderDialog::Create( const Reference< XComponentContext >& _rxContext )
      76             :     {
      77           0 :         return *( new OTabOrderDialog( _rxContext ) );
      78             :     }
      79             : 
      80             :     //---------------------------------------------------------------------
      81           0 :     OUString SAL_CALL OTabOrderDialog::getImplementationName() throw(RuntimeException)
      82             :     {
      83           0 :         return getImplementationName_static();
      84             :     }
      85             : 
      86             :     //---------------------------------------------------------------------
      87           1 :     OUString OTabOrderDialog::getImplementationName_static() throw(RuntimeException)
      88             :     {
      89           1 :         return OUString("org.openoffice.comp.form.ui.OTabOrderDialog");
      90             :     }
      91             : 
      92             :     //---------------------------------------------------------------------
      93           0 :     ::comphelper::StringSequence SAL_CALL OTabOrderDialog::getSupportedServiceNames() throw(RuntimeException)
      94             :     {
      95           0 :         return getSupportedServiceNames_static();
      96             :     }
      97             : 
      98             :     //---------------------------------------------------------------------
      99           1 :     ::comphelper::StringSequence OTabOrderDialog::getSupportedServiceNames_static() throw(RuntimeException)
     100             :     {
     101           1 :         ::comphelper::StringSequence aSupported(2);
     102           1 :         aSupported.getArray()[0] = OUString(  "com.sun.star.form.ui.TabOrderDialog"  );
     103           1 :         aSupported.getArray()[1] = OUString(  "com.sun.star.form.TabOrderDialog"  );
     104           1 :         return aSupported;
     105             :     }
     106             : 
     107             :     //---------------------------------------------------------------------
     108           0 :     Reference<XPropertySetInfo>  SAL_CALL OTabOrderDialog::getPropertySetInfo() throw(RuntimeException)
     109             :     {
     110           0 :         Reference<XPropertySetInfo>  xInfo( createPropertySetInfo( getInfoHelper() ) );
     111           0 :         return xInfo;
     112             :     }
     113             : 
     114             :     //---------------------------------------------------------------------
     115           0 :     ::cppu::IPropertyArrayHelper& OTabOrderDialog::getInfoHelper()
     116             :     {
     117           0 :         return *const_cast< OTabOrderDialog* >( this )->getArrayHelper();
     118             :     }
     119             : 
     120             :     //--------------------------------------------------------------------------
     121           0 :     ::cppu::IPropertyArrayHelper* OTabOrderDialog::createArrayHelper( ) const
     122             :     {
     123           0 :         Sequence< Property > aProps;
     124           0 :         describeProperties( aProps );
     125           0 :         return new ::cppu::OPropertyArrayHelper( aProps );
     126             :     }
     127             : 
     128             :     //--------------------------------------------------------------------------
     129           0 :     Dialog* OTabOrderDialog::createDialog( Window* _pParent )
     130             :     {
     131           0 :         return new TabOrderDialog( _pParent, m_xTabbingModel, m_xControlContext, m_aContext );
     132             :     }
     133             : 
     134           0 :     void OTabOrderDialog::initialize( const Sequence< Any >& aArguments ) throw(Exception, RuntimeException)
     135             :     {
     136           0 :         Reference<css::awt::XTabControllerModel> xTabbingModel;
     137           0 :         Reference<css::awt::XControlContainer> xControlContext;
     138           0 :         Reference<css::awt::XWindow> xParentWindow;
     139           0 :         if (aArguments.getLength() == 3 && (aArguments[0] >>= xTabbingModel) && (aArguments[1] >>= xControlContext) && (aArguments[2] >>= xParentWindow))
     140             :         {
     141           0 :             Sequence< Any > aNewArguments( 3 );
     142           0 :             aNewArguments[0] <<= NamedValue(
     143             :                 OUString( "TabbingModel" ),
     144             :                 makeAny( xTabbingModel )
     145           0 :             );
     146           0 :             aNewArguments[1] <<= NamedValue(
     147             :                 OUString( "ControlContext" ),
     148             :                 makeAny( xControlContext )
     149           0 :             );
     150           0 :             aNewArguments[2] <<= NamedValue(
     151             :                 OUString( "ParentWindow"  ),
     152             :                 makeAny( xParentWindow )
     153           0 :             );
     154           0 :             OTabOrderDialog_DBase::initialize(aNewArguments);
     155             :         }
     156             :         else
     157           0 :             OTabOrderDialog_DBase::initialize(aArguments);
     158           0 :     }
     159             : 
     160             : 
     161             : 
     162             : //........................................................................
     163           3 : }   // namespace pcr
     164             : //........................................................................
     165             : 
     166             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10