tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sc / source / ui / vba / vbamenuitem.hxx
blob0c85614211200eaeb5dc5d0f8b7b4905dc7f42df
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 #pragma once
11 #include <ooo/vba/excel/XMenuItem.hpp>
12 #include <ooo/vba/XCommandBarControl.hpp>
13 #include <vbahelper/vbahelperinterface.hxx>
15 typedef InheritedHelperInterfaceWeakImpl< ov::excel::XMenuItem > MenuItem_BASE;
17 class ScVbaMenuItem : public MenuItem_BASE
19 private:
20 css::uno::Reference< ov::XCommandBarControl > m_xCommandBarControl;
22 public:
23 /// @throws css::uno::RuntimeException
24 ScVbaMenuItem( const css::uno::Reference< ov::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, css::uno::Reference< ov::XCommandBarControl > xCommandBarControl );
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;
31 virtual void SAL_CALL Delete( ) override;
33 // XHelperInterface
34 virtual OUString getServiceImplName() override;
35 virtual css::uno::Sequence<OUString> getServiceNames() override;
38 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */