LibreOffice Module sc (master)
1
sc
source
ui
vba
vbamenu.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/XMenu.hpp>
12
#include <ooo/vba/XCommandBarControl.hpp>
13
#include <
vbahelper/vbahelperinterface.hxx
>
14
15
typedef
InheritedHelperInterfaceWeakImpl< ov::excel::XMenu >
Menu_BASE
;
16
17
class
ScVbaMenu
:
public
Menu_BASE
18
{
19
private
:
20
css::uno::Reference< ov::XCommandBarControl >
m_xCommandBarControl
;
21
22
public
:
24
ScVbaMenu
(
const
css::uno::Reference< ov::XHelperInterface >& rParent,
const
css::uno::Reference< css::uno::XComponentContext >& rContext, css::uno::Reference< ov::XCommandBarControl > xCommandBarControl );
25
26
virtual
OUString SAL_CALL
getCaption
()
override
;
27
virtual
void
SAL_CALL
setCaption
(
const
OUString& _caption )
override
;
28
29
virtual
void
SAL_CALL
Delete
( )
override
;
30
virtual
css::uno::Any SAL_CALL
MenuItems
(
const
css::uno::Any& aIndex )
override
;
31
32
// XHelperInterface
33
virtual
OUString
getServiceImplName
()
override
;
34
virtual
css::uno::Sequence<OUString>
getServiceNames
()
override
;
35
};
36
37
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
InheritedHelperInterfaceWeakImpl
ScVbaMenu
Definition:
vbamenu.hxx:18
ScVbaMenu::m_xCommandBarControl
css::uno::Reference< ov::XCommandBarControl > m_xCommandBarControl
Definition:
vbamenu.hxx:20
ScVbaMenu::ScVbaMenu
ScVbaMenu(const css::uno::Reference< ov::XHelperInterface > &rParent, const css::uno::Reference< css::uno::XComponentContext > &rContext, css::uno::Reference< ov::XCommandBarControl > xCommandBarControl)
Definition:
vbamenu.cxx:18
ScVbaMenu::Delete
virtual void SAL_CALL Delete() override
Definition:
vbamenu.cxx:35
ScVbaMenu::getServiceNames
virtual css::uno::Sequence< OUString > getServiceNames() override
Definition:
vbamenu.cxx:59
ScVbaMenu::MenuItems
virtual css::uno::Any SAL_CALL MenuItems(const css::uno::Any &aIndex) override
Definition:
vbamenu.cxx:41
ScVbaMenu::getServiceImplName
virtual OUString getServiceImplName() override
Definition:
vbamenu.cxx:53
ScVbaMenu::getCaption
virtual OUString SAL_CALL getCaption() override
Definition:
vbamenu.cxx:23
ScVbaMenu::setCaption
virtual void SAL_CALL setCaption(const OUString &_caption) override
Definition:
vbamenu.cxx:29
vbahelperinterface.hxx
Menu_BASE
InheritedHelperInterfaceWeakImpl< ov::excel::XMenu > Menu_BASE
Definition:
vbamenu.hxx:15
Generated on Sun Jul 30 2023 04:29:41 for LibreOffice Module sc (master) by
1.9.3