GPU-Calc: remove Alloc_Host_Ptr for clmem of NAN vector
[LibreOffice.git] / sc / source / ui / vba / vbamenuitem.hxx
blobd536207eca526b75d611144d61639fc274122351
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 #ifndef SC_VBA_MENUITEM_HXX
10 #define SC_VBA_MENUITEM_HXX
12 #include <ooo/vba/excel/XMenuItem.hpp>
13 #include <ooo/vba/XCommandBarControl.hpp>
14 #include <vbahelper/vbahelperinterface.hxx>
16 typedef InheritedHelperInterfaceImpl1< ov::excel::XMenuItem > MenuItem_BASE;
18 class ScVbaMenuItem : public MenuItem_BASE
20 private:
21 css::uno::Reference< ov::XCommandBarControl > m_xCommandBarControl;
23 public:
24 ScVbaMenuItem( const css::uno::Reference< ov::XHelperInterface > xParent, const css::uno::Reference< css::uno::XComponentContext > xContext, const css::uno::Reference< ov::XCommandBarControl >& xCommandBarControl ) throw( css::uno::RuntimeException );
26 virtual OUString SAL_CALL getCaption() throw (css::uno::RuntimeException);
27 virtual void SAL_CALL setCaption( const OUString& _caption ) throw (css::uno::RuntimeException);
28 virtual OUString SAL_CALL getOnAction() throw (css::uno::RuntimeException);
29 virtual void SAL_CALL setOnAction( const OUString& _onaction ) throw (css::uno::RuntimeException);
31 virtual void SAL_CALL Delete( ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
33 // XHelperInterface
34 virtual OUString getServiceImplName();
35 virtual css::uno::Sequence<OUString> getServiceNames();
37 #endif//SC_VBA_MENUITEM_HXX
39 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */