LCOV - code coverage report
Current view: top level - extensions/source/propctrlr - MasterDetailLinkDialog.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 10 51 19.6 %
Date: 2015-06-13 12:38:46 Functions: 5 15 33.3 %
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 "MasterDetailLinkDialog.hxx"
      21             :  #include "formlinkdialog.hxx"
      22             : #include "pcrservices.hxx"
      23             : 
      24           2 :  extern "C" void SAL_CALL createRegistryInfo_MasterDetailLinkDialog()
      25             : {
      26           2 :     ::pcr::OAutoRegistration< ::pcr::MasterDetailLinkDialog > aAutoRegistration;
      27           2 : }
      28             : 
      29             : 
      30             : namespace pcr
      31             : {
      32             : 
      33             : 
      34             :     using namespace ::com::sun::star::uno;
      35             :     using namespace ::com::sun::star::lang;
      36             :     using namespace ::com::sun::star::beans;
      37             : 
      38           0 :     MasterDetailLinkDialog::MasterDetailLinkDialog(const Reference< XComponentContext >& _rxContext )
      39           0 :         :OGenericUnoDialog( _rxContext )
      40             :     {
      41           0 :     }
      42             : 
      43           0 :     Sequence<sal_Int8> SAL_CALL MasterDetailLinkDialog::getImplementationId(  ) throw(RuntimeException, std::exception)
      44             :     {
      45           0 :         return css::uno::Sequence<sal_Int8>();
      46             :     }
      47             : 
      48             : 
      49           0 :     Reference< XInterface > SAL_CALL MasterDetailLinkDialog::Create( const Reference< XComponentContext >& _rxContext )
      50             :     {
      51           0 :         return *( new MasterDetailLinkDialog( _rxContext ) );
      52             :     }
      53             : 
      54             : 
      55           0 :     OUString SAL_CALL MasterDetailLinkDialog::getImplementationName() throw(RuntimeException, std::exception)
      56             :     {
      57           0 :         return getImplementationName_static();
      58             :     }
      59             : 
      60             : 
      61           2 :     OUString MasterDetailLinkDialog::getImplementationName_static() throw(RuntimeException)
      62             :     {
      63           2 :         return OUString("org.openoffice.comp.form.ui.MasterDetailLinkDialog");
      64             :     }
      65             : 
      66             : 
      67           0 :     ::comphelper::StringSequence SAL_CALL MasterDetailLinkDialog::getSupportedServiceNames() throw(RuntimeException, std::exception)
      68             :     {
      69           0 :         return getSupportedServiceNames_static();
      70             :     }
      71             : 
      72             : 
      73           2 :     ::comphelper::StringSequence MasterDetailLinkDialog::getSupportedServiceNames_static() throw(RuntimeException)
      74             :     {
      75           2 :         ::comphelper::StringSequence aSupported(1);
      76           2 :         aSupported[0] = "com.sun.star.form.MasterDetailLinkDialog";
      77           2 :         return aSupported;
      78             :     }
      79             : 
      80             : 
      81           0 :     Reference<XPropertySetInfo>  SAL_CALL MasterDetailLinkDialog::getPropertySetInfo() throw(RuntimeException, std::exception)
      82             :     {
      83           0 :         Reference<XPropertySetInfo>  xInfo( createPropertySetInfo( getInfoHelper() ) );
      84           0 :         return xInfo;
      85             :     }
      86             : 
      87             : 
      88           0 :     ::cppu::IPropertyArrayHelper& MasterDetailLinkDialog::getInfoHelper()
      89             :     {
      90           0 :         return *getArrayHelper();
      91             :     }
      92             : 
      93             : 
      94           0 :     ::cppu::IPropertyArrayHelper* MasterDetailLinkDialog::createArrayHelper( ) const
      95             :     {
      96           0 :         Sequence< Property > aProps;
      97           0 :         describeProperties(aProps);
      98           0 :         return new ::cppu::OPropertyArrayHelper(aProps);
      99             :     }
     100             : 
     101             : 
     102           0 :     VclPtr<Dialog> MasterDetailLinkDialog::createDialog(vcl::Window* _pParent)
     103             :     {
     104             :         return VclPtr<FormLinkDialog>::Create(_pParent,m_xDetail,m_xMaster, m_aContext
     105           0 :             ,m_sExplanation,m_sDetailLabel,m_sMasterLabel);
     106             :     }
     107             : 
     108           0 :     void MasterDetailLinkDialog::implInitialize(const Any& _rValue)
     109             :     {
     110           0 :         PropertyValue aProperty;
     111           0 :         if (_rValue >>= aProperty)
     112             :         {
     113           0 :             if (aProperty.Name == "Detail")
     114             :             {
     115           0 :                 OSL_VERIFY( aProperty.Value >>= m_xDetail );
     116           0 :                 return;
     117             :             }
     118           0 :             else if (aProperty.Name == "Master")
     119             :             {
     120           0 :                 OSL_VERIFY( aProperty.Value >>= m_xMaster );
     121           0 :                 return;
     122             :             }
     123           0 :             else if (aProperty.Name == "Explanation")
     124             :             {
     125           0 :                 OSL_VERIFY( aProperty.Value >>= m_sExplanation );
     126           0 :                 return;
     127             :             }
     128           0 :             else if (aProperty.Name == "DetailLabel")
     129             :             {
     130           0 :                 OSL_VERIFY( aProperty.Value >>= m_sDetailLabel );
     131           0 :                 return;
     132             :             }
     133           0 :             else if (aProperty.Name == "MasterLabel")
     134             :             {
     135           0 :                 OSL_VERIFY( aProperty.Value >>= m_sMasterLabel );
     136           0 :                 return;
     137             :             }
     138             :         }
     139           0 :         MasterDetailLinkDialog_DBase::implInitialize(_rValue);
     140             :     }
     141             : 
     142             : 
     143           6 : }   // namespace pcr
     144             : 
     145             : 
     146             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11