GPU-Calc: remove Alloc_Host_Ptr for clmem of NAN vector
[LibreOffice.git] / sc / source / ui / vba / vbamenuitem.cxx
blobf70eb5e1707f589899de1733083ee543c0289818
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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"
11 using namespace com::sun::star;
12 using namespace ooo::vba;
14 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 )
18 OUString SAL_CALL
19 ScVbaMenuItem::getCaption() throw ( uno::RuntimeException )
21 return m_xCommandBarControl->getCaption();
24 void SAL_CALL
25 ScVbaMenuItem::setCaption( const OUString& _caption ) throw (uno::RuntimeException)
27 m_xCommandBarControl->setCaption( _caption );
30 OUString SAL_CALL
31 ScVbaMenuItem::getOnAction() throw ( uno::RuntimeException )
33 return m_xCommandBarControl->getOnAction();
36 void SAL_CALL
37 ScVbaMenuItem::setOnAction( const OUString& _onaction ) throw (uno::RuntimeException)
39 m_xCommandBarControl->setOnAction( _onaction );
42 void SAL_CALL
43 ScVbaMenuItem::Delete( ) throw (script::BasicErrorException, uno::RuntimeException)
45 m_xCommandBarControl->Delete();
48 OUString
49 ScVbaMenuItem::getServiceImplName()
51 return OUString("ScVbaMenuItem");
54 uno::Sequence<OUString>
55 ScVbaMenuItem::getServiceNames()
57 static uno::Sequence< OUString > aServiceNames;
58 if ( aServiceNames.getLength() == 0 )
60 aServiceNames.realloc( 1 );
61 aServiceNames[ 0 ] = "ooo.vba.excel.MenuItem";
63 return aServiceNames;
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */