LCOV - code coverage report
Current view: top level - sc/source/ui/vba - vbamenuitem.cxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 1 24 4.2 %
Date: 2014-11-03 Functions: 2 10 20.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             : #include "vbamenuitem.hxx"
      10             : 
      11             : using namespace com::sun::star;
      12             : using namespace ooo::vba;
      13             : 
      14           0 : ScVbaMenuItem::ScVbaMenuItem( const uno::Reference< ov::XHelperInterface > xParent, const uno::Reference< uno::XComponentContext > xContext, const uno::Reference< XCommandBarControl >& xCommandBarControl ) throw( uno::RuntimeException ) : MenuItem_BASE( xParent, xContext ), m_xCommandBarControl( xCommandBarControl )
      15             : {
      16           0 : }
      17             : 
      18             : OUString SAL_CALL
      19           0 : ScVbaMenuItem::getCaption() throw ( uno::RuntimeException, std::exception )
      20             : {
      21           0 :     return m_xCommandBarControl->getCaption();
      22             : }
      23             : 
      24             : void SAL_CALL
      25           0 : ScVbaMenuItem::setCaption( const OUString& _caption ) throw (uno::RuntimeException, std::exception)
      26             : {
      27           0 :     m_xCommandBarControl->setCaption( _caption );
      28           0 : }
      29             : 
      30             : OUString SAL_CALL
      31           0 : ScVbaMenuItem::getOnAction() throw ( uno::RuntimeException, std::exception )
      32             : {
      33           0 :     return m_xCommandBarControl->getOnAction();
      34             : }
      35             : 
      36             : void SAL_CALL
      37           0 : ScVbaMenuItem::setOnAction( const OUString& _onaction ) throw (uno::RuntimeException, std::exception)
      38             : {
      39           0 :     m_xCommandBarControl->setOnAction( _onaction );
      40           0 : }
      41             : 
      42             : void SAL_CALL
      43           0 : ScVbaMenuItem::Delete( ) throw (script::BasicErrorException, uno::RuntimeException, std::exception)
      44             : {
      45           0 :     m_xCommandBarControl->Delete();
      46           0 : }
      47             : 
      48             : OUString
      49           0 : ScVbaMenuItem::getServiceImplName()
      50             : {
      51           0 :     return OUString("ScVbaMenuItem");
      52             : }
      53             : 
      54             : uno::Sequence<OUString>
      55           0 : ScVbaMenuItem::getServiceNames()
      56             : {
      57           0 :     static uno::Sequence< OUString > aServiceNames;
      58           0 :     if ( aServiceNames.getLength() == 0 )
      59             :     {
      60           0 :         aServiceNames.realloc( 1 );
      61           0 :         aServiceNames[ 0 ] = "ooo.vba.excel.MenuItem";
      62             :     }
      63           0 :     return aServiceNames;
      64          12 : }
      65             : 
      66             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10