LCOV - code coverage report
Current view: top level - sc/source/ui/vba - vbamenuitem.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 23 0.0 %
Date: 2012-08-25 Functions: 0 8 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 12 0.0 %

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*
       3                 :            :  * Version: MPL 1.1 / GPLv3+ / LGPLv3+
       4                 :            :  *
       5                 :            :  * The contents of this file are subject to the Mozilla Public License Version
       6                 :            :  * 1.1 (the "License"); you may not use this file except in compliance with
       7                 :            :  * the License. You may obtain a copy of the License at
       8                 :            :  * http://www.mozilla.org/MPL/
       9                 :            :  *
      10                 :            :  * Software distributed under the License is distributed on an "AS IS" basis,
      11                 :            :  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
      12                 :            :  * for the specific language governing rights and limitations under the
      13                 :            :  * License.
      14                 :            :  *
      15                 :            :  * The Initial Developer of the Original Code is
      16                 :            :  *       Novell Inc.
      17                 :            :  * Portions created by the Initial Developer are Copyright (C) 2010 the
      18                 :            :  * Initial Developer. All Rights Reserved.
      19                 :            :  *
      20                 :            :  * Contributor(s): Pei Feng Lin <pflin@novell.com>
      21                 :            :  *
      22                 :            :  * Alternatively, the contents of this file may be used under the terms of
      23                 :            :  * either the GNU General Public License Version 3 or later (the "GPLv3+"), or
      24                 :            :  * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
      25                 :            :  * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
      26                 :            :  * instead of those above.
      27                 :            :  */
      28                 :            : #include "vbamenuitem.hxx"
      29                 :            : 
      30                 :            : using namespace com::sun::star;
      31                 :            : using namespace ooo::vba;
      32                 :            : 
      33                 :          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 )
      34                 :            : {
      35                 :          0 : }
      36                 :            : 
      37                 :            : ::rtl::OUString SAL_CALL
      38                 :          0 : ScVbaMenuItem::getCaption() throw ( uno::RuntimeException )
      39                 :            : {
      40                 :          0 :     return m_xCommandBarControl->getCaption();
      41                 :            : }
      42                 :            : 
      43                 :            : void SAL_CALL
      44                 :          0 : ScVbaMenuItem::setCaption( const ::rtl::OUString& _caption ) throw (uno::RuntimeException)
      45                 :            : {
      46                 :          0 :     m_xCommandBarControl->setCaption( _caption );
      47                 :          0 : }
      48                 :            : 
      49                 :            : ::rtl::OUString SAL_CALL
      50                 :          0 : ScVbaMenuItem::getOnAction() throw ( uno::RuntimeException )
      51                 :            : {
      52                 :          0 :     return m_xCommandBarControl->getOnAction();
      53                 :            : }
      54                 :            : 
      55                 :            : void SAL_CALL
      56                 :          0 : ScVbaMenuItem::setOnAction( const ::rtl::OUString& _onaction ) throw (uno::RuntimeException)
      57                 :            : {
      58                 :          0 :     m_xCommandBarControl->setOnAction( _onaction );
      59                 :          0 : }
      60                 :            : 
      61                 :            : void SAL_CALL
      62                 :          0 : ScVbaMenuItem::Delete( ) throw (script::BasicErrorException, uno::RuntimeException)
      63                 :            : {
      64                 :          0 :     m_xCommandBarControl->Delete();
      65                 :          0 : }
      66                 :            : 
      67                 :            : rtl::OUString
      68                 :          0 : ScVbaMenuItem::getServiceImplName()
      69                 :            : {
      70                 :          0 :     return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ScVbaMenuItem"));
      71                 :            : }
      72                 :            : 
      73                 :            : uno::Sequence<rtl::OUString>
      74                 :          0 : ScVbaMenuItem::getServiceNames()
      75                 :            : {
      76 [ #  # ][ #  # ]:          0 :     static uno::Sequence< rtl::OUString > aServiceNames;
         [ #  # ][ #  # ]
      77         [ #  # ]:          0 :     if ( aServiceNames.getLength() == 0 )
      78                 :            :     {
      79                 :          0 :         aServiceNames.realloc( 1 );
      80         [ #  # ]:          0 :         aServiceNames[ 0 ] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("ooo.vba.excel.MenuItem" ) );
      81                 :            :     }
      82                 :          0 :     return aServiceNames;
      83                 :            : }
      84                 :            : 
      85                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10