LibreOffice Module sc (master)  1
vbamenuitem.hxx
Go to the documentation of this file.
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 #pragma once
10 
11 #include <ooo/vba/excel/XMenuItem.hpp>
12 #include <ooo/vba/XCommandBarControl.hpp>
14 
16 
18 {
19 private:
20  css::uno::Reference< ov::XCommandBarControl > m_xCommandBarControl;
21 
22 public:
24  ScVbaMenuItem( const css::uno::Reference< ov::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< ov::XCommandBarControl >& rCommandBarControl );
25 
26  virtual OUString SAL_CALL getCaption() override;
27  virtual void SAL_CALL setCaption( const OUString& _caption ) override;
28  virtual OUString SAL_CALL getOnAction() override;
29  virtual void SAL_CALL setOnAction( const OUString& _onaction ) override;
30 
31  virtual void SAL_CALL Delete( ) override;
32 
33  // XHelperInterface
34  virtual OUString getServiceImplName() override;
35  virtual css::uno::Sequence<OUString> getServiceNames() override;
36 };
37 
38 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ScVbaMenuItem(const css::uno::Reference< ov::XHelperInterface > &rParent, const css::uno::Reference< css::uno::XComponentContext > &rContext, const css::uno::Reference< ov::XCommandBarControl > &rCommandBarControl)
Definition: vbamenuitem.cxx:14
virtual OUString getServiceImplName() override
Definition: vbamenuitem.cxx:49
virtual OUString SAL_CALL getOnAction() override
Definition: vbamenuitem.cxx:31
css::uno::Reference< ov::XCommandBarControl > m_xCommandBarControl
Definition: vbamenuitem.hxx:20
virtual void SAL_CALL setCaption(const OUString &_caption) override
Definition: vbamenuitem.cxx:25
virtual OUString SAL_CALL getCaption() override
Definition: vbamenuitem.cxx:19
virtual css::uno::Sequence< OUString > getServiceNames() override
Definition: vbamenuitem.cxx:55
InheritedHelperInterfaceWeakImpl< ov::excel::XMenuItem > MenuItem_BASE
Definition: vbamenuitem.hxx:15
virtual void SAL_CALL Delete() override
Definition: vbamenuitem.cxx:43
virtual void SAL_CALL setOnAction(const OUString &_onaction) override
Definition: vbamenuitem.cxx:37