LibreOffice Module vbahelper (master) 1
vbacommandbar.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 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19#ifndef INCLUDED_VBAHELPER_SOURCE_VBAHELPER_VBACOMMANDBAR_HXX
20#define INCLUDED_VBAHELPER_SOURCE_VBAHELPER_VBACOMMANDBAR_HXX
21
22#include <ooo/vba/XCommandBar.hpp>
23
26
28
30{
31private:
33 css::uno::Reference< css::container::XIndexAccess > m_xBarSettings;
36
37public:
39 ScVbaCommandBar( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, VbaCommandBarHelperRef pHelper, css::uno::Reference< css::container::XIndexAccess > xBarSettings, OUString sResourceUrl, bool bIsMenu );
40
41 // Attributes
42 virtual OUString SAL_CALL getName() override;
43 virtual void SAL_CALL setName( const OUString& _name ) override;
44 virtual sal_Bool SAL_CALL getVisible() override;
45 virtual void SAL_CALL setVisible( sal_Bool _visible ) override;
46 virtual sal_Bool SAL_CALL getEnabled() override;
47 virtual void SAL_CALL setEnabled( sal_Bool _enabled ) override;
48
49 // Methods
50 virtual void SAL_CALL Delete( ) override;
51 virtual css::uno::Any SAL_CALL Controls( const css::uno::Any& aIndex ) override;
52 virtual sal_Int32 SAL_CALL Type( ) override;
53 virtual css::uno::Any SAL_CALL FindControl( const css::uno::Any& aType, const css::uno::Any& aId, const css::uno::Any& aTag, const css::uno::Any& aVisible, const css::uno::Any& aRecursive ) override;
54
55 // XHelperInterface
56 virtual OUString getServiceImplName() override;
57 virtual css::uno::Sequence<OUString> getServiceNames() override;
58};
59
62{
63public:
66 const css::uno::Reference< ov::XHelperInterface >& xParent,
67 const css::uno::Reference< css::uno::XComponentContext >& xContext,
68 OUString aName );
69
70 // Attributes
71 virtual OUString SAL_CALL getName() override;
72 virtual void SAL_CALL setName( const OUString& _name ) override;
73 virtual sal_Bool SAL_CALL getVisible() override;
74 virtual void SAL_CALL setVisible( sal_Bool _visible ) override;
75 virtual sal_Bool SAL_CALL getEnabled() override;
76 virtual void SAL_CALL setEnabled( sal_Bool _enabled ) override;
77
78 // Methods
79 virtual void SAL_CALL Delete( ) override;
80 virtual css::uno::Any SAL_CALL Controls( const css::uno::Any& aIndex ) override;
81 virtual sal_Int32 SAL_CALL Type( ) override;
82 virtual css::uno::Any SAL_CALL FindControl( const css::uno::Any& aType, const css::uno::Any& aId, const css::uno::Any& aTag, const css::uno::Any& aVisible, const css::uno::Any& aRecursive ) override;
83
84 // XHelperInterface
85 virtual OUString getServiceImplName() override;
86 virtual css::uno::Sequence<OUString> getServiceNames() override;
87
88private:
89 OUString maName;
90};
91
92#endif // INCLUDED_VBAHELPER_SOURCE_VBAHELPER_VBACOMMANDBAR_HXX
93
94/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual sal_Bool SAL_CALL getEnabled() override
virtual void SAL_CALL setEnabled(sal_Bool _enabled) override
virtual void SAL_CALL setVisible(sal_Bool _visible) override
virtual void SAL_CALL setName(const OUString &_name) override
virtual sal_Int32 SAL_CALL Type() override
virtual OUString getServiceImplName() override
virtual css::uno::Any SAL_CALL FindControl(const css::uno::Any &aType, const css::uno::Any &aId, const css::uno::Any &aTag, const css::uno::Any &aVisible, const css::uno::Any &aRecursive) override
virtual sal_Bool SAL_CALL getVisible() override
VbaCommandBarHelperRef pCBarHelper
virtual void SAL_CALL Delete() override
virtual OUString SAL_CALL getName() override
OUString m_sResourceUrl
css::uno::Reference< css::container::XIndexAccess > m_xBarSettings
virtual css::uno::Sequence< OUString > getServiceNames() override
ScVbaCommandBar(const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, VbaCommandBarHelperRef pHelper, css::uno::Reference< css::container::XIndexAccess > xBarSettings, OUString sResourceUrl, bool bIsMenu)
virtual css::uno::Any SAL_CALL Controls(const css::uno::Any &aIndex) override
Dummy command bar implementation.
VbaDummyCommandBar(const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, OUString aName)
virtual void SAL_CALL setName(const OUString &_name) override
virtual void SAL_CALL setEnabled(sal_Bool _enabled) override
virtual void SAL_CALL setVisible(sal_Bool _visible) override
virtual css::uno::Any SAL_CALL FindControl(const css::uno::Any &aType, const css::uno::Any &aId, const css::uno::Any &aTag, const css::uno::Any &aVisible, const css::uno::Any &aRecursive) override
virtual css::uno::Sequence< OUString > getServiceNames() override
virtual css::uno::Any SAL_CALL Controls(const css::uno::Any &aIndex) override
virtual void SAL_CALL Delete() override
virtual sal_Int32 SAL_CALL Type() override
virtual sal_Bool SAL_CALL getEnabled() override
virtual OUString SAL_CALL getName() override
virtual sal_Bool SAL_CALL getVisible() override
virtual OUString getServiceImplName() override
std::deque< AttacherIndex_Impl > aIndex
OUString aName
unsigned char sal_Bool
InheritedHelperInterfaceWeakImpl< ov::XCommandBar > CommandBar_BASE
std::shared_ptr< VbaCommandBarHelper > VbaCommandBarHelperRef