LCOV - code coverage report
Current view: top level - sc/source/ui/vba - vbamenuitem.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 23 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 8 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             : #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 >& rParent, const uno::Reference< uno::XComponentContext >& rContext, const uno::Reference< XCommandBarControl >& rCommandBarControl ) throw( uno::RuntimeException ) : MenuItem_BASE( rParent, rContext ), m_xCommandBarControl( rCommandBarControl )
      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             : }
      65             : 
      66             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11