Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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 INCLUDED_SC_SOURCE_UI_VBA_VBAMENU_HXX
10 : #define INCLUDED_SC_SOURCE_UI_VBA_VBAMENU_HXX
11 :
12 : #include <ooo/vba/excel/XMenu.hpp>
13 : #include <ooo/vba/XCommandBarControl.hpp>
14 : #include <vbahelper/vbahelperinterface.hxx>
15 :
16 : typedef InheritedHelperInterfaceImpl1< ov::excel::XMenu > Menu_BASE;
17 :
18 0 : class ScVbaMenu : public Menu_BASE
19 : {
20 : private:
21 : css::uno::Reference< ov::XCommandBarControl > m_xCommandBarControl;
22 :
23 : public:
24 : ScVbaMenu( const css::uno::Reference< ov::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< ov::XCommandBarControl >& rCommandBarControl ) throw( css::uno::RuntimeException );
25 :
26 : virtual OUString SAL_CALL getCaption() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
27 : virtual void SAL_CALL setCaption( const OUString& _caption ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
28 :
29 : virtual void SAL_CALL Delete( ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
30 : virtual css::uno::Any SAL_CALL MenuItems( const css::uno::Any& aIndex ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
31 :
32 : // XHelperInterface
33 : virtual OUString getServiceImplName() SAL_OVERRIDE;
34 : virtual css::uno::Sequence<OUString> getServiceNames() SAL_OVERRIDE;
35 : };
36 : #endif // INCLUDED_SC_SOURCE_UI_VBA_VBAMENU_HXX
37 :
38 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|