GPU-Calc: remove Alloc_Host_Ptr for clmem of NAN vector
[LibreOffice.git] / sc / source / ui / vba / vbamenubars.hxx
blobc64c50760af64799e6f0c7b6582b9befc38768a1
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_MENUBARS_HXX
10 #define SC_VBA_MENUBARS_HXX
12 #include <ooo/vba/excel/XMenuBars.hpp>
13 #include <ooo/vba/excel/XMenuBar.hpp>
14 #include <ooo/vba/XCommandBars.hpp>
15 #include <com/sun/star/container/XNameAccess.hpp>
16 #include <cppuhelper/implbase1.hxx>
17 #include <vbahelper/vbahelperinterface.hxx>
18 #include <vbahelper/vbacollectionimpl.hxx>
20 typedef CollTestImplHelper< ov::excel::XMenuBars > MenuBars_BASE;
22 class ScVbaMenuBars : public MenuBars_BASE
24 private:
25 css::uno::Reference< ov::XCommandBars > m_xCommandBars;
27 public:
28 ScVbaMenuBars( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< ov::XCommandBars >& xCommandBars ) throw (css::uno::RuntimeException);
29 virtual ~ScVbaMenuBars();
31 // XEnumerationAccess
32 virtual css::uno::Type SAL_CALL getElementType() throw (css::uno::RuntimeException);
33 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() throw (css::uno::RuntimeException);
34 virtual css::uno::Any createCollectionObject( const css::uno::Any& aSource );
36 virtual sal_Int32 SAL_CALL getCount() throw(css::uno::RuntimeException);
37 virtual css::uno::Any SAL_CALL Item( const css::uno::Any& aIndex, const css::uno::Any& /*aIndex2*/ ) throw( css::uno::RuntimeException);
38 // XHelperInterface
39 virtual OUString getServiceImplName();
40 virtual css::uno::Sequence<OUString> getServiceNames();
43 #endif//SC_VBA_MENUBARS_HXX
45 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */