bump product version to 4.1.6.2
[LibreOffice.git] / framework / inc / uielement / addonstoolbarmanager.hxx
blob53384bb924287e273cfd004691ebaf0a9a929dd6
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef __FRAMEWORK_UIELEMENT_ADDONSTOOLBARMANAGER_HXX_
21 #define __FRAMEWORK_UIELEMENT_ADDONSTOOLBARMANAGER_HXX_
23 #include <uielement/toolbarmanager.hxx>
24 #include <threadhelp/threadhelpbase.hxx>
25 #include <macros/generic.hxx>
26 #include <macros/xinterface.hxx>
27 #include <macros/xtypeprovider.hxx>
29 #include <com/sun/star/frame/XFrame.hpp>
30 #include <com/sun/star/frame/XStatusListener.hpp>
31 #include <com/sun/star/lang/XComponent.hpp>
32 #include <com/sun/star/container/XIndexAccess.hpp>
33 #include <com/sun/star/container/XNameAccess.hpp>
34 #include <com/sun/star/frame/XModuleManager.hpp>
36 #include <rtl/ustring.hxx>
37 #include <cppuhelper/weak.hxx>
38 #include <cppuhelper/interfacecontainer.hxx>
40 class ToolBox;
42 namespace framework
45 class AddonsToolBarManager : public ToolBarManager
47 public:
48 AddonsToolBarManager( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext,
49 const com::sun::star::uno::Reference< com::sun::star::frame::XFrame >& rFrame,
50 const OUString& rResourceName,
51 ToolBox* pToolBar );
52 virtual ~AddonsToolBarManager();
54 // XComponent
55 void SAL_CALL dispose() throw ( ::com::sun::star::uno::RuntimeException );
57 virtual void RefreshImages();
58 using ToolBarManager::FillToolbar;
59 void FillToolbar( const com::sun::star::uno::Sequence< com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > >& rAddonToolbar );
61 protected:
62 DECL_LINK(Click, void *);
63 DECL_LINK(DoubleClick, void *);
64 DECL_LINK(Command, void *);
65 DECL_LINK(Select, void *);
66 DECL_LINK(Activate, void *);
67 DECL_LINK(Deactivate, void *);
68 DECL_LINK( StateChanged, StateChangedType* );
69 DECL_LINK( DataChanged, DataChangedEvent* );
71 virtual bool MenuItemAllowed( sal_uInt16 ) const;
76 #endif // __FRAMEWORK_UIELEMENT_ADDONSTOOLBARMANAGER_HXX_
78 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */