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

Generated by: LCOV version 1.10