LibreOffice Module sc (master)
1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
sc
source
ui
vba
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
#ifndef INCLUDED_SC_SOURCE_UI_VBA_VBAMENUITEM_HXX
10
#define INCLUDED_SC_SOURCE_UI_VBA_VBAMENUITEM_HXX
11
12
#include <ooo/vba/excel/XMenuItem.hpp>
13
#include <ooo/vba/XCommandBarControl.hpp>
14
#include <
vbahelper/vbahelperinterface.hxx
>
15
16
typedef
InheritedHelperInterfaceWeakImpl< ov::excel::XMenuItem >
MenuItem_BASE
;
17
18
class
ScVbaMenuItem
:
public
MenuItem_BASE
19
{
20
private
:
21
css::uno::Reference< ov::XCommandBarControl >
m_xCommandBarControl
;
22
23
public
:
25
ScVbaMenuItem
(
const
css::uno::Reference< ov::XHelperInterface >& rParent,
const
css::uno::Reference< css::uno::XComponentContext >& rContext,
const
css::uno::Reference< ov::XCommandBarControl >& rCommandBarControl );
26
27
virtual
OUString SAL_CALL
getCaption
()
override
;
28
virtual
void
SAL_CALL
setCaption
(
const
OUString& _caption )
override
;
29
virtual
OUString SAL_CALL
getOnAction
()
override
;
30
virtual
void
SAL_CALL
setOnAction
(
const
OUString& _onaction )
override
;
31
32
virtual
void
SAL_CALL
Delete
( )
override
;
33
34
// XHelperInterface
35
virtual
OUString
getServiceImplName
()
override
;
36
virtual
css::uno::Sequence<OUString>
getServiceNames
()
override
;
37
};
38
#endif // INCLUDED_SC_SOURCE_UI_VBA_VBAMENUITEM_HXX
39
40
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ScVbaMenuItem::ScVbaMenuItem
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
ScVbaMenuItem::getServiceImplName
virtual OUString getServiceImplName() override
Definition:
vbamenuitem.cxx:49
ScVbaMenuItem::getOnAction
virtual OUString SAL_CALL getOnAction() override
Definition:
vbamenuitem.cxx:31
ScVbaMenuItem
Definition:
vbamenuitem.hxx:18
ScVbaMenuItem::m_xCommandBarControl
css::uno::Reference< ov::XCommandBarControl > m_xCommandBarControl
Definition:
vbamenuitem.hxx:21
vbahelperinterface.hxx
ScVbaMenuItem::setCaption
virtual void SAL_CALL setCaption(const OUString &_caption) override
Definition:
vbamenuitem.cxx:25
ScVbaMenuItem::getCaption
virtual OUString SAL_CALL getCaption() override
Definition:
vbamenuitem.cxx:19
InheritedHelperInterfaceWeakImpl
ScVbaMenuItem::getServiceNames
virtual css::uno::Sequence< OUString > getServiceNames() override
Definition:
vbamenuitem.cxx:55
MenuItem_BASE
InheritedHelperInterfaceWeakImpl< ov::excel::XMenuItem > MenuItem_BASE
Definition:
vbamenuitem.hxx:16
ScVbaMenuItem::Delete
virtual void SAL_CALL Delete() override
Definition:
vbamenuitem.cxx:43
ScVbaMenuItem::setOnAction
virtual void SAL_CALL setOnAction(const OUString &_onaction) override
Definition:
vbamenuitem.cxx:37
Generated on Thu Jan 14 2021 06:10:37 for LibreOffice Module sc (master) by
1.8.10