nss: upgrade to release 3.73
[LibreOffice.git] / sc / source / ui / vba / vbamenuitem.cxx
blob2dba780baee45dc91b366dd3da1359c8673032b4
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 >& rParent, const uno::Reference< uno::XComponentContext >& rContext, const uno::Reference< XCommandBarControl >& rCommandBarControl ) : MenuItem_BASE( rParent, rContext ), m_xCommandBarControl( rCommandBarControl )
18 OUString SAL_CALL
19 ScVbaMenuItem::getCaption()
21 return m_xCommandBarControl->getCaption();
24 void SAL_CALL
25 ScVbaMenuItem::setCaption( const OUString& _caption )
27 m_xCommandBarControl->setCaption( _caption );
30 OUString SAL_CALL
31 ScVbaMenuItem::getOnAction()
33 return m_xCommandBarControl->getOnAction();
36 void SAL_CALL
37 ScVbaMenuItem::setOnAction( const OUString& _onaction )
39 m_xCommandBarControl->setOnAction( _onaction );
42 void SAL_CALL
43 ScVbaMenuItem::Delete( )
45 m_xCommandBarControl->Delete();
48 OUString
49 ScVbaMenuItem::getServiceImplName()
51 return "ScVbaMenuItem";
54 uno::Sequence<OUString>
55 ScVbaMenuItem::getServiceNames()
57 static uno::Sequence< OUString > const aServiceNames
59 "ooo.vba.excel.MenuItem"
61 return aServiceNames;
64 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */