fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / framework / inc / uielement / addonstoolbarmanager.hxx
blobf01093fa02e893d1736075eaa43d40a8dee33c47
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 INCLUDED_FRAMEWORK_INC_UIELEMENT_ADDONSTOOLBARMANAGER_HXX
21 #define INCLUDED_FRAMEWORK_INC_UIELEMENT_ADDONSTOOLBARMANAGER_HXX
23 #include <uielement/toolbarmanager.hxx>
24 #include <macros/generic.hxx>
25 #include <macros/xinterface.hxx>
26 #include <macros/xtypeprovider.hxx>
28 #include <com/sun/star/frame/XFrame.hpp>
29 #include <com/sun/star/frame/XStatusListener.hpp>
30 #include <com/sun/star/lang/XComponent.hpp>
31 #include <com/sun/star/container/XIndexAccess.hpp>
32 #include <com/sun/star/container/XNameAccess.hpp>
33 #include <com/sun/star/frame/XModuleManager.hpp>
35 #include <rtl/ustring.hxx>
36 #include <cppuhelper/weak.hxx>
37 #include <cppuhelper/interfacecontainer.hxx>
39 class ToolBox;
41 namespace framework
44 class AddonsToolBarManager : public ToolBarManager
46 public:
47 AddonsToolBarManager( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext,
48 const com::sun::star::uno::Reference< com::sun::star::frame::XFrame >& rFrame,
49 const OUString& rResourceName,
50 ToolBox* pToolBar );
51 virtual ~AddonsToolBarManager();
53 // XComponent
54 void SAL_CALL dispose() throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
56 virtual void RefreshImages() SAL_OVERRIDE;
57 using ToolBarManager::FillToolbar;
58 void FillToolbar( const com::sun::star::uno::Sequence< com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > >& rAddonToolbar );
60 protected:
61 DECL_LINK_TYPED(Click, ToolBox *, void);
62 DECL_LINK_TYPED(DoubleClick, ToolBox *, void);
63 DECL_LINK_TYPED(Command, CommandEvent const *, void);
64 DECL_LINK_TYPED(Select, ToolBox *, void);
65 DECL_LINK_TYPED(Activate, ToolBox *, void);
66 DECL_LINK_TYPED(Deactivate, ToolBox *, void);
67 DECL_LINK_TYPED( StateChanged, StateChangedType const *, void );
68 DECL_LINK_TYPED( DataChanged, DataChangedEvent const *, void );
70 virtual bool MenuItemAllowed( sal_uInt16 ) const SAL_OVERRIDE;
75 #endif // INCLUDED_FRAMEWORK_INC_UIELEMENT_ADDONSTOOLBARMANAGER_HXX
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */